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.001704/0.001704, allocations: 81.3 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001981/0.001981, allocations: 146.7 kB / 23.93 MB, free: 4.188 MB / 14.72 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.548/1.548, allocations: 173.3 MB / 200.4 MB, free: 12.91 MB / 190.1 MB " [Timeout remaining time 178] 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.393e-06/1.393e-06, allocations: 0 / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.254e-05/2.394e-05, allocations: 6.281 kB / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001881/0.001905, allocations: 1.217 MB / 320.1 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000873/0.002778, allocations: 450.4 kB / 320.6 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.398e-05/0.002812, allocations: 5.344 kB / 320.6 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.264e-05/0.002854, allocations: 4.547 kB / 320.6 MB, free: 2.441 MB / 286.1 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.0004711/0.003326, allocations: 79.86 kB / 320.7 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001489/0.003474, allocations: 69.48 kB / 320.7 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.278e-05/0.003567, allocations: 48.78 kB / 320.8 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.547e-05/0.003603, allocations: 2.562 kB / 320.8 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.452e-05/0.003657, allocations: 21.62 kB / 320.8 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.046e-05/0.003698, allocations: 16.28 kB / 320.8 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.481e-05/0.003713, allocations: 4.781 kB / 320.8 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000295/0.004007, allocations: 154.9 kB / 321 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.941e-05/0.004057, allocations: 30.48 kB / 321 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.268e-05/0.00411, allocations: 31.94 kB / 321 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002855/0.004395, allocations: 196.9 kB / 321.2 MB, free: 2.199 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.004398, allocations: 0 / 321.2 MB, free: 2.199 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.004399, allocations: 3.938 kB / 321.2 MB, free: 2.195 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.004404, allocations: 0 / 321.2 MB, free: 2.195 MB / 286.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.0005449/0.004949, allocations: 495.9 kB / 321.7 MB, free: 1.777 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.004986, allocations: 10.36 kB / 321.7 MB, free: 1.777 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.005121, allocations: 21.78 kB / 321.7 MB, free: 1.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.005227, allocations: 116.1 kB / 321.9 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.005246, allocations: 4.016 kB / 321.9 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.005263, allocations: 5.438 kB / 321.9 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000414/0.005677, allocations: 398.9 kB / 322.3 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.005688, allocations: 192 / 322.3 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.005702, allocations: 3.875 kB / 322.3 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.005707, allocations: 384 / 322.3 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.005934, allocations: 267.5 kB / 322.5 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001386/0.006073, allocations: 129.8 kB / 322.6 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000293/0.006366, allocations: 296.4 kB / 322.9 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002324/0.006598, allocations: 272 kB / 323.2 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.006612, allocations: 1.375 kB / 323.2 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000547/0.007159, allocations: 0.5793 MB / 323.8 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 1.653e-06/0.007161, allocations: 0 / 323.8 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of matching and sorting (n=46): time 0.001053/0.008214, allocations: 0.9776 MB / 324.8 MB, free: 92 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.008342, allocations: 161.2 kB / 324.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.008459, allocations: 105.8 kB / 325 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.008481, allocations: 31.98 kB / 325.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.658e-05/0.008537, allocations: 82.97 kB / 325.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.8e-05/0.008635, allocations: 89.62 kB / 325.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.671e-05/0.008712, allocations: 41.45 kB / 325.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.008876, allocations: 329.7 kB / 325.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.009078, allocations: 197.9 kB / 325.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002144/0.009292, allocations: 237.8 kB / 326 MB, free: 15.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00047/0.009762, allocations: 465.7 kB / 326.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.009764, allocations: 1.094 kB / 326.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005149/0.01028, allocations: 495.5 kB / 326.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/0.01039, allocations: 109.4 kB / 327.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.01039, allocations: 0 / 327.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.01041, allocations: 1.406 kB / 327.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.753e-06/0.01041, allocations: 0.75 kB / 327.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.01042, allocations: 5.188 kB / 327.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.922e-05/0.01048, allocations: 22.19 kB / 327.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.012e-05/0.0105, allocations: 12.8 kB / 327.1 MB, free: 14.44 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.0002703/0.01077, allocations: 275.1 kB / 327.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.553e-05/0.01082, allocations: 26.05 kB / 327.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.413e-05/0.01084, allocations: 11.53 kB / 327.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.01084, allocations: 4.938 kB / 327.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.01084, allocations: 1.094 kB / 327.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.01085, allocations: 4.594 kB / 327.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.011, allocations: 152.5 kB / 327.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.011, allocations: 5.188 kB / 327.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.011, allocations: 0 / 327.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.011, allocations: 2.828 kB / 327.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.162e-05/0.01103, allocations: 16.89 kB / 327.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.01104, allocations: 5.984 kB / 327.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01104, allocations: 0 / 327.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.01214, allocations: 0.924 MB / 328.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.226e-05/0.01216, allocations: 18.03 kB / 328.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.01228, allocations: 67.5 kB / 328.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.658e-05/0.01234, allocations: 8.438 kB / 328.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.894e-05/0.01238, allocations: 15.95 kB / 328.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.241e-05/0.01242, allocations: 22.28 kB / 328.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.786e-05/0.01247, allocations: 80.58 kB / 328.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01247, allocations: 0 / 328.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003732/0.01284, allocations: 93.19 kB / 328.8 MB, free: 13.54 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.000703/0.01354, allocations: 315.8 kB / 329.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009501/0.01449, allocations: 0.8603 MB / 330 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01449, allocations: 0 / 330 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005182/0.01501, allocations: 0.5308 MB / 330.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001952/0.01521, allocations: 21.41 kB / 330.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007264/0.01593, allocations: 0.5099 MB / 331 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.01605, allocations: 113.6 kB / 331.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.598e-06/0.01606, allocations: 5.703 kB / 331.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.697e-05/0.01608, allocations: 9.781 kB / 331.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.01608, allocations: 0 / 331.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of Templates: time 0.00732/0.0234, allocations: 3.166 MB / 334.3 MB, free: 11.15 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.464916095137596]