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.0009513/0.0009514, allocations: 114.4 kB / 16.63 MB, free: 6.809 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.001102/0.001102, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.294/1.294, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001031, allocations: 49.05 kB / 300.1 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08874/0.08979, allocations: 49.45 MB / 349.6 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002346/0.09217, allocations: 1.278 MB / 350.8 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008782/0.09307, allocations: 463.9 kB / 351.3 MB, free: 3.016 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.656e-05/0.09311, allocations: 3.938 kB / 351.3 MB, free: 3.012 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.123e-05/0.09317, allocations: 0 / 351.3 MB, free: 3.012 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.000436/0.09362, allocations: 63.88 kB / 351.4 MB, free: 2.949 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001578/0.09378, allocations: 59.88 kB / 351.4 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.723e-05/0.09388, allocations: 47.84 kB / 351.5 MB, free: 2.844 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.845e-05/0.09393, allocations: 7.984 kB / 351.5 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.777e-05/0.09396, allocations: 11.94 kB / 351.5 MB, free: 2.824 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.519e-05/0.094, allocations: 23.91 kB / 351.5 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.095e-05/0.09402, allocations: 3.938 kB / 351.5 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002206/0.09424, allocations: 115.9 kB / 351.6 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.507e-05/0.0943, allocations: 39.83 kB / 351.7 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.434e-05/0.09436, allocations: 47.69 kB / 351.7 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002325/0.0946, allocations: 175.4 kB / 351.9 MB, free: 2.426 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.09461, allocations: 4 kB / 351.9 MB, free: 2.422 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.09462, allocations: 0 / 351.9 MB, free: 2.422 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.09463, allocations: 0 / 351.9 MB, free: 2.422 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.0005347/0.09517, allocations: 0.5646 MB / 352.5 MB, free: 1.793 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.09521, allocations: 8.031 kB / 352.5 MB, free: 1.785 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.09535, allocations: 20.75 kB / 352.5 MB, free: 1.766 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.09549, allocations: 180.4 kB / 352.7 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.09551, allocations: 4.375 kB / 352.7 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.491e-05/0.09553, allocations: 12.38 kB / 352.7 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002865/0.09582, allocations: 271.8 kB / 352.9 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.73e-06/0.09584, allocations: 192 / 352.9 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.09586, allocations: 7.938 kB / 353 MB, free: 1.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.09588, allocations: 0 / 353 MB, free: 1.25 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001486/0.09604, allocations: 143.9 kB / 353.1 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001899/0.09624, allocations: 206.2 kB / 353.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003674/0.09661, allocations: 0.4893 MB / 353.8 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003354/0.09696, allocations: 469.8 kB / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.806e-06/0.09698, allocations: 3.984 kB / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004334/0.09742, allocations: 480.8 kB / 354.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.342e-06/0.09743, allocations: 0 / 354.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.000799/0.09823, allocations: 0.7153 MB / 355.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.927e-05/0.09833, allocations: 160.5 kB / 355.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.997e-05/0.09842, allocations: 101.8 kB / 355.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.09844, allocations: 29.7 kB / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.239e-05/0.09848, allocations: 81.14 kB / 355.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.914e-05/0.09854, allocations: 86.72 kB / 355.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.074e-05/0.09861, allocations: 41.77 kB / 355.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.09873, allocations: 330.8 kB / 356.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.099e-05/0.09881, allocations: 80.34 kB / 356.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.09893, allocations: 118.2 kB / 356.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003271/0.09926, allocations: 421.3 kB / 356.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.09927, allocations: 0 / 356.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003426/0.09962, allocations: 349 kB / 357.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.578e-05/0.09973, allocations: 107.4 kB / 357.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.09974, allocations: 8 kB / 357.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.09976, allocations: 0 / 357.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.09976, allocations: 0 / 357.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.09977, allocations: 3.938 kB / 357.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.684e-05/0.09984, allocations: 23.75 kB / 357.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.09986, allocations: 8 kB / 357.3 MB, free: 12.59 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 (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],r1024,r128,r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002463/0.1001, allocations: 299.7 kB / 357.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.914e-05/0.1002, allocations: 31.73 kB / 357.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.045e-05/0.1002, allocations: 9.562 kB / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1002, allocations: 0 / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1002, allocations: 0 / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.1002, allocations: 0 / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/0.1004, allocations: 245.3 kB / 357.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1004, allocations: 0 / 357.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.082e-06/0.1004, allocations: 0 / 357.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1004, allocations: 3.938 kB / 357.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.641e-05/0.1005, allocations: 15.98 kB / 357.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1005, allocations: 0 / 357.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1005, allocations: 4 kB / 357.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.1017, allocations: 1.228 MB / 359.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.923e-05/0.1017, allocations: 92.86 kB / 359.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.927e-05/0.1018, allocations: 71.88 kB / 359.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.509e-05/0.1019, allocations: 11.94 kB / 359.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.596e-05/0.1019, allocations: 11.98 kB / 359.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.881e-05/0.102, allocations: 19.98 kB / 359.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.229e-05/0.102, allocations: 83.22 kB / 359.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.102, allocations: 0 / 359.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003243/0.1024, allocations: 91.98 kB / 359.5 MB, free: 10.27 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005072/0.1029, allocations: 303.3 kB / 359.8 MB, free: 9.996 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.1045, allocations: 2.131 MB / 362 MB, free: 7.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1045, allocations: 0 / 362 MB, free: 7.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.106, allocations: 2.186 MB / 364.2 MB, free: 5.629 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001982/0.1062, allocations: 20 kB / 364.2 MB, free: 5.609 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000567/0.1068, allocations: 420.4 kB / 364.6 MB, free: 5.164 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002554/0.1071, allocations: 0.7167 MB / 365.3 MB, free: 4.422 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.322e-05/0.1071, allocations: 7.984 kB / 365.3 MB, free: 4.414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.337e-05/0.1071, allocations: 7.438 kB / 365.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1071, allocations: 0 / 365.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of Templates: time 0.006229/0.1133, allocations: 3.002 MB / 368.3 MB, free: 1.41 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