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.001178/0.001178, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.221/1.221, allocations: 227.2 MB / 245 MB, free: 7.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009339/0.000934, allocations: 102.4 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2976/0.2976, allocations: 45.23 MB / 394.7 MB, free: 31.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.0002731, allocations: 12 kB / 468.4 MB, free: 7.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3614, allocations: 63.24 MB / 0.5192 GB, free: 43.63 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1039/0.4654, allocations: 87.6 MB / 0.6047 GB, free: 2.059 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001756/0.4656, allocations: 70 kB / 0.6048 GB, free: 1.992 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01243/0.4781, allocations: 5.797 MB / 0.6105 GB, free: 12.21 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.4781, allocations: 0 / 0.6105 GB, free: 12.21 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.4781, allocations: 4 kB / 0.6105 GB, free: 12.2 MB / 426.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.0004467/0.4786, allocations: 480 kB / 0.6109 GB, free: 11.69 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.057e-05/0.4787, allocations: 8.562 kB / 0.6109 GB, free: 11.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.609e-05/0.4787, allocations: 16.41 kB / 0.6109 GB, free: 11.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.418e-05/0.4788, allocations: 190.8 kB / 0.6111 GB, free: 11.44 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.4788, allocations: 17.59 kB / 0.6111 GB, free: 11.42 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.466e-05/0.4789, allocations: 16 kB / 0.6112 GB, free: 11.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000162/0.479, allocations: 128.3 kB / 0.6113 GB, free: 11.28 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.4791, allocations: 0.5 kB / 0.6113 GB, free: 11.28 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-06/0.4791, allocations: 0.5312 kB / 0.6113 GB, free: 11.28 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.4791, allocations: 0 / 0.6113 GB, free: 11.28 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.923e-05/0.4792, allocations: 96.97 kB / 0.6114 GB, free: 11.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001762/0.4794, allocations: 227 kB / 0.6116 GB, free: 10.91 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001389/0.4795, allocations: 171.8 kB / 0.6118 GB, free: 10.74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.358e-06/0.4795, allocations: 2.844 kB / 0.6118 GB, free: 10.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001678/0.4797, allocations: 158 kB / 0.6119 GB, free: 10.57 MB / 426.7 MB Notification: Performance of pre-optimization done (n=54): time 1.573e-06/0.4797, allocations: 0 / 0.6119 GB, free: 10.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.001072/0.4808, allocations: 0.8724 MB / 0.6128 GB, free: 9.676 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.918e-05/0.4809, allocations: 103.8 kB / 0.6129 GB, free: 9.562 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.741e-05/0.4809, allocations: 114.4 kB / 0.613 GB, free: 9.445 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.346e-05/0.481, allocations: 69.67 kB / 0.613 GB, free: 9.371 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.536e-05/0.481, allocations: 93.45 kB / 0.6131 GB, free: 9.277 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.4811, allocations: 127.2 kB / 0.6132 GB, free: 9.152 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.996e-05/0.4812, allocations: 20 kB / 0.6133 GB, free: 9.133 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.4813, allocations: 346.5 kB / 0.6136 GB, free: 8.789 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.4816, allocations: 185.8 kB / 0.6138 GB, free: 8.609 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004247/0.482, allocations: 0.5179 MB / 0.6143 GB, free: 7.926 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003785/0.4824, allocations: 283.6 kB / 0.6145 GB, free: 7.648 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.4824, allocations: 7.953 kB / 0.6146 GB, free: 7.641 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009582/0.4834, allocations: 0.7396 MB / 0.6153 GB, free: 6.895 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.4834, allocations: 8 kB / 0.6153 GB, free: 6.887 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.4834, allocations: 12 kB / 0.6153 GB, free: 6.875 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.039e-05/0.4834, allocations: 20 kB / 0.6153 GB, free: 6.855 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003076/0.4838, allocations: 115.7 kB / 0.6154 GB, free: 6.742 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.335e-05/0.4838, allocations: 23.92 kB / 0.6154 GB, free: 6.719 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.484, allocations: 71.28 kB / 0.6155 GB, free: 6.648 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.117e-05/0.484, allocations: 36 kB / 0.6155 GB, free: 6.613 MB / 426.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002006/0.4842, allocations: 245.6 kB / 0.6158 GB, free: 6.363 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.44e-05/0.4843, allocations: 15.77 kB / 0.6158 GB, free: 6.348 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.395e-05/0.4843, allocations: 9.875 kB / 0.6158 GB, free: 6.336 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.4843, allocations: 4 kB / 0.6158 GB, free: 6.332 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.4843, allocations: 0 / 0.6158 GB, free: 6.332 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.4843, allocations: 4 kB / 0.6158 GB, free: 6.328 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.4845, allocations: 193.8 kB / 0.616 GB, free: 6.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.4845, allocations: 0 / 0.616 GB, free: 6.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.139e-06/0.4845, allocations: 3.953 kB / 0.616 GB, free: 6.086 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.4845, allocations: 0 / 0.616 GB, free: 6.086 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.4845, allocations: 4 kB / 0.616 GB, free: 6.082 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.4845, allocations: 0 / 0.616 GB, free: 6.082 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4845, allocations: 3.984 kB / 0.616 GB, free: 6.078 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007653/0.4853, allocations: 0.6148 MB / 0.6166 GB, free: 5.445 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.768e-05/0.4853, allocations: 92.86 kB / 0.6167 GB, free: 5.336 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.4853, allocations: 3.953 kB / 0.6167 GB, free: 5.332 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.29e-05/0.4854, allocations: 4 kB / 0.6167 GB, free: 5.328 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.162e-05/0.4854, allocations: 0 / 0.6167 GB, free: 5.328 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/0.4854, allocations: 0 / 0.6167 GB, free: 5.328 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.179e-05/0.4854, allocations: 75.28 kB / 0.6168 GB, free: 5.254 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4854, allocations: 0 / 0.6168 GB, free: 5.254 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004569/0.4859, allocations: 123.9 kB / 0.6169 GB, free: 5.133 MB / 426.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 () * 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 (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.0005735/0.4865, allocations: 281.4 kB / 0.6172 GB, free: 4.891 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005458/0.487, allocations: 465.5 kB / 0.6176 GB, free: 4.438 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.487, allocations: 4.188 kB / 0.6176 GB, free: 4.434 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.4872, allocations: 160.3 kB / 0.6178 GB, free: 4.277 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.4e-05/0.4873, allocations: 4 kB / 0.6178 GB, free: 4.273 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004931/0.4878, allocations: 445.9 kB / 0.6182 GB, free: 3.816 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002529/0.488, allocations: 0.7336 MB / 0.6189 GB, free: 3.055 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 8.857e-05/0.4881, allocations: 43.58 kB / 0.619 GB, free: 3.012 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.263e-05/0.4882, allocations: 23.44 kB / 0.619 GB, free: 2.988 MB / 426.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4882, allocations: 0 / 0.619 GB, free: 2.988 MB / 426.7 MB Notification: Performance of Templates: time 0.005922/0.4941, allocations: 3.095 MB / 0.622 GB, free: 15.89 MB / 442.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