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.001811/0.001811, allocations: 103.6 kB / 21.19 MB, free: 0.5156 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.002288/0.002288, allocations: 215.6 kB / 24.48 MB, free: 3.836 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.493/1.493, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.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 0.001842/0.001842, allocations: 51.92 kB / 379 MB, free: 2.559 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3439, allocations: 53.37 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002677/0.3466, allocations: 1.234 MB / 433.6 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.3477, allocations: 454.3 kB / 434 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.478e-05/0.3477, allocations: 0 / 434 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.768e-05/0.3477, allocations: 3.938 kB / 434 MB, free: 5.039 MB / 334.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.0005245/0.3483, allocations: 75.77 kB / 434.1 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002018/0.3485, allocations: 67.75 kB / 434.2 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000103/0.3486, allocations: 43.91 kB / 434.2 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.035e-05/0.3486, allocations: 7.984 kB / 434.2 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.596e-05/0.3486, allocations: 15.92 kB / 434.2 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.048e-05/0.3487, allocations: 23.91 kB / 434.2 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.3487, allocations: 8 kB / 434.3 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003418/0.3491, allocations: 147.7 kB / 434.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.445e-05/0.3491, allocations: 35.86 kB / 434.4 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.422e-05/0.3492, allocations: 43.73 kB / 434.5 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003196/0.3495, allocations: 184.9 kB / 434.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3495, allocations: 0 / 434.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3495, allocations: 0 / 434.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.3495, allocations: 0 / 434.7 MB, free: 4.402 MB / 334.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.0006769/0.3502, allocations: 480.7 kB / 435.1 MB, free: 3.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.3502, allocations: 8.031 kB / 435.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.3504, allocations: 32.77 kB / 435.2 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001783/0.3505, allocations: 126.4 kB / 435.3 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.3506, allocations: 4.375 kB / 435.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.602e-05/0.3506, allocations: 4.375 kB / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005202/0.3511, allocations: 399.1 kB / 435.7 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.3511, allocations: 192 / 435.7 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.3511, allocations: 7.938 kB / 435.7 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3511, allocations: 0 / 435.7 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002859/0.3514, allocations: 259.2 kB / 436 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001843/0.3516, allocations: 133.8 kB / 436.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003236/0.3519, allocations: 300.5 kB / 436.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002737/0.3522, allocations: 273.1 kB / 436.6 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.3522, allocations: 0 / 436.6 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006552/0.3529, allocations: 0.5703 MB / 437.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.372e-06/0.3529, allocations: 0 / 437.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.00119/0.3541, allocations: 0.9837 MB / 438.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.3542, allocations: 160.5 kB / 438.4 MB, free: 396 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.3543, allocations: 101.8 kB / 438.5 MB, free: 284 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.3543, allocations: 25.7 kB / 438.5 MB, free: 252 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.936e-05/0.3544, allocations: 89.14 kB / 438.6 MB, free: 160 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.834e-05/0.3544, allocations: 99.22 kB / 438.7 MB, free: 60 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.903e-05/0.3545, allocations: 37.7 kB / 438.7 MB, free: 16 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.3547, allocations: 330.8 kB / 439 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.3549, allocations: 195.7 kB / 439.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.3551, allocations: 229.8 kB / 439.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004623/0.3556, allocations: 469.3 kB / 439.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3556, allocations: 0 / 439.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005692/0.3561, allocations: 0.4884 MB / 440.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.3562, allocations: 107.3 kB / 440.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3563, allocations: 0 / 440.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.3563, allocations: 8.031 kB / 440.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.3563, allocations: 0 / 440.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.3563, allocations: 0 / 440.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.037e-05/0.3563, allocations: 23.84 kB / 440.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.3564, allocations: 11.98 kB / 440.5 MB, free: 14.07 MB / 350.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.0002891/0.3567, allocations: 275.8 kB / 440.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.468e-05/0.3567, allocations: 27.91 kB / 440.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.896e-05/0.3567, allocations: 9.594 kB / 440.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.3567, allocations: 4.312 kB / 440.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3568, allocations: 0 / 440.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3568, allocations: 7.938 kB / 440.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001633/0.3569, allocations: 149.1 kB / 441 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3569, allocations: 7.922 kB / 441 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.715e-06/0.3569, allocations: 4 kB / 441 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3569, allocations: 4 kB / 441 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.217e-05/0.357, allocations: 19.98 kB / 441 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.357, allocations: 3.938 kB / 441 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.357, allocations: 0 / 441 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.3581, allocations: 0.9039 MB / 441.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.044e-05/0.3581, allocations: 27.73 kB / 442 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.3582, allocations: 67.94 kB / 442 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.975e-05/0.3583, allocations: 11.94 kB / 442 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.127e-05/0.3583, allocations: 15.98 kB / 442.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.3584, allocations: 19.92 kB / 442.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.476e-05/0.3584, allocations: 79.28 kB / 442.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3584, allocations: 4.031 kB / 442.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003637/0.3588, allocations: 95.86 kB / 442.3 MB, free: 12.25 MB / 350.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.0006782/0.3594, allocations: 305.4 kB / 442.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009726/0.3604, allocations: 0.8607 MB / 443.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3604, allocations: 0 / 443.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005457/0.361, allocations: 0.5409 MB / 444 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.3612, allocations: 22.31 kB / 444 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007855/0.362, allocations: 0.5323 MB / 444.5 MB, free: 9.895 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001164/0.3621, allocations: 110.1 kB / 444.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.555e-05/0.3621, allocations: 7.438 kB / 444.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3621, allocations: 0 / 444.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of Templates: time 0.005893/0.368, allocations: 2.885 MB / 447.5 MB, free: 6.875 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/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: 7.7694471860304475]