Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001019/0.001019, allocations: 88.73 kB / 21.5 MB, free: 2.98 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001216/0.001216, allocations: 163.3 kB / 24.91 MB, free: 8.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1/1, allocations: 177 MB / 205.2 MB, free: 5.422 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2577/0.2577, allocations: 34.86 MB / 296.6 MB, free: 0.5 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.[0-9,]+.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.[0-9,]+.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 3.938 kB / 326 MB, free: 7.113 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.727e-05/2.885e-05, allocations: 3.844 kB / 326 MB, free: 7.109 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002011/0.002039, allocations: 0.5892 MB / 326.5 MB, free: 6.523 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007124/0.002752, allocations: 443.2 kB / 327 MB, free: 6.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.857e-05/0.00279, allocations: 3.938 kB / 327 MB, free: 6.086 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.663e-05/0.002867, allocations: 0 / 327 MB, free: 6.086 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001131/0.00298, allocations: 3.984 kB / 327 MB, free: 6.082 MB / 298.7 MB [/home/hudson/saved_omc/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.0004892/0.003469, allocations: 183.2 kB / 327.2 MB, free: 5.902 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001278/0.003597, allocations: 75.86 kB / 327.2 MB, free: 5.828 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.302e-05/0.00364, allocations: 12.59 kB / 327.3 MB, free: 5.816 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.039e-05/0.00372, allocations: 39.97 kB / 327.3 MB, free: 5.777 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.019e-05/0.003781, allocations: 19.91 kB / 327.3 MB, free: 5.758 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.003804, allocations: 4 kB / 327.3 MB, free: 5.754 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002637/0.004067, allocations: 139.7 kB / 327.5 MB, free: 5.617 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.336e-05/0.004121, allocations: 19.97 kB / 327.5 MB, free: 5.598 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.659e-05/0.004157, allocations: 15.98 kB / 327.5 MB, free: 5.582 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002249/0.004382, allocations: 163.5 kB / 327.6 MB, free: 5.422 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.004386, allocations: 3.984 kB / 327.7 MB, free: 5.418 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.004387, allocations: 4 kB / 327.7 MB, free: 5.414 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.369e-06/0.004392, allocations: 0 / 327.7 MB, free: 5.414 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003767/0.004768, allocations: 298.6 kB / 327.9 MB, free: 5.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.004803, allocations: 12.03 kB / 328 MB, free: 5.078 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.507e-05/0.004838, allocations: 12.86 kB / 328 MB, free: 5.066 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.004955, allocations: 117.8 kB / 328.1 MB, free: 4.926 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.043e-06/0.004963, allocations: 384 / 328.1 MB, free: 4.926 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.567e-05/0.004978, allocations: 16.36 kB / 328.1 MB, free: 4.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.982e-05/0.005078, allocations: 74.91 kB / 328.2 MB, free: 4.828 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.005085, allocations: 192 / 328.2 MB, free: 4.828 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.005097, allocations: 8.375 kB / 328.2 MB, free: 4.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.005102, allocations: 384 / 328.2 MB, free: 4.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.787e-05/0.00513, allocations: 15.92 kB / 328.2 MB, free: 4.805 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.592e-05/0.005225, allocations: 75.73 kB / 328.3 MB, free: 4.715 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.385e-05/0.005269, allocations: 30.58 kB / 328.3 MB, free: 4.676 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.626e-05/0.005296, allocations: 12.84 kB / 328.3 MB, free: 4.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.005308, allocations: 4 kB / 328.3 MB, free: 4.656 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00012/0.005428, allocations: 114.2 kB / 328.4 MB, free: 4.531 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.983e-06/0.00543, allocations: 3.984 kB / 328.4 MB, free: 4.527 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001345/0.005564, allocations: 69.67 kB / 328.5 MB, free: 4.453 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.0056, allocations: 63.33 kB / 328.6 MB, free: 4.379 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.554e-05/0.005656, allocations: 102.7 kB / 328.7 MB, free: 4.266 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.005674, allocations: 29.7 kB / 328.7 MB, free: 4.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.738e-05/0.005701, allocations: 84.12 kB / 328.8 MB, free: 4.145 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.72e-05/0.005728, allocations: 27.78 kB / 328.8 MB, free: 4.117 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.443e-05/0.005763, allocations: 33.69 kB / 328.8 MB, free: 4.078 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.079e-05/0.005844, allocations: 322.8 kB / 329.2 MB, free: 3.754 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.881e-05/0.005872, allocations: 37.7 kB / 329.2 MB, free: 3.711 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.161e-05/0.005934, allocations: 92.55 kB / 329.3 MB, free: 3.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.709e-05/0.006031, allocations: 119.2 kB / 329.4 MB, free: 3.441 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.006034, allocations: 4 kB / 329.4 MB, free: 3.438 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001253/0.006159, allocations: 152.9 kB / 329.6 MB, free: 3.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/0.006185, allocations: 33.7 kB / 329.6 MB, free: 3.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.006191, allocations: 4 kB / 329.6 MB, free: 3.227 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.006202, allocations: 4 kB / 329.6 MB, free: 3.223 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.066e-05/0.006293, allocations: 27.98 kB / 329.6 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.006297, allocations: 4 kB / 329.6 MB, free: 3.191 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.223e-05/0.006329, allocations: 16.05 kB / 329.6 MB, free: 3.176 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.829e-06/0.006339, allocations: 12 kB / 329.6 MB, free: 3.164 MB / 298.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,cnt[3],$PRE.cnt[3],cnt[2],$PRE.cnt[2],cnt[1],$PRE.cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,samples,$PRE.samples) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001038/0.006443, allocations: 128.6 kB / 329.8 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.323e-05/0.006456, allocations: 7.938 kB / 329.8 MB, free: 3.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.496e-05/0.006491, allocations: 16.11 kB / 329.8 MB, free: 3.004 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.006494, allocations: 0 / 329.8 MB, free: 3.004 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.006496, allocations: 0 / 329.8 MB, free: 3.004 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.006499, allocations: 0 / 329.8 MB, free: 3.004 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.868e-05/0.006578, allocations: 73.83 kB / 329.9 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.00658, allocations: 7.984 kB / 329.9 MB, free: 2.906 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.141e-05/0.006602, allocations: 4 kB / 329.9 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.006604, allocations: 4 kB / 329.9 MB, free: 2.898 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.742e-06/0.006611, allocations: 4 kB / 329.9 MB, free: 2.895 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.006612, allocations: 0 / 329.9 MB, free: 2.895 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.006614, allocations: 3.984 kB / 329.9 MB, free: 2.891 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001074/0.006721, allocations: 98.62 kB / 330 MB, free: 2.773 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.152e-05/0.006732, allocations: 8.703 kB / 330 MB, free: 2.766 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.006751, allocations: 4 kB / 330 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.652e-05/0.006838, allocations: 15.97 kB / 330 MB, free: 2.746 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.142e-05/0.006859, allocations: 8 kB / 330 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.00687, allocations: 3.984 kB / 330 MB, free: 2.734 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.492e-05/0.006885, allocations: 12.8 kB / 330 MB, free: 2.719 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.006885, allocations: 0 / 330 MB, free: 2.719 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001745/0.007059, allocations: 47.92 kB / 330.1 MB, free: 2.672 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: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003312/0.007391, allocations: 186.2 kB / 330.3 MB, free: 2.527 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001311/0.007522, allocations: 134.5 kB / 330.4 MB, free: 2.375 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.007526, allocations: 4 kB / 330.4 MB, free: 2.371 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.624e-05/0.007552, allocations: 28.83 kB / 330.4 MB, free: 2.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.764e-05/0.00763, allocations: 19.92 kB / 330.5 MB, free: 2.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002542/0.007884, allocations: 139 kB / 330.6 MB, free: 2.156 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.038e-05/0.007914, allocations: 55.36 kB / 330.6 MB, free: 2.082 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.294e-05/0.007947, allocations: 21.14 kB / 330.7 MB, free: 2.059 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.922e-05/0.007986, allocations: 59.38 kB / 330.7 MB, free: 2 MB / 298.7 MB Notification: Performance of SimCode: time 4.3e-07/0.007987, allocations: 0 / 330.7 MB, free: 2 MB / 298.7 MB Notification: Performance of Templates: time 0.003768/0.01175, allocations: 2.333 MB / 333.1 MB, free: 15.7 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.089872383978218]