Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 90.62 kB / 16.31 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 180.5 kB / 17.21 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 223.2 MB / 241.2 MB, free: 320 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002372/0.0002375, allocations: 8.531 kB / 300.8 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08571/0.08596, allocations: 50.41 MB / 351.2 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001243/0.08724, allocations: 0.9468 MB / 352.2 MB, free: 3.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008164/0.08808, allocations: 419.6 kB / 352.6 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.91e-05/0.08814, allocations: 3.938 kB / 352.6 MB, free: 2.668 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.238e-05/0.08818, allocations: 0 / 352.6 MB, free: 2.668 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeBindings: time 0.0004804/0.08867, allocations: 55.88 kB / 352.6 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001668/0.08884, allocations: 51.86 kB / 352.7 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.839e-05/0.08892, allocations: 35.86 kB / 352.7 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.641e-05/0.08898, allocations: 15.92 kB / 352.8 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.157e-05/0.08902, allocations: 11.98 kB / 352.8 MB, free: 2.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.205e-05/0.08906, allocations: 19.92 kB / 352.8 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.143e-05/0.08908, allocations: 0 / 352.8 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002466/0.08933, allocations: 115.8 kB / 352.9 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.109e-05/0.08939, allocations: 31.92 kB / 352.9 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.674e-05/0.08944, allocations: 49.62 kB / 353 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000199/0.08965, allocations: 115.7 kB / 353.1 MB, free: 2.168 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.08966, allocations: 3.938 kB / 353.1 MB, free: 2.164 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.08967, allocations: 0 / 353.1 MB, free: 2.164 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.08968, allocations: 0 / 353.1 MB, free: 2.164 MB / 286.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.0005179/0.0902, allocations: 0.5566 MB / 353.6 MB, free: 1.547 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.09025, allocations: 8.031 kB / 353.7 MB, free: 1.539 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.09039, allocations: 27.75 kB / 353.7 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001307/0.09053, allocations: 175.2 kB / 353.9 MB, free: 1.301 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.09055, allocations: 4 kB / 353.9 MB, free: 1.297 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.09057, allocations: 4 kB / 353.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.09087, allocations: 271.2 kB / 354.1 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.09089, allocations: 8 kB / 354.1 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.09091, allocations: 0 / 354.1 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.09092, allocations: 0 / 354.1 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.09107, allocations: 151.8 kB / 354.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001756/0.09125, allocations: 198.3 kB / 354.5 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003624/0.09163, allocations: 497.1 kB / 355 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000346/0.09198, allocations: 477.8 kB / 355.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.003e-06/0.092, allocations: 0 / 355.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004311/0.09243, allocations: 484.6 kB / 355.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 9.41e-07/0.09245, allocations: 0 / 355.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008016/0.09325, allocations: 0.7076 MB / 356.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.306e-05/0.09335, allocations: 160.5 kB / 356.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.707e-05/0.09343, allocations: 105.8 kB / 356.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.09346, allocations: 25.7 kB / 356.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.21e-05/0.0935, allocations: 93.06 kB / 357 MB, free: 13.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.998e-05/0.09356, allocations: 86.72 kB / 357.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.092e-06/0.09357, allocations: 7.938 kB / 357.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.09369, allocations: 326.8 kB / 357.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.859e-05/0.09377, allocations: 80.34 kB / 357.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.664e-05/0.09388, allocations: 114.4 kB / 357.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001614/0.09405, allocations: 192.4 kB / 357.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.09406, allocations: 4 kB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003547/0.09442, allocations: 348.6 kB / 358.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.09453, allocations: 109.8 kB / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.09454, allocations: 0 / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.09456, allocations: 3.984 kB / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.09457, allocations: 0 / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.09458, allocations: 4 kB / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.221e-05/0.09465, allocations: 27.8 kB / 358.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.09468, allocations: 12 kB / 358.3 MB, free: 12.62 MB / 302.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 () * 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.0002421/0.09492, allocations: 291.7 kB / 358.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.918e-05/0.09497, allocations: 31.75 kB / 358.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.226e-05/0.09499, allocations: 9.547 kB / 358.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.095, allocations: 0 / 358.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.09501, allocations: 4 kB / 358.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.09502, allocations: 0 / 358.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001742/0.09519, allocations: 237.3 kB / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.09521, allocations: 8 kB / 358.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.02e-07/0.09521, allocations: 3.938 kB / 358.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.09522, allocations: 0 / 358.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.09525, allocations: 19.98 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.09526, allocations: 4 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.09527, allocations: 0 / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001135/0.09641, allocations: 1.224 MB / 360.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.907e-05/0.09647, allocations: 96.86 kB / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.09658, allocations: 63.94 kB / 360.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.125e-05/0.09664, allocations: 12 kB / 360.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.793e-05/0.09668, allocations: 8 kB / 360.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.774e-05/0.09672, allocations: 24.02 kB / 360.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.55e-05/0.09676, allocations: 83.27 kB / 360.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09677, allocations: 0 / 360.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000331/0.0971, allocations: 84 kB / 360.5 MB, free: 10.32 MB / 302.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) * 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.0004992/0.09761, allocations: 288.5 kB / 360.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001598/0.09922, allocations: 2.123 MB / 362.9 MB, free: 7.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.09923, allocations: 4.125 kB / 362.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001503/0.1007, allocations: 2.186 MB / 365.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000192/0.1009, allocations: 24.98 kB / 365.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005607/0.1015, allocations: 407.5 kB / 365.5 MB, free: 5.242 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/0.1018, allocations: 0.7286 MB / 366.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.407e-06/0.1018, allocations: 0 / 366.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.119e-05/0.1018, allocations: 11.44 kB / 366.2 MB, free: 4.469 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1018, allocations: 0 / 366.2 MB, free: 4.469 MB / 302.1 MB Notification: Performance of Templates: time 0.005677/0.1075, allocations: 2.764 MB / 369 MB, free: 1.711 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches