Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.673/1.673, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5201,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator") translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5201,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 43.94 kB / 373.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1357, allocations: 53.33 MB / 426.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002954/0.1387, allocations: 1.354 MB / 428.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008685/0.1396, allocations: 362.7 kB / 428.5 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.244e-05/0.1396, allocations: 0 / 428.5 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.2e-05/0.1396, allocations: 0 / 428.5 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.325e-05/0.1397, allocations: 11.94 kB / 428.5 MB, free: 2.543 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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.0005322/0.1402, allocations: 83.72 kB / 428.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.827e-05/0.1403, allocations: 19.92 kB / 428.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.537e-05/0.1404, allocations: 4 kB / 428.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.73e-05/0.1404, allocations: 7.938 kB / 428.6 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.679e-05/0.1404, allocations: 7.984 kB / 428.6 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.1404, allocations: 0 / 428.6 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002764/0.1407, allocations: 95.88 kB / 428.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.813e-05/0.1407, allocations: 3.938 kB / 428.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.26e-05/0.1407, allocations: 11.94 kB / 428.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000215/0.141, allocations: 87.69 kB / 428.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.141, allocations: 4 kB / 428.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.141, allocations: 0 / 428.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.141, allocations: 0 / 428.8 MB, free: 2.223 MB / 350.1 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.000526/0.1415, allocations: 347.3 kB / 429.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.1415, allocations: 12.03 kB / 429.2 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.667e-05/0.1416, allocations: 0.9375 kB / 429.2 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.1417, allocations: 168.4 kB / 429.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.1418, allocations: 384 / 429.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/0.1418, allocations: 384 / 429.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001313/0.1419, allocations: 38.25 kB / 429.4 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.1419, allocations: 192 / 429.4 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.1419, allocations: 3.938 kB / 429.4 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.1419, allocations: 7.938 kB / 429.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.918e-05/0.142, allocations: 11.92 kB / 429.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004276/0.1424, allocations: 240.9 kB / 429.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.26e-05/0.1425, allocations: 26.58 kB / 429.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.3e-05/0.1425, allocations: 24.78 kB / 429.7 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.286e-05/0.1425, allocations: 0 / 429.7 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001348/0.1426, allocations: 55.34 kB / 429.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.1426, allocations: 0 / 429.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002205/0.1429, allocations: 49.69 kB / 429.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.69e-05/0.1429, allocations: 55.41 kB / 429.9 MB, free: 1.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.143, allocations: 109.8 kB / 430 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.1431, allocations: 25.7 kB / 430 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.882e-05/0.1431, allocations: 80.14 kB / 430.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.37e-05/0.1431, allocations: 11.95 kB / 430.1 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.189e-05/0.1432, allocations: 17.7 kB / 430.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1433, allocations: 314.8 kB / 430.4 MB, free: 444 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.172e-05/0.1434, allocations: 4 kB / 430.4 MB, free: 440 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.706e-05/0.1434, allocations: 21.7 kB / 430.4 MB, free: 412 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.451e-05/0.1435, allocations: 37.66 kB / 430.5 MB, free: 368 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1435, allocations: 0 / 430.5 MB, free: 368 kB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001073/0.1436, allocations: 61.52 kB / 430.5 MB, free: 300 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.1436, allocations: 8 kB / 430.5 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1436, allocations: 0 / 430.5 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.1436, allocations: 0 / 430.5 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.038e-05/0.1437, allocations: 7.984 kB / 430.5 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.1437, allocations: 4 kB / 430.5 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.327e-05/0.1437, allocations: 11.97 kB / 430.6 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.1437, allocations: 0 / 430.6 MB, free: 268 kB / 350.1 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,globalSeed.id_impure,globalSeed.seed,impureRandom.y) * 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 9.725e-05/0.1438, allocations: 113.8 kB / 430.7 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.257e-06/0.1438, allocations: 0 / 430.7 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.561e-05/0.1439, allocations: 12.28 kB / 430.7 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.1439, allocations: 0 / 430.7 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1439, allocations: 3.984 kB / 430.7 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.1439, allocations: 3.938 kB / 430.7 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003286/0.1442, allocations: 290.5 kB / 431 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1442, allocations: 4 kB / 431 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.226e-05/0.1442, allocations: 0 / 431 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.1442, allocations: 0 / 431 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.1442, allocations: 3.938 kB / 431 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.1442, allocations: 4 kB / 431 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1442, allocations: 0 / 431 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001578/0.1444, allocations: 159.6 kB / 431.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.656e-05/0.1445, allocations: 81.11 kB / 431.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.127e-05/0.1445, allocations: 4 kB / 431.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.217e-05/0.1445, allocations: 0 / 431.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.685e-05/0.1445, allocations: 0 / 431.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.1445, allocations: 4 kB / 431.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.269e-05/0.1446, allocations: 87.27 kB / 431.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1446, allocations: 0 / 431.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002973/0.1449, allocations: 23.94 kB / 431.3 MB, free: 15.37 MB / 366.1 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.0005218/0.1454, allocations: 186.8 kB / 431.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001247/0.1455, allocations: 20.03 kB / 431.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1455, allocations: 0 / 431.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.758e-05/0.1456, allocations: 12.02 kB / 431.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.1458, allocations: 10.41 kB / 431.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003165/0.1461, allocations: 109.6 kB / 431.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.1464, allocations: 0.6768 MB / 432.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.084e-05/0.1465, allocations: 7.984 kB / 432.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.072e-05/0.1465, allocations: 7.438 kB / 432.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1465, allocations: 7.938 kB / 432.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of Templates: time 0.004177/0.1507, allocations: 0.9452 MB / 433.3 MB, free: 13.37 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.864759877324104]