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.002079/0.002078, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.075/2.075, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001163/0.001162, allocations: 94.22 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.45e-05/2.451e-05, allocations: 4 kB / 314.8 MB, free: 9.152 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3344, allocations: 47.56 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1204/0.4548, allocations: 74.64 MB / 437 MB, free: 11.69 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/0.4551, allocations: 59.97 kB / 437 MB, free: 11.63 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01276/0.4679, allocations: 2.942 MB / 440 MB, free: 8.707 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4679, allocations: 0.9375 kB / 440 MB, free: 8.707 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.468, allocations: 4 kB / 440 MB, free: 8.703 MB / 331.1 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.0006464/0.4686, allocations: 0.5582 MB / 440.5 MB, free: 8.094 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.4687, allocations: 8.031 kB / 440.5 MB, free: 8.086 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.4689, allocations: 27.8 kB / 440.6 MB, free: 8.059 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001656/0.469, allocations: 174.9 kB / 440.7 MB, free: 7.848 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.4691, allocations: 2.25 kB / 440.7 MB, free: 7.848 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.4691, allocations: 7.953 kB / 440.7 MB, free: 7.84 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002301/0.4694, allocations: 142.8 kB / 440.9 MB, free: 7.703 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004517/0.4698, allocations: 267.8 kB / 441.1 MB, free: 7.43 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.4698, allocations: 0 / 441.1 MB, free: 7.43 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.56e-05/0.4699, allocations: 5.562 kB / 441.1 MB, free: 7.426 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.4699, allocations: 1.125 kB / 441.2 MB, free: 7.426 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002254/0.4701, allocations: 179.5 kB / 441.3 MB, free: 7.211 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005563/0.4707, allocations: 490.7 kB / 441.8 MB, free: 6.715 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005246/0.4712, allocations: 461.7 kB / 442.3 MB, free: 6.258 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.364e-06/0.4713, allocations: 3.562 kB / 442.3 MB, free: 6.258 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006326/0.4719, allocations: 476.5 kB / 442.7 MB, free: 5.746 MB / 331.1 MB Notification: Performance of pre-optimization done (n=46): time 2.725e-06/0.4719, allocations: 0 / 442.7 MB, free: 5.746 MB / 331.1 MB Notification: Performance of matching and sorting (n=46): time 0.0009653/0.4729, allocations: 406.3 kB / 443.1 MB, free: 5.344 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.473, allocations: 160.5 kB / 443.3 MB, free: 5.156 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.437e-05/0.4731, allocations: 105 kB / 443.4 MB, free: 5.047 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.4732, allocations: 25.7 kB / 443.4 MB, free: 5.016 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.879e-05/0.4732, allocations: 153.3 kB / 443.6 MB, free: 4.867 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.992e-05/0.4734, allocations: 91.98 kB / 443.6 MB, free: 4.777 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-06/0.4734, allocations: 4 kB / 443.6 MB, free: 4.773 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.4735, allocations: 326.8 kB / 444 MB, free: 4.445 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.4737, allocations: 80.28 kB / 444 MB, free: 4.367 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.4738, allocations: 110.4 kB / 444.2 MB, free: 4.254 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002339/0.4741, allocations: 99.94 kB / 444.3 MB, free: 4.156 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4741, allocations: 0 / 444.3 MB, free: 4.156 MB / 331.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004777/0.4746, allocations: 253.3 kB / 444.5 MB, free: 3.902 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.4747, allocations: 107.3 kB / 444.6 MB, free: 3.785 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.4748, allocations: 0 / 444.6 MB, free: 3.785 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.4748, allocations: 3.953 kB / 444.6 MB, free: 3.781 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.26e-06/0.4748, allocations: 4 kB / 444.6 MB, free: 3.777 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.4748, allocations: 0 / 444.6 MB, free: 3.777 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.4749, allocations: 23.73 kB / 444.6 MB, free: 3.754 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.475, allocations: 8.938 kB / 444.6 MB, free: 3.746 MB / 331.1 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 () * 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.0003555/0.4753, allocations: 275.4 kB / 444.9 MB, free: 3.457 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.233e-05/0.4754, allocations: 23.81 kB / 444.9 MB, free: 3.434 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.246e-05/0.4755, allocations: 13.97 kB / 444.9 MB, free: 3.422 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.4755, allocations: 0 / 444.9 MB, free: 3.422 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.4755, allocations: 3.953 kB / 445 MB, free: 3.418 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.4755, allocations: 0 / 445 MB, free: 3.418 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002636/0.4758, allocations: 215.4 kB / 445.2 MB, free: 3.172 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4758, allocations: 0 / 445.2 MB, free: 3.172 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.303e-06/0.4758, allocations: 1.688 kB / 445.2 MB, free: 3.172 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.4758, allocations: 0 / 445.2 MB, free: 3.172 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.077e-05/0.4759, allocations: 23.98 kB / 445.2 MB, free: 3.148 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.4759, allocations: 0 / 445.2 MB, free: 3.148 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.4759, allocations: 3.938 kB / 445.2 MB, free: 3.145 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.4772, allocations: 0.5904 MB / 445.8 MB, free: 2.527 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.47e-05/0.4773, allocations: 100.8 kB / 445.9 MB, free: 2.41 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002187/0.4775, allocations: 71.91 kB / 446 MB, free: 2.34 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.4776, allocations: 9.5 kB / 446 MB, free: 2.332 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.372e-05/0.4777, allocations: 19.94 kB / 446 MB, free: 2.312 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.135e-05/0.4778, allocations: 24.02 kB / 446 MB, free: 2.289 MB / 331.1 MB Notification: Performance of sorting global known variables: time 5.884e-05/0.4779, allocations: 83.28 kB / 446.1 MB, free: 2.207 MB / 331.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4779, allocations: 0 / 446.1 MB, free: 2.207 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0005678/0.4784, allocations: 107.9 kB / 446.2 MB, free: 2.102 MB / 331.1 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) * 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.0008432/0.4793, allocations: 310.8 kB / 446.5 MB, free: 1.828 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.002539/0.4819, allocations: 2.096 MB / 448.6 MB, free: 15.71 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 5.77e-06/0.4819, allocations: 0 / 448.6 MB, free: 15.71 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002433/0.4844, allocations: 2.17 MB / 450.8 MB, free: 13.51 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002302/0.4846, allocations: 12 kB / 450.8 MB, free: 13.5 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007059/0.4853, allocations: 332.8 kB / 451.1 MB, free: 13.14 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003801/0.4857, allocations: 0.7331 MB / 451.8 MB, free: 12.38 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.736e-05/0.4858, allocations: 10.91 kB / 451.8 MB, free: 12.37 MB / 347.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4858, allocations: 0 / 451.8 MB, free: 12.37 MB / 347.1 MB Notification: Performance of Templates: time 0.008582/0.4944, allocations: 3.33 MB / 455.2 MB, free: 9.059 MB / 347.1 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