Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.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.001657/0.001657, allocations: 113 kB / 19.12 MB, free: 3.797 MB / 14.72 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.00198/0.00198, allocations: 210.6 kB / 22.08 MB, free: 0.8438 MB / 14.72 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.57/1.57, allocations: 227.4 MB / 252.3 MB, free: 80 kB / 190.1 MB " [Timeout remaining time 178] 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.2447/0.2447, allocations: 46.17 MB / 351.8 MB, free: 14.29 MB / 286.1 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.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003657/0.003657, allocations: 78.52 kB / 490.9 MB, free: 28.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1478, allocations: 62.45 MB / 0.5403 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001986/0.1499, allocations: 0.532 MB / 0.5409 GB, free: 3.715 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.1512, allocations: 0.6039 MB / 0.5415 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.866e-05/0.1512, allocations: 0 / 0.5415 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001042/0.1513, allocations: 7.938 kB / 0.5415 GB, free: 3.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.571e-06/0.1514, allocations: 0 / 0.5415 GB, free: 3.102 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:842:5-926:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.randomNumbers' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008685/0.1522, allocations: 201.3 kB / 0.5417 GB, free: 2.906 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.304e-05/0.1523, allocations: 31.89 kB / 0.5417 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.75e-05/0.1524, allocations: 4 kB / 0.5417 GB, free: 2.871 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.172e-05/0.1524, allocations: 11.98 kB / 0.5417 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.743e-05/0.1525, allocations: 24.19 kB / 0.5417 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.116e-05/0.1525, allocations: 0 / 0.5417 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003273/0.1528, allocations: 163.8 kB / 0.5419 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.038e-05/0.1529, allocations: 60.11 kB / 0.5419 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.33e-05/0.153, allocations: 55.61 kB / 0.542 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003545/0.1534, allocations: 207.1 kB / 0.5422 GB, free: 2.355 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1534, allocations: 0 / 0.5422 GB, free: 2.355 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.1534, allocations: 0 / 0.5422 GB, free: 2.355 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.1534, allocations: 3.984 kB / 0.5422 GB, free: 2.352 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006546/0.1541, allocations: 499.9 kB / 0.5427 GB, free: 1.812 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.1541, allocations: 12.03 kB / 0.5427 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.902e-05/0.1542, allocations: 20.84 kB / 0.5427 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.1543, allocations: 176.2 kB / 0.5429 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.1543, allocations: 12.38 kB / 0.5429 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.054e-05/0.1544, allocations: 24.38 kB / 0.5429 GB, free: 1.535 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.1546, allocations: 132.8 kB / 0.543 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.1546, allocations: 192 / 0.543 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.1546, allocations: 3.938 kB / 0.543 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.1546, allocations: 0 / 0.543 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.1547, allocations: 92.41 kB / 0.5431 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002765/0.155, allocations: 238.2 kB / 0.5433 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.1552, allocations: 163 kB / 0.5435 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.1554, allocations: 157.7 kB / 0.5437 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.113e-06/0.1554, allocations: 0 / 0.5437 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002902/0.1557, allocations: 173.8 kB / 0.5438 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=54): time 1.162e-06/0.1557, allocations: 4 kB / 0.5438 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of matching and sorting (n=54): time 0.001253/0.157, allocations: 0.7773 MB / 0.5446 GB, free: 15.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.1571, allocations: 103.7 kB / 0.5447 GB, free: 15.62 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.227e-05/0.1572, allocations: 117.8 kB / 0.5448 GB, free: 15.49 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.736e-05/0.1572, allocations: 69.67 kB / 0.5449 GB, free: 15.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.324e-05/0.1573, allocations: 93.45 kB / 0.5449 GB, free: 15.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001608/0.1575, allocations: 143 kB / 0.5451 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/0.1577, allocations: 158.7 kB / 0.5452 GB, free: 15.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001995/0.1579, allocations: 346.8 kB / 0.5456 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003158/0.1582, allocations: 185.8 kB / 0.5457 GB, free: 14.49 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006158/0.1589, allocations: 0.537 MB / 0.5463 GB, free: 13.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.1599, allocations: 0.7749 MB / 0.547 GB, free: 12.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-05/0.16, allocations: 4 kB / 0.547 GB, free: 12.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001276/0.1613, allocations: 0.7515 MB / 0.5478 GB, free: 12.08 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.531e-05/0.1613, allocations: 14.06 kB / 0.5478 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/0.1613, allocations: 15.94 kB / 0.5478 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.647e-05/0.1614, allocations: 19.98 kB / 0.5478 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000378/0.1618, allocations: 111.8 kB / 0.5479 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.128e-05/0.1618, allocations: 27.86 kB / 0.5479 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002381/0.162, allocations: 67.58 kB / 0.548 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.977e-05/0.1621, allocations: 40 kB / 0.548 GB, free: 11.79 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 (state33[33],$PRE.state33[33],state33[32],$PRE.state33[32],state33[31],$PRE.state33[31],state33[30],$PRE.state33[30],state33[29],$PRE.state33[29],state33[28],$PRE.state33[28],state33[27],$PRE.state33[27],state33[26],$PRE.state33[26],state33[25],$PRE.state33[25],state33[24],$PRE.state33[24],state33[23],$PRE.state33[23],state33[22],$PRE.state33[22],state33[21],$PRE.state33[21],state33[20],$PRE.state33[20],state33[19],$PRE.state33[19],state33[18],$PRE.state33[18],state33[17],$PRE.state33[17],state33[16],$PRE.state33[16],state33[15],$PRE.state33[15],state33[14],$PRE.state33[14],state33[13],$PRE.state33[13],state33[12],$PRE.state33[12],state33[11],$PRE.state33[11],state33[10],$PRE.state33[10],state33[9],$PRE.state33[9],state33[8],$PRE.state33[8],state33[7],$PRE.state33[7],state33[6],$PRE.state33[6],state33[5],$PRE.state33[5],state33[4],$PRE.state33[4],state33[3],$PRE.state33[3],state33[2],$PRE.state33[2],state33[1],$PRE.state33[1],state4c[4],$PRE.state4c[4],state4c[3],$PRE.state4c[3],state4c[2],$PRE.state4c[2],state4c[1],$PRE.state4c[1],state4b[4],$PRE.state4b[4],state4b[3],$PRE.state4b[3],state4b[2],$PRE.state4b[2],state4b[1],$PRE.state4b[1],state4a[4],$PRE.state4a[4],state4a[3],$PRE.state4a[3],state4a[2],$PRE.state4a[2],state4a[1],$PRE.state4a[1],state2[2],$PRE.state2[2],state2[1],$PRE.state2[1],r33,$PRE.r33,r4c,$PRE.r4c,r4b,$PRE.r4b,r4a,$PRE.r4a,r2,$PRE.r2,result,$PRE.result,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * 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 0.0002681/0.1624, allocations: 245.4 kB / 0.5483 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.37e-05/0.1624, allocations: 7.906 kB / 0.5483 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.478e-05/0.1624, allocations: 17.81 kB / 0.5483 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1624, allocations: 0 / 0.5483 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1625, allocations: 0 / 0.5483 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.1625, allocations: 4 kB / 0.5483 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000201/0.1627, allocations: 189.9 kB / 0.5485 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1627, allocations: 0 / 0.5485 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.099e-05/0.1627, allocations: 7.984 kB / 0.5485 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1627, allocations: 0 / 0.5485 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.1627, allocations: 3.938 kB / 0.5485 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1627, allocations: 0 / 0.5485 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1627, allocations: 0 / 0.5485 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009418/0.1637, allocations: 0.6149 MB / 0.5491 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.699e-05/0.1638, allocations: 104.8 kB / 0.5492 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.1638, allocations: 11.88 kB / 0.5492 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.388e-05/0.1638, allocations: 0 / 0.5492 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.116e-05/0.1638, allocations: 0 / 0.5492 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.1638, allocations: 0 / 0.5492 GB, free: 10.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.709e-05/0.1639, allocations: 79.28 kB / 0.5493 GB, free: 10.42 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1639, allocations: 0 / 0.5493 GB, free: 10.42 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005505/0.1644, allocations: 99.86 kB / 0.5494 GB, free: 10.32 MB / 414.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: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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.000698/0.1652, allocations: 264.4 kB / 0.5496 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006954/0.1659, allocations: 472.8 kB / 0.5501 GB, free: 9.625 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1659, allocations: 0.875 kB / 0.5501 GB, free: 9.625 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.166, allocations: 152.4 kB / 0.5502 GB, free: 9.477 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001466/0.1662, allocations: 16.33 kB / 0.5502 GB, free: 9.465 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006588/0.1669, allocations: 486.4 kB / 0.5507 GB, free: 8.957 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003867/0.1673, allocations: 0.7295 MB / 0.5514 GB, free: 8.199 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.525e-05/0.1673, allocations: 23.44 kB / 0.5514 GB, free: 8.176 MB / 414.1 MB Notification: Performance of SimCode: time 2.385e-06/0.1673, allocations: 0 / 0.5514 GB, free: 8.176 MB / 414.1 MB Notification: Performance of Templates: time 0.00736/0.1747, allocations: 3.827 MB / 0.5552 GB, free: 4.344 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.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: 8.51835149503313]