Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_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.001676/0.001676, allocations: 101.9 kB / 16.93 MB, free: 5.824 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.001948/0.001948, allocations: 191.6 kB / 17.86 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2148/0.2148, allocations: 43.52 MB / 314.6 MB, free: 0.5312 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001966, allocations: 66.89 kB / 383.4 MB, free: 56.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1269, allocations: 57.79 MB / 441.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.002099/0.129, allocations: 0.5421 MB / 441.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.1302, allocations: 0.589 MB / 442.3 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.589e-05/0.1303, allocations: 3.938 kB / 442.3 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000107/0.1304, allocations: 7.922 kB / 442.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.851e-06/0.1304, allocations: 0 / 442.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009094/0.1314, allocations: 195.3 kB / 442.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.203e-05/0.1314, allocations: 35.95 kB / 442.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.635e-05/0.1315, allocations: 0 / 442.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.385e-05/0.1316, allocations: 19.92 kB / 442.6 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.236e-05/0.1316, allocations: 12.25 kB / 442.6 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.1316, allocations: 7.938 kB / 442.6 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003162/0.1319, allocations: 159.7 kB / 442.8 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.221e-05/0.132, allocations: 56.17 kB / 442.8 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.707e-05/0.1321, allocations: 59.61 kB / 442.9 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.1324, allocations: 195.4 kB / 443.1 MB, free: 5.047 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1324, allocations: 0 / 443.1 MB, free: 5.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1324, allocations: 0 / 443.1 MB, free: 5.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.1325, allocations: 4 kB / 443.1 MB, free: 5.043 MB / 318.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.0004903/0.1329, allocations: 496.6 kB / 443.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.133, allocations: 15.88 kB / 443.6 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.269e-05/0.1331, allocations: 20.75 kB / 443.6 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.507e-05/0.1331, allocations: 180.1 kB / 443.8 MB, free: 4.262 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.1332, allocations: 12.38 kB / 443.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.1332, allocations: 24.38 kB / 443.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001693/0.1334, allocations: 124.4 kB / 443.9 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.1334, allocations: 4 kB / 443.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.1334, allocations: 7.984 kB / 443.9 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.1334, allocations: 0 / 443.9 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.13e-05/0.1335, allocations: 92.41 kB / 444 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001777/0.1337, allocations: 226.1 kB / 444.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001281/0.1338, allocations: 174.9 kB / 444.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.804e-05/0.1339, allocations: 153.7 kB / 444.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.621e-06/0.1339, allocations: 0 / 444.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.1342, allocations: 173.9 kB / 444.7 MB, free: 3.215 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 1.032e-06/0.1342, allocations: 0 / 444.7 MB, free: 3.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.0009313/0.1351, allocations: 0.7733 MB / 445.5 MB, free: 2.434 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.413e-05/0.1352, allocations: 103.8 kB / 445.6 MB, free: 2.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.416e-05/0.1352, allocations: 117.6 kB / 445.7 MB, free: 2.195 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.754e-05/0.1353, allocations: 73.67 kB / 445.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.03e-05/0.1353, allocations: 89.45 kB / 445.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.432e-05/0.1354, allocations: 146.5 kB / 446 MB, free: 1.883 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.1355, allocations: 154.7 kB / 446.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.054e-05/0.1356, allocations: 346.8 kB / 446.5 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.1358, allocations: 185.8 kB / 446.7 MB, free: 1.195 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003286/0.1362, allocations: 0.5331 MB / 447.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008048/0.137, allocations: 0.7749 MB / 448 MB, free: 15.56 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.137, allocations: 8 kB / 448 MB, free: 15.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001058/0.1381, allocations: 0.7471 MB / 448.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.1381, allocations: 11.98 kB / 448.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.1381, allocations: 12 kB / 448.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.583e-05/0.1382, allocations: 20 kB / 448.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000369/0.1385, allocations: 115.7 kB / 448.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.709e-05/0.1386, allocations: 19.94 kB / 448.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002201/0.1388, allocations: 67.36 kB / 449 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.365e-05/0.1389, allocations: 44.34 kB / 449 MB, free: 14.51 MB / 334.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.0002661/0.1391, allocations: 250.5 kB / 449.3 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.178e-05/0.1392, allocations: 15.75 kB / 449.3 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.524e-05/0.1392, allocations: 9.875 kB / 449.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.1392, allocations: 0 / 449.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1392, allocations: 0 / 449.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.1392, allocations: 4 kB / 449.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/0.1394, allocations: 189.8 kB / 449.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1394, allocations: 4 kB / 449.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.896e-06/0.1395, allocations: 3.938 kB / 449.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.1395, allocations: 0 / 449.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.1395, allocations: 7.922 kB / 449.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1395, allocations: 0 / 449.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.1395, allocations: 7.938 kB / 449.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009084/0.1404, allocations: 0.6109 MB / 450.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.305e-05/0.1405, allocations: 104.7 kB / 450.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.1405, allocations: 3.984 kB / 450.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.277e-05/0.1405, allocations: 0 / 450.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.136e-05/0.1405, allocations: 3.938 kB / 450.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.1406, allocations: 4 kB / 450.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.307e-05/0.1406, allocations: 79.31 kB / 450.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1406, allocations: 0 / 450.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004937/0.1411, allocations: 87.98 kB / 450.4 MB, free: 13.04 MB / 334.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.0005637/0.1417, allocations: 256.1 kB / 450.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006223/0.1423, allocations: 473.5 kB / 451.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.1423, allocations: 4.188 kB / 451.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.1425, allocations: 164.3 kB / 451.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000147/0.1426, allocations: 5.969 kB / 451.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006112/0.1432, allocations: 486.7 kB / 451.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.1436, allocations: 0.7295 MB / 452.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.817e-05/0.1436, allocations: 27.44 kB / 452.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1436, allocations: 0 / 452.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of Templates: time 0.006538/0.1502, allocations: 3.73 MB / 456.3 MB, free: 7.156 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches