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.0009181/0.0009181, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.001144/0.001144, allocations: 170.2 kB / 25.61 MB, free: 8.539 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 0.9908/0.9908, allocations: 177.1 MB / 206 MB, free: 4.496 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 1.482e-06/1.482e-06, allocations: 0 / 274.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.212e-05/2.36e-05, allocations: 5.547 kB / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002611/0.002635, allocations: 1.262 MB / 275.4 MB, free: 3.176 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008451/0.00348, allocations: 458.2 kB / 275.9 MB, free: 2.727 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.284e-05/0.003513, allocations: 0.5 kB / 275.9 MB, free: 2.727 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.984e-05/0.003553, allocations: 0.9375 kB / 275.9 MB, free: 2.727 MB / 250.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.0004878/0.00404, allocations: 91.58 kB / 276 MB, free: 2.637 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001381/0.004179, allocations: 60.31 kB / 276 MB, free: 2.578 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.303e-05/0.004272, allocations: 47.89 kB / 276.1 MB, free: 2.531 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.712e-05/0.004309, allocations: 0.625 kB / 276.1 MB, free: 2.531 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.662e-05/0.004355, allocations: 33.73 kB / 276.1 MB, free: 2.5 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.194e-05/0.004397, allocations: 15.98 kB / 276.1 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.231e-05/0.00441, allocations: 3.938 kB / 276.1 MB, free: 2.48 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002638/0.004673, allocations: 151.7 kB / 276.3 MB, free: 2.332 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.614e-05/0.004729, allocations: 35.88 kB / 276.3 MB, free: 2.297 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.041e-05/0.00477, allocations: 33.8 kB / 276.4 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002732/0.005043, allocations: 191.3 kB / 276.5 MB, free: 2.078 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.005045, allocations: 0 / 276.5 MB, free: 2.078 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.001e-06/0.005046, allocations: 0 / 276.5 MB, free: 2.078 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.00505, allocations: 0 / 276.5 MB, free: 2.078 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.0004538/0.005504, allocations: 0.5543 MB / 277.1 MB, free: 1.473 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.005535, allocations: 12.03 kB / 277.1 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.005656, allocations: 28.83 kB / 277.1 MB, free: 1.434 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.805e-05/0.005754, allocations: 132.4 kB / 277.3 MB, free: 1.277 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.005767, allocations: 4.375 kB / 277.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.005778, allocations: 4.375 kB / 277.3 MB, free: 1.27 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000237/0.006015, allocations: 267.8 kB / 277.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.006022, allocations: 192 / 277.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.006033, allocations: 4.375 kB / 277.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.006039, allocations: 384 / 277.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000114/0.006153, allocations: 155.3 kB / 277.7 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001232/0.006276, allocations: 128.9 kB / 277.8 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.006428, allocations: 209.5 kB / 278 MB, free: 424 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.006546, allocations: 178.8 kB / 278.2 MB, free: 224 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.468e-06/0.00655, allocations: 0 / 278.2 MB, free: 224 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003541/0.006904, allocations: 466.2 kB / 278.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=46): time 1.343e-06/0.006906, allocations: 0 / 278.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=46): time 0.0007259/0.007631, allocations: 0.7272 MB / 279.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.941e-05/0.007701, allocations: 156.4 kB / 279.5 MB, free: 14.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.263e-05/0.007783, allocations: 165.9 kB / 279.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.007797, allocations: 25.7 kB / 279.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.413e-05/0.007841, allocations: 131.9 kB / 279.8 MB, free: 14.4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.581e-05/0.007906, allocations: 103.2 kB / 279.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.577e-05/0.007962, allocations: 51.27 kB / 280 MB, free: 14.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.008102, allocations: 0.5078 MB / 280.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.31e-05/0.008185, allocations: 123.8 kB / 280.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/0.008291, allocations: 163.5 kB / 280.8 MB, free: 13.41 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002028/0.008494, allocations: 314 kB / 281.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.008496, allocations: 7.938 kB / 281.1 MB, free: 13.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003272/0.008823, allocations: 400.3 kB / 281.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.141e-05/0.008905, allocations: 107.3 kB / 281.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.00891, allocations: 4.094 kB / 281.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.878e-06/0.00892, allocations: 0 / 281.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.533e-06/0.008921, allocations: 0 / 281.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.605e-06/0.008924, allocations: 0 / 281.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.022e-05/0.008974, allocations: 27.78 kB / 281.6 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.00899, allocations: 11.94 kB / 281.6 MB, free: 12.48 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.0001967/0.009186, allocations: 306.5 kB / 281.9 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.983e-05/0.009246, allocations: 39.91 kB / 282 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.495e-05/0.009261, allocations: 13.64 kB / 282 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.009263, allocations: 0 / 282 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.009264, allocations: 0 / 282 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.009267, allocations: 0 / 282 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/0.009392, allocations: 157 kB / 282.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.009394, allocations: 0 / 282.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-07/0.009395, allocations: 4 kB / 282.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.009397, allocations: 0 / 282.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.39e-05/0.00942, allocations: 23.98 kB / 282.2 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.009422, allocations: 0 / 282.2 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.009423, allocations: 0 / 282.2 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006776/0.0101, allocations: 0.7497 MB / 282.9 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.992e-05/0.01012, allocations: 23.78 kB / 282.9 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.404e-05/0.0102, allocations: 59.94 kB / 283 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.242e-05/0.01025, allocations: 8 kB / 283 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.096e-05/0.01028, allocations: 8 kB / 283 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.0103, allocations: 19.98 kB / 283 MB, free: 10.98 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.165e-05/0.01034, allocations: 131.2 kB / 283.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01034, allocations: 0 / 283.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003033/0.01065, allocations: 87.88 kB / 283.3 MB, free: 10.77 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.0005188/0.01116, allocations: 319.6 kB / 283.6 MB, free: 10.49 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005158/0.01168, allocations: 0.6375 MB / 284.2 MB, free: 9.801 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.01168, allocations: 0 / 284.2 MB, free: 9.801 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002963/0.01198, allocations: 429.9 kB / 284.6 MB, free: 9.34 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000186/0.01216, allocations: 40 kB / 284.7 MB, free: 9.301 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004832/0.01265, allocations: 394.5 kB / 285 MB, free: 8.867 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.584e-05/0.0127, allocations: 84.17 kB / 285.1 MB, free: 8.762 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.845e-06/0.01271, allocations: 0 / 285.1 MB, free: 8.762 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001772/0.01289, allocations: 142.2 kB / 285.3 MB, free: 8.621 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01289, allocations: 3.938 kB / 285.3 MB, free: 8.617 MB / 266.7 MB Notification: Performance of Templates: time 0.00603/0.01892, allocations: 3.461 MB / 288.7 MB, free: 5.176 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.7812461107969284]