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.00159/0.00159, allocations: 105.5 kB / 18.45 MB, free: 4.602 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.001872/0.001872, allocations: 184.3 kB / 19.39 MB, free: 3.68 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.373/1.373, allocations: 222.9 MB / 243.1 MB, free: 15.06 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.2339/0.2339, allocations: 44.18 MB / 337.4 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001516, allocations: 59.91 kB / 471.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4549/0.4564, allocations: 60.82 MB / 0.5196 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001633/0.4581, allocations: 0.5462 MB / 0.5201 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.4592, allocations: 0.6055 MB / 0.5207 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.522e-05/0.4593, allocations: 3.938 kB / 0.5207 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.444e-05/0.4594, allocations: 6.203 kB / 0.5207 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.827e-06/0.4594, allocations: 0 / 0.5207 GB, free: 2.852 MB / 382.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.000701/0.4601, allocations: 196.1 kB / 0.5209 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.606e-05/0.4602, allocations: 24.88 kB / 0.5209 GB, free: 2.758 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.92e-05/0.4602, allocations: 6.219 kB / 0.5209 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.985e-05/0.4603, allocations: 19.12 kB / 0.5209 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.316e-05/0.4603, allocations: 11.62 kB / 0.521 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.4603, allocations: 5.188 kB / 0.521 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003232/0.4607, allocations: 176.3 kB / 0.5211 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.676e-05/0.4608, allocations: 58.12 kB / 0.5212 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.698e-05/0.4608, allocations: 55.16 kB / 0.5212 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003088/0.4611, allocations: 195.7 kB / 0.5214 GB, free: 2.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.4612, allocations: 1 kB / 0.5214 GB, free: 2.562 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4612, allocations: 0.7031 kB / 0.5214 GB, free: 2.562 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.4612, allocations: 0 / 0.5214 GB, free: 2.562 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.0004818/0.4617, allocations: 498.9 kB / 0.5219 GB, free: 2.129 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.4617, allocations: 11.94 kB / 0.5219 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.853e-05/0.4618, allocations: 22.34 kB / 0.5219 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.837e-05/0.4618, allocations: 176.9 kB / 0.5221 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.4619, allocations: 15.28 kB / 0.5221 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/0.4619, allocations: 19.12 kB / 0.5221 GB, free: 1.895 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001744/0.4621, allocations: 131.1 kB / 0.5223 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.4621, allocations: 1.906 kB / 0.5223 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.4621, allocations: 0 / 0.5223 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.4621, allocations: 0 / 0.5223 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.4622, allocations: 99.58 kB / 0.5224 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001766/0.4624, allocations: 232.4 kB / 0.5226 GB, free: 1.555 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/0.4626, allocations: 163 kB / 0.5227 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.4627, allocations: 157.4 kB / 0.5229 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.879e-06/0.4627, allocations: 0 / 0.5229 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002116/0.4629, allocations: 165.3 kB / 0.523 GB, free: 1.281 MB / 382.1 MB Notification: Performance of pre-optimization done (n=54): time 1.082e-06/0.4629, allocations: 5.344 kB / 0.523 GB, free: 1.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.001171/0.4641, allocations: 0.7747 MB / 0.5238 GB, free: 1.074 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.382e-05/0.4642, allocations: 105.5 kB / 0.5239 GB, free: 1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.201e-05/0.4642, allocations: 120 kB / 0.524 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.114e-05/0.4643, allocations: 68.97 kB / 0.5241 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.22e-05/0.4643, allocations: 93.05 kB / 0.5242 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.4644, allocations: 137.3 kB / 0.5243 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.4646, allocations: 156.2 kB / 0.5245 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.886e-05/0.4647, allocations: 348.7 kB / 0.5248 GB, free: 248 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002913/0.465, allocations: 190.2 kB / 0.525 GB, free: 200 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005613/0.4656, allocations: 0.5315 MB / 0.5255 GB, free: 15.69 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.4666, allocations: 0.7811 MB / 0.5262 GB, free: 15.06 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.4666, allocations: 3.281 kB / 0.5263 GB, free: 15.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001393/0.468, allocations: 0.7419 MB / 0.527 GB, free: 14.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.468, allocations: 15.22 kB / 0.527 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-05/0.4681, allocations: 16.75 kB / 0.527 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.363e-05/0.4681, allocations: 17.19 kB / 0.527 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004103/0.4685, allocations: 118.6 kB / 0.5271 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.954e-05/0.4686, allocations: 23.7 kB / 0.5272 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002381/0.4688, allocations: 63.94 kB / 0.5272 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.166e-05/0.4689, allocations: 41.22 kB / 0.5273 GB, free: 14.71 MB / 398.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.0003012/0.4692, allocations: 246.1 kB / 0.5275 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.009e-05/0.4692, allocations: 14.33 kB / 0.5275 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.672e-05/0.4692, allocations: 7.375 kB / 0.5275 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.4692, allocations: 4.688 kB / 0.5275 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4692, allocations: 0 / 0.5275 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.281e-05/0.4693, allocations: 102.5 kB / 0.5276 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.428e-05/0.4693, allocations: 1.734 kB / 0.5276 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.447e-05/0.4694, allocations: 1.344 kB / 0.5276 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.662e-05/0.4694, allocations: 5.203 kB / 0.5276 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009776/0.4704, allocations: 0.6276 MB / 0.5282 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001079/0.4715, allocations: 0.7256 MB / 0.5289 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001652/0.4716, allocations: 152 kB / 0.5291 GB, free: 13.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.187e-05/0.4717, allocations: 79.28 kB / 0.5292 GB, free: 13.69 MB / 398.1 MB Notification: Performance of Backend: time 2.4e-07/0.4717, allocations: 0 / 0.5292 GB, free: 13.69 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.4732, allocations: 0.5683 MB / 0.5297 GB, free: 13.48 MB / 398.1 MB Notification: Performance of SimCode: time 0.0009003/0.4741, allocations: 0.8065 MB / 0.5305 GB, free: 12.8 MB / 398.1 MB Notification: Performance of Templates: time 0.00722/0.4813, allocations: 3.129 MB / 0.5336 GB, free: 11.26 MB / 398.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