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.001329/0.001329, allocations: 81.53 kB / 20.68 MB, free: 1.039 MB / 14.72 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.001473/0.001473, allocations: 164.5 kB / 23.95 MB, free: 4.168 MB / 14.72 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 1.452/1.452, allocations: 177.1 MB / 204.3 MB, free: 9.191 MB / 190.1 MB " [Timeout remaining time 178] 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.593e-06/1.593e-06, allocations: 0 / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.689e-05/2.848e-05, allocations: 3.562 kB / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002084/0.002113, allocations: 1.251 MB / 326.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.00317, allocations: 464 kB / 326.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.592e-05/0.003196, allocations: 0 / 326.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.122e-05/0.003227, allocations: 5.125 kB / 326.8 MB, free: 15.39 MB / 302.1 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.0004567/0.003684, allocations: 71.53 kB / 326.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00022/0.003904, allocations: 73.97 kB / 326.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001033/0.004007, allocations: 40.64 kB / 326.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.644e-05/0.004044, allocations: 1.781 kB / 326.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.826e-05/0.004102, allocations: 33.66 kB / 327 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.269e-05/0.004145, allocations: 20.05 kB / 327 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.004158, allocations: 2.281 kB / 327 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003793/0.004537, allocations: 151.1 kB / 327.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.928e-05/0.004587, allocations: 32.91 kB / 327.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.07e-05/0.004637, allocations: 28.48 kB / 327.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003758/0.005013, allocations: 192.5 kB / 327.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.005016, allocations: 0.6094 kB / 327.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.005017, allocations: 0 / 327.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.005022, allocations: 5.25 kB / 327.4 MB, free: 15.15 MB / 302.1 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.0005863/0.005608, allocations: 481.8 kB / 327.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.665e-05/0.005635, allocations: 13.97 kB / 327.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.005778, allocations: 21.36 kB / 327.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001213/0.005899, allocations: 128.6 kB / 328 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.005914, allocations: 3.125 kB / 328 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.005929, allocations: 4.312 kB / 328 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004181/0.006347, allocations: 396.5 kB / 328.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/0.006354, allocations: 192 / 328.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.006364, allocations: 3.906 kB / 328.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.254e-06/0.006366, allocations: 384 / 328.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002982/0.006665, allocations: 271.2 kB / 328.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001771/0.006842, allocations: 130.8 kB / 328.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000333/0.007175, allocations: 290.6 kB / 329.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.007464, allocations: 273.2 kB / 329.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.09e-05/0.007475, allocations: 1.062 kB / 329.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006666/0.008142, allocations: 0.5744 MB / 330 MB, free: 13.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.303e-06/0.008143, allocations: 1.094 kB / 330 MB, free: 13.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.001289/0.009433, allocations: 0.9744 MB / 330.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.009563, allocations: 160.2 kB / 331.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.009673, allocations: 110.9 kB / 331.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.009695, allocations: 31.08 kB / 331.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.114e-05/0.009766, allocations: 87.41 kB / 331.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.637e-05/0.009852, allocations: 91.39 kB / 331.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.614e-05/0.009918, allocations: 40.3 kB / 331.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.01008, allocations: 329.2 kB / 331.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/0.0103, allocations: 205.6 kB / 332 MB, free: 12.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002209/0.01052, allocations: 227.3 kB / 332.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004625/0.01098, allocations: 470.9 kB / 332.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.01099, allocations: 0 / 332.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005365/0.01152, allocations: 496.6 kB / 333.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.01162, allocations: 105.8 kB / 333.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.01163, allocations: 5.219 kB / 333.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.01164, allocations: 1.156 kB / 333.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.213e-06/0.01164, allocations: 0 / 333.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.01165, allocations: 8.953 kB / 333.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.472e-05/0.01173, allocations: 23.09 kB / 333.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.01175, allocations: 11.22 kB / 333.3 MB, free: 11.32 MB / 302.1 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.0002814/0.01203, allocations: 272.7 kB / 333.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.902e-05/0.01209, allocations: 30.16 kB / 333.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.809e-05/0.01211, allocations: 10.73 kB / 333.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.01211, allocations: 1.156 kB / 333.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.01212, allocations: 0 / 333.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.01212, allocations: 5.156 kB / 333.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.0123, allocations: 159.8 kB / 333.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.0123, allocations: 4 kB / 333.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.753e-06/0.0123, allocations: 1.469 kB / 333.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.0123, allocations: 0 / 333.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.454e-05/0.01234, allocations: 24.08 kB / 333.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.01234, allocations: 0 / 333.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.01234, allocations: 1.406 kB / 333.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.01345, allocations: 0.906 MB / 334.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.041e-05/0.01349, allocations: 26.59 kB / 334.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001227/0.01361, allocations: 62.7 kB / 334.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.13e-05/0.01367, allocations: 8.625 kB / 334.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.582e-05/0.01372, allocations: 13.11 kB / 334.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.584e-05/0.01376, allocations: 27.67 kB / 334.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.156e-05/0.01381, allocations: 82.75 kB / 334.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01381, allocations: 0 / 334.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003911/0.0142, allocations: 91.17 kB / 335 MB, free: 10.25 MB / 302.1 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.0007001/0.0149, allocations: 313 kB / 335.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001052/0.01596, allocations: 0.8615 MB / 336.2 MB, free: 9.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.01596, allocations: 0 / 336.2 MB, free: 9.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000592/0.01655, allocations: 0.541 MB / 336.7 MB, free: 8.941 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002144/0.01676, allocations: 23.94 kB / 336.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007999/0.01756, allocations: 0.5025 MB / 337.2 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000115/0.01768, allocations: 110 kB / 337.3 MB, free: 8.246 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.286e-06/0.01769, allocations: 0 / 337.3 MB, free: 8.246 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.589e-05/0.0177, allocations: 12.5 kB / 337.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.0177, allocations: 128 / 337.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of Templates: time 0.007497/0.0252, allocations: 3.162 MB / 340.5 MB, free: 5.105 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.296865109354258]