Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005973/0.005973, allocations: 146.9 kB / 24.68 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.874/0.874, allocations: 173.4 MB / 201.2 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.003e-06/2.003e-06, allocations: 0 / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.682e-05/2.882e-05, allocations: 2.281 kB / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001657/0.001686, allocations: 1.208 MB / 320.9 MB, free: 4.637 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007135/0.002399, allocations: 456.9 kB / 321.3 MB, free: 4.191 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.176e-05/0.002431, allocations: 3.938 kB / 321.3 MB, free: 4.188 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.42e-05/0.002465, allocations: 0 / 321.3 MB, free: 4.188 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0004477/0.002913, allocations: 83.59 kB / 321.4 MB, free: 4.105 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001046/0.003018, allocations: 75.61 kB / 321.5 MB, free: 4.031 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.521e-05/0.003103, allocations: 43.91 kB / 321.5 MB, free: 3.988 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.014e-05/0.003143, allocations: 4 kB / 321.5 MB, free: 3.984 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.715e-05/0.00319, allocations: 23.97 kB / 321.6 MB, free: 3.961 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.677e-05/0.003227, allocations: 23.89 kB / 321.6 MB, free: 3.938 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.308e-05/0.00324, allocations: 4 kB / 321.6 MB, free: 3.934 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002153/0.003455, allocations: 151.7 kB / 321.7 MB, free: 3.785 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.048e-05/0.003496, allocations: 27.94 kB / 321.8 MB, free: 3.758 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.014e-05/0.003536, allocations: 35.86 kB / 321.8 MB, free: 3.723 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002046/0.003741, allocations: 187.3 kB / 322 MB, free: 3.539 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.003744, allocations: 11.94 kB / 322 MB, free: 3.527 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.003746, allocations: 0 / 322 MB, free: 3.527 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.00375, allocations: 0 / 322 MB, free: 3.527 MB / 282.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.0004659/0.004216, allocations: 488.7 kB / 322.5 MB, free: 3.004 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.004252, allocations: 12.92 kB / 322.5 MB, free: 2.992 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.004367, allocations: 20.84 kB / 322.5 MB, free: 2.973 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.004473, allocations: 117.7 kB / 322.6 MB, free: 2.832 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.004486, allocations: 384 / 322.6 MB, free: 2.832 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.412e-05/0.0045, allocations: 12.36 kB / 322.6 MB, free: 2.82 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002943/0.004794, allocations: 395.1 kB / 323 MB, free: 2.41 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.004801, allocations: 4.188 kB / 323 MB, free: 2.406 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.004812, allocations: 8.312 kB / 323 MB, free: 2.398 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.004816, allocations: 384 / 323 MB, free: 2.398 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001484/0.004965, allocations: 271.2 kB / 323.3 MB, free: 2.121 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001223/0.005087, allocations: 126 kB / 323.4 MB, free: 1.965 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004427/0.00553, allocations: 300.5 kB / 323.7 MB, free: 1.641 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.005665, allocations: 269 kB / 324 MB, free: 1.359 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.265e-06/0.005673, allocations: 4 kB / 324 MB, free: 1.355 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003834/0.006056, allocations: 0.5664 MB / 324.5 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of pre-optimization done (n=46): time 8.01e-07/0.006057, allocations: 0 / 324.5 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of matching and sorting (n=46): time 0.0007005/0.006758, allocations: 0.9798 MB / 325.5 MB, free: 15.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.006825, allocations: 164.4 kB / 325.7 MB, free: 15.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.51e-05/0.0069, allocations: 105.8 kB / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.006911, allocations: 29.7 kB / 325.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.517e-05/0.006937, allocations: 81.14 kB / 325.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.796e-05/0.006984, allocations: 95.22 kB / 326 MB, free: 15.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.922e-05/0.007024, allocations: 41.69 kB / 326 MB, free: 15.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.684e-05/0.007101, allocations: 326.8 kB / 326.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.007207, allocations: 195.7 kB / 326.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.00732, allocations: 229.8 kB / 326.8 MB, free: 14.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002406/0.007561, allocations: 469.4 kB / 327.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.007563, allocations: 3.938 kB / 327.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002899/0.007852, allocations: 492.2 kB / 327.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.327e-05/0.007916, allocations: 111.3 kB / 327.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.007921, allocations: 0 / 327.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.007935, allocations: 3.984 kB / 327.8 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.064e-06/0.007937, allocations: 4 kB / 327.8 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.007944, allocations: 3.938 kB / 327.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.499e-05/0.007979, allocations: 19.84 kB / 327.9 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.007992, allocations: 11.94 kB / 327.9 MB, free: 13.2 MB / 298.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.0001612/0.008154, allocations: 275.8 kB / 328.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.423e-05/0.008188, allocations: 27.89 kB / 328.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.056e-05/0.008198, allocations: 9.594 kB / 328.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.008202, allocations: 4 kB / 328.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.008207, allocations: 4 kB / 328.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.008211, allocations: 4.266 kB / 328.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.245e-05/0.008303, allocations: 157.1 kB / 328.3 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.008304, allocations: 4 kB / 328.3 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.01e-07/0.008305, allocations: 0 / 328.3 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.008308, allocations: 3.984 kB / 328.3 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.008326, allocations: 19.98 kB / 328.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.008327, allocations: 0 / 328.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.008329, allocations: 4 kB / 328.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006061/0.008935, allocations: 0.9156 MB / 329.3 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.605e-05/0.008951, allocations: 27.88 kB / 329.3 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.375e-05/0.009015, allocations: 63.94 kB / 329.4 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.126e-05/0.009046, allocations: 12 kB / 329.4 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.807e-05/0.009074, allocations: 11.94 kB / 329.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.009097, allocations: 23.92 kB / 329.4 MB, free: 11.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.101e-05/0.009128, allocations: 79.28 kB / 329.5 MB, free: 11.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009128, allocations: 0 / 329.5 MB, free: 11.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002252/0.009353, allocations: 91.86 kB / 329.6 MB, free: 11.38 MB / 298.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.0004183/0.009771, allocations: 322 kB / 329.9 MB, free: 11.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008013/0.01057, allocations: 0.8603 MB / 330.8 MB, free: 10.19 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.01057, allocations: 3.938 kB / 330.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002765/0.01085, allocations: 0.5292 MB / 331.3 MB, free: 9.617 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.01099, allocations: 20 kB / 331.3 MB, free: 9.598 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005087/0.0115, allocations: 0.5356 MB / 331.8 MB, free: 9.016 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.262e-05/0.01157, allocations: 119 kB / 332 MB, free: 8.875 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.251e-05/0.01159, allocations: 8.5 kB / 332 MB, free: 8.867 MB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01159, allocations: 0 / 332 MB, free: 8.867 MB / 298.7 MB Notification: Performance of Templates: time 0.003353/0.01494, allocations: 2.896 MB / 334.9 MB, free: 5.969 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.829232172109187]