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.00173/0.00173, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.002149/0.002149, allocations: 214.1 kB / 24.48 MB, free: 3.961 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.487/1.487, allocations: 230.6 MB / 258.2 MB, free: 7.781 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.001563/0.001563, allocations: 43.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2721, allocations: 53.36 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002732/0.2749, allocations: 1.253 MB / 433.6 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001159/0.276, allocations: 450.4 kB / 434 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.139e-05/0.2761, allocations: 0 / 434 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.876e-05/0.2761, allocations: 0 / 434 MB, free: 5.012 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.0005389/0.2766, allocations: 79.7 kB / 434.1 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001532/0.2768, allocations: 67.75 kB / 434.2 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.2769, allocations: 47.89 kB / 434.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.001e-05/0.2769, allocations: 7.938 kB / 434.2 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.331e-05/0.277, allocations: 15.98 kB / 434.2 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.552e-05/0.277, allocations: 27.91 kB / 434.3 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.31e-05/0.277, allocations: 0 / 434.3 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003053/0.2773, allocations: 159.7 kB / 434.4 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.349e-05/0.2774, allocations: 31.86 kB / 434.4 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.19e-05/0.2775, allocations: 47.72 kB / 434.5 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002637/0.2777, allocations: 170 kB / 434.7 MB, free: 4.375 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.2777, allocations: 3.984 kB / 434.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2777, allocations: 0 / 434.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.2777, allocations: 3.938 kB / 434.7 MB, free: 4.367 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.0006346/0.2784, allocations: 488.7 kB / 435.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.2784, allocations: 12.03 kB / 435.2 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001408/0.2786, allocations: 24.83 kB / 435.2 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.2787, allocations: 118.4 kB / 435.3 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.2787, allocations: 4.375 kB / 435.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.368e-05/0.2787, allocations: 4.375 kB / 435.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004433/0.2792, allocations: 399.1 kB / 435.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.2792, allocations: 4.125 kB / 435.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.2792, allocations: 3.938 kB / 435.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.2792, allocations: 0 / 435.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003232/0.2795, allocations: 263.2 kB / 436 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001688/0.2797, allocations: 137.8 kB / 436.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.28, allocations: 300.5 kB / 436.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003119/0.2803, allocations: 273 kB / 436.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.219e-06/0.2803, allocations: 0 / 436.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000575/0.2809, allocations: 0.5703 MB / 437.2 MB, free: 1.562 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.062e-06/0.2809, allocations: 0 / 437.2 MB, free: 1.562 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.001114/0.282, allocations: 0.9798 MB / 438.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.2821, allocations: 164.4 kB / 438.4 MB, free: 356 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.881e-05/0.2822, allocations: 105.8 kB / 438.5 MB, free: 240 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.2822, allocations: 25.7 kB / 438.5 MB, free: 208 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.386e-05/0.2823, allocations: 85.2 kB / 438.6 MB, free: 120 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.71e-05/0.2824, allocations: 91.22 kB / 438.7 MB, free: 28 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.319e-05/0.2824, allocations: 41.75 kB / 438.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.2826, allocations: 330.8 kB / 439 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.2828, allocations: 203.7 kB / 439.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.283, allocations: 229.8 kB / 439.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004584/0.2835, allocations: 465.3 kB / 439.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2835, allocations: 0 / 439.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005202/0.284, allocations: 496.1 kB / 440.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.641e-05/0.2841, allocations: 103.3 kB / 440.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.2841, allocations: 4.094 kB / 440.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.2841, allocations: 7.938 kB / 440.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.2841, allocations: 0 / 440.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.2841, allocations: 0 / 440.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.871e-05/0.2842, allocations: 23.84 kB / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.937e-05/0.2842, allocations: 12 kB / 440.5 MB, free: 14.04 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.0002656/0.2845, allocations: 275.7 kB / 440.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.012e-05/0.2845, allocations: 23.91 kB / 440.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.921e-05/0.2845, allocations: 13.59 kB / 440.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2846, allocations: 0 / 440.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.679e-06/0.2846, allocations: 7.984 kB / 440.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2846, allocations: 0 / 440.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001514/0.2847, allocations: 157.1 kB / 441 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2847, allocations: 0 / 441 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.2847, allocations: 4 kB / 441 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.2847, allocations: 3.938 kB / 441 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.045e-05/0.2847, allocations: 19.98 kB / 441 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.2848, allocations: 3.938 kB / 441 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2848, allocations: 7.938 kB / 441 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.2858, allocations: 0.9039 MB / 441.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.7e-05/0.2859, allocations: 27.8 kB / 442 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.286, allocations: 67.94 kB / 442 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.661e-05/0.286, allocations: 11.94 kB / 442.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.37e-05/0.2861, allocations: 11.98 kB / 442.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.707e-05/0.2861, allocations: 19.98 kB / 442.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.774e-05/0.2861, allocations: 87.31 kB / 442.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2861, allocations: 0 / 442.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003305/0.2865, allocations: 91.86 kB / 442.3 MB, free: 12.21 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.000643/0.2871, allocations: 298.9 kB / 442.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009455/0.2881, allocations: 0.8646 MB / 443.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2881, allocations: 0 / 443.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005425/0.2886, allocations: 0.5331 MB / 444 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000197/0.2888, allocations: 26.77 kB / 444 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007815/0.2896, allocations: 0.5362 MB / 444.5 MB, free: 9.859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001196/0.2897, allocations: 110.1 kB / 444.6 MB, free: 9.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.936e-05/0.2897, allocations: 7.438 kB / 444.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2897, allocations: 0 / 444.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of Templates: time 0.005314/0.295, allocations: 2.885 MB / 447.5 MB, free: 6.84 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.7995946379960515]