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.00152/0.00152, allocations: 197.4 kB / 18.11 MB, free: 3.609 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.528/1.528, allocations: 226.5 MB / 245.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008398/0.0008399, allocations: 100.8 kB / 297.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3908/0.3908, allocations: 44.82 MB / 394.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003039/0.0003039, allocations: 12 kB / 467.9 MB, free: 12.01 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3915/0.3918, allocations: 62.95 MB / 0.5184 GB, free: 37.62 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1137/0.5056, allocations: 87.46 MB / 0.6038 GB, free: 1.848 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/0.5059, allocations: 71.89 kB / 0.6039 GB, free: 1.781 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01322/0.5191, allocations: 5.453 MB / 0.6092 GB, free: 12.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5192, allocations: 0 / 0.6092 GB, free: 12.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.5192, allocations: 4 kB / 0.6092 GB, free: 12.31 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.0005813/0.5198, allocations: 480.2 kB / 0.6097 GB, free: 11.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.5198, allocations: 8.031 kB / 0.6097 GB, free: 11.78 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.929e-05/0.5199, allocations: 20.75 kB / 0.6097 GB, free: 11.76 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.52, allocations: 176.2 kB / 0.6099 GB, free: 11.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.5201, allocations: 12.38 kB / 0.6099 GB, free: 11.54 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.693e-05/0.5201, allocations: 28.36 kB / 0.6099 GB, free: 11.51 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.5203, allocations: 124.9 kB / 0.61 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.5203, allocations: 192 / 0.61 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.5203, allocations: 3.938 kB / 0.61 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.5203, allocations: 0 / 0.61 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001035/0.5205, allocations: 100.3 kB / 0.6101 GB, free: 11.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002801/0.5208, allocations: 230.2 kB / 0.6103 GB, free: 11.01 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001602/0.5209, allocations: 163 kB / 0.6105 GB, free: 10.84 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001295/0.5211, allocations: 153.7 kB / 0.6107 GB, free: 10.69 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.5211, allocations: 0 / 0.6107 GB, free: 10.69 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001941/0.5213, allocations: 169.9 kB / 0.6108 GB, free: 10.51 MB / 426.7 MB Notification: Performance of pre-optimization done (n=54): time 1.323e-06/0.5213, allocations: 0 / 0.6108 GB, free: 10.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.001078/0.5224, allocations: 0.7694 MB / 0.6116 GB, free: 9.738 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.542e-05/0.5225, allocations: 103.8 kB / 0.6117 GB, free: 9.621 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.64e-05/0.5225, allocations: 121.7 kB / 0.6118 GB, free: 9.492 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.335e-05/0.5226, allocations: 69.67 kB / 0.6118 GB, free: 9.418 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.941e-05/0.5227, allocations: 93.45 kB / 0.6119 GB, free: 9.32 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.5228, allocations: 126.5 kB / 0.6121 GB, free: 9.195 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.139e-05/0.5228, allocations: 20 kB / 0.6121 GB, free: 9.176 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.523, allocations: 350.8 kB / 0.6124 GB, free: 8.824 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/0.5233, allocations: 181.9 kB / 0.6126 GB, free: 8.648 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005007/0.5238, allocations: 0.5296 MB / 0.6131 GB, free: 7.953 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009249/0.5247, allocations: 0.7749 MB / 0.6139 GB, free: 7.012 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.857e-06/0.5247, allocations: 4 kB / 0.6139 GB, free: 7.008 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001088/0.5258, allocations: 0.7319 MB / 0.6146 GB, free: 6.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.5258, allocations: 18.41 kB / 0.6146 GB, free: 6.254 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/0.5259, allocations: 15.94 kB / 0.6146 GB, free: 6.238 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.774e-05/0.5259, allocations: 16 kB / 0.6146 GB, free: 6.223 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003261/0.5262, allocations: 115.7 kB / 0.6147 GB, free: 6.109 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.971e-05/0.5263, allocations: 31.86 kB / 0.6148 GB, free: 6.078 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002178/0.5265, allocations: 67.28 kB / 0.6148 GB, free: 6.012 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.051e-05/0.5265, allocations: 40 kB / 0.6149 GB, free: 5.973 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.0002547/0.5268, allocations: 245.4 kB / 0.6151 GB, free: 5.723 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.08e-05/0.5268, allocations: 15.81 kB / 0.6151 GB, free: 5.707 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.607e-05/0.5269, allocations: 13.8 kB / 0.6151 GB, free: 5.695 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.5269, allocations: 0 / 0.6151 GB, free: 5.695 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5269, allocations: 4 kB / 0.6151 GB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.5269, allocations: 3.984 kB / 0.6151 GB, free: 5.688 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.5271, allocations: 193.8 kB / 0.6153 GB, free: 5.449 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.5271, allocations: 0 / 0.6153 GB, free: 5.449 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.789e-06/0.5271, allocations: 0 / 0.6153 GB, free: 5.449 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.5271, allocations: 0 / 0.6153 GB, free: 5.449 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.5271, allocations: 3.938 kB / 0.6153 GB, free: 5.445 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.5271, allocations: 0 / 0.6153 GB, free: 5.445 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.5271, allocations: 4 kB / 0.6153 GB, free: 5.441 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008432/0.528, allocations: 0.6109 MB / 0.6159 GB, free: 4.812 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.016e-05/0.528, allocations: 92.86 kB / 0.616 GB, free: 4.703 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.528, allocations: 7.938 kB / 0.616 GB, free: 4.695 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.282e-05/0.5281, allocations: 3.938 kB / 0.616 GB, free: 4.691 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.403e-05/0.5281, allocations: 7.984 kB / 0.616 GB, free: 4.684 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.5281, allocations: 0 / 0.616 GB, free: 4.684 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.677e-05/0.5281, allocations: 79.22 kB / 0.6161 GB, free: 4.605 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5282, allocations: 0 / 0.6161 GB, free: 4.605 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005556/0.5287, allocations: 107.9 kB / 0.6162 GB, free: 4.5 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.0006072/0.5293, allocations: 282.2 kB / 0.6165 GB, free: 4.246 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006314/0.53, allocations: 473.5 kB / 0.6169 GB, free: 3.785 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.53, allocations: 0 / 0.6169 GB, free: 3.785 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001482/0.5301, allocations: 160.5 kB / 0.6171 GB, free: 3.629 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001432/0.5303, allocations: 8.062 kB / 0.6171 GB, free: 3.621 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006227/0.5309, allocations: 446.8 kB / 0.6175 GB, free: 3.152 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.5313, allocations: 0.7383 MB / 0.6182 GB, free: 2.387 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001089/0.5314, allocations: 43.59 kB / 0.6183 GB, free: 2.348 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.548e-05/0.5315, allocations: 19.44 kB / 0.6183 GB, free: 2.328 MB / 426.7 MB Notification: Performance of SimCode: time 5.92e-07/0.5315, allocations: 0 / 0.6183 GB, free: 2.328 MB / 426.7 MB Notification: Performance of Templates: time 0.006989/0.5385, allocations: 3.063 MB / 0.6213 GB, free: 15.26 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/jenkins1/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