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.001452/0.001453, allocations: 109 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001822/0.001822, allocations: 210.8 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2746/0.2746, allocations: 46.1 MB / 345 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 79.86 kB / 482 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3509, allocations: 62.43 MB / 0.5317 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.002006/0.3529, allocations: 0.5435 MB / 0.5322 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.3543, allocations: 0.5973 MB / 0.5328 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.958e-05/0.3544, allocations: 5.156 kB / 0.5328 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000107/0.3545, allocations: 3.938 kB / 0.5328 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.147e-06/0.3545, allocations: 0 / 0.5328 GB, free: 12.77 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.0008565/0.3554, allocations: 199.9 kB / 0.533 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.778e-05/0.3555, allocations: 33.17 kB / 0.533 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.041e-05/0.3555, allocations: 2.062 kB / 0.533 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.225e-05/0.3556, allocations: 11.61 kB / 0.533 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.469e-05/0.3556, allocations: 17.83 kB / 0.533 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.3557, allocations: 1.469 kB / 0.533 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003199/0.356, allocations: 171.3 kB / 0.5332 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.3561, allocations: 65.42 kB / 0.5333 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.391e-05/0.3562, allocations: 55.52 kB / 0.5333 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003229/0.3565, allocations: 202.4 kB / 0.5335 GB, free: 12.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.3565, allocations: 0 / 0.5335 GB, free: 12.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3565, allocations: 3.938 kB / 0.5335 GB, free: 12.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.3566, allocations: 0 / 0.5335 GB, free: 12.32 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.0008056/0.3574, allocations: 489.8 kB / 0.534 GB, free: 11.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.088e-05/0.3574, allocations: 9.625 kB / 0.534 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.334e-05/0.3575, allocations: 17 kB / 0.534 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001594/0.3577, allocations: 180.3 kB / 0.5342 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/0.3577, allocations: 19.19 kB / 0.5342 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.559e-05/0.3578, allocations: 22.12 kB / 0.5342 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002515/0.358, allocations: 130.2 kB / 0.5343 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.358, allocations: 1.375 kB / 0.5343 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.3581, allocations: 4 kB / 0.5343 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.3581, allocations: 0 / 0.5343 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001346/0.3582, allocations: 95.34 kB / 0.5344 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002967/0.3585, allocations: 229.5 kB / 0.5346 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.3588, allocations: 167.6 kB / 0.5348 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000197/0.359, allocations: 152.4 kB / 0.535 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.464e-05/0.359, allocations: 1.125 kB / 0.535 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003767/0.3594, allocations: 168.3 kB / 0.5351 GB, free: 10.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=54): time 1.332e-06/0.3594, allocations: 3.938 kB / 0.5351 GB, free: 10.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=54): time 0.001497/0.3609, allocations: 0.7726 MB / 0.5359 GB, free: 10.72 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.3611, allocations: 112.1 kB / 0.536 GB, free: 10.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.105e-05/0.3612, allocations: 119.2 kB / 0.5361 GB, free: 10.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.916e-05/0.3613, allocations: 70.67 kB / 0.5362 GB, free: 10.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.16e-05/0.3613, allocations: 92.73 kB / 0.5362 GB, free: 10.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.3615, allocations: 136.1 kB / 0.5364 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002147/0.3617, allocations: 157.6 kB / 0.5365 GB, free: 10.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.3619, allocations: 349.1 kB / 0.5369 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003237/0.3622, allocations: 180.7 kB / 0.537 GB, free: 9.746 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000649/0.3629, allocations: 0.5382 MB / 0.5376 GB, free: 9.188 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.3639, allocations: 0.7794 MB / 0.5383 GB, free: 8.508 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.916e-06/0.364, allocations: 4.156 kB / 0.5383 GB, free: 8.508 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001167/0.3651, allocations: 0.7405 MB / 0.539 GB, free: 8.152 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.3652, allocations: 11 kB / 0.5391 GB, free: 8.152 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.951e-05/0.3652, allocations: 13.03 kB / 0.5391 GB, free: 8.152 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.834e-05/0.3653, allocations: 24.61 kB / 0.5391 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003632/0.3656, allocations: 118.6 kB / 0.5392 GB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.791e-05/0.3657, allocations: 28.05 kB / 0.5392 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002321/0.3659, allocations: 64.59 kB / 0.5393 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.319e-05/0.366, allocations: 41.56 kB / 0.5393 GB, free: 8.047 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.0002578/0.3662, allocations: 244.6 kB / 0.5396 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.591e-05/0.3662, allocations: 14.91 kB / 0.5396 GB, free: 7.844 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.086e-05/0.3663, allocations: 5.875 kB / 0.5396 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.3663, allocations: 5.062 kB / 0.5396 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3663, allocations: 0 / 0.5396 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.3663, allocations: 1.281 kB / 0.5396 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.3665, allocations: 199.6 kB / 0.5398 GB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3665, allocations: 8 kB / 0.5398 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.53e-06/0.3665, allocations: 3.938 kB / 0.5398 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.3665, allocations: 4.875 kB / 0.5398 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.3665, allocations: 1.062 kB / 0.5398 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3665, allocations: 0 / 0.5398 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3665, allocations: 1.125 kB / 0.5398 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009333/0.3675, allocations: 0.6143 MB / 0.5404 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.603e-05/0.3675, allocations: 105.6 kB / 0.5405 GB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.3676, allocations: 5.219 kB / 0.5405 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.299e-05/0.3676, allocations: 0 / 0.5405 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.348e-05/0.3676, allocations: 1.094 kB / 0.5405 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-06/0.3676, allocations: 1.125 kB / 0.5405 GB, free: 7.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.662e-05/0.3677, allocations: 76.5 kB / 0.5406 GB, free: 7.156 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.413e-06/0.3677, allocations: 0 / 0.5406 GB, free: 7.156 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005316/0.3682, allocations: 99.33 kB / 0.5407 GB, free: 7.125 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.0005895/0.3688, allocations: 262.4 kB / 0.5409 GB, free: 6.965 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006395/0.3694, allocations: 470.7 kB / 0.5414 GB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3695, allocations: 4 kB / 0.5414 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001524/0.3696, allocations: 154.6 kB / 0.5415 GB, free: 6.699 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000142/0.3698, allocations: 3.656 kB / 0.5415 GB, free: 6.699 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000625/0.3704, allocations: 483.4 kB / 0.542 GB, free: 6.383 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.3707, allocations: 0.73 MB / 0.5427 GB, free: 5.668 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.85e-05/0.3708, allocations: 21.47 kB / 0.5427 GB, free: 5.66 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3708, allocations: 0 / 0.5427 GB, free: 5.66 MB / 398.1 MB Notification: Performance of Templates: time 0.005888/0.3767, allocations: 3.829 MB / 0.5465 GB, free: 1.949 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/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_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches