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.001294/0.001294, allocations: 71.77 kB / 21.69 MB, free: 2.852 MB / 18.57 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.001028/0.001028, allocations: 163.6 kB / 24.99 MB, free: 8.254 MB / 18.57 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 0.9583/0.9583, allocations: 177.1 MB / 205.3 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] 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 1.453e-06/1.453e-06, allocations: 0 / 273 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.566e-05/1.711e-05, allocations: 2.312 kB / 273 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.00159/0.001607, allocations: 1.276 MB / 274.3 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006406/0.002248, allocations: 458.2 kB / 274.8 MB, free: 100 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.176e-05/0.002279, allocations: 0 / 274.8 MB, free: 100 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.934e-05/0.002319, allocations: 7.922 kB / 274.8 MB, free: 92 kB / 250.7 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.0004219/0.002741, allocations: 79.7 kB / 274.9 MB, free: 12 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001069/0.002848, allocations: 75.55 kB / 274.9 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 8.205e-05/0.00293, allocations: 35.92 kB / 275 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.724e-05/0.002967, allocations: 11.98 kB / 275 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.325e-05/0.00301, allocations: 23.97 kB / 275 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.74e-05/0.003048, allocations: 15.92 kB / 275 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.256e-05/0.00306, allocations: 7.984 kB / 275 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.003259, allocations: 151.7 kB / 275.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.241e-05/0.003302, allocations: 31.92 kB / 275.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.549e-05/0.003337, allocations: 27.88 kB / 275.2 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001963/0.003533, allocations: 195.3 kB / 275.4 MB, free: 15.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.003535, allocations: 0 / 275.4 MB, free: 15.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.003536, allocations: 3.938 kB / 275.4 MB, free: 15.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.377e-06/0.00354, allocations: 0 / 275.4 MB, free: 15.44 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.0004067/0.003946, allocations: 0.5538 MB / 276 MB, free: 14.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.003981, allocations: 12.03 kB / 276 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001195/0.004101, allocations: 24.84 kB / 276 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.563e-05/0.004196, allocations: 124.5 kB / 276.1 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.00421, allocations: 4.375 kB / 276.1 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.00422, allocations: 4.375 kB / 276.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/0.004424, allocations: 279.9 kB / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.004431, allocations: 192 / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.004442, allocations: 4.375 kB / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.004449, allocations: 384 / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.904e-05/0.004548, allocations: 187.2 kB / 276.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000115/0.004663, allocations: 140.2 kB / 276.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001396/0.004803, allocations: 229.5 kB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.604e-05/0.004899, allocations: 186.8 kB / 277.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.45e-06/0.004904, allocations: 0 / 277.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002689/0.005173, allocations: 486.3 kB / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of pre-optimization done (n=46): time 2.184e-06/0.005175, allocations: 3.984 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005575/0.005733, allocations: 0.7457 MB / 278.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/0.005792, allocations: 156.5 kB / 278.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.487e-05/0.005867, allocations: 169.9 kB / 278.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.005879, allocations: 29.7 kB / 278.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.501e-05/0.005914, allocations: 127.9 kB / 278.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.464e-05/0.005969, allocations: 95.22 kB / 278.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-05/0.00601, allocations: 47.36 kB / 279 MB, free: 11.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.006118, allocations: 0.5079 MB / 279.5 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.83e-05/0.006186, allocations: 127.8 kB / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.324e-05/0.006269, allocations: 171.5 kB / 279.8 MB, free: 10.65 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001689/0.006438, allocations: 335 kB / 280.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.006441, allocations: 4 kB / 280.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003859/0.006827, allocations: 420.3 kB / 280.5 MB, free: 9.844 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.76e-05/0.006884, allocations: 111.3 kB / 280.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.006889, allocations: 0 / 280.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.006909, allocations: 4 kB / 280.6 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.763e-06/0.00691, allocations: 0 / 280.6 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.006918, allocations: 11.88 kB / 280.7 MB, free: 9.707 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.374e-05/0.006951, allocations: 23.84 kB / 280.7 MB, free: 9.684 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.006966, allocations: 11.98 kB / 280.7 MB, free: 9.672 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.000142/0.007107, allocations: 306.5 kB / 281 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.319e-05/0.007151, allocations: 39.91 kB / 281 MB, free: 9.309 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.051e-05/0.007161, allocations: 9.641 kB / 281 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.007163, allocations: 0 / 281 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.007167, allocations: 4 kB / 281 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.00717, allocations: 3.938 kB / 281 MB, free: 9.293 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.314e-05/0.007263, allocations: 164.4 kB / 281.2 MB, free: 9.098 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.007265, allocations: 4 kB / 281.2 MB, free: 9.094 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.71e-07/0.007266, allocations: 0 / 281.2 MB, free: 9.094 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.007267, allocations: 0 / 281.2 MB, free: 9.094 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.007285, allocations: 19.98 kB / 281.2 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.007286, allocations: 0 / 281.2 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.007287, allocations: 0 / 281.2 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005302/0.007817, allocations: 0.7771 MB / 282 MB, free: 8.246 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.314e-05/0.007831, allocations: 19.84 kB / 282 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.576e-05/0.007906, allocations: 59.94 kB / 282.1 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.877e-05/0.007935, allocations: 8 kB / 282.1 MB, free: 8.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.755e-05/0.007963, allocations: 16.02 kB / 282.1 MB, free: 8.145 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.00798, allocations: 23.92 kB / 282.1 MB, free: 8.121 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.288e-05/0.008013, allocations: 123.5 kB / 282.2 MB, free: 8 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008013, allocations: 0 / 282.2 MB, free: 8 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002079/0.008221, allocations: 91.86 kB / 282.3 MB, free: 7.91 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.000418/0.008639, allocations: 309.2 kB / 282.6 MB, free: 7.645 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004133/0.009052, allocations: 0.6688 MB / 283.3 MB, free: 6.922 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.009054, allocations: 4.125 kB / 283.3 MB, free: 6.918 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002289/0.009282, allocations: 449.7 kB / 283.8 MB, free: 6.438 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001404/0.009423, allocations: 31.98 kB / 283.8 MB, free: 6.406 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004113/0.009834, allocations: 414.2 kB / 284.2 MB, free: 5.953 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.903e-05/0.009873, allocations: 80.27 kB / 284.3 MB, free: 5.852 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.383e-06/0.00988, allocations: 0 / 284.3 MB, free: 5.852 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.175e-05/0.009892, allocations: 8.625 kB / 284.3 MB, free: 5.844 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.009893, allocations: 4 kB / 284.3 MB, free: 5.84 MB / 266.7 MB Notification: Performance of Templates: time 0.004501/0.01439, allocations: 3.175 MB / 287.5 MB, free: 2.691 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 240] 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","",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.5668609358835965]