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.001904/0.001904, allocations: 91.61 kB / 20.96 MB, free: 3.457 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.001927/0.001927, allocations: 165.3 kB / 24.27 MB, free: 148 kB / 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 1.57/1.57, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.663e-06/1.663e-06, allocations: 0 / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.325e-05/2.492e-05, allocations: 2.312 kB / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002588/0.002613, allocations: 1.253 MB / 273.6 MB, free: 0.582 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.003709, allocations: 458.3 kB / 274 MB, free: 136 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.907e-05/0.003738, allocations: 0 / 274 MB, free: 136 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.166e-05/0.00378, allocations: 0 / 274 MB, free: 136 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.0004958/0.004275, allocations: 87.58 kB / 274.1 MB, free: 48 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000195/0.00447, allocations: 59.75 kB / 274.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000102/0.004572, allocations: 51.77 kB / 274.2 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.047e-05/0.004603, allocations: 3.938 kB / 274.2 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.221e-05/0.004665, allocations: 31.95 kB / 274.2 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.19e-05/0.004707, allocations: 15.98 kB / 274.3 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.673e-05/0.004724, allocations: 4 kB / 274.3 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003419/0.005066, allocations: 151.6 kB / 274.4 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.531e-05/0.005131, allocations: 35.88 kB / 274.4 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.867e-05/0.00519, allocations: 27.92 kB / 274.5 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003297/0.005519, allocations: 191.3 kB / 274.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.005524, allocations: 4 kB / 274.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.005524, allocations: 0 / 274.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.005529, allocations: 0 / 274.7 MB, free: 15.48 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.0006813/0.00621, allocations: 0.5534 MB / 275.2 MB, free: 14.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.006246, allocations: 12.03 kB / 275.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001585/0.006404, allocations: 28.83 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.006546, allocations: 124.5 kB / 275.4 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.006562, allocations: 4.375 kB / 275.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.006576, allocations: 4.375 kB / 275.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003489/0.006925, allocations: 275.9 kB / 275.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.006933, allocations: 192 / 275.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.006944, allocations: 384 / 275.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.006948, allocations: 4.375 kB / 275.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001998/0.007148, allocations: 167.3 kB / 275.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001833/0.007331, allocations: 144.2 kB / 276 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002922/0.007623, allocations: 249.5 kB / 276.2 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002194/0.007842, allocations: 214.8 kB / 276.4 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.007852, allocations: 0 / 276.4 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005306/0.008382, allocations: 482.3 kB / 276.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=46): time 9.32e-07/0.008383, allocations: 0 / 276.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=46): time 0.001011/0.009394, allocations: 0.7495 MB / 277.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.009517, allocations: 156.5 kB / 277.8 MB, free: 12 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.009661, allocations: 169.9 kB / 278 MB, free: 11.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.271e-05/0.009684, allocations: 29.77 kB / 278 MB, free: 11.79 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.599e-05/0.00976, allocations: 127.9 kB / 278.1 MB, free: 11.65 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.63e-05/0.009856, allocations: 95.22 kB / 278.2 MB, free: 11.56 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.599e-05/0.009942, allocations: 55.34 kB / 278.3 MB, free: 11.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002722/0.01021, allocations: 0.5001 MB / 278.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.01036, allocations: 135.8 kB / 278.9 MB, free: 10.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.01053, allocations: 167.5 kB / 279.1 MB, free: 10.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00033/0.01086, allocations: 331.4 kB / 279.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.01086, allocations: 4 kB / 279.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004987/0.01136, allocations: 428.2 kB / 279.8 MB, free: 9.848 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.01147, allocations: 103.4 kB / 279.9 MB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.01148, allocations: 4 kB / 279.9 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.01149, allocations: 0 / 279.9 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.01149, allocations: 0 / 279.9 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.0115, allocations: 7.875 kB / 279.9 MB, free: 9.723 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.495e-05/0.01157, allocations: 23.84 kB / 279.9 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.151e-05/0.01159, allocations: 8 kB / 279.9 MB, free: 9.691 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.0002946/0.01188, allocations: 306.4 kB / 280.2 MB, free: 9.367 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.101e-05/0.01196, allocations: 43.91 kB / 280.3 MB, free: 9.324 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.23e-05/0.01198, allocations: 9.656 kB / 280.3 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.01198, allocations: 0 / 280.3 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.01198, allocations: 0 / 280.3 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.01199, allocations: 3.938 kB / 280.3 MB, free: 9.312 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002954/0.01228, allocations: 172.4 kB / 280.5 MB, free: 9.109 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.01228, allocations: 4 kB / 280.5 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.016e-06/0.01229, allocations: 3.984 kB / 280.5 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.01229, allocations: 0 / 280.5 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.087e-05/0.01232, allocations: 16 kB / 280.5 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.01232, allocations: 0 / 280.5 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01232, allocations: 4 kB / 280.5 MB, free: 9.082 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009947/0.01332, allocations: 0.7693 MB / 281.3 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.452e-05/0.01334, allocations: 19.8 kB / 281.3 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.01345, allocations: 59.94 kB / 281.3 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.513e-05/0.01351, allocations: 8 kB / 281.3 MB, free: 8.176 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.928e-05/0.01354, allocations: 8 kB / 281.4 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-05/0.01358, allocations: 31.94 kB / 281.4 MB, free: 8.137 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.475e-05/0.01367, allocations: 131.2 kB / 281.5 MB, free: 8.008 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01367, allocations: 0 / 281.5 MB, free: 8.008 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000349/0.01402, allocations: 87.88 kB / 281.6 MB, free: 7.922 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.0008511/0.01487, allocations: 305.4 kB / 281.9 MB, free: 7.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008842/0.01575, allocations: 0.7469 MB / 282.6 MB, free: 6.859 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.01575, allocations: 0 / 282.6 MB, free: 6.859 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005972/0.01635, allocations: 0.5643 MB / 283.2 MB, free: 6.254 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002063/0.01656, allocations: 35.92 kB / 283.2 MB, free: 6.219 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000686/0.01724, allocations: 406.3 kB / 283.6 MB, free: 5.773 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001275/0.01737, allocations: 110 kB / 283.8 MB, free: 5.645 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.195e-06/0.01738, allocations: 3.938 kB / 283.8 MB, free: 5.641 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.777e-05/0.0174, allocations: 8.5 kB / 283.8 MB, free: 5.633 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.0174, allocations: 4.125 kB / 283.8 MB, free: 5.629 MB / 266.7 MB Notification: Performance of Templates: time 0.007623/0.02502, allocations: 3.163 MB / 286.9 MB, free: 2.492 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.249920689035207]