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.0009887/0.0009886, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.0009493/0.0009493, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.299/1.299, allocations: 222.9 MB / 242.2 MB, free: 15.21 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.2067/0.2067, allocations: 44.18 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 64.59 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1203, allocations: 60.82 MB / 469.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001933/0.1223, allocations: 0.5222 MB / 469.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.1234, allocations: 0.6065 MB / 470.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.436e-05/0.1234, allocations: 4 kB / 470.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.946e-05/0.1235, allocations: 7.922 kB / 470.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.328e-06/0.1235, allocations: 0 / 470.4 MB, free: 13.23 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.000704/0.1242, allocations: 194 kB / 470.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.934e-05/0.1243, allocations: 27.98 kB / 470.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.085e-05/0.1244, allocations: 7.969 kB / 470.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.385e-05/0.1244, allocations: 15.94 kB / 470.6 MB, free: 13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.104e-05/0.1245, allocations: 12.2 kB / 470.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.425e-05/0.1245, allocations: 4 kB / 470.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002647/0.1248, allocations: 171.7 kB / 470.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.654e-05/0.1248, allocations: 56.11 kB / 470.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.164e-05/0.1249, allocations: 51.67 kB / 470.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002526/0.1252, allocations: 207.4 kB / 471.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.1252, allocations: 3.938 kB / 471.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1252, allocations: 4 kB / 471.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.1252, allocations: 0 / 471.1 MB, free: 12.49 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.000493/0.1257, allocations: 496.7 kB / 471.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.1257, allocations: 11.97 kB / 471.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.134e-05/0.1258, allocations: 24.73 kB / 471.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.883e-05/0.1259, allocations: 176.2 kB / 471.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.1259, allocations: 12.38 kB / 471.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.567e-05/0.1259, allocations: 20.38 kB / 471.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001619/0.1261, allocations: 136.4 kB / 472 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.1261, allocations: 0 / 472 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.1261, allocations: 0 / 472 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.1262, allocations: 8 kB / 472 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.469e-05/0.1262, allocations: 96.34 kB / 472.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001833/0.1264, allocations: 226.2 kB / 472.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.1266, allocations: 167 kB / 472.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.1267, allocations: 153.7 kB / 472.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.02e-05/0.1267, allocations: 4 kB / 472.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001993/0.1269, allocations: 169.9 kB / 472.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.413e-06/0.1269, allocations: 0 / 472.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001023/0.128, allocations: 0.7732 MB / 473.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.408e-05/0.1281, allocations: 107.8 kB / 473.7 MB, free: 9.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.937e-05/0.1281, allocations: 113.7 kB / 473.8 MB, free: 9.648 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.724e-05/0.1282, allocations: 69.67 kB / 473.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.777e-05/0.1282, allocations: 97.48 kB / 473.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.1283, allocations: 134.5 kB / 474.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001469/0.1285, allocations: 158.7 kB / 474.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.1286, allocations: 350.8 kB / 474.6 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002421/0.1289, allocations: 181.9 kB / 474.8 MB, free: 8.652 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006923/0.1296, allocations: 0.5408 MB / 475.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00128/0.1309, allocations: 0.7749 MB / 476.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.317e-06/0.1309, allocations: 4 kB / 476.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001571/0.1325, allocations: 0.7432 MB / 476.8 MB, free: 6.254 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.1325, allocations: 8 kB / 476.8 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.1325, allocations: 12 kB / 476.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.572e-05/0.1326, allocations: 20 kB / 476.9 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005202/0.1331, allocations: 115.7 kB / 477 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.871e-05/0.1332, allocations: 27.86 kB / 477 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003658/0.1335, allocations: 63.81 kB / 477.1 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-05/0.1336, allocations: 48 kB / 477.1 MB, free: 5.965 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.0003154/0.1339, allocations: 237.5 kB / 477.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.821e-05/0.134, allocations: 19.75 kB / 477.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.442e-05/0.134, allocations: 9.812 kB / 477.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.134, allocations: 0 / 477.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.134, allocations: 0 / 477.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.134, allocations: 3.984 kB / 477.4 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002148/0.1343, allocations: 197.7 kB / 477.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.1343, allocations: 7.984 kB / 477.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.941e-06/0.1343, allocations: 3.938 kB / 477.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1343, allocations: 0 / 477.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.1343, allocations: 0 / 477.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1343, allocations: 4 kB / 477.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1343, allocations: 0 / 477.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/0.1357, allocations: 0.6186 MB / 478.2 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.405e-05/0.1358, allocations: 104.7 kB / 478.3 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.724e-05/0.1358, allocations: 0 / 478.3 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.057e-05/0.1358, allocations: 0 / 478.3 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.399e-05/0.1359, allocations: 4 kB / 478.3 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.1359, allocations: 4 kB / 478.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.903e-05/0.1359, allocations: 83.3 kB / 478.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1359, allocations: 3.938 kB / 478.4 MB, free: 4.574 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008552/0.1368, allocations: 92 kB / 478.5 MB, free: 4.484 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.0007044/0.1375, allocations: 261.7 kB / 478.7 MB, free: 4.254 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009044/0.1384, allocations: 473.2 kB / 479.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1385, allocations: 0 / 479.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001984/0.1387, allocations: 160.4 kB / 479.4 MB, free: 3.637 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.1389, allocations: 4 kB / 479.4 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007629/0.1397, allocations: 449.6 kB / 479.8 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/0.1401, allocations: 0.7256 MB / 480.5 MB, free: 2.414 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001477/0.1403, allocations: 47.58 kB / 480.6 MB, free: 2.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.592e-05/0.1403, allocations: 23.44 kB / 480.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1403, allocations: 4 kB / 480.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of Templates: time 0.009541/0.1499, allocations: 2.985 MB / 483.6 MB, free: 15.35 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