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.0009147/0.0009147, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.0008508/0.0008508, allocations: 145.5 kB / 24.89 MB, free: 8.727 MB / 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.901/0.901, allocations: 173.4 MB / 201.5 MB, free: 8.246 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.653e-06/1.653e-06, allocations: 0 / 268.5 MB, free: 9.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.573e-05/2.738e-05, allocations: 5.125 kB / 268.5 MB, free: 9.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.005261/0.005288, allocations: 1.26 MB / 269.7 MB, free: 8.574 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008366/0.006125, allocations: 470.1 kB / 270.2 MB, free: 8.113 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.983e-05/0.006155, allocations: 0 / 270.2 MB, free: 8.113 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.912e-05/0.006194, allocations: 4.781 kB / 270.2 MB, free: 8.109 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.0004547/0.006649, allocations: 75.66 kB / 270.3 MB, free: 8.035 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001384/0.006787, allocations: 76.92 kB / 270.3 MB, free: 7.961 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.994e-05/0.006877, allocations: 39.91 kB / 270.4 MB, free: 7.922 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.827e-05/0.006915, allocations: 4 kB / 270.4 MB, free: 7.918 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.034e-05/0.006966, allocations: 28.89 kB / 270.4 MB, free: 7.891 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.854e-05/0.007004, allocations: 15.97 kB / 270.4 MB, free: 7.875 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.377e-05/0.007018, allocations: 4 kB / 270.4 MB, free: 7.871 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002698/0.007288, allocations: 152.4 kB / 270.6 MB, free: 7.723 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.5e-05/0.007333, allocations: 31.88 kB / 270.6 MB, free: 7.691 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.154e-05/0.007374, allocations: 32.61 kB / 270.6 MB, free: 7.66 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002472/0.007622, allocations: 200 kB / 270.8 MB, free: 7.465 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.007624, allocations: 0 / 270.8 MB, free: 7.465 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.007625, allocations: 2.969 kB / 270.8 MB, free: 7.465 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.007628, allocations: 0 / 270.8 MB, free: 7.465 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.003969/0.0116, allocations: 442.1 kB / 271.3 MB, free: 6.992 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.01163, allocations: 12.03 kB / 271.3 MB, free: 6.98 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00029/0.01192, allocations: 20.91 kB / 271.3 MB, free: 6.961 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.01217, allocations: 117.7 kB / 271.4 MB, free: 6.82 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.01218, allocations: 4.312 kB / 271.4 MB, free: 6.816 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.0122, allocations: 12.38 kB / 271.4 MB, free: 6.805 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005271/0.01273, allocations: 251.2 kB / 271.7 MB, free: 6.535 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.01273, allocations: 192 / 271.7 MB, free: 6.535 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.01274, allocations: 8.375 kB / 271.7 MB, free: 6.527 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.01275, allocations: 384 / 271.7 MB, free: 6.527 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002168/0.01297, allocations: 170.1 kB / 271.8 MB, free: 6.348 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003132/0.01328, allocations: 92.33 kB / 271.9 MB, free: 6.238 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001534/0.01343, allocations: 192.6 kB / 272.1 MB, free: 6.02 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/0.01355, allocations: 177.1 kB / 272.3 MB, free: 5.828 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-06/0.01355, allocations: 0 / 272.3 MB, free: 5.828 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008739/0.01443, allocations: 453.8 kB / 272.7 MB, free: 5.328 MB / 250.7 MB Notification: Performance of pre-optimization done (n=46): time 8.52e-07/0.01443, allocations: 0 / 272.7 MB, free: 5.328 MB / 250.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006797/0.01511, allocations: 0.6705 MB / 273.4 MB, free: 4.613 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.61e-05/0.01518, allocations: 164.5 kB / 273.6 MB, free: 4.422 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.618e-05/0.01525, allocations: 106.7 kB / 273.7 MB, free: 4.305 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.01526, allocations: 25.7 kB / 273.7 MB, free: 4.273 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.836e-05/0.01529, allocations: 85.12 kB / 273.8 MB, free: 4.184 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.404e-05/0.01535, allocations: 99.12 kB / 273.9 MB, free: 4.086 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.888e-05/0.0154, allocations: 41.66 kB / 273.9 MB, free: 4.039 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.001108/0.01651, allocations: 330.7 kB / 274.2 MB, free: 3.707 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.01669, allocations: 138.6 kB / 274.4 MB, free: 3.559 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.01687, allocations: 145.8 kB / 274.5 MB, free: 3.398 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002136/0.01708, allocations: 315 kB / 274.8 MB, free: 3.059 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.01708, allocations: 4.031 kB / 274.8 MB, free: 3.055 MB / 250.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003132/0.01739, allocations: 391.1 kB / 275.2 MB, free: 2.641 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.465e-05/0.01748, allocations: 107.3 kB / 275.3 MB, free: 2.523 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.01748, allocations: 0 / 275.3 MB, free: 2.523 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001963/0.01945, allocations: 4 kB / 275.3 MB, free: 2.52 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.198e-06/0.01945, allocations: 0 / 275.3 MB, free: 2.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.314e-06/0.01945, allocations: 0 / 275.3 MB, free: 2.52 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.409e-05/0.01951, allocations: 19.89 kB / 275.3 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.01953, allocations: 15.94 kB / 275.4 MB, free: 2.484 MB / 250.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.0001924/0.01972, allocations: 262.6 kB / 275.6 MB, free: 2.207 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.396e-05/0.01977, allocations: 39.97 kB / 275.7 MB, free: 2.168 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.502e-05/0.01979, allocations: 9.656 kB / 275.7 MB, free: 2.156 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.01979, allocations: 0 / 275.7 MB, free: 2.156 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.01979, allocations: 0 / 275.7 MB, free: 2.156 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.01979, allocations: 4 kB / 275.7 MB, free: 2.152 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.01991, allocations: 101.7 kB / 275.8 MB, free: 2.035 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.01991, allocations: 0 / 275.8 MB, free: 2.035 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.01991, allocations: 4 kB / 275.8 MB, free: 2.031 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.01991, allocations: 0 / 275.8 MB, free: 2.031 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/0.01993, allocations: 15.98 kB / 275.8 MB, free: 2.016 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.01994, allocations: 7.875 kB / 275.8 MB, free: 2.008 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.01994, allocations: 0 / 275.8 MB, free: 2.008 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005691/0.02051, allocations: 0.6636 MB / 276.5 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.867e-05/0.02053, allocations: 19.8 kB / 276.5 MB, free: 1.277 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.019e-05/0.02062, allocations: 63.94 kB / 276.5 MB, free: 1.215 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.177e-05/0.02067, allocations: 12.03 kB / 276.6 MB, free: 1.203 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.135e-05/0.0207, allocations: 11.98 kB / 276.6 MB, free: 1.191 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.02072, allocations: 16.31 kB / 276.6 MB, free: 1.176 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.401e-05/0.02074, allocations: 12.84 kB / 276.6 MB, free: 1.16 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02074, allocations: 0 / 276.6 MB, free: 1.16 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003/0.02104, allocations: 91.86 kB / 276.7 MB, free: 1.07 MB / 250.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.001596/0.02263, allocations: 326.4 kB / 277 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004951/0.02313, allocations: 0.6193 MB / 277.6 MB, free: 132 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.02313, allocations: 0 / 277.6 MB, free: 132 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003145/0.02345, allocations: 422.9 kB / 278 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001194/0.02356, allocations: 31.92 kB / 278.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004646/0.02403, allocations: 403.5 kB / 278.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.994e-05/0.02408, allocations: 76.33 kB / 278.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.273e-06/0.02409, allocations: 4.25 kB / 278.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.02429, allocations: 131.3 kB / 278.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.02429, allocations: 0 / 278.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of Templates: time 0.01035/0.03464, allocations: 3.368 MB / 282 MB, free: 11.66 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.6538601708598435]