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.0009688/0.0009688, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001515/0.002484, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009486/0.0009486, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001449/0.002398, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.955/0.955, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.154/1.109, allocations: 52.48 MB / 238.5 MB, free: 7.648 MB / 234.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.202e-06/1.202e-06, allocations: 0 / 239.7 MB, free: 6.383 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.975e-05/2.095e-05, allocations: 2.312 kB / 239.7 MB, free: 6.379 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001571/0.001592, allocations: 1.306 MB / 241.1 MB, free: 5.082 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005379/0.00213, allocations: 465 kB / 241.5 MB, free: 4.629 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.767e-05/0.002157, allocations: 3.938 kB / 241.5 MB, free: 4.625 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 2.1e-05/0.002178, allocations: 0 / 241.5 MB, free: 4.625 MB / 234.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.0003135/0.002492, allocations: 83.58 kB / 241.6 MB, free: 4.543 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001209/0.002613, allocations: 64.97 kB / 241.7 MB, free: 4.48 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 7.99e-05/0.002693, allocations: 35.86 kB / 241.7 MB, free: 4.445 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.342e-05/0.002726, allocations: 15.97 kB / 241.7 MB, free: 4.43 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.57e-05/0.002782, allocations: 21.05 kB / 241.7 MB, free: 4.41 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.051e-05/0.002812, allocations: 19.91 kB / 241.7 MB, free: 4.391 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.189e-05/0.002824, allocations: 4 kB / 241.8 MB, free: 4.387 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000239/0.003063, allocations: 166.6 kB / 241.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.809e-05/0.003101, allocations: 23.94 kB / 241.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.07e-05/0.003132, allocations: 31.88 kB / 242 MB, free: 4.172 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001894/0.003321, allocations: 171.4 kB / 242.1 MB, free: 4.004 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.082e-05/0.003332, allocations: 3.938 kB / 242.1 MB, free: 4 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.003333, allocations: 0 / 242.1 MB, free: 4 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.003341, allocations: 4 kB / 242.1 MB, free: 3.996 MB / 234.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.0004424/0.003784, allocations: 473.8 kB / 242.6 MB, free: 3.492 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.721e-05/0.003811, allocations: 12.84 kB / 242.6 MB, free: 3.48 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.003943, allocations: 98.02 kB / 242.7 MB, free: 3.367 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.1e-05/0.004034, allocations: 130.8 kB / 242.8 MB, free: 3.215 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.004045, allocations: 384 / 242.8 MB, free: 3.215 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.236e-05/0.004057, allocations: 8.375 kB / 242.9 MB, free: 3.207 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.004239, allocations: 283.2 kB / 243.1 MB, free: 2.906 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.004245, allocations: 192 / 243.1 MB, free: 2.906 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.004254, allocations: 4.375 kB / 243.1 MB, free: 2.902 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.004259, allocations: 1.281 kB / 243.1 MB, free: 2.902 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001048/0.004364, allocations: 195.9 kB / 243.3 MB, free: 2.699 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.634e-05/0.00444, allocations: 88.56 kB / 243.4 MB, free: 2.594 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/0.004559, allocations: 220.6 kB / 243.6 MB, free: 2.348 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.898e-05/0.004648, allocations: 197.8 kB / 243.8 MB, free: 2.137 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-06/0.004652, allocations: 4 kB / 243.8 MB, free: 2.133 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003158/0.004968, allocations: 478.5 kB / 244.3 MB, free: 1.605 MB / 234.7 MB Notification: Performance of pre-optimization done (n=46): time 9.22e-07/0.004969, allocations: 0.6875 kB / 244.3 MB, free: 1.605 MB / 234.7 MB Notification: Performance of matching and sorting (n=46): time 0.0004447/0.005413, allocations: 0.7554 MB / 245 MB, free: 0.8047 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.005526, allocations: 374.7 kB / 245.4 MB, free: 380 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.651e-05/0.005583, allocations: 106.7 kB / 245.5 MB, free: 260 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 8.366e-06/0.005591, allocations: 29.7 kB / 245.5 MB, free: 224 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.846e-05/0.005609, allocations: 93.06 kB / 245.6 MB, free: 128 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.668e-05/0.005656, allocations: 87.19 kB / 245.7 MB, free: 40 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-05/0.005699, allocations: 43.14 kB / 245.8 MB, free: 15.99 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.789e-05/0.005767, allocations: 330.7 kB / 246.1 MB, free: 15.66 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.641e-05/0.005844, allocations: 166.6 kB / 246.3 MB, free: 15.48 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.048e-05/0.005924, allocations: 182.4 kB / 246.4 MB, free: 15.29 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.006096, allocations: 370.3 kB / 246.8 MB, free: 14.89 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.006098, allocations: 0.5938 kB / 246.8 MB, free: 14.89 MB / 250.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000239/0.006337, allocations: 451.6 kB / 247.2 MB, free: 14.42 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001954/0.006532, allocations: 111.3 kB / 247.3 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.006537, allocations: 1.688 kB / 247.3 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.006549, allocations: 4 kB / 247.3 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.502e-06/0.00655, allocations: 0 / 247.3 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.775e-06/0.006553, allocations: 0 / 247.3 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.858e-05/0.006592, allocations: 21.05 kB / 247.4 MB, free: 14.28 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.006605, allocations: 11.94 kB / 247.4 MB, free: 14.27 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.000134/0.006739, allocations: 261.3 kB / 247.6 MB, free: 13.99 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.375e-05/0.006773, allocations: 44.59 kB / 247.7 MB, free: 13.95 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.357e-05/0.006786, allocations: 9.656 kB / 247.7 MB, free: 13.94 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.006788, allocations: 0.7188 kB / 247.7 MB, free: 13.94 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-06/0.006789, allocations: 0 / 247.7 MB, free: 13.94 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.006791, allocations: 0.6562 kB / 247.7 MB, free: 13.94 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.557e-05/0.006867, allocations: 108.1 kB / 247.8 MB, free: 13.82 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.006868, allocations: 0 / 247.8 MB, free: 13.82 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.274e-06/0.00687, allocations: 4 kB / 247.8 MB, free: 13.81 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.098e-05/0.006881, allocations: 19.83 kB / 247.8 MB, free: 13.79 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.006882, allocations: 0 / 247.8 MB, free: 13.79 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.006897, allocations: 16 kB / 247.8 MB, free: 13.78 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.006898, allocations: 3.938 kB / 247.8 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.006899, allocations: 0.9688 kB / 247.8 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004067/0.007306, allocations: 0.722 MB / 248.6 MB, free: 13 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.43e-05/0.00737, allocations: 63.88 kB / 248.6 MB, free: 12.94 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.166e-05/0.007402, allocations: 8.5 kB / 248.6 MB, free: 12.93 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.164e-05/0.007424, allocations: 12.8 kB / 248.6 MB, free: 12.92 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.46e-05/0.007438, allocations: 12 kB / 248.7 MB, free: 12.91 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.813e-05/0.007456, allocations: 18.48 kB / 248.7 MB, free: 12.89 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007456, allocations: 0 / 248.7 MB, free: 12.89 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000192/0.007648, allocations: 87.94 kB / 248.8 MB, free: 12.8 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.0005061/0.008154, allocations: 338.2 kB / 249.1 MB, free: 12.54 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003882/0.008543, allocations: 0.678 MB / 249.8 MB, free: 11.8 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.008547, allocations: 0 / 249.8 MB, free: 11.8 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002102/0.008757, allocations: 466.8 kB / 250.2 MB, free: 11.31 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001138/0.008871, allocations: 63.86 kB / 250.3 MB, free: 11.25 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004952/0.009366, allocations: 427.7 kB / 250.7 MB, free: 10.79 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.689e-05/0.009403, allocations: 76.33 kB / 250.8 MB, free: 10.69 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.073e-05/0.009414, allocations: 7.984 kB / 250.8 MB, free: 10.68 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.009548, allocations: 123.3 kB / 250.9 MB, free: 10.56 MB / 250.7 MB Notification: Performance of SimCode: time 5.61e-07/0.009548, allocations: 0 / 250.9 MB, free: 10.56 MB / 250.7 MB Notification: Performance of Templates: time 0.004544/0.01409, allocations: 3.382 MB / 254.3 MB, free: 7.211 MB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5299271689727902]