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.001061/0.001061, allocations: 197.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.5 MB / 243.4 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007727/0.0007727, allocations: 97.53 kB / 295.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3074/0.3074, allocations: 44.82 MB / 392.3 MB, free: 35.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002773/0.0002773, allocations: 8 kB / 465.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.355, allocations: 62.95 MB / 0.5159 GB, free: 37.03 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0005852/0.3557, allocations: 264.8 kB / 0.5161 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008567/0.3565, allocations: 0.5639 MB / 0.5167 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.432e-05/0.3566, allocations: 0 / 0.5167 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.826e-05/0.3567, allocations: 11.22 kB / 0.5167 GB, free: 36.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.376e-06/0.3567, allocations: 0 / 0.5167 GB, free: 36.46 MB / 378.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.000608/0.3573, allocations: 164.1 kB / 0.5168 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.48e-05/0.3574, allocations: 26.62 kB / 0.5169 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.514e-05/0.3574, allocations: 0 / 0.5169 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.535e-05/0.3574, allocations: 18.72 kB / 0.5169 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.834e-05/0.3575, allocations: 16.22 kB / 0.5169 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.3575, allocations: 7 kB / 0.5169 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002217/0.3577, allocations: 160.1 kB / 0.5171 GB, free: 36.32 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.262e-05/0.3578, allocations: 64.86 kB / 0.5171 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.61e-05/0.3579, allocations: 77.23 kB / 0.5172 GB, free: 36.24 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001614/0.358, allocations: 145.7 kB / 0.5173 GB, free: 36.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3581, allocations: 0 / 0.5173 GB, free: 36.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3581, allocations: 0 / 0.5173 GB, free: 36.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.3581, allocations: 0 / 0.5173 GB, free: 36.21 MB / 378.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.0003822/0.3585, allocations: 463 kB / 0.5178 GB, free: 35.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.3585, allocations: 13.44 kB / 0.5178 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.072e-05/0.3585, allocations: 17.59 kB / 0.5178 GB, free: 35.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.326e-05/0.3586, allocations: 175.1 kB / 0.518 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.3587, allocations: 10.34 kB / 0.518 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.35e-05/0.3587, allocations: 22.66 kB / 0.518 GB, free: 35.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001478/0.3588, allocations: 137.3 kB / 0.5181 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.3588, allocations: 0 / 0.5181 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.3589, allocations: 0 / 0.5181 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.3589, allocations: 0 / 0.5181 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.926e-05/0.359, allocations: 98.11 kB / 0.5182 GB, free: 35.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001462/0.3591, allocations: 226.2 kB / 0.5184 GB, free: 35.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001109/0.3593, allocations: 164.8 kB / 0.5186 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.747e-05/0.3593, allocations: 155.8 kB / 0.5188 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.657e-06/0.3594, allocations: 7.219 kB / 0.5188 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001645/0.3595, allocations: 171.6 kB / 0.5189 GB, free: 34.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 2.134e-06/0.3595, allocations: 6.922 kB / 0.5189 GB, free: 34.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.0008547/0.3604, allocations: 0.769 MB / 0.5197 GB, free: 34.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.3605, allocations: 102.1 kB / 0.5198 GB, free: 34.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.371e-05/0.3605, allocations: 122.8 kB / 0.5199 GB, free: 34.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.544e-05/0.3606, allocations: 67.05 kB / 0.52 GB, free: 34.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.503e-05/0.3606, allocations: 94.8 kB / 0.5201 GB, free: 34.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.717e-05/0.3607, allocations: 137.9 kB / 0.5202 GB, free: 34.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.815e-05/0.3607, allocations: 14.94 kB / 0.5202 GB, free: 34.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.112e-05/0.3608, allocations: 342 kB / 0.5205 GB, free: 33.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.361, allocations: 191.2 kB / 0.5207 GB, free: 33.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003525/0.3614, allocations: 0.5356 MB / 0.5212 GB, free: 33.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006364/0.362, allocations: 0.7654 MB / 0.522 GB, free: 32.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.742e-06/0.362, allocations: 9.156 kB / 0.522 GB, free: 32.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0008515/0.3629, allocations: 0.7398 MB / 0.5227 GB, free: 32.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.3629, allocations: 7.438 kB / 0.5227 GB, free: 32.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.3629, allocations: 17.78 kB / 0.5227 GB, free: 32.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.742e-05/0.363, allocations: 15.47 kB / 0.5227 GB, free: 32.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003221/0.3633, allocations: 117.5 kB / 0.5229 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.149e-05/0.3633, allocations: 27.75 kB / 0.5229 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.3635, allocations: 65.72 kB / 0.5229 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.793e-05/0.3635, allocations: 40.12 kB / 0.523 GB, free: 32.43 MB / 378.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.0001742/0.3637, allocations: 245.1 kB / 0.5232 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.282e-05/0.3637, allocations: 14.56 kB / 0.5232 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.075e-05/0.3638, allocations: 5.875 kB / 0.5232 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3638, allocations: 3.094 kB / 0.5232 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3638, allocations: 0 / 0.5232 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.3638, allocations: 0 / 0.5232 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.3639, allocations: 200.9 kB / 0.5234 GB, free: 32.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3639, allocations: 0 / 0.5234 GB, free: 32.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.218e-06/0.3639, allocations: 3.938 kB / 0.5234 GB, free: 32.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.3639, allocations: 0 / 0.5234 GB, free: 32.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.3639, allocations: 5.953 kB / 0.5234 GB, free: 32.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3639, allocations: 0 / 0.5234 GB, free: 32.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.364, allocations: 0 / 0.5234 GB, free: 32.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006909/0.3646, allocations: 0.6121 MB / 0.524 GB, free: 31.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.591e-05/0.3647, allocations: 112.8 kB / 0.5241 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.3647, allocations: 0 / 0.5241 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.204e-05/0.3647, allocations: 0 / 0.5241 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.047e-05/0.3647, allocations: 3.281 kB / 0.5242 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.3648, allocations: 2.938 kB / 0.5242 GB, free: 31.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.457e-05/0.3648, allocations: 75.28 kB / 0.5242 GB, free: 31.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3648, allocations: 0 / 0.5242 GB, free: 31.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004133/0.3652, allocations: 94.5 kB / 0.5243 GB, free: 31.58 MB / 378.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.0004807/0.3657, allocations: 265.4 kB / 0.5246 GB, free: 31.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004823/0.3662, allocations: 466.4 kB / 0.525 GB, free: 31.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3662, allocations: 0 / 0.525 GB, free: 31.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.3663, allocations: 160.3 kB / 0.5252 GB, free: 31.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001314/0.3664, allocations: 9.766 kB / 0.5252 GB, free: 31.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004965/0.367, allocations: 497 kB / 0.5257 GB, free: 30.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001367/0.3671, allocations: 0.7295 MB / 0.5264 GB, free: 30.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.202e-05/0.3671, allocations: 23.69 kB / 0.5264 GB, free: 30.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.483e-06/0.3671, allocations: 0 / 0.5264 GB, free: 30.21 MB / 378.7 MB Notification: Performance of Templates: time 0.004908/0.3721, allocations: 3.781 MB / 0.5301 GB, free: 29.85 MB / 378.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