Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 178.6 kB / 18.09 MB, free: 3.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 223.3 MB / 242.1 MB, free: 9.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008794/0.0008796, allocations: 93.11 kB / 293.3 MB, free: 10.56 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.329/0.329, allocations: 44.14 MB / 388.5 MB, free: 38.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003899/0.0003901, allocations: 15.98 kB / 461.1 MB, free: 1.324 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3412, allocations: 61.89 MB / 0.5107 GB, free: 37.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1001/0.4414, allocations: 86.56 MB / 0.5953 GB, free: 8.512 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/0.4417, allocations: 63.95 kB / 0.5953 GB, free: 8.453 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01213/0.4538, allocations: 5.442 MB / 0.6006 GB, free: 3.004 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.4539, allocations: 0 / 0.6006 GB, free: 3.004 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.4539, allocations: 4 kB / 0.6006 GB, free: 3 MB / 410.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.0004632/0.4543, allocations: 480.2 kB / 0.6011 GB, free: 2.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.4544, allocations: 12.03 kB / 0.6011 GB, free: 2.469 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.405e-05/0.4544, allocations: 20.75 kB / 0.6011 GB, free: 2.449 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.887e-05/0.4545, allocations: 180.2 kB / 0.6013 GB, free: 2.234 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.4546, allocations: 20.38 kB / 0.6013 GB, free: 2.215 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.8e-05/0.4546, allocations: 20.38 kB / 0.6013 GB, free: 2.195 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001706/0.4548, allocations: 132.5 kB / 0.6015 GB, free: 2.062 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.4548, allocations: 192 / 0.6015 GB, free: 2.062 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.4548, allocations: 3.938 kB / 0.6015 GB, free: 2.059 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.4548, allocations: 0 / 0.6015 GB, free: 2.059 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.046e-05/0.4549, allocations: 96.41 kB / 0.6016 GB, free: 1.965 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000192/0.4551, allocations: 222.2 kB / 0.6018 GB, free: 1.699 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/0.4553, allocations: 167 kB / 0.6019 GB, free: 1.527 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001259/0.4555, allocations: 153.7 kB / 0.6021 GB, free: 1.375 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.254e-05/0.4555, allocations: 3.938 kB / 0.6021 GB, free: 1.371 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001858/0.4557, allocations: 162 kB / 0.6022 GB, free: 1.203 MB / 410.7 MB Notification: Performance of pre-optimization done (n=54): time 1.713e-06/0.4557, allocations: 0 / 0.6022 GB, free: 1.203 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.0009923/0.4567, allocations: 0.7733 MB / 0.603 GB, free: 432 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.85e-05/0.4568, allocations: 107.8 kB / 0.6031 GB, free: 312 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.327e-05/0.4568, allocations: 121.6 kB / 0.6032 GB, free: 180 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.163e-05/0.4569, allocations: 65.69 kB / 0.6033 GB, free: 108 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.284e-05/0.457, allocations: 89.45 kB / 0.6034 GB, free: 12 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.4571, allocations: 138.6 kB / 0.6035 GB, free: 15.87 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.058e-05/0.4571, allocations: 19.94 kB / 0.6035 GB, free: 15.85 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4573, allocations: 346.8 kB / 0.6038 GB, free: 15.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002644/0.4575, allocations: 181.9 kB / 0.604 GB, free: 15.33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005023/0.458, allocations: 0.5296 MB / 0.6045 GB, free: 14.63 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008378/0.4589, allocations: 0.7827 MB / 0.6053 GB, free: 13.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.4589, allocations: 0 / 0.6053 GB, free: 13.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001049/0.46, allocations: 0.7312 MB / 0.606 GB, free: 12.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.46, allocations: 12 kB / 0.606 GB, free: 12.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/0.46, allocations: 16.78 kB / 0.606 GB, free: 12.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.83e-05/0.46, allocations: 16 kB / 0.6061 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.4604, allocations: 123.7 kB / 0.6062 GB, free: 12.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.067e-05/0.4604, allocations: 19.94 kB / 0.6062 GB, free: 12.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002085/0.4606, allocations: 71.28 kB / 0.6063 GB, free: 12.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.177e-05/0.4607, allocations: 40 kB / 0.6063 GB, free: 12.65 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.0002291/0.4609, allocations: 245.4 kB / 0.6065 GB, free: 12.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.889e-05/0.4609, allocations: 15.78 kB / 0.6065 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.6e-05/0.461, allocations: 13.81 kB / 0.6066 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.461, allocations: 0 / 0.6066 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.461, allocations: 0 / 0.6066 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.461, allocations: 4 kB / 0.6066 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.4611, allocations: 189.8 kB / 0.6067 GB, free: 12.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.4611, allocations: 0 / 0.6067 GB, free: 12.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.027e-06/0.4612, allocations: 7.938 kB / 0.6067 GB, free: 12.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.4612, allocations: 0 / 0.6067 GB, free: 12.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.4612, allocations: 7.938 kB / 0.6068 GB, free: 12.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.4612, allocations: 0 / 0.6068 GB, free: 12.11 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/0.4612, allocations: 3.984 kB / 0.6068 GB, free: 12.11 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008526/0.4621, allocations: 0.607 MB / 0.6074 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.112e-05/0.4621, allocations: 92.86 kB / 0.6074 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.4622, allocations: 11.92 kB / 0.6075 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.437e-05/0.4622, allocations: 8.031 kB / 0.6075 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.839e-05/0.4622, allocations: 0 / 0.6075 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-06/0.4622, allocations: 0 / 0.6075 GB, free: 11.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.52e-05/0.4623, allocations: 75.28 kB / 0.6075 GB, free: 11.28 MB / 426.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4623, allocations: 0 / 0.6075 GB, free: 11.28 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005749/0.4628, allocations: 115.8 kB / 0.6076 GB, free: 11.17 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.0007173/0.4636, allocations: 281.1 kB / 0.6079 GB, free: 10.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006336/0.4642, allocations: 464 kB / 0.6084 GB, free: 10.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.4642, allocations: 0 / 0.6084 GB, free: 10.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.4644, allocations: 154.1 kB / 0.6085 GB, free: 10.33 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001434/0.4645, allocations: 7.938 kB / 0.6085 GB, free: 10.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006011/0.4651, allocations: 466.8 kB / 0.609 GB, free: 9.832 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.4655, allocations: 0.7258 MB / 0.6097 GB, free: 9.078 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000102/0.4656, allocations: 43.59 kB / 0.6097 GB, free: 9.039 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.905e-05/0.4656, allocations: 27.44 kB / 0.6097 GB, free: 9.012 MB / 426.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4656, allocations: 0 / 0.6097 GB, free: 9.012 MB / 426.7 MB Notification: Performance of Templates: time 0.006596/0.4722, allocations: 3.066 MB / 0.6127 GB, free: 5.941 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches