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.001049/0.001049, allocations: 91.5 kB / 21.19 MB, free: 3.371 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.00104/0.00104, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 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.042/1.042, allocations: 177 MB / 204.8 MB, free: 5.586 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.343e-06/1.343e-06, allocations: 0 / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.414e-05/2.548e-05, allocations: 8.984 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.005068/0.005094, allocations: 1.276 MB / 274.2 MB, free: 176 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008003/0.005894, allocations: 466.2 kB / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.49e-05/0.005929, allocations: 0 / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.431e-05/0.005973, allocations: 3.938 kB / 274.6 MB, free: 15.71 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.0005066/0.00648, allocations: 87.7 kB / 274.7 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001485/0.006629, allocations: 63.62 kB / 274.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.826e-05/0.006727, allocations: 51.83 kB / 274.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.441e-05/0.006761, allocations: 0 / 274.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.542e-05/0.006807, allocations: 23.97 kB / 274.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.574e-05/0.006842, allocations: 23.91 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.006854, allocations: 0 / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002568/0.007111, allocations: 151.7 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.453e-05/0.007156, allocations: 35.92 kB / 275.1 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.538e-05/0.007201, allocations: 31.86 kB / 275.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003281/0.01048, allocations: 191.4 kB / 275.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.01049, allocations: 0 / 275.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.01049, allocations: 0 / 275.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.01049, allocations: 0 / 275.3 MB, free: 15.06 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.0004714/0.01096, allocations: 0.5615 MB / 275.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.011, allocations: 11.98 kB / 275.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.01114, allocations: 28.84 kB / 275.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.577e-05/0.01123, allocations: 128.4 kB / 276 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.01124, allocations: 384 / 276 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.01126, allocations: 4.375 kB / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002484/0.0115, allocations: 280 kB / 276.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.28e-06/0.01151, allocations: 192 / 276.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.01152, allocations: 4.375 kB / 276.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.01153, allocations: 384 / 276.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001231/0.01165, allocations: 175.2 kB / 276.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001296/0.01178, allocations: 144.2 kB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001662/0.01195, allocations: 229.6 kB / 276.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001254/0.01207, allocations: 194.7 kB / 277 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.512e-06/0.01208, allocations: 4 kB / 277 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003175/0.0124, allocations: 478.4 kB / 277.5 MB, free: 12.58 MB / 266.7 MB Notification: Performance of pre-optimization done (n=46): time 1.052e-06/0.0124, allocations: 0 / 277.5 MB, free: 12.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006682/0.01306, allocations: 0.7506 MB / 278.2 MB, free: 11.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.385e-05/0.01313, allocations: 156.5 kB / 278.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.016e-05/0.01321, allocations: 165.9 kB / 278.6 MB, free: 11.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.01322, allocations: 29.7 kB / 278.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.732e-05/0.01326, allocations: 127.9 kB / 278.7 MB, free: 11.26 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00185/0.01511, allocations: 95.22 kB / 278.8 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.736e-05/0.01517, allocations: 55.34 kB / 278.9 MB, free: 11.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.01529, allocations: 0.4962 MB / 279.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.197e-05/0.01538, allocations: 139.7 kB / 279.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.01549, allocations: 175.5 kB / 279.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.0157, allocations: 326 kB / 280 MB, free: 9.902 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.0157, allocations: 0 / 280 MB, free: 9.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003338/0.01604, allocations: 428.2 kB / 280.4 MB, free: 9.453 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.211e-05/0.01611, allocations: 106.6 kB / 280.5 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.01611, allocations: 0 / 280.5 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.01613, allocations: 0 / 280.5 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.155e-06/0.01613, allocations: 0 / 280.5 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.01613, allocations: 7.938 kB / 280.5 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.59e-05/0.01618, allocations: 19.84 kB / 280.5 MB, free: 9.312 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.0162, allocations: 8.094 kB / 280.5 MB, free: 9.305 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.0001877/0.01638, allocations: 314.4 kB / 280.8 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.835e-05/0.01644, allocations: 43.91 kB / 280.9 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.176e-05/0.01645, allocations: 5.656 kB / 280.9 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.01646, allocations: 7.938 kB / 280.9 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.01646, allocations: 0 / 280.9 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.01646, allocations: 3.938 kB / 280.9 MB, free: 8.914 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.01658, allocations: 164.4 kB / 281.1 MB, free: 8.719 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.01658, allocations: 0 / 281.1 MB, free: 8.719 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.653e-06/0.01658, allocations: 3.984 kB / 281.1 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.01659, allocations: 4 kB / 281.1 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.01661, allocations: 16 kB / 281.1 MB, free: 8.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.01661, allocations: 4 kB / 281.1 MB, free: 8.691 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01661, allocations: 0 / 281.1 MB, free: 8.691 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006717/0.01728, allocations: 0.7771 MB / 281.9 MB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.842e-05/0.0173, allocations: 15.84 kB / 281.9 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.514e-05/0.0174, allocations: 59.94 kB / 281.9 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.569e-05/0.01745, allocations: 12 kB / 282 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.845e-05/0.01749, allocations: 12.27 kB / 282 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.01752, allocations: 23.92 kB / 282 MB, free: 7.742 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.283e-05/0.01756, allocations: 127.2 kB / 282.1 MB, free: 7.617 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.01756, allocations: 4 kB / 282.1 MB, free: 7.613 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003171/0.01788, allocations: 87.88 kB / 282.2 MB, free: 7.527 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.0005441/0.01843, allocations: 314.6 kB / 282.5 MB, free: 7.242 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005465/0.01897, allocations: 0.661 MB / 283.2 MB, free: 6.527 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.01897, allocations: 0 / 283.2 MB, free: 6.527 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000284/0.01926, allocations: 453.7 kB / 283.6 MB, free: 6.043 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001416/0.0194, allocations: 35.11 kB / 283.6 MB, free: 6.012 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004249/0.01982, allocations: 414.5 kB / 284.1 MB, free: 5.559 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.029e-05/0.01987, allocations: 84.25 kB / 284.1 MB, free: 5.453 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.107e-06/0.01988, allocations: 4 kB / 284.1 MB, free: 5.449 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.322e-05/0.0199, allocations: 8.5 kB / 284.1 MB, free: 5.441 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.0199, allocations: 0 / 284.1 MB, free: 5.441 MB / 266.7 MB Notification: Performance of Templates: time 0.005434/0.02533, allocations: 3.385 MB / 287.5 MB, free: 2.062 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.7000302490778267]