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.001256/0.001256, allocations: 114.9 kB / 19.04 MB, free: 3.281 MB / 14.72 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.001453/0.001453, allocations: 186 kB / 22.21 MB, free: 116 kB / 14.72 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 1.412/1.412, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001493/0.001493, allocations: 47.92 kB / 368.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2793, allocations: 52.14 MB / 420.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002244/0.2815, allocations: 1.242 MB / 422.1 MB, free: 14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.2826, allocations: 472.4 kB / 422.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.006e-05/0.2826, allocations: 0 / 422.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.004e-05/0.2826, allocations: 11.88 kB / 422.6 MB, free: 13.53 MB / 334.1 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.0004537/0.2831, allocations: 71.73 kB / 422.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001419/0.2832, allocations: 63.8 kB / 422.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001074/0.2833, allocations: 51.84 kB / 422.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.406e-05/0.2834, allocations: 0 / 422.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.749e-05/0.2834, allocations: 23.97 kB / 422.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.175e-05/0.2835, allocations: 15.92 kB / 422.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.491e-05/0.2835, allocations: 4 kB / 422.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002389/0.2837, allocations: 123.8 kB / 422.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.224e-05/0.2838, allocations: 39.84 kB / 423 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.481e-05/0.2838, allocations: 55.67 kB / 423 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002703/0.2841, allocations: 184.7 kB / 423.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2841, allocations: 0 / 423.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2841, allocations: 0 / 423.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.2841, allocations: 0 / 423.2 MB, free: 12.91 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.0006717/0.2848, allocations: 0.5682 MB / 423.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.2848, allocations: 12.03 kB / 423.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001835/0.285, allocations: 16.84 kB / 423.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.2852, allocations: 176.2 kB / 424 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.2852, allocations: 8.375 kB / 424 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.735e-05/0.2853, allocations: 4.375 kB / 424 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004278/0.2857, allocations: 283.7 kB / 424.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.2857, allocations: 4.125 kB / 424.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.2857, allocations: 3.938 kB / 424.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.2857, allocations: 4 kB / 424.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.2859, allocations: 136 kB / 424.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003054/0.2862, allocations: 206.4 kB / 424.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000239/0.2864, allocations: 177.1 kB / 424.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001847/0.2866, allocations: 153.7 kB / 424.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.2866, allocations: 0 / 424.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006162/0.2873, allocations: 480.8 kB / 425.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.123e-06/0.2873, allocations: 0 / 425.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.001095/0.2884, allocations: 0.7428 MB / 426.1 MB, free: 9.711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001605/0.2885, allocations: 160.4 kB / 426.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.2886, allocations: 105.8 kB / 426.4 MB, free: 9.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.2887, allocations: 29.7 kB / 426.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.85e-05/0.2887, allocations: 81.14 kB / 426.5 MB, free: 9.289 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.2888, allocations: 95.28 kB / 426.6 MB, free: 9.195 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.127e-05/0.2889, allocations: 37.7 kB / 426.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.2891, allocations: 338.8 kB / 427 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.95e-05/0.2892, allocations: 80.34 kB / 427 MB, free: 8.734 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.2893, allocations: 110.2 kB / 427.2 MB, free: 8.621 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.2897, allocations: 417.4 kB / 427.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2897, allocations: 0 / 427.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004279/0.2901, allocations: 349.2 kB / 427.9 MB, free: 7.824 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001212/0.2902, allocations: 118.5 kB / 428 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2902, allocations: 0 / 428 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.2902, allocations: 0 / 428 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.81e-07/0.2902, allocations: 0 / 428 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.2902, allocations: 3.938 kB / 428 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.79e-05/0.2903, allocations: 23.84 kB / 428 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.2903, allocations: 11.98 kB / 428.1 MB, free: 7.66 MB / 334.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.0003143/0.2906, allocations: 303.7 kB / 428.4 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.757e-05/0.2907, allocations: 31.84 kB / 428.4 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.507e-05/0.2907, allocations: 9.562 kB / 428.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.2907, allocations: 0 / 428.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.2907, allocations: 4 kB / 428.4 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2907, allocations: 4 kB / 428.4 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.291, allocations: 229.4 kB / 428.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.291, allocations: 0 / 428.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.627e-06/0.291, allocations: 4 kB / 428.6 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.291, allocations: 3.938 kB / 428.6 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.041e-05/0.291, allocations: 16 kB / 428.6 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.095e-06/0.291, allocations: 7.984 kB / 428.7 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.291, allocations: 0 / 428.7 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.2923, allocations: 1.256 MB / 429.9 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.82e-05/0.2924, allocations: 92.95 kB / 430 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.2925, allocations: 71.88 kB / 430.1 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.463e-05/0.2925, allocations: 12 kB / 430.1 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.604e-05/0.2926, allocations: 11.98 kB / 430.1 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-05/0.2926, allocations: 16 kB / 430.1 MB, free: 5.484 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.172e-05/0.2927, allocations: 83.27 kB / 430.2 MB, free: 5.402 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2927, allocations: 0 / 430.2 MB, free: 5.402 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003378/0.293, allocations: 87.88 kB / 430.3 MB, free: 5.316 MB / 334.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.0007148/0.2937, allocations: 309.4 kB / 430.6 MB, free: 5.039 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.2949, allocations: 1.064 MB / 431.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2949, allocations: 3.938 kB / 431.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007993/0.2957, allocations: 0.8928 MB / 432.5 MB, free: 3.027 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000196/0.2959, allocations: 20 kB / 432.6 MB, free: 3.008 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006541/0.2965, allocations: 396.2 kB / 432.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.2969, allocations: 0.7282 MB / 433.7 MB, free: 1.836 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.032e-05/0.2969, allocations: 0 / 433.7 MB, free: 1.836 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.718e-05/0.2969, allocations: 7.438 kB / 433.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2969, allocations: 0 / 433.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of Templates: time 0.006726/0.3036, allocations: 3.066 MB / 436.7 MB, free: 14.76 MB / 350.1 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.322870880365372]