Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009687/0.0009686, allocations: 95.17 kB / 18 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 176.6 kB / 18.91 MB, free: 4.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 223.3 MB / 243 MB, free: 164 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1898/0.1898, allocations: 44.24 MB / 338.3 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003473, allocations: 8 kB / 411 MB, free: 27.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1195, allocations: 61.93 MB / 472.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0007016/0.1202, allocations: 254.9 kB / 473.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.1215, allocations: 0.6061 MB / 473.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.835e-05/0.1215, allocations: 3.938 kB / 473.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.65e-05/0.1217, allocations: 8 kB / 473.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.1217, allocations: 0 / 473.8 MB, free: 12.45 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.0007618/0.1224, allocations: 171.1 kB / 474 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.471e-05/0.1225, allocations: 31.95 kB / 474 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.132e-05/0.1226, allocations: 0 / 474 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.147e-05/0.1226, allocations: 15.92 kB / 474 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.284e-05/0.1227, allocations: 20.48 kB / 474 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.121e-05/0.1227, allocations: 0 / 474 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000304/0.123, allocations: 163.8 kB / 474.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.569e-05/0.1231, allocations: 56.45 kB / 474.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.166e-05/0.1232, allocations: 81.31 kB / 474.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002526/0.1235, allocations: 151.7 kB / 474.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.1235, allocations: 3.938 kB / 474.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1235, allocations: 0 / 474.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.1235, allocations: 0 / 474.5 MB, free: 11.76 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0005323/0.124, allocations: 464.8 kB / 474.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.1241, allocations: 12.03 kB / 474.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.826e-05/0.1241, allocations: 16.75 kB / 474.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.1242, allocations: 180.2 kB / 475.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.1243, allocations: 12.38 kB / 475.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.009e-05/0.1243, allocations: 24.38 kB / 475.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001854/0.1245, allocations: 128.4 kB / 475.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1245, allocations: 0 / 475.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.1245, allocations: 11.92 kB / 475.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.1246, allocations: 0 / 475.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.41e-05/0.1247, allocations: 96.34 kB / 475.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002043/0.1249, allocations: 230.2 kB / 475.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000159/0.125, allocations: 171 kB / 475.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.1252, allocations: 153.7 kB / 475.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.256e-06/0.1252, allocations: 0 / 475.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002278/0.1254, allocations: 169.9 kB / 476.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.703e-06/0.1254, allocations: 0 / 476.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001095/0.1265, allocations: 0.781 MB / 476.9 MB, free: 9.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.186e-05/0.1266, allocations: 99.8 kB / 477 MB, free: 9.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.135e-05/0.1267, allocations: 121.7 kB / 477.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.377e-05/0.1268, allocations: 69.67 kB / 477.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.48e-05/0.1268, allocations: 93.45 kB / 477.3 MB, free: 8.773 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.127, allocations: 134.5 kB / 477.4 MB, free: 8.641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.1271, allocations: 93.66 kB / 477.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1273, allocations: 346.8 kB / 477.8 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002727/0.1275, allocations: 185.9 kB / 478 MB, free: 8.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005201/0.1281, allocations: 0.5369 MB / 478.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009089/0.129, allocations: 0.7749 MB / 479.3 MB, free: 6.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.129, allocations: 4 kB / 479.3 MB, free: 6.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00111/0.1301, allocations: 0.7429 MB / 480.1 MB, free: 5.617 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.1301, allocations: 8 kB / 480.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.09e-05/0.1302, allocations: 12 kB / 480.1 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.057e-05/0.1302, allocations: 16.78 kB / 480.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003774/0.1306, allocations: 119.7 kB / 480.2 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.618e-05/0.1306, allocations: 31.86 kB / 480.2 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002259/0.1309, allocations: 63.38 kB / 480.3 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.309e-05/0.1309, allocations: 44 kB / 480.3 MB, free: 5.328 MB / 350.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.0002516/0.1312, allocations: 241.5 kB / 480.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.992e-05/0.1312, allocations: 15.69 kB / 480.6 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.729e-05/0.1312, allocations: 13.81 kB / 480.6 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.1312, allocations: 0 / 480.6 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1313, allocations: 3.984 kB / 480.6 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.1313, allocations: 0 / 480.6 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001579/0.1314, allocations: 189.8 kB / 480.8 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1314, allocations: 3.938 kB / 480.8 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.861e-06/0.1314, allocations: 7.938 kB / 480.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1315, allocations: 4 kB / 480.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.1315, allocations: 0 / 480.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1315, allocations: 0 / 480.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.1315, allocations: 0 / 480.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008889/0.1324, allocations: 0.6225 MB / 481.4 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.262e-05/0.1324, allocations: 104.7 kB / 481.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.246e-05/0.1325, allocations: 0 / 481.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.419e-05/0.1325, allocations: 0 / 481.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.115e-05/0.1325, allocations: 4.031 kB / 481.5 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.1325, allocations: 3.984 kB / 481.5 MB, free: 4.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.549e-05/0.1326, allocations: 79.28 kB / 481.6 MB, free: 3.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1326, allocations: 3.938 kB / 481.6 MB, free: 3.938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005119/0.1331, allocations: 92 kB / 481.7 MB, free: 3.848 MB / 350.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.0005866/0.1337, allocations: 265 kB / 482 MB, free: 3.621 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006216/0.1343, allocations: 464.2 kB / 482.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1343, allocations: 0 / 482.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.1345, allocations: 164.4 kB / 482.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001474/0.1346, allocations: 9.5 kB / 482.6 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006112/0.1352, allocations: 0.4887 MB / 483.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.1356, allocations: 0.7298 MB / 483.8 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.858e-05/0.1356, allocations: 27.42 kB / 483.8 MB, free: 1.695 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1356, allocations: 0 / 483.8 MB, free: 1.695 MB / 350.1 MB Notification: Performance of Templates: time 0.006803/0.1424, allocations: 3.784 MB / 487.6 MB, free: 13.9 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches