Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001324/0.001324, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001579/0.001579, allocations: 212.4 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 230.3 MB / 258 MB, free: 8.262 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 59.89 kB / 378.8 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2655, allocations: 53.36 MB / 432.1 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002345/0.2678, allocations: 1.246 MB / 433.4 MB, free: 5.844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.2689, allocations: 481.1 kB / 433.8 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.618e-05/0.2689, allocations: 0 / 433.8 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.291e-05/0.2689, allocations: 3.938 kB / 433.8 MB, free: 5.371 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0004784/0.2694, allocations: 79.72 kB / 433.9 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000158/0.2696, allocations: 67.8 kB / 434 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000103/0.2697, allocations: 47.84 kB / 434 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.335e-05/0.2697, allocations: 4 kB / 434 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.398e-05/0.2697, allocations: 23.91 kB / 434.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.166e-05/0.2698, allocations: 23.91 kB / 434.1 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.2698, allocations: 7.938 kB / 434.1 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003068/0.2701, allocations: 147.8 kB / 434.2 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.881e-05/0.2702, allocations: 35.86 kB / 434.3 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.462e-05/0.2702, allocations: 51.66 kB / 434.3 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002907/0.2705, allocations: 176.9 kB / 434.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2705, allocations: 0 / 434.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2705, allocations: 0 / 434.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.2705, allocations: 0 / 434.5 MB, free: 4.723 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.0006401/0.2712, allocations: 0.5007 MB / 435 MB, free: 4.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.2712, allocations: 12.03 kB / 435 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.2713, allocations: 24.78 kB / 435 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.2715, allocations: 122.4 kB / 435.1 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.2715, allocations: 384 / 435.1 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.2715, allocations: 8.375 kB / 435.2 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003349/0.2718, allocations: 283.7 kB / 435.4 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.2719, allocations: 192 / 435.4 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/0.2719, allocations: 11.94 kB / 435.4 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.2719, allocations: 0 / 435.4 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001653/0.272, allocations: 143.9 kB / 435.6 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002014/0.2722, allocations: 177.2 kB / 435.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.2725, allocations: 177.1 kB / 435.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.2726, allocations: 149.7 kB / 436.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.124e-05/0.2726, allocations: 8 kB / 436.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004993/0.2731, allocations: 476.8 kB / 436.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.002e-06/0.2731, allocations: 0 / 436.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.0009441/0.2741, allocations: 0.7389 MB / 437.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.2742, allocations: 160.5 kB / 437.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.984e-05/0.2743, allocations: 106 kB / 437.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.2743, allocations: 33.7 kB / 437.6 MB, free: 1.367 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.399e-05/0.2744, allocations: 81.14 kB / 437.7 MB, free: 1.285 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.733e-05/0.2745, allocations: 91.22 kB / 437.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.16e-05/0.2745, allocations: 41.69 kB / 437.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.2747, allocations: 326.8 kB / 438.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.304e-05/0.2748, allocations: 80.34 kB / 438.2 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.2749, allocations: 122.1 kB / 438.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003824/0.2753, allocations: 417.3 kB / 438.7 MB, free: 184 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2753, allocations: 0 / 438.7 MB, free: 184 kB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003999/0.2757, allocations: 348.8 kB / 439.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.2758, allocations: 111.3 kB / 439.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.2758, allocations: 0 / 439.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.2758, allocations: 4 kB / 439.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.2758, allocations: 0 / 439.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.2758, allocations: 3.938 kB / 439.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.093e-05/0.2759, allocations: 23.94 kB / 439.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.2759, allocations: 12 kB / 439.2 MB, free: 15.66 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.0002897/0.2762, allocations: 291.7 kB / 439.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.254e-05/0.2763, allocations: 31.84 kB / 439.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.224e-05/0.2763, allocations: 13.66 kB / 439.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.2763, allocations: 0 / 439.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.2763, allocations: 0 / 439.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.2763, allocations: 0 / 439.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000207/0.2765, allocations: 208.5 kB / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.2765, allocations: 0 / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-07/0.2765, allocations: 0 / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.2765, allocations: 3.938 kB / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.971e-05/0.2765, allocations: 19.98 kB / 439.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.2765, allocations: 8 kB / 439.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2765, allocations: 0 / 439.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.278, allocations: 1.244 MB / 441 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.772e-05/0.278, allocations: 27.8 kB / 441 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.2781, allocations: 71.88 kB / 441.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.798e-05/0.2782, allocations: 19.88 kB / 441.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.678e-05/0.2782, allocations: 11.98 kB / 441.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.573e-05/0.2782, allocations: 16.03 kB / 441.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.673e-05/0.2783, allocations: 87.27 kB / 441.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2783, allocations: 0 / 441.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003453/0.2786, allocations: 87.88 kB / 441.3 MB, free: 13.43 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.0006399/0.2793, allocations: 288 kB / 441.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.2804, allocations: 1.064 MB / 442.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2804, allocations: 4.125 kB / 442.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008635/0.2813, allocations: 0.8967 MB / 443.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002021/0.2815, allocations: 20 kB / 443.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000685/0.2821, allocations: 388.1 kB / 444 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.2825, allocations: 0.7286 MB / 444.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.478e-06/0.2825, allocations: 0 / 444.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.725e-05/0.2825, allocations: 7.438 kB / 444.7 MB, free: 9.961 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2825, allocations: 3.938 kB / 444.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of Templates: time 0.007027/0.2896, allocations: 3.193 MB / 447.9 MB, free: 6.77 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.564470310695469]