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.001385/0.001385, allocations: 103.6 kB / 20.43 MB, free: 1.211 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.001363/0.001363, allocations: 184.7 kB / 23.71 MB, free: 4.434 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.48/1.48, allocations: 225.7 MB / 252.5 MB, free: 12.85 MB / 206.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 0.00161/0.00161, allocations: 47.91 kB / 370.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2646, allocations: 52.18 MB / 423.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.00238/0.267, allocations: 1.238 MB / 424.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.268, allocations: 449.1 kB / 424.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.672e-05/0.268, allocations: 0 / 424.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.198e-05/0.2681, allocations: 11.92 kB / 424.7 MB, free: 12.77 MB / 334.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.000503/0.2686, allocations: 75.67 kB / 424.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001503/0.2687, allocations: 67.75 kB / 424.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001413/0.2689, allocations: 43.95 kB / 424.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.023e-05/0.2689, allocations: 0 / 424.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.376e-05/0.2689, allocations: 23.91 kB / 425 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.538e-05/0.269, allocations: 23.86 kB / 425 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.175e-05/0.269, allocations: 0 / 425 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003032/0.2693, allocations: 151.7 kB / 425.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.187e-05/0.2694, allocations: 39.84 kB / 425.2 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.867e-05/0.2694, allocations: 47.73 kB / 425.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002689/0.2697, allocations: 173.6 kB / 425.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2697, allocations: 0 / 425.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2697, allocations: 0 / 425.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.2697, allocations: 0 / 425.4 MB, free: 12.14 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.0006009/0.2703, allocations: 492.7 kB / 425.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.2703, allocations: 8.031 kB / 425.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.2705, allocations: 20.84 kB / 425.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.2706, allocations: 118.4 kB / 426 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.2706, allocations: 8.359 kB / 426 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.68e-05/0.2706, allocations: 4.375 kB / 426 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004446/0.2711, allocations: 395.1 kB / 426.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.669e-06/0.2711, allocations: 4.188 kB / 426.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.2711, allocations: 3.938 kB / 426.4 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.2711, allocations: 0 / 426.4 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002912/0.2714, allocations: 267.3 kB / 426.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.2715, allocations: 130 kB / 426.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.2718, allocations: 292.5 kB / 427.1 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002654/0.2721, allocations: 277 kB / 427.4 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.654e-06/0.2721, allocations: 0 / 427.4 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005993/0.2727, allocations: 0.5703 MB / 427.9 MB, free: 9.344 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.262e-06/0.2727, allocations: 4 kB / 427.9 MB, free: 9.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.001203/0.2739, allocations: 0.9875 MB / 428.9 MB, free: 8.309 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.274, allocations: 152.5 kB / 429.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.237e-05/0.2741, allocations: 109.8 kB / 429.2 MB, free: 8.012 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.2741, allocations: 25.7 kB / 429.2 MB, free: 7.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.792e-05/0.2742, allocations: 85.14 kB / 429.3 MB, free: 7.895 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.801e-05/0.2743, allocations: 91.22 kB / 429.4 MB, free: 7.805 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-05/0.2743, allocations: 45.69 kB / 429.4 MB, free: 7.754 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.2745, allocations: 326.8 kB / 429.7 MB, free: 7.426 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.2747, allocations: 203.8 kB / 429.9 MB, free: 7.215 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002115/0.2749, allocations: 221.8 kB / 430.1 MB, free: 6.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004477/0.2754, allocations: 481.6 kB / 430.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2754, allocations: 0 / 430.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005127/0.2759, allocations: 492.2 kB / 431.1 MB, free: 5.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.276, allocations: 107.3 kB / 431.2 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.276, allocations: 0 / 431.2 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.276, allocations: 7.938 kB / 431.2 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.975e-06/0.276, allocations: 3.938 kB / 431.2 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.276, allocations: 0 / 431.2 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.432e-05/0.2761, allocations: 23.84 kB / 431.2 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.2761, allocations: 12.09 kB / 431.3 MB, free: 5.805 MB / 334.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.0002625/0.2764, allocations: 275.7 kB / 431.5 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.04e-05/0.2764, allocations: 23.91 kB / 431.5 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.972e-05/0.2764, allocations: 17.59 kB / 431.6 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.2764, allocations: 4 kB / 431.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.2764, allocations: 0 / 431.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.2764, allocations: 0 / 431.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001995/0.2766, allocations: 157.1 kB / 431.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2766, allocations: 0 / 431.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.2766, allocations: 0 / 431.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.2766, allocations: 0 / 431.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.2767, allocations: 19.98 kB / 431.7 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.2767, allocations: 3.938 kB / 431.7 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.2767, allocations: 4 kB / 431.7 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.2779, allocations: 0.9234 MB / 432.7 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.223e-05/0.2779, allocations: 23.84 kB / 432.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.278, allocations: 67.94 kB / 432.8 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.756e-05/0.2781, allocations: 11.94 kB / 432.8 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.89e-05/0.2781, allocations: 8 kB / 432.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-05/0.2781, allocations: 19.98 kB / 432.8 MB, free: 4.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.077e-05/0.2782, allocations: 83.27 kB / 432.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2782, allocations: 0 / 432.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003483/0.2785, allocations: 91.88 kB / 433 MB, free: 3.984 MB / 334.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.0006163/0.2791, allocations: 303.4 kB / 433.3 MB, free: 3.719 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.2802, allocations: 0.868 MB / 434.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2802, allocations: 0 / 434.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005871/0.2808, allocations: 0.5293 MB / 434.7 MB, free: 2.234 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001921/0.2809, allocations: 19.94 kB / 434.7 MB, free: 2.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007583/0.2817, allocations: 0.5075 MB / 435.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.2818, allocations: 117.9 kB / 435.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.227e-06/0.2818, allocations: 0 / 435.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.647e-05/0.2818, allocations: 11.44 kB / 435.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2818, allocations: 0 / 435.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of Templates: time 0.006892/0.2887, allocations: 3.214 MB / 438.5 MB, free: 14.35 MB / 350.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.501360779628158]