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.001312/0.001312, allocations: 84.06 kB / 21.19 MB, free: 3.379 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.001328/0.001328, allocations: 145.1 kB / 24.54 MB, free: 28 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 0.9823/0.9823, allocations: 173.4 MB / 201.2 MB, free: 9.293 MB / 186.7 MB " [Timeout remaining time 179] 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.132e-06/1.132e-06, allocations: 0 / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.645e-05/1.758e-05, allocations: 10.25 kB / 268 MB, free: 6.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001546/0.001563, allocations: 1.257 MB / 269.2 MB, free: 5.133 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006906/0.002254, allocations: 462.2 kB / 269.7 MB, free: 4.68 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.07e-05/0.002284, allocations: 4 kB / 269.7 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.944e-05/0.002324, allocations: 3.938 kB / 269.7 MB, free: 4.672 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.0004593/0.002783, allocations: 91.56 kB / 269.8 MB, free: 4.582 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001221/0.002905, allocations: 59.7 kB / 269.9 MB, free: 4.523 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.403e-05/0.002989, allocations: 43.89 kB / 269.9 MB, free: 4.48 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.204e-05/0.003021, allocations: 4 kB / 269.9 MB, free: 4.477 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.132e-05/0.003063, allocations: 27.91 kB / 269.9 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.164e-05/0.003094, allocations: 19.97 kB / 269.9 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.003105, allocations: 0 / 269.9 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002146/0.00332, allocations: 151.7 kB / 270.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.823e-05/0.003368, allocations: 43.86 kB / 270.1 MB, free: 4.238 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.771e-05/0.003406, allocations: 23.92 kB / 270.2 MB, free: 4.215 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000217/0.003623, allocations: 195.3 kB / 270.4 MB, free: 4.023 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.003625, allocations: 0 / 270.4 MB, free: 4.023 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.82e-07/0.003626, allocations: 0 / 270.4 MB, free: 4.023 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.00363, allocations: 0 / 270.4 MB, free: 4.023 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.0004206/0.004051, allocations: 0.5537 MB / 270.9 MB, free: 3.418 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.004086, allocations: 8.922 kB / 270.9 MB, free: 3.41 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.004205, allocations: 32.77 kB / 270.9 MB, free: 3.379 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.126e-05/0.004296, allocations: 124.5 kB / 271.1 MB, free: 3.23 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.004307, allocations: 4.375 kB / 271.1 MB, free: 3.227 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.004319, allocations: 8.375 kB / 271.1 MB, free: 3.219 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004553/0.004774, allocations: 279.9 kB / 271.4 MB, free: 2.918 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.00478, allocations: 192 / 271.4 MB, free: 2.918 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.848e-06/0.00479, allocations: 384 / 271.4 MB, free: 2.918 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.004796, allocations: 384 / 271.4 MB, free: 2.918 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.438e-05/0.00489, allocations: 179.2 kB / 271.5 MB, free: 2.73 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001079/0.004998, allocations: 147.9 kB / 271.7 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000128/0.005126, allocations: 221.6 kB / 271.9 MB, free: 2.293 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.502e-05/0.005221, allocations: 194.7 kB / 272.1 MB, free: 2.082 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.859e-06/0.005226, allocations: 4 kB / 272.1 MB, free: 2.078 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002575/0.005484, allocations: 486.4 kB / 272.6 MB, free: 1.543 MB / 250.7 MB Notification: Performance of pre-optimization done (n=46): time 2.084e-06/0.005486, allocations: 3.984 kB / 272.6 MB, free: 1.539 MB / 250.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005424/0.006028, allocations: 0.7379 MB / 273.3 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.006083, allocations: 160.5 kB / 273.5 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.275e-05/0.006156, allocations: 165.9 kB / 273.6 MB, free: 400 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.006166, allocations: 29.69 kB / 273.6 MB, free: 364 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.506e-05/0.006201, allocations: 127.9 kB / 273.8 MB, free: 228 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.936e-05/0.006251, allocations: 103.2 kB / 273.9 MB, free: 124 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.802e-05/0.006289, allocations: 43.36 kB / 273.9 MB, free: 72 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.006404, allocations: 0.5118 MB / 274.4 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.793e-05/0.006472, allocations: 131.8 kB / 274.6 MB, free: 15.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.816e-05/0.00656, allocations: 171.5 kB / 274.7 MB, free: 15.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/0.006733, allocations: 335.1 kB / 275.1 MB, free: 14.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.006735, allocations: 0 / 275.1 MB, free: 14.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002501/0.006985, allocations: 420.2 kB / 275.5 MB, free: 14.42 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.718e-05/0.007042, allocations: 107.3 kB / 275.6 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.007046, allocations: 0 / 275.6 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.007057, allocations: 0 / 275.6 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.186e-06/0.00706, allocations: 0 / 275.6 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.007065, allocations: 3.938 kB / 275.6 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.499e-05/0.0071, allocations: 27.94 kB / 275.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.007112, allocations: 8 kB / 275.6 MB, free: 14.26 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.0001519/0.007264, allocations: 302.5 kB / 275.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.029e-05/0.007304, allocations: 43.91 kB / 275.9 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.222e-05/0.007316, allocations: 13.59 kB / 276 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.007319, allocations: 3.984 kB / 276 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.007322, allocations: 0 / 276 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.007325, allocations: 3.938 kB / 276 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.079e-05/0.007416, allocations: 172.4 kB / 276.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.007417, allocations: 0 / 276.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.62e-07/0.007418, allocations: 0 / 276.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.00742, allocations: 0 / 276.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/0.007447, allocations: 19.98 kB / 276.2 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.007448, allocations: 0 / 276.2 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.007449, allocations: 4 kB / 276.2 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005478/0.007997, allocations: 0.7811 MB / 276.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.307e-05/0.00801, allocations: 15.84 kB / 277 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.333e-05/0.008073, allocations: 59.94 kB / 277 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.896e-05/0.008102, allocations: 8 kB / 277 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.985e-05/0.008132, allocations: 15.92 kB / 277 MB, free: 12.72 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.008149, allocations: 23.92 kB / 277.1 MB, free: 12.7 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.212e-05/0.008181, allocations: 123.5 kB / 277.2 MB, free: 12.58 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008181, allocations: 0 / 277.2 MB, free: 12.58 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003179/0.008499, allocations: 91.86 kB / 277.3 MB, free: 12.49 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.0005083/0.009008, allocations: 326.3 kB / 277.6 MB, free: 12.2 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008107/0.009818, allocations: 0.6531 MB / 278.2 MB, free: 11.49 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.00982, allocations: 4 kB / 278.2 MB, free: 11.49 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003086/0.01013, allocations: 457.7 kB / 278.7 MB, free: 11 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001872/0.01032, allocations: 25.72 kB / 278.7 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004679/0.01078, allocations: 418.5 kB / 279.1 MB, free: 10.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.712e-05/0.01083, allocations: 80.27 kB / 279.2 MB, free: 10.42 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.713e-06/0.01084, allocations: 0 / 279.2 MB, free: 10.42 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.414e-05/0.01085, allocations: 12.5 kB / 279.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of SimCode: time 4.7e-07/0.01085, allocations: 0 / 279.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of Templates: time 0.005573/0.01643, allocations: 3.386 MB / 282.6 MB, free: 7.035 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","",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.680315679870546]