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.0009095/0.0009096, allocations: 97.22 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 178.9 kB / 16.57 MB, free: 6.852 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.5/1.5, allocations: 205.4 MB / 222.7 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3183/0.3183, allocations: 43.54 MB / 314.5 MB, free: 8.785 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.0004977/0.0004978, allocations: 18.97 kB / 383.9 MB, free: 8.051 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1163, allocations: 58.86 MB / 442.8 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0006165/0.1169, allocations: 272.3 kB / 443 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.1179, allocations: 0.5394 MB / 443.6 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.695e-05/0.118, allocations: 4 kB / 443.6 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.1181, allocations: 11.88 kB / 443.6 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.527e-06/0.1181, allocations: 0 / 443.6 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006477/0.1188, allocations: 167.5 kB / 443.7 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.532e-05/0.1188, allocations: 15.98 kB / 443.8 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.775e-05/0.1189, allocations: 0 / 443.8 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.161e-05/0.1189, allocations: 27.91 kB / 443.8 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.972e-05/0.1189, allocations: 11.98 kB / 443.8 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.454e-05/0.119, allocations: 4 kB / 443.8 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002276/0.1192, allocations: 127.8 kB / 443.9 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.762e-05/0.1193, allocations: 63.81 kB / 444 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.55e-05/0.1194, allocations: 41.64 kB / 444 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002049/0.1196, allocations: 139.8 kB / 444.2 MB, free: 11.67 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.1196, allocations: 0 / 444.2 MB, free: 11.67 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1196, allocations: 4 kB / 444.2 MB, free: 11.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.1196, allocations: 0 / 444.2 MB, free: 11.66 MB / 382.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.0004936/0.1201, allocations: 476.4 kB / 444.6 MB, free: 11.15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.1202, allocations: 8.031 kB / 444.6 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.733e-05/0.1202, allocations: 19.77 kB / 444.7 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.1204, allocations: 174.9 kB / 444.8 MB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.1204, allocations: 19.94 kB / 444.8 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.906e-05/0.1204, allocations: 20 kB / 444.9 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000173/0.1206, allocations: 136.3 kB / 445 MB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1206, allocations: 0 / 445 MB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.1206, allocations: 0 / 445 MB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.1207, allocations: 0 / 445 MB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001124/0.1208, allocations: 92.41 kB / 445.1 MB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001934/0.121, allocations: 230.1 kB / 445.3 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001604/0.1211, allocations: 166.9 kB / 445.5 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.734e-06/0.1212, allocations: 0 / 445.5 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002106/0.1214, allocations: 166 kB / 445.6 MB, free: 10.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=54): time 1.142e-06/0.1214, allocations: 0 / 445.6 MB, free: 10.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.001146/0.1225, allocations: 0.8647 MB / 446.5 MB, free: 9.141 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.32e-05/0.1226, allocations: 107.8 kB / 446.6 MB, free: 9.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.729e-05/0.1227, allocations: 117.6 kB / 446.7 MB, free: 8.895 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.503e-05/0.1228, allocations: 69.67 kB / 446.8 MB, free: 8.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.106e-05/0.1228, allocations: 93.45 kB / 446.9 MB, free: 8.727 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.123, allocations: 142.5 kB / 447 MB, free: 8.586 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.028e-05/0.123, allocations: 16 kB / 447 MB, free: 8.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.1232, allocations: 350.8 kB / 447.4 MB, free: 8.219 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000281/0.1234, allocations: 177.9 kB / 447.6 MB, free: 8.043 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00054/0.124, allocations: 0.5292 MB / 448.1 MB, free: 7.348 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003878/0.1244, allocations: 267.7 kB / 448.3 MB, free: 7.086 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.1244, allocations: 11.94 kB / 448.4 MB, free: 7.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001023/0.1254, allocations: 0.7355 MB / 449.1 MB, free: 6.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.1255, allocations: 12 kB / 449.1 MB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.1255, allocations: 12 kB / 449.1 MB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.733e-05/0.1255, allocations: 16 kB / 449.1 MB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003561/0.1259, allocations: 123.7 kB / 449.3 MB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.04e-05/0.1259, allocations: 19.94 kB / 449.3 MB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002219/0.1261, allocations: 63.34 kB / 449.3 MB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.047e-05/0.1262, allocations: 44 kB / 449.4 MB, free: 6.047 MB / 382.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 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000224/0.1264, allocations: 257.6 kB / 449.6 MB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.373e-05/0.1264, allocations: 11.8 kB / 449.6 MB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.41e-05/0.1265, allocations: 9.875 kB / 449.6 MB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.1265, allocations: 4 kB / 449.7 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1265, allocations: 0 / 449.7 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1265, allocations: 0 / 449.7 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.1267, allocations: 193.7 kB / 449.8 MB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1267, allocations: 4 kB / 449.8 MB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.727e-06/0.1267, allocations: 0 / 449.8 MB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.1267, allocations: 4 kB / 449.8 MB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.1267, allocations: 0 / 449.8 MB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.1267, allocations: 0 / 449.8 MB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.1267, allocations: 7.984 kB / 449.9 MB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000822/0.1275, allocations: 0.6147 MB / 450.5 MB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.322e-05/0.1276, allocations: 96.8 kB / 450.6 MB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.067e-05/0.1276, allocations: 4 kB / 450.6 MB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.268e-05/0.1276, allocations: 3.984 kB / 450.6 MB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.249e-05/0.1277, allocations: 0 / 450.6 MB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-06/0.1277, allocations: 0 / 450.6 MB, free: 4.754 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.617e-05/0.1277, allocations: 79.31 kB / 450.7 MB, free: 4.676 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1277, allocations: 8.031 kB / 450.7 MB, free: 4.668 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004587/0.1282, allocations: 91.98 kB / 450.7 MB, free: 4.578 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004867/0.1287, allocations: 255.4 kB / 451 MB, free: 4.336 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005622/0.1292, allocations: 465.6 kB / 451.5 MB, free: 3.883 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1293, allocations: 8.062 kB / 451.5 MB, free: 3.875 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.1294, allocations: 156.4 kB / 451.6 MB, free: 3.723 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.364e-05/0.1295, allocations: 7.938 kB / 451.6 MB, free: 3.715 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005253/0.13, allocations: 458.7 kB / 452.1 MB, free: 3.246 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.1303, allocations: 0.7336 MB / 452.8 MB, free: 2.484 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.803e-05/0.1304, allocations: 47.58 kB / 452.8 MB, free: 2.434 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.166e-05/0.1305, allocations: 19.44 kB / 452.9 MB, free: 2.414 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1305, allocations: 0 / 452.9 MB, free: 2.414 MB / 382.1 MB Notification: Performance of Templates: time 0.1888/0.3193, allocations: 2.769 MB / 455.6 MB, free: 44.8 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches