Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009603/0.0009604, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 226.5 MB / 243.1 MB, free: 12.39 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007685/0.0007684, allocations: 101.5 kB / 295.1 MB, free: 4.371 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1839/0.1839, allocations: 44.83 MB / 392 MB, free: 11.36 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002619/0.0002619, allocations: 8 kB / 464.7 MB, free: 68.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08116/0.08144, allocations: 62.95 MB / 0.5153 GB, free: 5.117 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0004305/0.0819, allocations: 266 kB / 0.5156 GB, free: 4.855 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006841/0.0826, allocations: 0.5656 MB / 0.5161 GB, free: 4.285 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.43e-05/0.08262, allocations: 0 / 0.5161 GB, free: 4.285 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 5.131e-05/0.08268, allocations: 7.938 kB / 0.5161 GB, free: 4.277 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 3.106e-06/0.08269, allocations: 0 / 0.5161 GB, free: 4.277 MB / 346.7 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.0004557/0.08315, allocations: 163.6 kB / 0.5163 GB, free: 4.117 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.677e-05/0.0832, allocations: 19.98 kB / 0.5163 GB, free: 4.098 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.567e-05/0.08323, allocations: 7.984 kB / 0.5163 GB, free: 4.09 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.871e-05/0.08326, allocations: 19.92 kB / 0.5163 GB, free: 4.07 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.915e-05/0.08328, allocations: 11.98 kB / 0.5164 GB, free: 4.059 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.547e-06/0.08329, allocations: 4 kB / 0.5164 GB, free: 4.055 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.08348, allocations: 155.7 kB / 0.5165 GB, free: 3.902 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.975e-05/0.08354, allocations: 67.86 kB / 0.5166 GB, free: 3.836 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.741e-05/0.08357, allocations: 45.64 kB / 0.5166 GB, free: 3.785 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.0837, allocations: 147.7 kB / 0.5168 GB, free: 3.641 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.08371, allocations: 0 / 0.5168 GB, free: 3.641 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.08372, allocations: 0 / 0.5168 GB, free: 3.641 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.08372, allocations: 0 / 0.5168 GB, free: 3.641 MB / 346.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.0002824/0.08401, allocations: 464.5 kB / 0.5172 GB, free: 3.137 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.472e-05/0.08404, allocations: 15.97 kB / 0.5172 GB, free: 3.121 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.137e-05/0.08408, allocations: 19.81 kB / 0.5172 GB, free: 3.102 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.978e-05/0.08413, allocations: 182.8 kB / 0.5174 GB, free: 2.883 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.08415, allocations: 8 kB / 0.5174 GB, free: 2.875 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.08417, allocations: 24 kB / 0.5174 GB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.08429, allocations: 124.3 kB / 0.5176 GB, free: 2.727 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.0843, allocations: 4 kB / 0.5176 GB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.751e-06/0.08431, allocations: 0 / 0.5176 GB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.08432, allocations: 0 / 0.5176 GB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.169e-05/0.08438, allocations: 100.3 kB / 0.5177 GB, free: 2.625 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001126/0.0845, allocations: 234.1 kB / 0.5179 GB, free: 2.348 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.969e-05/0.0846, allocations: 163 kB / 0.518 GB, free: 2.18 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.383e-05/0.08468, allocations: 157.7 kB / 0.5182 GB, free: 2.023 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.1e-06/0.08469, allocations: 0 / 0.5182 GB, free: 2.023 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001316/0.08482, allocations: 162 kB / 0.5183 GB, free: 1.848 MB / 346.7 MB Notification: Performance of pre-optimization done (n=54): time 9.62e-07/0.08483, allocations: 0 / 0.5183 GB, free: 1.848 MB / 346.7 MB Notification: Performance of matching and sorting (n=54): time 0.0007065/0.08555, allocations: 0.7811 MB / 0.5191 GB, free: 1.066 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.08559, allocations: 99.8 kB / 0.5192 GB, free: 0.957 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.809e-05/0.08563, allocations: 125.5 kB / 0.5193 GB, free: 0.8242 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.182e-05/0.08568, allocations: 65.69 kB / 0.5194 GB, free: 0.7539 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.65e-05/0.0857, allocations: 93.45 kB / 0.5195 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.666e-05/0.08577, allocations: 130.6 kB / 0.5196 GB, free: 0.5312 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.514e-05/0.08579, allocations: 12 kB / 0.5196 GB, free: 0.5195 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.811e-05/0.08584, allocations: 350.8 kB / 0.5199 GB, free: 172 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002122/0.08606, allocations: 177.9 kB / 0.5201 GB, free: 15.99 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000428/0.0865, allocations: 0.5369 MB / 0.5206 GB, free: 15.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003315/0.08684, allocations: 263.8 kB / 0.5209 GB, free: 15.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.08685, allocations: 7.953 kB / 0.5209 GB, free: 15.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009049/0.08776, allocations: 0.7357 MB / 0.5216 GB, free: 14.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.08778, allocations: 11.98 kB / 0.5216 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.0878, allocations: 12.09 kB / 0.5216 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.08783, allocations: 24 kB / 0.5217 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003317/0.08816, allocations: 119.7 kB / 0.5218 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.502e-05/0.08819, allocations: 19.94 kB / 0.5218 GB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.08838, allocations: 67.36 kB / 0.5219 GB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.802e-05/0.08843, allocations: 43.94 kB / 0.5219 GB, free: 13.99 MB / 362.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.0001927/0.08862, allocations: 241.5 kB / 0.5221 GB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.385e-05/0.08864, allocations: 15.77 kB / 0.5221 GB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.689e-05/0.08866, allocations: 5.875 kB / 0.5221 GB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.08867, allocations: 0 / 0.5221 GB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.08868, allocations: 0 / 0.5221 GB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.08869, allocations: 4 kB / 0.5222 GB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001212/0.08881, allocations: 201.7 kB / 0.5223 GB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.08882, allocations: 0 / 0.5223 GB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.222e-06/0.08883, allocations: 3.953 kB / 0.5223 GB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.08884, allocations: 3.938 kB / 0.5224 GB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.154e-06/0.08885, allocations: 7.984 kB / 0.5224 GB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.08886, allocations: 0 / 0.5224 GB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.08886, allocations: 4 kB / 0.5224 GB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007276/0.08959, allocations: 0.6031 MB / 0.523 GB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.546e-05/0.08965, allocations: 108.7 kB / 0.5231 GB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.036e-05/0.08967, allocations: 3.953 kB / 0.5231 GB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.346e-05/0.08968, allocations: 8 kB / 0.5231 GB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.623e-05/0.0897, allocations: 0 / 0.5231 GB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.08971, allocations: 0 / 0.5231 GB, free: 12.69 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.263e-05/0.08974, allocations: 75.31 kB / 0.5231 GB, free: 12.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08975, allocations: 0 / 0.5231 GB, free: 12.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003751/0.09013, allocations: 95.98 kB / 0.5232 GB, free: 12.52 MB / 362.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.0004132/0.09054, allocations: 260.6 kB / 0.5235 GB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005151/0.09107, allocations: 469.2 kB / 0.5239 GB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.09108, allocations: 0 / 0.5239 GB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.09121, allocations: 156.4 kB / 0.5241 GB, free: 11.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001169/0.09133, allocations: 8.438 kB / 0.5241 GB, free: 11.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000464/0.09181, allocations: 496.5 kB / 0.5246 GB, free: 11.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.09206, allocations: 0.7298 MB / 0.5253 GB, free: 10.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.582e-05/0.0921, allocations: 19.44 kB / 0.5253 GB, free: 10.38 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.09211, allocations: 0 / 0.5253 GB, free: 10.38 MB / 362.7 MB Notification: Performance of Templates: time 0.004815/0.09693, allocations: 3.78 MB / 0.529 GB, free: 6.594 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches