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.001017/0.001017, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.00109/0.00109, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.324/1.324, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001065/0.001065, allocations: 47.2 kB / 300.6 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08923/0.09031, allocations: 49.45 MB / 350.1 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002363/0.09272, allocations: 1.218 MB / 351.3 MB, free: 3.188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008792/0.09362, allocations: 471.8 kB / 351.7 MB, free: 2.727 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.796e-05/0.09367, allocations: 0 / 351.7 MB, free: 2.727 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.954e-05/0.0937, allocations: 0 / 351.7 MB, free: 2.727 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.0004547/0.09419, allocations: 71.73 kB / 351.8 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000162/0.09436, allocations: 67.75 kB / 351.9 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.331e-05/0.09447, allocations: 43.84 kB / 351.9 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.645e-05/0.09451, allocations: 4 kB / 351.9 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.062e-05/0.09455, allocations: 19.97 kB / 351.9 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.827e-05/0.09459, allocations: 23.91 kB / 352 MB, free: 2.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.09461, allocations: 8 kB / 352 MB, free: 2.492 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000246/0.09487, allocations: 115.8 kB / 352.1 MB, free: 2.379 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.313e-05/0.09492, allocations: 35.86 kB / 352.1 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.431e-05/0.09499, allocations: 51.66 kB / 352.2 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002371/0.09523, allocations: 179.4 kB / 352.3 MB, free: 2.117 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.09525, allocations: 0 / 352.3 MB, free: 2.117 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.09525, allocations: 0 / 352.3 MB, free: 2.117 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.09526, allocations: 0 / 352.3 MB, free: 2.117 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.0005276/0.09579, allocations: 0.5569 MB / 352.9 MB, free: 1.496 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.09584, allocations: 8.031 kB / 352.9 MB, free: 1.488 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.09601, allocations: 28.73 kB / 352.9 MB, free: 1.461 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001337/0.09615, allocations: 176.5 kB / 353.1 MB, free: 1.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.09617, allocations: 4.375 kB / 353.1 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.0962, allocations: 4.375 kB / 353.1 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.09649, allocations: 287.7 kB / 353.4 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.09651, allocations: 192 / 353.4 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.09653, allocations: 3.938 kB / 353.4 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.09654, allocations: 0 / 353.4 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001381/0.09668, allocations: 151.9 kB / 353.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001651/0.09685, allocations: 198.3 kB / 353.7 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003349/0.0972, allocations: 493.1 kB / 354.2 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003209/0.09753, allocations: 469.7 kB / 354.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.376e-06/0.09754, allocations: 0 / 354.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004162/0.09796, allocations: 484.9 kB / 355.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.465e-06/0.09798, allocations: 3.984 kB / 355.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007928/0.09877, allocations: 0.7231 MB / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.715e-05/0.09886, allocations: 152.5 kB / 356 MB, free: 14.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.715e-05/0.09895, allocations: 101.8 kB / 356.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.09897, allocations: 29.7 kB / 356.2 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.668e-05/0.09902, allocations: 89.2 kB / 356.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.927e-05/0.09908, allocations: 86.75 kB / 356.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-05/0.09913, allocations: 37.7 kB / 356.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.09925, allocations: 334.8 kB / 356.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.919e-05/0.09933, allocations: 76.36 kB / 356.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.946e-05/0.09943, allocations: 110.2 kB / 356.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003239/0.09976, allocations: 417.4 kB / 357.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.09977, allocations: 7.984 kB / 357.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003607/0.1001, allocations: 344.7 kB / 357.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.241e-05/0.1002, allocations: 115.3 kB / 357.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1002, allocations: 0 / 357.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1003, allocations: 0 / 357.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.1003, allocations: 3.938 kB / 357.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.1003, allocations: 0 / 357.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.364e-05/0.1003, allocations: 23.75 kB / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.1004, allocations: 8 kB / 357.8 MB, free: 12.29 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.0002294/0.1006, allocations: 299.7 kB / 358.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.056e-05/0.1007, allocations: 31.75 kB / 358.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.169e-05/0.1007, allocations: 5.562 kB / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1007, allocations: 4 kB / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.1007, allocations: 0 / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.1007, allocations: 4 kB / 358.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001615/0.1009, allocations: 229.3 kB / 358.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1009, allocations: 3.984 kB / 358.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.52e-07/0.1009, allocations: 3.938 kB / 358.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.1009, allocations: 7.938 kB / 358.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.1009, allocations: 12 kB / 358.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1009, allocations: 7.938 kB / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1009, allocations: 0 / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.1021, allocations: 1.228 MB / 359.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.332e-05/0.1021, allocations: 92.86 kB / 359.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.1022, allocations: 71.88 kB / 359.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.494e-05/0.1023, allocations: 8 kB / 359.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/0.1023, allocations: 11.98 kB / 359.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.1024, allocations: 16 kB / 359.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.518e-05/0.1024, allocations: 91.62 kB / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1024, allocations: 3.938 kB / 359.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003403/0.1028, allocations: 84 kB / 360 MB, free: 9.973 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.0005182/0.1033, allocations: 305.5 kB / 360.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.1048, allocations: 2.127 MB / 362.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.1049, allocations: 4 kB / 362.4 MB, free: 7.543 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001408/0.1063, allocations: 2.182 MB / 364.6 MB, free: 5.336 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001971/0.1065, allocations: 20 kB / 364.6 MB, free: 5.316 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005649/0.107, allocations: 392.2 kB / 365 MB, free: 4.898 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.1073, allocations: 0.7245 MB / 365.7 MB, free: 4.148 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.173e-05/0.1073, allocations: 3.984 kB / 365.7 MB, free: 4.145 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.231e-05/0.1074, allocations: 7.438 kB / 365.7 MB, free: 4.137 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1074, allocations: 0 / 365.7 MB, free: 4.137 MB / 302.1 MB Notification: Performance of Templates: time 0.005939/0.1133, allocations: 3.004 MB / 368.7 MB, free: 1.133 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