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.001368/0.001368, 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.00123/0.00123, allocations: 197.2 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.385/1.385, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2243/0.2243, allocations: 46.09 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001595, allocations: 83.86 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4369/0.4385, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001602/0.4402, allocations: 0.5386 MB / 0.5315 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.4414, allocations: 0.5992 MB / 0.5321 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.152e-05/0.4414, allocations: 5.312 kB / 0.5321 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.208e-05/0.4415, allocations: 3.938 kB / 0.5321 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.799e-06/0.4415, allocations: 1.5 kB / 0.5321 GB, free: 12.75 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.000715/0.4422, allocations: 201.8 kB / 0.5323 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.436e-05/0.4423, allocations: 34.61 kB / 0.5323 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.659e-05/0.4424, allocations: 1.406 kB / 0.5323 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.768e-05/0.4424, allocations: 15.73 kB / 0.5324 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.225e-05/0.4425, allocations: 13.05 kB / 0.5324 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.042e-05/0.4425, allocations: 1.969 kB / 0.5324 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002858/0.4428, allocations: 167.3 kB / 0.5325 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.726e-05/0.4429, allocations: 64.97 kB / 0.5326 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.87e-05/0.4429, allocations: 56.11 kB / 0.5326 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003003/0.4432, allocations: 198.1 kB / 0.5328 GB, free: 12.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.4433, allocations: 0 / 0.5328 GB, free: 12.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4433, allocations: 4 kB / 0.5328 GB, free: 12.31 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.4433, allocations: 0 / 0.5328 GB, free: 12.31 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.0005684/0.4439, allocations: 493.8 kB / 0.5333 GB, free: 11.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.4439, allocations: 9.625 kB / 0.5333 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.042e-05/0.444, allocations: 18.38 kB / 0.5333 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.4441, allocations: 182.9 kB / 0.5335 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.4441, allocations: 11.25 kB / 0.5335 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.4442, allocations: 23.31 kB / 0.5335 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.4443, allocations: 133.2 kB / 0.5337 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.4444, allocations: 0.9062 kB / 0.5337 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.4444, allocations: 0 / 0.5337 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.4444, allocations: 0.8438 kB / 0.5337 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.738e-05/0.4445, allocations: 95.03 kB / 0.5338 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000202/0.4447, allocations: 226 kB / 0.534 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001535/0.4449, allocations: 167.2 kB / 0.5341 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/0.445, allocations: 156.6 kB / 0.5343 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.046e-06/0.445, allocations: 4 kB / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002307/0.4452, allocations: 168.6 kB / 0.5344 GB, free: 10.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=54): time 1.222e-06/0.4452, allocations: 0 / 0.5344 GB, free: 10.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=54): time 0.00122/0.4465, allocations: 0.7847 MB / 0.5352 GB, free: 10.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.03e-05/0.4466, allocations: 100.2 kB / 0.5353 GB, free: 10.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.191e-05/0.4466, allocations: 123 kB / 0.5354 GB, free: 10.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.082e-05/0.4467, allocations: 65.97 kB / 0.5355 GB, free: 10.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.439e-05/0.4468, allocations: 98.11 kB / 0.5356 GB, free: 10.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.4469, allocations: 143.7 kB / 0.5357 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001791/0.4471, allocations: 153.9 kB / 0.5359 GB, free: 10.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.4472, allocations: 344.5 kB / 0.5362 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002799/0.4475, allocations: 184.1 kB / 0.5364 GB, free: 9.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005305/0.4481, allocations: 0.5383 MB / 0.5369 GB, free: 9.172 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000943/0.449, allocations: 0.7847 MB / 0.5377 GB, free: 8.488 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.449, allocations: 3.438 kB / 0.5377 GB, free: 8.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001056/0.4501, allocations: 0.7409 MB / 0.5384 GB, free: 8.133 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.4501, allocations: 10.62 kB / 0.5384 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.4501, allocations: 12.53 kB / 0.5384 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.875e-05/0.4502, allocations: 16.19 kB / 0.5384 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003506/0.4505, allocations: 117.9 kB / 0.5385 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.247e-05/0.4506, allocations: 22.22 kB / 0.5386 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002223/0.4508, allocations: 67.84 kB / 0.5386 GB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.384e-05/0.4508, allocations: 44.97 kB / 0.5387 GB, free: 8.035 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.0002442/0.4511, allocations: 249.9 kB / 0.5389 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.065e-05/0.4511, allocations: 18.36 kB / 0.5389 GB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.248e-05/0.4512, allocations: 5.875 kB / 0.5389 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.4512, allocations: 5.234 kB / 0.5389 GB, free: 7.816 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.4512, allocations: 0 / 0.5389 GB, free: 7.816 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.4512, allocations: 0 / 0.5389 GB, free: 7.816 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002384/0.4514, allocations: 192.2 kB / 0.5391 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.4514, allocations: 0 / 0.5391 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.202e-06/0.4514, allocations: 5.031 kB / 0.5391 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.4514, allocations: 0 / 0.5391 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.4515, allocations: 1.125 kB / 0.5391 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.4515, allocations: 4 kB / 0.5391 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.4515, allocations: 1.156 kB / 0.5391 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009123/0.4524, allocations: 0.6181 MB / 0.5397 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.005e-05/0.4525, allocations: 106.5 kB / 0.5398 GB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.159e-05/0.4525, allocations: 0 / 0.5398 GB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.67e-05/0.4525, allocations: 9.047 kB / 0.5398 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.203e-05/0.4525, allocations: 1.125 kB / 0.5398 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.4525, allocations: 1.219 kB / 0.5398 GB, free: 7.219 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.86e-05/0.4526, allocations: 79.31 kB / 0.5399 GB, free: 7.141 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4526, allocations: 0 / 0.5399 GB, free: 7.141 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005299/0.4531, allocations: 97.11 kB / 0.54 GB, free: 7.113 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.0005643/0.4537, allocations: 258.1 kB / 0.5403 GB, free: 6.953 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006587/0.4543, allocations: 473.8 kB / 0.5407 GB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4544, allocations: 0 / 0.5407 GB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001465/0.4545, allocations: 163.1 kB / 0.5409 GB, free: 6.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.4547, allocations: 3.375 kB / 0.5409 GB, free: 6.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006305/0.4553, allocations: 440.3 kB / 0.5413 GB, free: 6.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/0.4556, allocations: 0.7333 MB / 0.542 GB, free: 5.691 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.597e-05/0.4557, allocations: 46.2 kB / 0.5421 GB, free: 5.676 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.697e-05/0.4558, allocations: 21.12 kB / 0.5421 GB, free: 5.668 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4558, allocations: 0 / 0.5421 GB, free: 5.668 MB / 398.1 MB Notification: Performance of Templates: time 0.007263/0.463, allocations: 3.117 MB / 0.5451 GB, free: 2.625 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