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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008271/0.0008272, allocations: 92.52 kB / 292.1 MB, free: 5.926 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1753/0.1753, allocations: 45.15 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.763e-05/2.764e-05, allocations: 4 kB / 460.4 MB, free: 70.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1066, allocations: 63.24 MB / 0.5114 GB, free: 6.801 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3515/0.4581, allocations: 87.53 MB / 0.5968 GB, free: 6.438 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001747/0.4584, allocations: 63.22 kB / 0.5969 GB, free: 6.406 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01195/0.4703, allocations: 5.77 MB / 0.6025 GB, free: 1.449 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4703, allocations: 0 / 0.6025 GB, free: 1.449 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.4704, allocations: 4 kB / 0.6025 GB, free: 1.445 MB / 394.7 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.0003738/0.4707, allocations: 463.2 kB / 0.603 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.4708, allocations: 19.89 kB / 0.603 GB, free: 0.9414 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.994e-05/0.4708, allocations: 23.8 kB / 0.603 GB, free: 0.918 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.581e-05/0.4709, allocations: 182.8 kB / 0.6032 GB, free: 0.6992 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.471, allocations: 11.69 kB / 0.6032 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/0.471, allocations: 25.69 kB / 0.6032 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000146/0.4711, allocations: 123.8 kB / 0.6033 GB, free: 0.582 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.4712, allocations: 0 / 0.6033 GB, free: 0.582 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.4712, allocations: 4 kB / 0.6033 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.4712, allocations: 0 / 0.6033 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.844e-05/0.4713, allocations: 96.16 kB / 0.6034 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001606/0.4714, allocations: 222.5 kB / 0.6037 GB, free: 280 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001199/0.4716, allocations: 177.8 kB / 0.6038 GB, free: 172 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.128e-05/0.4717, allocations: 151.3 kB / 0.604 GB, free: 96 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.4717, allocations: 4 kB / 0.604 GB, free: 92 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001616/0.4718, allocations: 161.1 kB / 0.6041 GB, free: 15.95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=54): time 1.202e-06/0.4719, allocations: 0 / 0.6041 GB, free: 15.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.0007674/0.4726, allocations: 0.5747 MB / 0.6047 GB, free: 15.49 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.4727, allocations: 110.6 kB / 0.6048 GB, free: 15.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.678e-05/0.4728, allocations: 113.4 kB / 0.6049 GB, free: 15.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.101e-05/0.4728, allocations: 71.11 kB / 0.605 GB, free: 15.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.002e-05/0.4728, allocations: 92.77 kB / 0.6051 GB, free: 15.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.473, allocations: 131.3 kB / 0.6052 GB, free: 15.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.681e-05/0.473, allocations: 17.06 kB / 0.6052 GB, free: 15.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.4731, allocations: 343.1 kB / 0.6055 GB, free: 14.69 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.4733, allocations: 178.3 kB / 0.6057 GB, free: 14.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004012/0.4737, allocations: 0.5209 MB / 0.6062 GB, free: 13.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003269/0.4741, allocations: 274.5 kB / 0.6065 GB, free: 13.69 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.4741, allocations: 4 kB / 0.6065 GB, free: 13.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0008594/0.4749, allocations: 0.7281 MB / 0.6072 GB, free: 13.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.475, allocations: 8 kB / 0.6072 GB, free: 13.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/0.475, allocations: 15.98 kB / 0.6072 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.541e-05/0.475, allocations: 20.81 kB / 0.6072 GB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003144/0.4753, allocations: 118.8 kB / 0.6073 GB, free: 12.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.174e-05/0.4754, allocations: 27.94 kB / 0.6074 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.4755, allocations: 61.12 kB / 0.6074 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.899e-05/0.4756, allocations: 42.92 kB / 0.6075 GB, free: 12.81 MB / 410.7 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 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,result,$whenCondition1) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001546/0.4758, allocations: 223.2 kB / 0.6077 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.2e-05/0.4758, allocations: 11.81 kB / 0.6077 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.287e-05/0.4758, allocations: 5.656 kB / 0.6077 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.4758, allocations: 0 / 0.6077 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.4758, allocations: 0 / 0.6077 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.4758, allocations: 0 / 0.6077 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001143/0.4759, allocations: 195.7 kB / 0.6079 GB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.476, allocations: 7.938 kB / 0.6079 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.618e-06/0.476, allocations: 3.984 kB / 0.6079 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.476, allocations: 4 kB / 0.6079 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-06/0.476, allocations: 3.938 kB / 0.6079 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.083e-06/0.476, allocations: 4 kB / 0.6079 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.476, allocations: 3.938 kB / 0.6079 GB, free: 12.33 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007169/0.4767, allocations: 0.6068 MB / 0.6085 GB, free: 11.83 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.625e-05/0.4768, allocations: 96.81 kB / 0.6086 GB, free: 11.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.4768, allocations: 0 / 0.6086 GB, free: 11.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.251e-05/0.4768, allocations: 4.031 kB / 0.6086 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.916e-05/0.4768, allocations: 4 kB / 0.6086 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.4768, allocations: 0 / 0.6086 GB, free: 11.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.563e-05/0.4769, allocations: 75.28 kB / 0.6087 GB, free: 11.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4769, allocations: 3.938 kB / 0.6087 GB, free: 11.63 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003872/0.4773, allocations: 113 kB / 0.6088 GB, free: 11.54 MB / 410.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004775/0.4777, allocations: 281.2 kB / 0.609 GB, free: 11.29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004738/0.4782, allocations: 458 kB / 0.6095 GB, free: 10.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4782, allocations: 7.875 kB / 0.6095 GB, free: 10.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.4783, allocations: 157.4 kB / 0.6096 GB, free: 10.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.196e-05/0.4784, allocations: 5.625 kB / 0.6096 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000426/0.4789, allocations: 340.8 kB / 0.61 GB, free: 10.54 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.4792, allocations: 0.7338 MB / 0.6107 GB, free: 9.773 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.822e-05/0.4793, allocations: 47.36 kB / 0.6107 GB, free: 9.727 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.178e-05/0.4793, allocations: 23.44 kB / 0.6108 GB, free: 9.703 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4793, allocations: 0 / 0.6108 GB, free: 9.703 MB / 410.7 MB Notification: Performance of Templates: time 0.005425/0.4847, allocations: 3.1 MB / 0.6138 GB, free: 6.609 MB / 410.7 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","../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches