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.001771/0.001771, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002222/0.002222, allocations: 208.4 kB / 23.73 MB, free: 4.387 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.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 7.758 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.001575/0.001575, allocations: 51.92 kB / 378.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.248, allocations: 53.36 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002327/0.2504, allocations: 1.25 MB / 432.8 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.2514, allocations: 446.4 kB / 433.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.351e-05/0.2514, allocations: 3.938 kB / 433.3 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.781e-05/0.2515, allocations: 0 / 433.3 MB, free: 5.023 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.0005244/0.252, allocations: 79.7 kB / 433.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001566/0.2522, allocations: 67.75 kB / 433.4 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001134/0.2523, allocations: 47.89 kB / 433.5 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.724e-05/0.2523, allocations: 4 kB / 433.5 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.373e-05/0.2524, allocations: 19.92 kB / 433.5 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.245e-05/0.2524, allocations: 23.91 kB / 433.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.596e-05/0.2524, allocations: 4 kB / 433.5 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000311/0.2527, allocations: 151.7 kB / 433.7 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.882e-05/0.2528, allocations: 27.92 kB / 433.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.85e-05/0.2529, allocations: 43.73 kB / 433.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002934/0.2531, allocations: 181.5 kB / 433.9 MB, free: 4.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.2532, allocations: 4 kB / 433.9 MB, free: 4.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2532, allocations: 0 / 433.9 MB, free: 4.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.2532, allocations: 0 / 433.9 MB, free: 4.387 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.0006559/0.2538, allocations: 484.7 kB / 434.4 MB, free: 3.867 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.2539, allocations: 12.03 kB / 434.4 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.254, allocations: 24.83 kB / 434.4 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.2542, allocations: 122.3 kB / 434.5 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.2542, allocations: 4.375 kB / 434.5 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.1e-05/0.2542, allocations: 4.375 kB / 434.5 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004775/0.2547, allocations: 399.1 kB / 434.9 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2547, allocations: 4.125 kB / 434.9 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.2547, allocations: 3.938 kB / 434.9 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.2547, allocations: 4 kB / 434.9 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002779/0.255, allocations: 259.2 kB / 435.2 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001754/0.2551, allocations: 141.8 kB / 435.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003202/0.2555, allocations: 296.5 kB / 435.6 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002646/0.2557, allocations: 269.1 kB / 435.9 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.077e-06/0.2557, allocations: 0 / 435.9 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006001/0.2563, allocations: 0.578 MB / 436.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 9.72e-07/0.2563, allocations: 0 / 436.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.001139/0.2575, allocations: 0.9759 MB / 437.4 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.2576, allocations: 160.5 kB / 437.6 MB, free: 380 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.948e-05/0.2577, allocations: 105.8 kB / 437.7 MB, free: 264 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.2577, allocations: 29.77 kB / 437.7 MB, free: 228 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.918e-05/0.2578, allocations: 85.14 kB / 437.8 MB, free: 140 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.257e-05/0.2578, allocations: 87.22 kB / 437.9 MB, free: 52 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.766e-05/0.2579, allocations: 41.7 kB / 437.9 MB, free: 4 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.2581, allocations: 334.8 kB / 438.3 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.2583, allocations: 195.7 kB / 438.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002223/0.2585, allocations: 233.8 kB / 438.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000475/0.259, allocations: 469.3 kB / 439.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.259, allocations: 4 kB / 439.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005398/0.2595, allocations: 496.1 kB / 439.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001203/0.2596, allocations: 107.3 kB / 439.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2596, allocations: 4.094 kB / 439.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.2597, allocations: 3.938 kB / 439.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.392e-06/0.2597, allocations: 0 / 439.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.2597, allocations: 0 / 439.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.952e-05/0.2597, allocations: 23.84 kB / 439.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.004e-05/0.2598, allocations: 8 kB / 439.8 MB, free: 14.05 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.0002925/0.26, allocations: 279.7 kB / 440.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.124e-05/0.2601, allocations: 27.91 kB / 440.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.999e-05/0.2601, allocations: 9.594 kB / 440.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2601, allocations: 0 / 440.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.2601, allocations: 3.984 kB / 440.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.2601, allocations: 4 kB / 440.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.2603, allocations: 149.1 kB / 440.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.2603, allocations: 4 kB / 440.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.2603, allocations: 0 / 440.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2603, allocations: 4 kB / 440.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.657e-05/0.2603, allocations: 19.98 kB / 440.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.2603, allocations: 3.938 kB / 440.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2603, allocations: 3.938 kB / 440.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.2615, allocations: 0.9116 MB / 441.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.296e-05/0.2615, allocations: 27.73 kB / 441.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.2617, allocations: 68.27 kB / 441.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.833e-05/0.2617, allocations: 11.94 kB / 441.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.244e-05/0.2618, allocations: 11.98 kB / 441.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.2618, allocations: 24.02 kB / 441.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.078e-05/0.2618, allocations: 83.27 kB / 441.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2618, allocations: 0 / 441.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003535/0.2622, allocations: 95.86 kB / 441.5 MB, free: 12.23 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.0006825/0.2629, allocations: 297.6 kB / 441.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009529/0.2638, allocations: 0.8684 MB / 442.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2638, allocations: 0 / 442.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005286/0.2644, allocations: 0.5372 MB / 443.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001923/0.2645, allocations: 20 kB / 443.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007834/0.2653, allocations: 0.5033 MB / 443.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001135/0.2654, allocations: 110.1 kB / 443.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.706e-06/0.2654, allocations: 0 / 443.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.606e-05/0.2655, allocations: 7.438 kB / 443.8 MB, free: 9.773 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2655, allocations: 128 / 443.8 MB, free: 9.773 MB / 350.1 MB Notification: Performance of Templates: time 0.006803/0.2723, allocations: 3.207 MB / 447 MB, free: 6.598 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/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_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: 4.430478505790234]