Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator") translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001598/0.001598, allocations: 201 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008678/0.0008678, allocations: 93.33 kB / 299.8 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002482/0.0002484, allocations: 4 kB / 360.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2393, allocations: 51.42 MB / 412 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001375/0.2407, allocations: 1.082 MB / 413.1 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007997/0.2416, allocations: 0.5766 MB / 413.7 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.969e-05/0.2416, allocations: 0 / 413.7 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.975e-05/0.2417, allocations: 0 / 413.7 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.573e-05/0.2417, allocations: 4.531 kB / 413.7 MB, free: 24.15 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005001/0.2423, allocations: 69.55 kB / 413.8 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.604e-05/0.2423, allocations: 12 kB / 413.8 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.587e-05/0.2424, allocations: 3.938 kB / 413.8 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.617e-05/0.2424, allocations: 4 kB / 413.8 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.882e-05/0.2425, allocations: 15.84 kB / 413.8 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.102e-05/0.2425, allocations: 4.688 kB / 413.8 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001752/0.2427, allocations: 75.92 kB / 413.9 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.671e-05/0.2427, allocations: 0.6562 kB / 413.9 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.894e-05/0.2427, allocations: 38.8 kB / 413.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001901/0.2429, allocations: 83.8 kB / 414 MB, free: 23.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2429, allocations: 4 kB / 414 MB, free: 23.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.243, allocations: 0.8125 kB / 414 MB, free: 23.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.137e-06/0.243, allocations: 0 / 414 MB, free: 23.84 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000378/0.2433, allocations: 334.9 kB / 414.3 MB, free: 23.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.2434, allocations: 12.03 kB / 414.4 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.568e-05/0.2434, allocations: 4.875 kB / 414.4 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.2435, allocations: 173.9 kB / 414.5 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.2436, allocations: 8.375 kB / 414.5 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.404e-05/0.2436, allocations: 384 / 414.5 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.937e-05/0.2437, allocations: 30.27 kB / 414.6 MB, free: 23.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.395e-06/0.2437, allocations: 3.844 kB / 414.6 MB, free: 23.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.2437, allocations: 3.938 kB / 414.6 MB, free: 23.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.2437, allocations: 0 / 414.6 MB, free: 23.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.358e-05/0.2438, allocations: 7.984 kB / 414.6 MB, free: 23.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000297/0.2441, allocations: 244.9 kB / 414.8 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.556e-05/0.2441, allocations: 22.58 kB / 414.8 MB, free: 22.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.463e-05/0.2441, allocations: 18.61 kB / 414.9 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.206e-05/0.2442, allocations: 0 / 414.9 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001234/0.2443, allocations: 63.25 kB / 414.9 MB, free: 22.78 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.2443, allocations: 0 / 414.9 MB, free: 22.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001767/0.2445, allocations: 61.8 kB / 415 MB, free: 22.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.2445, allocations: 51.41 kB / 415 MB, free: 22.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.714e-05/0.2446, allocations: 105.8 kB / 415.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.285e-06/0.2446, allocations: 25.7 kB / 415.2 MB, free: 22.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.015e-05/0.2446, allocations: 80.14 kB / 415.2 MB, free: 22.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.961e-05/0.2447, allocations: 11.91 kB / 415.3 MB, free: 22.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.467e-06/0.2447, allocations: 0 / 415.3 MB, free: 22.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.586e-05/0.2447, allocations: 314.8 kB / 415.6 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.154e-05/0.2448, allocations: 11.98 kB / 415.6 MB, free: 22.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.447e-05/0.2448, allocations: 17.72 kB / 415.6 MB, free: 22.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4e-05/0.2448, allocations: 33.64 kB / 415.6 MB, free: 22.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.2449, allocations: 0 / 415.6 MB, free: 22.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.263e-05/0.2449, allocations: 57.62 kB / 415.7 MB, free: 21.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.245, allocations: 8.031 kB / 415.7 MB, free: 21.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.245, allocations: 3.938 kB / 415.7 MB, free: 21.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.245, allocations: 4 kB / 415.7 MB, free: 21.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.188e-05/0.2451, allocations: 7.984 kB / 415.7 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.2451, allocations: 3.938 kB / 415.7 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.042e-05/0.2451, allocations: 11.84 kB / 415.7 MB, free: 21.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.2451, allocations: 0 / 415.7 MB, free: 21.92 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,impureRandom.y,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.184e-05/0.2452, allocations: 121.7 kB / 415.8 MB, free: 21.79 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.077e-06/0.2452, allocations: 0 / 415.8 MB, free: 21.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.435e-05/0.2452, allocations: 7.906 kB / 415.8 MB, free: 21.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2452, allocations: 3.984 kB / 415.8 MB, free: 21.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.2452, allocations: 4 kB / 415.9 MB, free: 21.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.2453, allocations: 0 / 415.9 MB, free: 21.76 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001847/0.2454, allocations: 282.5 kB / 416.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2455, allocations: 0 / 416.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.489e-05/0.2455, allocations: 4 kB / 416.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2455, allocations: 0 / 416.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.2455, allocations: 0 / 416.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.2455, allocations: 384 / 416.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2455, allocations: 4 kB / 416.1 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.747e-05/0.2456, allocations: 151.5 kB / 416.3 MB, free: 21.26 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.449e-05/0.2456, allocations: 85.02 kB / 416.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.2457, allocations: 0 / 416.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.692e-05/0.2457, allocations: 7.938 kB / 416.4 MB, free: 21.15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.862e-05/0.2457, allocations: 3.938 kB / 416.4 MB, free: 21.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.291e-05/0.2458, allocations: 0 / 416.4 MB, free: 21.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.558e-05/0.2458, allocations: 91.27 kB / 416.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2458, allocations: 4 kB / 416.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002655/0.2461, allocations: 24 kB / 416.5 MB, free: 21.03 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004008/0.2465, allocations: 209.9 kB / 416.7 MB, free: 20.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.999e-05/0.2466, allocations: 19.98 kB / 416.7 MB, free: 20.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2466, allocations: 0 / 416.7 MB, free: 20.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.238e-05/0.2466, allocations: 7.938 kB / 416.7 MB, free: 20.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001932/0.2468, allocations: 8 kB / 416.7 MB, free: 20.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002453/0.2471, allocations: 108.7 kB / 416.8 MB, free: 20.67 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001083/0.2472, allocations: 0.681 MB / 417.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.677e-05/0.2473, allocations: 7.984 kB / 417.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.389e-05/0.2473, allocations: 11.44 kB / 417.5 MB, free: 19.95 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2473, allocations: 0 / 417.5 MB, free: 19.95 MB / 298.7 MB Notification: Performance of Templates: time 0.002951/0.2502, allocations: 0.9221 MB / 418.5 MB, free: 19.02 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches