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.001489/0.001489, allocations: 113 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001538/0.001538, allocations: 216.9 kB / 19.41 MB, free: 3.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.561/1.561, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2048/0.2048, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 76.2 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3486, allocations: 62.44 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001606/0.3503, allocations: 0.5438 MB / 0.5322 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.3514, allocations: 0.5961 MB / 0.5328 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.688e-05/0.3514, allocations: 0 / 0.5328 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.896e-05/0.3516, allocations: 9.234 kB / 0.5328 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.773e-06/0.3516, allocations: 3.938 kB / 0.5328 GB, free: 12.72 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.0007275/0.3523, allocations: 194.9 kB / 0.533 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.546e-05/0.3524, allocations: 29.75 kB / 0.533 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.487e-05/0.3524, allocations: 6.047 kB / 0.533 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.645e-05/0.3525, allocations: 15.91 kB / 0.533 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.135e-05/0.3525, allocations: 17.59 kB / 0.533 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.147e-05/0.3525, allocations: 1.344 kB / 0.533 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002897/0.3528, allocations: 168.3 kB / 0.5332 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.302e-05/0.3529, allocations: 56.52 kB / 0.5333 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.476e-05/0.353, allocations: 54.52 kB / 0.5333 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002862/0.3533, allocations: 206 kB / 0.5335 GB, free: 12.29 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3533, allocations: 1.875 kB / 0.5335 GB, free: 12.29 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3533, allocations: 0 / 0.5335 GB, free: 12.29 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.3533, allocations: 0 / 0.5335 GB, free: 12.29 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.0005494/0.3539, allocations: 497.2 kB / 0.534 GB, free: 11.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.3539, allocations: 9.812 kB / 0.534 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.973e-05/0.354, allocations: 17.75 kB / 0.534 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.3541, allocations: 174.7 kB / 0.5342 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.008e-05/0.3541, allocations: 15.91 kB / 0.5342 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.648e-05/0.3541, allocations: 22.66 kB / 0.5342 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/0.3543, allocations: 133.8 kB / 0.5343 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.3543, allocations: 1.375 kB / 0.5343 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.285e-06/0.3543, allocations: 0 / 0.5343 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3544, allocations: 4 kB / 0.5343 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.092e-05/0.3545, allocations: 95.41 kB / 0.5344 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001913/0.3547, allocations: 225.5 kB / 0.5346 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.3548, allocations: 163.6 kB / 0.5348 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/0.355, allocations: 160.9 kB / 0.535 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.844e-06/0.355, allocations: 0 / 0.535 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002317/0.3552, allocations: 167.9 kB / 0.5351 GB, free: 10.92 MB / 398.1 MB Notification: Performance of pre-optimization done (n=54): time 3.676e-06/0.3552, allocations: 5.312 kB / 0.5351 GB, free: 10.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=54): time 0.001156/0.3564, allocations: 0.78 MB / 0.5359 GB, free: 10.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.641e-05/0.3565, allocations: 112.3 kB / 0.536 GB, free: 10.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.248e-05/0.3566, allocations: 118.6 kB / 0.5361 GB, free: 10.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.302e-05/0.3566, allocations: 70.8 kB / 0.5362 GB, free: 10.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.164e-05/0.3567, allocations: 92.86 kB / 0.5363 GB, free: 10.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.3568, allocations: 136.3 kB / 0.5364 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.357, allocations: 161.7 kB / 0.5365 GB, free: 10.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3571, allocations: 345.4 kB / 0.5369 GB, free: 9.777 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002958/0.3574, allocations: 183.3 kB / 0.537 GB, free: 9.699 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005103/0.3579, allocations: 0.5311 MB / 0.5376 GB, free: 9.148 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009011/0.3588, allocations: 0.7835 MB / 0.5383 GB, free: 8.465 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.3589, allocations: 3.938 kB / 0.5383 GB, free: 8.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001106/0.36, allocations: 0.746 MB / 0.5391 GB, free: 8.105 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.36, allocations: 9.656 kB / 0.5391 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.36, allocations: 12.41 kB / 0.5391 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.863e-05/0.3601, allocations: 16.66 kB / 0.5391 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003457/0.3604, allocations: 119 kB / 0.5392 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-05/0.3604, allocations: 24.73 kB / 0.5392 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002162/0.3607, allocations: 63.69 kB / 0.5393 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.264e-05/0.3607, allocations: 41.81 kB / 0.5393 GB, free: 8.012 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.0002489/0.361, allocations: 249.8 kB / 0.5396 GB, free: 7.816 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.58e-05/0.361, allocations: 14 kB / 0.5396 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.557e-05/0.361, allocations: 5.875 kB / 0.5396 GB, free: 7.801 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3611, allocations: 5.281 kB / 0.5396 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3611, allocations: 0 / 0.5396 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.3611, allocations: 0 / 0.5396 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/0.3612, allocations: 195.1 kB / 0.5398 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3612, allocations: 5 kB / 0.5398 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.611e-06/0.3613, allocations: 3.938 kB / 0.5398 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3613, allocations: 1.062 kB / 0.5398 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.116e-06/0.3613, allocations: 1.125 kB / 0.5398 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3613, allocations: 0 / 0.5398 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3613, allocations: 1.062 kB / 0.5398 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008627/0.3622, allocations: 0.6217 MB / 0.5404 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.966e-05/0.3622, allocations: 107 kB / 0.5405 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.3622, allocations: 0 / 0.5405 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.404e-05/0.3623, allocations: 5 kB / 0.5405 GB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.989e-05/0.3623, allocations: 1.094 kB / 0.5405 GB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.3623, allocations: 1.219 kB / 0.5405 GB, free: 7.195 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.756e-05/0.3623, allocations: 75.28 kB / 0.5406 GB, free: 7.121 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3623, allocations: 0 / 0.5406 GB, free: 7.121 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005287/0.3629, allocations: 104.7 kB / 0.5407 GB, free: 7.086 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.0005638/0.3634, allocations: 252.2 kB / 0.5409 GB, free: 6.934 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00063/0.3641, allocations: 471.1 kB / 0.5414 GB, free: 6.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3641, allocations: 4.062 kB / 0.5414 GB, free: 6.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.3643, allocations: 159.2 kB / 0.5415 GB, free: 6.664 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001498/0.3644, allocations: 9.391 kB / 0.5415 GB, free: 6.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006044/0.365, allocations: 476.1 kB / 0.542 GB, free: 6.352 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.3654, allocations: 0.7298 MB / 0.5427 GB, free: 5.637 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.788e-05/0.3654, allocations: 21.66 kB / 0.5427 GB, free: 5.629 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3654, allocations: 4.062 kB / 0.5427 GB, free: 5.625 MB / 398.1 MB Notification: Performance of Templates: time 0.005946/0.3714, allocations: 3.828 MB / 0.5465 GB, free: 1.902 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