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.000984/0.000984, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 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.001313/0.001313, allocations: 169.9 kB / 24.82 MB, free: 9.305 MB / 18.57 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.06/1.06, allocations: 177 MB / 205.1 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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 1.944e-06/1.944e-06, allocations: 0 / 273.3 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.444e-05/1.638e-05, allocations: 2.312 kB / 273.3 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001748/0.001765, allocations: 1.272 MB / 274.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007743/0.002539, allocations: 458.2 kB / 275 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.892e-05/0.002578, allocations: 3.938 kB / 275 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.155e-05/0.00262, allocations: 0 / 275 MB, free: 15.5 MB / 266.7 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.0004912/0.003111, allocations: 83.58 kB / 275.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001276/0.003238, allocations: 71.69 kB / 275.2 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.292e-05/0.003311, allocations: 39.89 kB / 275.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.465e-05/0.003346, allocations: 4 kB / 275.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.469e-05/0.003391, allocations: 27.91 kB / 275.3 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.958e-05/0.00342, allocations: 15.97 kB / 275.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/0.003434, allocations: 4 kB / 275.3 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002421/0.003676, allocations: 151.7 kB / 275.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.78e-05/0.003724, allocations: 39.84 kB / 275.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.469e-05/0.003759, allocations: 27.94 kB / 275.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.003984, allocations: 195.2 kB / 275.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.003986, allocations: 4 kB / 275.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.003987, allocations: 0 / 275.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.446e-06/0.00399, allocations: 0 / 275.7 MB, free: 14.85 MB / 266.7 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.000426/0.004416, allocations: 0.5615 MB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.004454, allocations: 11.98 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.00456, allocations: 24.84 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.327e-05/0.004643, allocations: 128.4 kB / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.004654, allocations: 4.375 kB / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.806e-06/0.004663, allocations: 4.375 kB / 276.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/0.004845, allocations: 256 kB / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.004854, allocations: 8.125 kB / 276.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-06/0.004861, allocations: 384 / 276.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.004867, allocations: 384 / 276.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.967e-05/0.004947, allocations: 163.3 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001005/0.005047, allocations: 124.8 kB / 277 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001174/0.005165, allocations: 213.5 kB / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.321e-05/0.005248, allocations: 178.8 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.797e-06/0.005252, allocations: 0 / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002665/0.005518, allocations: 462.3 kB / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=46): time 1.213e-06/0.005519, allocations: 0 / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=46): time 0.0008356/0.006355, allocations: 0.7233 MB / 278.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.196e-05/0.006417, allocations: 160.4 kB / 278.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.555e-05/0.006493, allocations: 166 kB / 278.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.006504, allocations: 29.7 kB / 278.9 MB, free: 11.31 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.131e-05/0.006546, allocations: 131.9 kB / 279 MB, free: 11.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.359e-05/0.006599, allocations: 99.12 kB / 279.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.516e-05/0.006644, allocations: 55.31 kB / 279.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.006767, allocations: 0.5078 MB / 279.7 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.482e-05/0.006832, allocations: 119.8 kB / 279.8 MB, free: 10.37 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.332e-05/0.006915, allocations: 167.5 kB / 279.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001585/0.007074, allocations: 314.1 kB / 280.2 MB, free: 9.844 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.007076, allocations: 0 / 280.2 MB, free: 9.844 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002448/0.00732, allocations: 408.2 kB / 280.6 MB, free: 9.414 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.389e-05/0.007384, allocations: 110 kB / 280.7 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.00739, allocations: 4 kB / 280.8 MB, free: 9.293 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.007403, allocations: 4 kB / 280.8 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.212e-06/0.007404, allocations: 0 / 280.8 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.534e-06/0.007406, allocations: 0 / 280.8 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.53e-05/0.007442, allocations: 27.78 kB / 280.8 MB, free: 9.262 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.007454, allocations: 8 kB / 280.8 MB, free: 9.254 MB / 266.7 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.0001549/0.007609, allocations: 310.4 kB / 281.1 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.173e-05/0.007651, allocations: 39.91 kB / 281.1 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.423e-05/0.007665, allocations: 5.656 kB / 281.1 MB, free: 8.883 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.007666, allocations: 0 / 281.1 MB, free: 8.883 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.007669, allocations: 8 kB / 281.1 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.007672, allocations: 0 / 281.1 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.245e-05/0.007764, allocations: 149 kB / 281.3 MB, free: 8.703 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.007765, allocations: 0 / 281.3 MB, free: 8.703 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.844e-06/0.007767, allocations: 4 kB / 281.3 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.007768, allocations: 0 / 281.3 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.007786, allocations: 19.98 kB / 281.3 MB, free: 8.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.007787, allocations: 0 / 281.3 MB, free: 8.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.007788, allocations: 0 / 281.3 MB, free: 8.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005041/0.008292, allocations: 0.7614 MB / 282.1 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.3e-05/0.008305, allocations: 19.78 kB / 282.1 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.525e-05/0.00837, allocations: 63.97 kB / 282.2 MB, free: 7.785 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.819e-05/0.008398, allocations: 8 kB / 282.2 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.562e-05/0.008424, allocations: 15.98 kB / 282.2 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-05/0.00845, allocations: 11.98 kB / 282.2 MB, free: 7.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.383e-05/0.008484, allocations: 127.2 kB / 282.3 MB, free: 7.625 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008484, allocations: 0 / 282.3 MB, free: 7.625 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002343/0.008718, allocations: 91.86 kB / 282.4 MB, free: 7.535 MB / 266.7 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.0004115/0.00913, allocations: 318.1 kB / 282.7 MB, free: 7.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003804/0.00951, allocations: 0.6335 MB / 283.4 MB, free: 6.562 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.009512, allocations: 0 / 283.4 MB, free: 6.562 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002166/0.009728, allocations: 433.7 kB / 283.8 MB, free: 6.098 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.009866, allocations: 31.98 kB / 283.8 MB, free: 6.066 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003871/0.01025, allocations: 406.3 kB / 284.2 MB, free: 5.621 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.362e-05/0.0103, allocations: 80.58 kB / 284.3 MB, free: 5.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.655e-06/0.0103, allocations: 0 / 284.3 MB, free: 5.52 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.01046, allocations: 150.2 kB / 284.4 MB, free: 5.371 MB / 266.7 MB Notification: Performance of SimCode: time 1.322e-06/0.01046, allocations: 0 / 284.4 MB, free: 5.371 MB / 266.7 MB Notification: Performance of Templates: time 0.004795/0.01525, allocations: 3.401 MB / 287.8 MB, free: 1.992 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5670303222723305]