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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001876/0.001876, allocations: 185.8 kB / 24.45 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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=5041,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=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 47.92 kB / 371.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2854, allocations: 52.17 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002524/0.2879, allocations: 1.234 MB / 425 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.289, allocations: 445.1 kB / 425.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.99e-05/0.2891, allocations: 0 / 425.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.191e-05/0.2891, allocations: 7.922 kB / 425.5 MB, free: 12.78 MB / 334.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.0005331/0.2896, allocations: 83.66 kB / 425.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001749/0.2898, allocations: 67.75 kB / 425.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000121/0.2899, allocations: 43.95 kB / 425.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.379e-05/0.29, allocations: 4 kB / 425.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.646e-05/0.29, allocations: 15.92 kB / 425.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.083e-05/0.2901, allocations: 27.84 kB / 425.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.537e-05/0.2901, allocations: 4 kB / 425.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003248/0.2904, allocations: 147.7 kB / 425.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.926e-05/0.2905, allocations: 39.84 kB / 425.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.179e-05/0.2906, allocations: 39.75 kB / 426 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003113/0.2909, allocations: 182 kB / 426.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.473e-06/0.2909, allocations: 0 / 426.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2909, allocations: 4 kB / 426.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.2909, allocations: 0 / 426.1 MB, free: 12.14 MB / 334.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.0006992/0.2916, allocations: 491.8 kB / 426.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.2916, allocations: 8.031 kB / 426.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.2918, allocations: 20.84 kB / 426.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.2919, allocations: 122.4 kB / 426.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.292, allocations: 4.375 kB / 426.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.557e-05/0.292, allocations: 4.375 kB / 426.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004736/0.2924, allocations: 395.1 kB / 427.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.2925, allocations: 192 / 427.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.2925, allocations: 7.938 kB / 427.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.2925, allocations: 0 / 427.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003048/0.2928, allocations: 263.3 kB / 427.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001812/0.293, allocations: 130 kB / 427.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/0.2933, allocations: 292.5 kB / 427.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003316/0.2936, allocations: 277 kB / 428.1 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.161e-05/0.2936, allocations: 0 / 428.1 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007363/0.2944, allocations: 0.582 MB / 428.7 MB, free: 9.344 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 9.62e-07/0.2944, allocations: 0 / 428.7 MB, free: 9.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.001244/0.2956, allocations: 0.9838 MB / 429.7 MB, free: 8.316 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.2957, allocations: 152.5 kB / 429.8 MB, free: 8.137 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.2959, allocations: 109.8 kB / 429.9 MB, free: 8.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.2959, allocations: 25.7 kB / 430 MB, free: 7.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.677e-05/0.2959, allocations: 85.14 kB / 430 MB, free: 7.902 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.528e-05/0.296, allocations: 95.16 kB / 430.1 MB, free: 7.809 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.013e-05/0.2961, allocations: 45.69 kB / 430.2 MB, free: 7.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.2963, allocations: 326.8 kB / 430.5 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002006/0.2965, allocations: 199.7 kB / 430.7 MB, free: 7.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002527/0.2967, allocations: 229.9 kB / 430.9 MB, free: 6.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005574/0.2973, allocations: 473.3 kB / 431.4 MB, free: 6.488 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2973, allocations: 0 / 431.4 MB, free: 6.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005506/0.2978, allocations: 492.2 kB / 431.9 MB, free: 5.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001184/0.2979, allocations: 107.3 kB / 432 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.2979, allocations: 7.984 kB / 432 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.298, allocations: 7.938 kB / 432 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.945e-06/0.298, allocations: 3.938 kB / 432 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.298, allocations: 0 / 432 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.89e-05/0.298, allocations: 23.84 kB / 432 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.21e-05/0.2981, allocations: 8.094 kB / 432 MB, free: 5.809 MB / 334.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.0003026/0.2984, allocations: 279.7 kB / 432.3 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.249e-05/0.2984, allocations: 27.91 kB / 432.3 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.058e-05/0.2984, allocations: 13.59 kB / 432.3 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.2985, allocations: 0 / 432.3 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.2985, allocations: 0 / 432.3 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.2985, allocations: 0 / 432.3 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001646/0.2986, allocations: 153.1 kB / 432.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2986, allocations: 0 / 432.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.11e-07/0.2986, allocations: 0 / 432.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.2986, allocations: 7.984 kB / 432.5 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.802e-05/0.2987, allocations: 12 kB / 432.5 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.2987, allocations: 7.938 kB / 432.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2987, allocations: 0 / 432.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001167/0.2998, allocations: 0.9273 MB / 433.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.117e-05/0.2999, allocations: 19.84 kB / 433.4 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.3, allocations: 67.94 kB / 433.5 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.791e-05/0.3, allocations: 11.94 kB / 433.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.948e-05/0.3001, allocations: 15.97 kB / 433.5 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.659e-05/0.3001, allocations: 16 kB / 433.6 MB, free: 4.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.844e-05/0.3002, allocations: 83.27 kB / 433.6 MB, free: 4.078 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3002, allocations: 0 / 433.6 MB, free: 4.078 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003766/0.3005, allocations: 91.88 kB / 433.7 MB, free: 3.988 MB / 334.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.0006845/0.3012, allocations: 306.6 kB / 434 MB, free: 3.723 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009933/0.3022, allocations: 0.868 MB / 434.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3022, allocations: 0 / 434.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000542/0.3028, allocations: 0.5293 MB / 435.4 MB, free: 2.238 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001995/0.303, allocations: 23.98 kB / 435.4 MB, free: 2.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008782/0.3038, allocations: 0.5248 MB / 436 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001326/0.304, allocations: 118 kB / 436.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.304, allocations: 7.438 kB / 436.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.304, allocations: 0 / 436.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of Templates: time 0.005685/0.3097, allocations: 2.882 MB / 439 MB, free: 14.62 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.836845714598894]