Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001092, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001484/0.001485, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2247/0.2247, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 71.88 kB / 481.3 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4569/0.4584, allocations: 62.44 MB / 0.531 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001924/0.4603, allocations: 0.5332 MB / 0.5315 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00146/0.4618, allocations: 0.6064 MB / 0.5321 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.277e-05/0.4619, allocations: 1.125 kB / 0.5321 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.462, allocations: 3.938 kB / 0.5321 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.628e-06/0.462, allocations: 0 / 0.5321 GB, free: 12.71 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0008551/0.4629, allocations: 200 kB / 0.5323 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.431e-05/0.463, allocations: 29.62 kB / 0.5323 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.39e-05/0.463, allocations: 2.562 kB / 0.5323 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.751e-05/0.4631, allocations: 15.73 kB / 0.5324 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.206e-05/0.4631, allocations: 16.94 kB / 0.5324 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.235e-05/0.4632, allocations: 5.312 kB / 0.5324 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003277/0.4635, allocations: 172 kB / 0.5325 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.4636, allocations: 60.62 kB / 0.5326 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.963e-05/0.4637, allocations: 55.58 kB / 0.5326 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003214/0.464, allocations: 197.2 kB / 0.5328 GB, free: 12.28 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.464, allocations: 1.344 kB / 0.5328 GB, free: 12.28 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.047e-06/0.4641, allocations: 3.984 kB / 0.5328 GB, free: 12.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.4641, allocations: 0 / 0.5328 GB, free: 12.27 MB / 398.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.0008844/0.465, allocations: 497.6 kB / 0.5333 GB, free: 11.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/0.465, allocations: 13.62 kB / 0.5333 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.702e-05/0.4651, allocations: 17 kB / 0.5333 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003955/0.4655, allocations: 176.3 kB / 0.5335 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.716e-05/0.4655, allocations: 15.25 kB / 0.5335 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.782e-05/0.4656, allocations: 18.12 kB / 0.5335 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002703/0.4659, allocations: 134.2 kB / 0.5337 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.4659, allocations: 1.375 kB / 0.5337 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.4659, allocations: 0 / 0.5337 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.4659, allocations: 0 / 0.5337 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000144/0.4661, allocations: 99.34 kB / 0.5338 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003699/0.4664, allocations: 225.6 kB / 0.534 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000228/0.4667, allocations: 167.6 kB / 0.5341 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000186/0.4669, allocations: 156.9 kB / 0.5343 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.086e-05/0.4669, allocations: 0 / 0.5343 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000461/0.4674, allocations: 168 kB / 0.5345 GB, free: 10.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=54): time 1.302e-06/0.4674, allocations: 9.062 kB / 0.5345 GB, free: 10.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=54): time 0.001693/0.4691, allocations: 0.7762 MB / 0.5352 GB, free: 10.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.4692, allocations: 108.8 kB / 0.5353 GB, free: 10.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.336e-05/0.4693, allocations: 113.8 kB / 0.5354 GB, free: 10.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.708e-05/0.4694, allocations: 71.45 kB / 0.5355 GB, free: 10.4 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.243e-05/0.4694, allocations: 92.95 kB / 0.5356 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.4696, allocations: 136.5 kB / 0.5357 GB, free: 10.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.4698, allocations: 156.8 kB / 0.5359 GB, free: 10.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.4699, allocations: 345.6 kB / 0.5362 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003146/0.4702, allocations: 187.8 kB / 0.5364 GB, free: 9.691 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005762/0.4708, allocations: 0.5348 MB / 0.5369 GB, free: 9.137 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009924/0.4718, allocations: 0.7763 MB / 0.5377 GB, free: 8.461 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.679e-06/0.4718, allocations: 4.219 kB / 0.5377 GB, free: 8.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00118/0.473, allocations: 0.7444 MB / 0.5384 GB, free: 8.102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.854e-05/0.4731, allocations: 10.53 kB / 0.5384 GB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.321e-05/0.4731, allocations: 16.31 kB / 0.5384 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.448e-05/0.4731, allocations: 16.91 kB / 0.5384 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004234/0.4736, allocations: 118.7 kB / 0.5385 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-05/0.4736, allocations: 24.52 kB / 0.5386 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002347/0.4739, allocations: 64 kB / 0.5386 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.944e-05/0.4739, allocations: 45.09 kB / 0.5387 GB, free: 8 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.0002809/0.4742, allocations: 246.3 kB / 0.5389 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.329e-05/0.4743, allocations: 14 kB / 0.5389 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.53e-05/0.4743, allocations: 5.875 kB / 0.5389 GB, free: 7.793 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.4743, allocations: 1.031 kB / 0.5389 GB, free: 7.793 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4743, allocations: 0 / 0.5389 GB, free: 7.793 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.4743, allocations: 9.078 kB / 0.5389 GB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.4745, allocations: 198.6 kB / 0.5391 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4745, allocations: 1.281 kB / 0.5391 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.324e-06/0.4745, allocations: 7.922 kB / 0.5391 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.4745, allocations: 0 / 0.5391 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.4745, allocations: 1.438 kB / 0.5391 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.4746, allocations: 1.125 kB / 0.5391 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.4746, allocations: 0 / 0.5391 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.4756, allocations: 0.6188 MB / 0.5397 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.26e-05/0.4756, allocations: 105.1 kB / 0.5398 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.4757, allocations: 5.125 kB / 0.5398 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.265e-05/0.4757, allocations: 1.125 kB / 0.5398 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.075e-05/0.4757, allocations: 1.156 kB / 0.5398 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.4757, allocations: 1.25 kB / 0.5398 GB, free: 7.184 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.152e-05/0.4758, allocations: 75.28 kB / 0.5399 GB, free: 7.109 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4758, allocations: 3.938 kB / 0.5399 GB, free: 7.105 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005355/0.4763, allocations: 95.92 kB / 0.54 GB, free: 7.078 MB / 398.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.0005822/0.4769, allocations: 268.1 kB / 0.5403 GB, free: 6.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006748/0.4776, allocations: 470.6 kB / 0.5407 GB, free: 6.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4776, allocations: 0.9375 kB / 0.5407 GB, free: 6.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001606/0.4778, allocations: 159.3 kB / 0.5409 GB, free: 6.645 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.4779, allocations: 6.344 kB / 0.5409 GB, free: 6.641 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005958/0.4785, allocations: 443.7 kB / 0.5413 GB, free: 6.367 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.4788, allocations: 0.7287 MB / 0.542 GB, free: 5.652 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.107e-05/0.4789, allocations: 42.69 kB / 0.5421 GB, free: 5.641 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.763e-05/0.4789, allocations: 21.16 kB / 0.5421 GB, free: 5.633 MB / 398.1 MB Notification: Performance of SimCode: time 1.8e-07/0.479, allocations: 0.9688 kB / 0.5421 GB, free: 5.633 MB / 398.1 MB Notification: Performance of Templates: time 0.006711/0.4857, allocations: 3.111 MB / 0.5451 GB, free: 2.582 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches