Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001519/0.001519, allocations: 187.9 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.935/1.935, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 85.8 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.000403, allocations: 8 kB / 327 MB, free: 220 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3294, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1217/0.4511, allocations: 75.38 MB / 449.9 MB, free: 5.391 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/0.4515, allocations: 67.95 kB / 450 MB, free: 5.324 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01317/0.4646, allocations: 2.972 MB / 452.9 MB, free: 2.348 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.4647, allocations: 0 / 452.9 MB, free: 2.348 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.824e-06/0.4647, allocations: 0 / 452.9 MB, free: 2.348 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007309/0.4655, allocations: 0.5604 MB / 453.5 MB, free: 1.727 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.4655, allocations: 8.031 kB / 453.5 MB, free: 1.719 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/0.4657, allocations: 23.8 kB / 453.5 MB, free: 1.695 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.4659, allocations: 174.9 kB / 453.7 MB, free: 1.484 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.4659, allocations: 11.94 kB / 453.7 MB, free: 1.473 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.447e-05/0.466, allocations: 7.953 kB / 453.7 MB, free: 1.465 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005103/0.4665, allocations: 287.1 kB / 454 MB, free: 1.172 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.4665, allocations: 0 / 454 MB, free: 1.172 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/0.4665, allocations: 0 / 454 MB, free: 1.172 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.4665, allocations: 0 / 454 MB, free: 1.172 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002404/0.4668, allocations: 147.7 kB / 454.2 MB, free: 1.027 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002631/0.4671, allocations: 210.4 kB / 454.4 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005948/0.4677, allocations: 497.1 kB / 454.8 MB, free: 272 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.477e-06/0.4677, allocations: 0 / 454.8 MB, free: 272 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007301/0.4684, allocations: 488.7 kB / 455.3 MB, free: 15.74 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 1.774e-06/0.4685, allocations: 4 kB / 455.3 MB, free: 15.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.001454/0.4699, allocations: 0.8816 MB / 456.2 MB, free: 14.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.4701, allocations: 166.4 kB / 456.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.703e-05/0.4702, allocations: 93 kB / 456.5 MB, free: 14.51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/0.4702, allocations: 29.7 kB / 456.5 MB, free: 14.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.525e-05/0.4703, allocations: 151.6 kB / 456.6 MB, free: 14.33 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.586e-05/0.4704, allocations: 86.75 kB / 456.7 MB, free: 14.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.094e-06/0.4704, allocations: 0 / 456.7 MB, free: 14.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.4706, allocations: 334.9 kB / 457 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.4707, allocations: 76.36 kB / 457.1 MB, free: 13.83 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.4709, allocations: 114.4 kB / 457.2 MB, free: 13.71 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002694/0.4712, allocations: 208.3 kB / 457.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.4712, allocations: 0 / 457.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000525/0.4717, allocations: 340.7 kB / 457.8 MB, free: 13.15 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001775/0.4719, allocations: 107.3 kB / 457.9 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.4719, allocations: 3.953 kB / 457.9 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.472, allocations: 12.09 kB / 457.9 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.264e-06/0.472, allocations: 336 / 457.9 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.472, allocations: 0 / 457.9 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.573e-05/0.4721, allocations: 15.84 kB / 457.9 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.4721, allocations: 16 kB / 457.9 MB, free: 12.98 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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.0004097/0.4726, allocations: 295.7 kB / 458.2 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.571e-05/0.4726, allocations: 23.81 kB / 458.2 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.489e-05/0.4727, allocations: 13.55 kB / 458.2 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.4727, allocations: 3.953 kB / 458.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.4727, allocations: 0 / 458.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.4727, allocations: 0 / 458.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002905/0.473, allocations: 245.3 kB / 458.5 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.473, allocations: 0 / 458.5 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.413e-06/0.473, allocations: 4 kB / 458.5 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.4731, allocations: 3.984 kB / 458.5 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.502e-05/0.4731, allocations: 31.86 kB / 458.5 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.4731, allocations: 0 / 458.5 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.4732, allocations: 3.953 kB / 458.5 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002028/0.4752, allocations: 1.234 MB / 459.8 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.945e-05/0.4753, allocations: 100.8 kB / 459.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002177/0.4755, allocations: 71.91 kB / 459.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.4757, allocations: 15.95 kB / 460 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.432e-05/0.4757, allocations: 11.98 kB / 460 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.558e-05/0.4759, allocations: 23.98 kB / 460 MB, free: 10.79 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.678e-05/0.4759, allocations: 79.28 kB / 460.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4759, allocations: 0 / 460.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005603/0.4765, allocations: 111.9 kB / 460.2 MB, free: 10.6 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0008465/0.4774, allocations: 328.5 kB / 460.5 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002674/0.4801, allocations: 2.123 MB / 462.6 MB, free: 8.152 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.4801, allocations: 0 / 462.6 MB, free: 8.152 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002562/0.4827, allocations: 2.178 MB / 464.8 MB, free: 5.949 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002348/0.483, allocations: 15.98 kB / 464.8 MB, free: 5.934 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009806/0.484, allocations: 441.8 kB / 465.2 MB, free: 5.469 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.4844, allocations: 0.7286 MB / 466 MB, free: 4.711 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.79e-05/0.4844, allocations: 7.438 kB / 466 MB, free: 4.703 MB / 346.7 MB Notification: Performance of SimCode: time 1.392e-06/0.4844, allocations: 0 / 466 MB, free: 4.703 MB / 346.7 MB Notification: Performance of Templates: time 0.008523/0.4929, allocations: 3.337 MB / 469.3 MB, free: 1.371 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","../files/Modelica_3.2.3_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches