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.002542/0.002542, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 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.001874/0.001874, allocations: 149.1 kB / 24.26 MB, free: 172 kB / 18.57 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.504/1.504, allocations: 173.3 MB / 200.8 MB, free: 9.332 MB / 186.7 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 1.463e-06/1.463e-06, allocations: 0 / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.822e-05/2.969e-05, allocations: 6.25 kB / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002326/0.002355, allocations: 1.226 MB / 268.5 MB, free: 5.516 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.003438, allocations: 462.2 kB / 269 MB, free: 5.062 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.899e-05/0.003467, allocations: 0 / 269 MB, free: 5.062 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.564e-05/0.003513, allocations: 3.938 kB / 269 MB, free: 5.059 MB / 250.7 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.0004946/0.004008, allocations: 83.7 kB / 269.1 MB, free: 4.977 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001603/0.004168, allocations: 67.62 kB / 269.1 MB, free: 4.91 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.004269, allocations: 47.83 kB / 269.2 MB, free: 4.863 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.116e-05/0.0043, allocations: 0 / 269.2 MB, free: 4.863 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.864e-05/0.004359, allocations: 23.97 kB / 269.2 MB, free: 4.84 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.73e-05/0.004406, allocations: 23.91 kB / 269.2 MB, free: 4.816 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.004423, allocations: 4 kB / 269.2 MB, free: 4.812 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003435/0.004766, allocations: 151.6 kB / 269.4 MB, free: 4.664 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.459e-05/0.004821, allocations: 31.94 kB / 269.4 MB, free: 4.633 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.548e-05/0.004876, allocations: 31.86 kB / 269.5 MB, free: 4.602 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003259/0.005202, allocations: 195.3 kB / 269.6 MB, free: 4.41 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.005205, allocations: 0 / 269.6 MB, free: 4.41 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.005206, allocations: 0 / 269.6 MB, free: 4.41 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.00521, allocations: 0 / 269.6 MB, free: 4.41 MB / 250.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.0007/0.00591, allocations: 0.5573 MB / 270.2 MB, free: 3.801 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.259e-05/0.006003, allocations: 8.922 kB / 270.2 MB, free: 3.793 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001557/0.006158, allocations: 28.84 kB / 270.2 MB, free: 3.766 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.006306, allocations: 124.5 kB / 270.4 MB, free: 3.617 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.006329, allocations: 12.31 kB / 270.4 MB, free: 3.605 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.006343, allocations: 4.375 kB / 270.4 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003506/0.006694, allocations: 279.9 kB / 270.7 MB, free: 3.301 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.006702, allocations: 192 / 270.7 MB, free: 3.301 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.006717, allocations: 4.375 kB / 270.7 MB, free: 3.297 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.006721, allocations: 384 / 270.7 MB, free: 3.297 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001907/0.006912, allocations: 171.3 kB / 270.8 MB, free: 3.117 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001874/0.007099, allocations: 151.9 kB / 271 MB, free: 2.93 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.007381, allocations: 249.6 kB / 271.2 MB, free: 2.648 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000214/0.007595, allocations: 214.7 kB / 271.4 MB, free: 2.418 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.191e-05/0.007607, allocations: 4 kB / 271.4 MB, free: 2.414 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006219/0.008229, allocations: 474.3 kB / 271.9 MB, free: 1.891 MB / 250.7 MB Notification: Performance of pre-optimization done (n=46): time 8.31e-07/0.00823, allocations: 4 kB / 271.9 MB, free: 1.887 MB / 250.7 MB Notification: Performance of matching and sorting (n=46): time 0.0009927/0.009222, allocations: 0.7456 MB / 272.6 MB, free: 1.098 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.009343, allocations: 156.5 kB / 272.8 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.009488, allocations: 169.9 kB / 273 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.009509, allocations: 25.7 kB / 273 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.854e-05/0.009587, allocations: 131.9 kB / 273.1 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.009692, allocations: 95.22 kB / 273.2 MB, free: 480 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.166e-05/0.009764, allocations: 51.34 kB / 273.3 MB, free: 420 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000289/0.01005, allocations: 0.5001 MB / 273.8 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.0102, allocations: 135.8 kB / 273.9 MB, free: 15.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.01037, allocations: 171.6 kB / 274.1 MB, free: 15.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000353/0.01072, allocations: 335 kB / 274.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.01072, allocations: 0 / 274.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004722/0.0112, allocations: 420.2 kB / 274.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.01131, allocations: 107.3 kB / 274.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.01131, allocations: 0 / 274.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.01133, allocations: 0 / 274.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.01133, allocations: 0 / 274.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.01134, allocations: 7.938 kB / 274.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.562e-05/0.01139, allocations: 19.84 kB / 274.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.084e-05/0.01142, allocations: 8 kB / 274.9 MB, free: 14.61 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.0002966/0.01172, allocations: 314.5 kB / 275.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.066e-05/0.0118, allocations: 43.91 kB / 275.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.4e-05/0.01181, allocations: 5.656 kB / 275.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.01181, allocations: 4.328 kB / 275.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.01182, allocations: 0 / 275.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.607e-06/0.01183, allocations: 7.938 kB / 275.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003965/0.01222, allocations: 160.4 kB / 275.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.01223, allocations: 3.984 kB / 275.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.01223, allocations: 0 / 275.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.01223, allocations: 4 kB / 275.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.408e-05/0.01226, allocations: 19.98 kB / 275.5 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.01227, allocations: 3.938 kB / 275.5 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.01227, allocations: 0 / 275.5 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009973/0.01326, allocations: 0.7695 MB / 276.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.215e-05/0.01329, allocations: 23.86 kB / 276.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.0134, allocations: 67.94 kB / 276.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.116e-05/0.01346, allocations: 8 kB / 276.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.0135, allocations: 8 kB / 276.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.214e-05/0.01353, allocations: 19.92 kB / 276.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.031e-05/0.01361, allocations: 127.2 kB / 276.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01361, allocations: 0 / 276.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003292/0.01394, allocations: 91.86 kB / 276.6 MB, free: 12.84 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.000848/0.01479, allocations: 324.4 kB / 276.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008548/0.01565, allocations: 0.7352 MB / 277.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.01565, allocations: 0 / 277.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005999/0.01625, allocations: 0.5602 MB / 278.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002173/0.01646, allocations: 33.55 kB / 278.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006594/0.01712, allocations: 410.2 kB / 278.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.01724, allocations: 114.3 kB / 278.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.145e-06/0.01725, allocations: 0 / 278.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.042e-05/0.01727, allocations: 12.5 kB / 278.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01727, allocations: 0 / 278.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of Templates: time 0.008123/0.02539, allocations: 3.163 MB / 281.9 MB, free: 7.395 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 240] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.425365259987302]