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.00122/0.00122, allocations: 107.6 kB / 17.21 MB, free: 6.289 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.001225/0.001225, allocations: 194 kB / 18.12 MB, free: 5.383 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.359/1.359, allocations: 222.9 MB / 241.8 MB, free: 15.5 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.2274/0.2274, allocations: 44.18 MB / 336.1 MB, free: 3.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 68.78 kB / 407.7 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.133, allocations: 60.82 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.00194/0.135, allocations: 0.6033 MB / 469.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.1362, allocations: 0.6145 MB / 469.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.112e-05/0.1363, allocations: 0 / 469.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.059e-05/0.1364, allocations: 7.938 kB / 469.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.228e-06/0.1364, allocations: 0 / 469.7 MB, free: 13.63 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.0006271/0.137, allocations: 171.6 kB / 469.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.548e-05/0.1371, allocations: 31.91 kB / 469.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.214e-05/0.1371, allocations: 0 / 469.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.633e-05/0.1372, allocations: 19.92 kB / 470 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.932e-05/0.1372, allocations: 20.47 kB / 470 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.1372, allocations: 0 / 470 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002624/0.1375, allocations: 159.8 kB / 470.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.1376, allocations: 64.36 kB / 470.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.501e-05/0.1377, allocations: 51.67 kB / 470.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.138, allocations: 203.4 kB / 470.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.138, allocations: 0 / 470.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.138, allocations: 7.984 kB / 470.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.138, allocations: 0 / 470.5 MB, free: 12.91 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.0005388/0.1385, allocations: 0.489 MB / 470.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.1386, allocations: 8.031 kB / 471 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.644e-05/0.1386, allocations: 20.75 kB / 471 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.1388, allocations: 172.2 kB / 471.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.1388, allocations: 16.36 kB / 471.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.905e-05/0.1388, allocations: 24.38 kB / 471.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001861/0.139, allocations: 140.3 kB / 471.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.139, allocations: 0 / 471.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.139, allocations: 0 / 471.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.139, allocations: 0 / 471.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.353e-05/0.1391, allocations: 96.41 kB / 471.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002041/0.1393, allocations: 222.2 kB / 471.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001587/0.1395, allocations: 167 kB / 471.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.1397, allocations: 161.7 kB / 472 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.1397, allocations: 7.938 kB / 472 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00021/0.1399, allocations: 165.9 kB / 472.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.162e-06/0.1399, allocations: 0 / 472.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001051/0.1409, allocations: 0.7732 MB / 472.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.818e-05/0.141, allocations: 103.8 kB / 473 MB, free: 10.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.905e-05/0.1411, allocations: 117.7 kB / 473.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.441e-05/0.1412, allocations: 69.67 kB / 473.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.38e-05/0.1412, allocations: 101.4 kB / 473.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.1414, allocations: 134.5 kB / 473.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001602/0.1415, allocations: 154.7 kB / 473.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.1417, allocations: 342.8 kB / 473.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002716/0.142, allocations: 185.8 kB / 474.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005107/0.1425, allocations: 0.5331 MB / 474.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009214/0.1434, allocations: 0.7788 MB / 475.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.1434, allocations: 7.938 kB / 475.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001101/0.1446, allocations: 0.7471 MB / 476.1 MB, free: 6.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.1446, allocations: 11.94 kB / 476.2 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.1446, allocations: 12 kB / 476.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.034e-05/0.1446, allocations: 16 kB / 476.2 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000383/0.145, allocations: 119.7 kB / 476.3 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.155e-05/0.1451, allocations: 23.92 kB / 476.3 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/0.1453, allocations: 63.84 kB / 476.4 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.492e-05/0.1453, allocations: 48 kB / 476.4 MB, free: 6.379 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.000259/0.1456, allocations: 241.4 kB / 476.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.755e-05/0.1456, allocations: 15.75 kB / 476.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.797e-05/0.1457, allocations: 5.875 kB / 476.7 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1457, allocations: 4 kB / 476.7 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1457, allocations: 0 / 476.7 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.1457, allocations: 0 / 476.7 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001645/0.1459, allocations: 189.8 kB / 476.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1459, allocations: 0 / 476.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.428e-06/0.1459, allocations: 11.92 kB / 476.9 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.1459, allocations: 4 kB / 476.9 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.355e-06/0.1459, allocations: 0 / 476.9 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1459, allocations: 4 kB / 476.9 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1459, allocations: 3.984 kB / 476.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008365/0.1468, allocations: 0.6147 MB / 477.5 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.102e-05/0.1468, allocations: 104.7 kB / 477.6 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.1469, allocations: 8 kB / 477.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.216e-05/0.1469, allocations: 0 / 477.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.447e-05/0.1469, allocations: 0 / 477.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-06/0.1469, allocations: 0 / 477.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.748e-05/0.1469, allocations: 79.31 kB / 477.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1469, allocations: 0 / 477.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004684/0.1474, allocations: 99.98 kB / 477.8 MB, free: 4.906 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.0005535/0.148, allocations: 263.8 kB / 478.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005685/0.1486, allocations: 465.1 kB / 478.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.1486, allocations: 0 / 478.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.1487, allocations: 164.3 kB / 478.7 MB, free: 4.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000143/0.1489, allocations: 7.938 kB / 478.7 MB, free: 4.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005565/0.1494, allocations: 471.4 kB / 479.1 MB, free: 3.578 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.1498, allocations: 0.7258 MB / 479.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.615e-05/0.1499, allocations: 43.59 kB / 479.9 MB, free: 2.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.417e-05/0.1499, allocations: 23.44 kB / 479.9 MB, free: 2.758 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1499, allocations: 4 kB / 479.9 MB, free: 2.754 MB / 350.1 MB Notification: Performance of Templates: time 0.006393/0.1563, allocations: 2.872 MB / 482.8 MB, free: 15.88 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins/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