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.001373/0.001373, allocations: 84 kB / 21.18 MB, free: 3.398 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.001952/0.001952, allocations: 145.1 kB / 24.54 MB, free: 48 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.043/1.043, allocations: 173.4 MB / 201.2 MB, free: 9.332 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 2.114e-06/2.114e-06, allocations: 0 / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.381e-05/3.593e-05, allocations: 2.312 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002436/0.002472, allocations: 1.261 MB / 269.2 MB, free: 5.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000824/0.003296, allocations: 470.1 kB / 269.7 MB, free: 4.699 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.137e-05/0.003337, allocations: 0 / 269.7 MB, free: 4.699 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.558e-05/0.003393, allocations: 4 kB / 269.7 MB, free: 4.695 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.0006136/0.004007, allocations: 79.66 kB / 269.8 MB, free: 4.617 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000173/0.00418, allocations: 67.67 kB / 269.8 MB, free: 4.551 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.00428, allocations: 43.84 kB / 269.9 MB, free: 4.508 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.11e-05/0.004321, allocations: 3.984 kB / 269.9 MB, free: 4.504 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.257e-05/0.004374, allocations: 19.98 kB / 269.9 MB, free: 4.484 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.203e-05/0.004416, allocations: 31.84 kB / 269.9 MB, free: 4.453 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.004431, allocations: 4 kB / 270 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002714/0.004703, allocations: 147.7 kB / 270.1 MB, free: 4.305 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.662e-05/0.004749, allocations: 35.88 kB / 270.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.478e-05/0.004804, allocations: 35.84 kB / 270.2 MB, free: 4.234 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.005068, allocations: 187.4 kB / 270.3 MB, free: 4.051 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.005071, allocations: 0 / 270.3 MB, free: 4.051 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.005072, allocations: 0 / 270.3 MB, free: 4.051 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.005078, allocations: 0 / 270.3 MB, free: 4.051 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.0005181/0.005596, allocations: 0.5537 MB / 270.9 MB, free: 3.445 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.005643, allocations: 8.922 kB / 270.9 MB, free: 3.438 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.005792, allocations: 28.84 kB / 270.9 MB, free: 3.41 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001202/0.005912, allocations: 132.5 kB / 271.1 MB, free: 3.254 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.005928, allocations: 384 / 271.1 MB, free: 3.254 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.005944, allocations: 4.375 kB / 271.1 MB, free: 3.25 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.006214, allocations: 287.8 kB / 271.4 MB, free: 2.941 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.006223, allocations: 192 / 271.4 MB, free: 2.941 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.006236, allocations: 4.375 kB / 271.4 MB, free: 2.938 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.006245, allocations: 384 / 271.4 MB, free: 2.938 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.00637, allocations: 171.3 kB / 271.5 MB, free: 2.758 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001535/0.006523, allocations: 147.9 kB / 271.7 MB, free: 2.574 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.006688, allocations: 233.5 kB / 271.9 MB, free: 2.309 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.006797, allocations: 186.7 kB / 272.1 MB, free: 2.105 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.855e-06/0.006805, allocations: 4 kB / 272.1 MB, free: 2.102 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003052/0.00711, allocations: 486.3 kB / 272.6 MB, free: 1.566 MB / 250.7 MB Notification: Performance of pre-optimization done (n=46): time 1.052e-06/0.007111, allocations: 0 / 272.6 MB, free: 1.566 MB / 250.7 MB Notification: Performance of matching and sorting (n=46): time 0.0008014/0.007912, allocations: 0.7457 MB / 273.3 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.181e-05/0.007984, allocations: 156.5 kB / 273.5 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.00809, allocations: 165.9 kB / 273.6 MB, free: 424 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.008105, allocations: 29.7 kB / 273.6 MB, free: 388 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.762e-05/0.008153, allocations: 127.9 kB / 273.8 MB, free: 252 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.636e-05/0.008219, allocations: 99.22 kB / 273.9 MB, free: 152 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-05/0.008279, allocations: 51.34 kB / 273.9 MB, free: 92 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.008437, allocations: 0.5001 MB / 274.4 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.157e-05/0.008519, allocations: 135.8 kB / 274.6 MB, free: 15.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.355e-05/0.008612, allocations: 167.5 kB / 274.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001947/0.008807, allocations: 335 kB / 275 MB, free: 14.89 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.00881, allocations: 0 / 275 MB, free: 14.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003004/0.00911, allocations: 416.3 kB / 275.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002972/0.009408, allocations: 107.3 kB / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.009413, allocations: 0 / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.00943, allocations: 4.094 kB / 275.6 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.989e-06/0.009435, allocations: 4 kB / 275.6 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.009442, allocations: 3.938 kB / 275.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.113e-05/0.009483, allocations: 23.78 kB / 275.6 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.009497, allocations: 8 kB / 275.6 MB, free: 14.29 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.0001636/0.00966, allocations: 314.4 kB / 275.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.648e-05/0.009707, allocations: 43.91 kB / 275.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.561e-05/0.009722, allocations: 5.984 kB / 276 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.009724, allocations: 0 / 276 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.009729, allocations: 0 / 276 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.009734, allocations: 11.92 kB / 276 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.009835, allocations: 164.4 kB / 276.1 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.009836, allocations: 0 / 276.1 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-06/0.009837, allocations: 0 / 276.1 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.00984, allocations: 8 kB / 276.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/0.00986, allocations: 19.97 kB / 276.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.009862, allocations: 4 kB / 276.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.009863, allocations: 0 / 276.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005696/0.01043, allocations: 0.7811 MB / 276.9 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.507e-05/0.01045, allocations: 15.84 kB / 277 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.161e-05/0.01052, allocations: 59.94 kB / 277 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.423e-05/0.01055, allocations: 12 kB / 277 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.458e-05/0.01059, allocations: 8 kB / 277 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.01061, allocations: 23.92 kB / 277.1 MB, free: 12.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.944e-05/0.01065, allocations: 123.2 kB / 277.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01065, allocations: 4.031 kB / 277.2 MB, free: 12.6 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002488/0.01089, allocations: 87.86 kB / 277.3 MB, free: 12.52 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.0005242/0.01142, allocations: 328.8 kB / 277.6 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004727/0.01189, allocations: 0.6647 MB / 278.3 MB, free: 11.51 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.01189, allocations: 0 / 278.3 MB, free: 11.51 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002686/0.01216, allocations: 453.7 kB / 278.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.01238, allocations: 36.23 kB / 278.7 MB, free: 10.99 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006316/0.01301, allocations: 406.3 kB / 279.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.279e-05/0.01306, allocations: 80.27 kB / 279.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.02e-05/0.01307, allocations: 3.984 kB / 279.2 MB, free: 10.44 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.228e-05/0.0131, allocations: 12.44 kB / 279.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of SimCode: time 7.02e-07/0.0131, allocations: 0 / 279.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of Templates: time 0.005784/0.01888, allocations: 3.162 MB / 282.4 MB, free: 7.285 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: 3.1690139737911522]