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.001157/0.001157, allocations: 110 kB / 17.86 MB, free: 5.504 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.001288/0.001288, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.361/1.361, allocations: 222.9 MB / 242.5 MB, free: 15.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.215/0.215, allocations: 44.17 MB / 336.8 MB, free: 2.969 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 72.33 kB / 408.4 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1212, allocations: 60.82 MB / 469.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001756/0.123, allocations: 0.5994 MB / 469.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.1242, allocations: 0.6185 MB / 470.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.186e-05/0.1242, allocations: 0 / 470.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.935e-05/0.1243, allocations: 3.938 kB / 470.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.747e-06/0.1243, allocations: 0 / 470.4 MB, free: 13.6 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.000618/0.125, allocations: 175.2 kB / 470.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.294e-05/0.125, allocations: 31.91 kB / 470.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.107e-05/0.1251, allocations: 0 / 470.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.216e-05/0.1251, allocations: 15.98 kB / 470.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.614e-05/0.1252, allocations: 20.42 kB / 470.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.423e-05/0.1252, allocations: 4 kB / 470.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002852/0.1255, allocations: 159.8 kB / 470.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.762e-05/0.1256, allocations: 60.38 kB / 470.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.003e-05/0.1257, allocations: 55.61 kB / 470.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002164/0.1259, allocations: 147.8 kB / 471.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1259, allocations: 0 / 471.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1259, allocations: 4 kB / 471.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1259, allocations: 0 / 471.1 MB, free: 12.94 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.000587/0.1265, allocations: 492.7 kB / 471.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.1265, allocations: 15.97 kB / 471.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.882e-05/0.1266, allocations: 20.75 kB / 471.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.1267, allocations: 176.2 kB / 471.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.1267, allocations: 8.375 kB / 471.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.1268, allocations: 28.36 kB / 471.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001814/0.127, allocations: 132.4 kB / 471.9 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.127, allocations: 4 kB / 471.9 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.127, allocations: 0 / 471.9 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.127, allocations: 0 / 471.9 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.28e-05/0.1271, allocations: 96.34 kB / 472 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002006/0.1273, allocations: 226.2 kB / 472.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001474/0.1275, allocations: 167 kB / 472.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.1276, allocations: 153.7 kB / 472.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.005e-05/0.1276, allocations: 4 kB / 472.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002268/0.1278, allocations: 165.9 kB / 472.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.533e-06/0.1279, allocations: 0 / 472.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001043/0.1289, allocations: 0.781 MB / 473.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.044e-05/0.129, allocations: 103.8 kB / 473.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.043e-05/0.129, allocations: 117.7 kB / 473.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.089e-05/0.1291, allocations: 69.67 kB / 473.8 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.438e-05/0.1292, allocations: 97.48 kB / 473.9 MB, free: 9.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001317/0.1293, allocations: 130.5 kB / 474 MB, free: 9.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.1295, allocations: 162.7 kB / 474.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.1296, allocations: 342.8 kB / 474.5 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002664/0.1299, allocations: 185.9 kB / 474.7 MB, free: 9.109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004769/0.1303, allocations: 0.5408 MB / 475.2 MB, free: 8.402 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009043/0.1312, allocations: 0.7749 MB / 476 MB, free: 7.461 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.1313, allocations: 4 kB / 476 MB, free: 7.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009817/0.1322, allocations: 0.7432 MB / 476.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.1323, allocations: 8 kB / 476.7 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.1323, allocations: 12 kB / 476.8 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.901e-05/0.1323, allocations: 20 kB / 476.8 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003562/0.1327, allocations: 119.6 kB / 476.9 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.277e-05/0.1327, allocations: 27.92 kB / 476.9 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000205/0.1329, allocations: 67.84 kB / 477 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.004e-05/0.133, allocations: 40 kB / 477 MB, free: 6.418 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.0002414/0.1332, allocations: 241.4 kB / 477.3 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.243e-05/0.1333, allocations: 23.75 kB / 477.3 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.592e-05/0.1333, allocations: 9.859 kB / 477.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1333, allocations: 0 / 477.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.1333, allocations: 3.984 kB / 477.3 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1333, allocations: 0 / 477.3 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001584/0.1335, allocations: 193.8 kB / 477.5 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1335, allocations: 3.938 kB / 477.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.511e-06/0.1335, allocations: 3.938 kB / 477.5 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1335, allocations: 0 / 477.5 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.1335, allocations: 0 / 477.5 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1335, allocations: 4 kB / 477.5 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1335, allocations: 0 / 477.5 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008008/0.1343, allocations: 0.6147 MB / 478.1 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.536e-05/0.1344, allocations: 104.7 kB / 478.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.1344, allocations: 0 / 478.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.263e-05/0.1344, allocations: 0 / 478.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.283e-05/0.1345, allocations: 0 / 478.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.505e-06/0.1345, allocations: 7.984 kB / 478.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.775e-05/0.1345, allocations: 83.31 kB / 478.3 MB, free: 5.035 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1345, allocations: 0 / 478.3 MB, free: 5.035 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004686/0.135, allocations: 92 kB / 478.4 MB, free: 4.945 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.0005177/0.1355, allocations: 270.8 kB / 478.7 MB, free: 4.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005587/0.1361, allocations: 465.2 kB / 479.1 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1361, allocations: 0 / 479.1 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.1362, allocations: 160.4 kB / 479.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001424/0.1364, allocations: 11.94 kB / 479.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005479/0.1369, allocations: 0.4893 MB / 479.8 MB, free: 3.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.1373, allocations: 0.7336 MB / 480.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.695e-05/0.1373, allocations: 19.44 kB / 480.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1373, allocations: 4 kB / 480.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of Templates: time 0.006289/0.1436, allocations: 3.795 MB / 484.3 MB, free: 14.99 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