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.001285/0.001285, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009838/0.0009838, allocations: 165.4 kB / 24.56 MB, free: 16 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 0.9312/0.9312, allocations: 177.2 MB / 205 MB, free: 5.277 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.413e-06/1.413e-06, allocations: 0 / 273 MB, free: 1.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.774e-05/1.916e-05, allocations: 2.312 kB / 273 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001746/0.001765, allocations: 1.28 MB / 274.2 MB, free: 120 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007013/0.002467, allocations: 462.2 kB / 274.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.165e-05/0.002488, allocations: 0 / 274.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.824e-05/0.002526, allocations: 3.938 kB / 274.7 MB, free: 15.66 MB / 266.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.0003467/0.002873, allocations: 75.66 kB / 274.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001222/0.002995, allocations: 75.61 kB / 274.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.76e-05/0.003073, allocations: 55.83 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.343e-05/0.003096, allocations: 3.984 kB / 274.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.791e-05/0.003134, allocations: 23.97 kB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.891e-05/0.003163, allocations: 15.97 kB / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.728e-06/0.003173, allocations: 0 / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002266/0.003399, allocations: 151.7 kB / 275.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.782e-05/0.003437, allocations: 39.86 kB / 275.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.159e-05/0.003479, allocations: 31.92 kB / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002226/0.003701, allocations: 191.3 kB / 275.4 MB, free: 15.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.003703, allocations: 0 / 275.4 MB, free: 15.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.003704, allocations: 4 kB / 275.4 MB, free: 15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.003708, allocations: 4 kB / 275.4 MB, free: 15 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.000425/0.004133, allocations: 0.5498 MB / 275.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.973e-05/0.004163, allocations: 8.031 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.004284, allocations: 28.83 kB / 275.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.149e-05/0.004375, allocations: 124.4 kB / 276.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.004387, allocations: 8.375 kB / 276.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.004399, allocations: 8.312 kB / 276.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/0.004631, allocations: 279.9 kB / 276.4 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.004637, allocations: 192 / 276.4 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-06/0.004647, allocations: 384 / 276.4 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.341e-06/0.004653, allocations: 8.375 kB / 276.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.004774, allocations: 171.3 kB / 276.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001177/0.004892, allocations: 144.1 kB / 276.7 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000155/0.005047, allocations: 221.6 kB / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.005168, allocations: 190.8 kB / 277.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.979e-06/0.005173, allocations: 3.984 kB / 277.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003026/0.005476, allocations: 478.4 kB / 277.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=46): time 8.62e-07/0.005477, allocations: 0 / 277.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006387/0.006115, allocations: 0.7496 MB / 278.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.592e-05/0.006181, allocations: 168.5 kB / 278.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.477e-05/0.006256, allocations: 157.9 kB / 278.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.006269, allocations: 29.7 kB / 278.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.863e-05/0.006308, allocations: 135.9 kB / 278.8 MB, free: 11.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.284e-05/0.00637, allocations: 95.22 kB / 278.9 MB, free: 11.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.00642, allocations: 47.36 kB / 278.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.006548, allocations: 0.5001 MB / 279.4 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.619e-05/0.006635, allocations: 131.8 kB / 279.5 MB, free: 10.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.006741, allocations: 175.5 kB / 279.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002104/0.006951, allocations: 331 kB / 280 MB, free: 9.855 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.006953, allocations: 4.031 kB / 280 MB, free: 9.852 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003276/0.00728, allocations: 428.2 kB / 280.5 MB, free: 9.402 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.31e-05/0.007353, allocations: 103.3 kB / 280.6 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.007357, allocations: 0 / 280.6 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.007367, allocations: 0 / 280.6 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.612e-06/0.007374, allocations: 7.984 kB / 280.6 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.00738, allocations: 7.938 kB / 280.6 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.315e-05/0.007424, allocations: 19.84 kB / 280.6 MB, free: 9.254 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.007441, allocations: 8.328 kB / 280.6 MB, free: 9.246 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.0001714/0.007612, allocations: 302.5 kB / 280.9 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.718e-05/0.007669, allocations: 43.91 kB / 280.9 MB, free: 8.883 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.858e-06/0.007679, allocations: 9.656 kB / 281 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.007682, allocations: 3.984 kB / 281 MB, free: 8.871 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.007685, allocations: 0 / 281 MB, free: 8.871 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.00769, allocations: 11.92 kB / 281 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.007805, allocations: 172.4 kB / 281.1 MB, free: 8.656 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.007806, allocations: 0 / 281.1 MB, free: 8.656 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.007807, allocations: 0 / 281.1 MB, free: 8.656 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.007809, allocations: 0 / 281.1 MB, free: 8.656 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.007832, allocations: 19.98 kB / 281.2 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.007834, allocations: 4 kB / 281.2 MB, free: 8.633 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.007835, allocations: 3.938 kB / 281.2 MB, free: 8.629 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006761/0.008511, allocations: 0.7654 MB / 281.9 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.54e-05/0.008527, allocations: 15.84 kB / 281.9 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.935e-05/0.008606, allocations: 59.94 kB / 282 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.21e-05/0.008648, allocations: 16.03 kB / 282 MB, free: 7.723 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.007e-05/0.008678, allocations: 11.98 kB / 282 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.253e-05/0.008701, allocations: 15.94 kB / 282 MB, free: 7.695 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.71e-05/0.008738, allocations: 131.2 kB / 282.2 MB, free: 7.566 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.008738, allocations: 0 / 282.2 MB, free: 7.566 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002975/0.009035, allocations: 87.88 kB / 282.3 MB, free: 7.48 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.0004665/0.009502, allocations: 318.9 kB / 282.6 MB, free: 7.207 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005249/0.01003, allocations: 0.6649 MB / 283.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.01003, allocations: 0 / 283.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003146/0.01034, allocations: 453.7 kB / 283.7 MB, free: 6.004 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001756/0.01052, allocations: 27.98 kB / 283.7 MB, free: 5.977 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004411/0.01096, allocations: 414.2 kB / 284.1 MB, free: 5.523 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.896e-05/0.01101, allocations: 84.25 kB / 284.2 MB, free: 5.418 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.404e-06/0.01102, allocations: 8.234 kB / 284.2 MB, free: 5.41 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.036e-05/0.01103, allocations: 12.5 kB / 284.2 MB, free: 5.398 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01103, allocations: 0 / 284.2 MB, free: 5.398 MB / 266.7 MB Notification: Performance of Templates: time 0.005377/0.0164, allocations: 3.393 MB / 287.6 MB, free: 2.031 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.6718451660126448]