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.001395/0.001395, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001433/0.001433, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.385/1.385, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001106, allocations: 38.94 kB / 301.3 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09241/0.09353, allocations: 49.45 MB / 350.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002498/0.09607, allocations: 1.228 MB / 351.9 MB, free: 3.184 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009623/0.09706, allocations: 459.8 kB / 352.4 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.295e-05/0.09711, allocations: 7.938 kB / 352.4 MB, free: 2.727 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.877e-05/0.09717, allocations: 0 / 352.4 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.0004819/0.09765, allocations: 67.73 kB / 352.5 MB, free: 2.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001898/0.09786, allocations: 75.73 kB / 352.5 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000109/0.09798, allocations: 43.86 kB / 352.6 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.765e-05/0.09803, allocations: 3.984 kB / 352.6 MB, free: 2.539 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.674e-05/0.09807, allocations: 19.98 kB / 352.6 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.943e-05/0.09812, allocations: 23.91 kB / 352.6 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.09814, allocations: 0 / 352.6 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002662/0.09841, allocations: 119.8 kB / 352.8 MB, free: 2.379 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.499e-05/0.09847, allocations: 39.84 kB / 352.8 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.621e-05/0.09853, allocations: 43.67 kB / 352.8 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002739/0.09881, allocations: 175.4 kB / 353 MB, free: 2.125 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.09883, allocations: 4 kB / 353 MB, free: 2.121 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.09884, allocations: 4 kB / 353 MB, free: 2.117 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.09885, allocations: 0 / 353 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.0005926/0.09945, allocations: 0.5568 MB / 353.6 MB, free: 1.496 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.09949, allocations: 12.03 kB / 353.6 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/0.09965, allocations: 24.69 kB / 353.6 MB, free: 1.461 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.0998, allocations: 180.5 kB / 353.8 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.09982, allocations: 4.312 kB / 353.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.09984, allocations: 4.375 kB / 353.8 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003126/0.1002, allocations: 279.8 kB / 354.1 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1002, allocations: 4.125 kB / 354.1 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.74e-05/0.1002, allocations: 7.938 kB / 354.1 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.1002, allocations: 3.984 kB / 354.1 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001393/0.1004, allocations: 140 kB / 354.2 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001921/0.1006, allocations: 206.2 kB / 354.4 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003929/0.101, allocations: 493.2 kB / 354.9 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00034/0.1013, allocations: 469.7 kB / 355.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.337e-06/0.1013, allocations: 0 / 355.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004768/0.1018, allocations: 480.8 kB / 355.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.322e-06/0.1018, allocations: 0 / 355.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008289/0.1027, allocations: 0.7231 MB / 356.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.988e-05/0.1028, allocations: 156.5 kB / 356.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.582e-05/0.1029, allocations: 105.8 kB / 356.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.1029, allocations: 25.7 kB / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.337e-05/0.1029, allocations: 81.14 kB / 356.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.795e-05/0.103, allocations: 82.81 kB / 357 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.2e-05/0.1031, allocations: 45.69 kB / 357 MB, free: 13.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.1033, allocations: 330.9 kB / 357.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.832e-05/0.1034, allocations: 84.34 kB / 357.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.1035, allocations: 114.2 kB / 357.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/0.1038, allocations: 417.3 kB / 358 MB, free: 12.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1039, allocations: 0 / 358 MB, free: 12.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003671/0.1042, allocations: 348.7 kB / 358.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.1043, allocations: 111.3 kB / 358.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1044, allocations: 0 / 358.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.1044, allocations: 4.094 kB / 358.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.028e-06/0.1044, allocations: 0 / 358.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.1044, allocations: 7.938 kB / 358.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.292e-05/0.1045, allocations: 23.73 kB / 358.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.1045, allocations: 8 kB / 358.5 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.0002837/0.1048, allocations: 299.7 kB / 358.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.347e-05/0.1048, allocations: 27.75 kB / 358.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.547e-05/0.1049, allocations: 9.562 kB / 358.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1049, allocations: 4 kB / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1049, allocations: 0 / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.1049, allocations: 3.984 kB / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001974/0.1051, allocations: 225.3 kB / 359 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.1051, allocations: 7.938 kB / 359 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.1051, allocations: 4 kB / 359 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.1051, allocations: 3.938 kB / 359 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.639e-05/0.1052, allocations: 19.98 kB / 359 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.1052, allocations: 0 / 359 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1052, allocations: 0 / 359 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.1063, allocations: 1.221 MB / 360.3 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.501e-05/0.1064, allocations: 96.84 kB / 360.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.526e-05/0.1065, allocations: 71.92 kB / 360.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.865e-05/0.1066, allocations: 16 kB / 360.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.981e-05/0.1066, allocations: 15.95 kB / 360.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.73e-05/0.1067, allocations: 19.98 kB / 360.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.615e-05/0.1067, allocations: 79.28 kB / 360.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1067, allocations: 0 / 360.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003531/0.1071, allocations: 87.98 kB / 360.6 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.0005655/0.1076, allocations: 308.5 kB / 360.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.1093, allocations: 2.138 MB / 363.1 MB, free: 7.531 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1093, allocations: 0 / 363.1 MB, free: 7.531 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.1108, allocations: 2.178 MB / 365.3 MB, free: 5.328 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002139/0.111, allocations: 24 kB / 365.3 MB, free: 5.305 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006123/0.1116, allocations: 418.1 kB / 365.7 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.1119, allocations: 0.7284 MB / 366.4 MB, free: 4.102 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.467e-05/0.112, allocations: 7.438 kB / 366.4 MB, free: 4.094 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.112, allocations: 0 / 366.4 MB, free: 4.094 MB / 302.1 MB Notification: Performance of Templates: time 0.005348/0.1173, allocations: 2.863 MB / 369.3 MB, free: 1.23 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/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