Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 77.88 kB / 21.42 MB, free: 3.051 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 167.4 kB / 24.82 MB, free: 9.266 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.041/1.041, allocations: 177.1 MB / 205.3 MB, free: 5.527 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.669e-05/1.884e-05, allocations: 2.312 kB / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001605/0.001624, allocations: 1.27 MB / 274.7 MB, free: 48 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007226/0.002347, allocations: 462.1 kB / 275.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.455e-05/0.002381, allocations: 0 / 275.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.591e-05/0.002417, allocations: 4 kB / 275.1 MB, free: 15.59 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0004772/0.002894, allocations: 75.66 kB / 275.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001437/0.003038, allocations: 71.61 kB / 275.3 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.572e-05/0.003114, allocations: 47.84 kB / 275.3 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.754e-05/0.003151, allocations: 0 / 275.3 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.658e-05/0.003198, allocations: 23.97 kB / 275.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.273e-05/0.00323, allocations: 23.91 kB / 275.3 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.242e-05/0.003243, allocations: 8 kB / 275.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002313/0.003474, allocations: 147.7 kB / 275.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.951e-05/0.003514, allocations: 35.92 kB / 275.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.299e-05/0.003547, allocations: 27.88 kB / 275.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002209/0.003768, allocations: 195.3 kB / 275.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.853e-06/0.003769, allocations: 0 / 275.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.00377, allocations: 3.938 kB / 275.8 MB, free: 14.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.306e-06/0.003773, allocations: 0 / 275.8 MB, free: 14.94 MB / 266.7 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.0004053/0.004179, allocations: 0.5537 MB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.004217, allocations: 12.03 kB / 276.3 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.004324, allocations: 20.84 kB / 276.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.582e-05/0.00441, allocations: 136.4 kB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.004421, allocations: 384 / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.004431, allocations: 8.375 kB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.004626, allocations: 259.8 kB / 276.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.004636, allocations: 192 / 276.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.295e-06/0.004644, allocations: 4.375 kB / 276.7 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.004649, allocations: 384 / 276.7 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.903e-05/0.004738, allocations: 167.2 kB / 276.9 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001124/0.004851, allocations: 128.8 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000124/0.004975, allocations: 217.5 kB / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.464e-05/0.005059, allocations: 174.8 kB / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.707e-06/0.005063, allocations: 0 / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000261/0.005324, allocations: 466.3 kB / 277.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of pre-optimization done (n=46): time 1.413e-06/0.005325, allocations: 0 / 277.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005246/0.00585, allocations: 0.7222 MB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.005911, allocations: 160.5 kB / 278.7 MB, free: 11.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.23e-05/0.005983, allocations: 157.9 kB / 278.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.005994, allocations: 25.7 kB / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.572e-05/0.00603, allocations: 135.9 kB / 279.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.133e-05/0.006081, allocations: 103.2 kB / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-05/0.006121, allocations: 51.33 kB / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.006237, allocations: 0.5 MB / 279.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.343e-05/0.006301, allocations: 127.8 kB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.724e-05/0.006378, allocations: 163.5 kB / 280 MB, free: 10.28 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/0.006534, allocations: 319 kB / 280.3 MB, free: 9.934 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.006537, allocations: 4 kB / 280.3 MB, free: 9.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000251/0.006788, allocations: 400.3 kB / 280.7 MB, free: 9.508 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.827e-05/0.006846, allocations: 103.3 kB / 280.8 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.00685, allocations: 0 / 280.8 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.006862, allocations: 4.078 kB / 280.8 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.683e-06/0.006863, allocations: 7.938 kB / 280.8 MB, free: 9.383 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-06/0.006867, allocations: 11.92 kB / 280.8 MB, free: 9.371 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.852e-05/0.006905, allocations: 23.78 kB / 280.9 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.006917, allocations: 8 kB / 280.9 MB, free: 9.34 MB / 266.7 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.0001562/0.007073, allocations: 310.4 kB / 281.2 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.212e-05/0.007115, allocations: 43.91 kB / 281.2 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.551e-05/0.007131, allocations: 5.656 kB / 281.2 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.007132, allocations: 0 / 281.2 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.007134, allocations: 0 / 281.2 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.007136, allocations: 0 / 281.2 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.106e-05/0.007227, allocations: 157 kB / 281.4 MB, free: 8.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.007228, allocations: 0 / 281.4 MB, free: 8.785 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.007229, allocations: 0 / 281.4 MB, free: 8.785 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.00723, allocations: 0 / 281.4 MB, free: 8.785 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.007244, allocations: 20 kB / 281.4 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.007246, allocations: 4 kB / 281.4 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.007248, allocations: 3.984 kB / 281.4 MB, free: 8.758 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005062/0.007754, allocations: 0.7458 MB / 282.1 MB, free: 7.961 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.67e-05/0.007771, allocations: 24.16 kB / 282.2 MB, free: 7.938 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.368e-05/0.007835, allocations: 55.95 kB / 282.2 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.996e-05/0.007864, allocations: 11.98 kB / 282.2 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.669e-05/0.007891, allocations: 11.98 kB / 282.2 MB, free: 7.859 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.007908, allocations: 19.98 kB / 282.3 MB, free: 7.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.121e-05/0.007939, allocations: 127.2 kB / 282.4 MB, free: 7.715 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.007939, allocations: 4.031 kB / 282.4 MB, free: 7.711 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002152/0.008154, allocations: 95.86 kB / 282.5 MB, free: 7.617 MB / 266.7 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.000454/0.008608, allocations: 307.7 kB / 282.8 MB, free: 7.352 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004128/0.009021, allocations: 0.6375 MB / 283.4 MB, free: 6.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.009023, allocations: 0 / 283.4 MB, free: 6.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002199/0.009243, allocations: 433.7 kB / 283.8 MB, free: 6.195 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001363/0.009379, allocations: 28.23 kB / 283.9 MB, free: 6.168 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003821/0.009761, allocations: 410.3 kB / 284.3 MB, free: 5.719 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.836e-05/0.009809, allocations: 80.27 kB / 284.3 MB, free: 5.617 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.416e-06/0.009818, allocations: 3.984 kB / 284.4 MB, free: 5.613 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.009956, allocations: 146.2 kB / 284.5 MB, free: 5.469 MB / 266.7 MB Notification: Performance of SimCode: time 7.22e-07/0.009957, allocations: 0 / 284.5 MB, free: 5.469 MB / 266.7 MB Notification: Performance of Templates: time 0.004623/0.01458, allocations: 3.409 MB / 287.9 MB, free: 2.102 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.616711077746004]