Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006726/0.0006726, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001038/0.00171, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007038/0.0007038, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001033/0.001737, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9865/0.9865, allocations: 177.5 MB / 190 MB, free: 4.781 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1059/1.092, allocations: 53.87 MB / 243.9 MB, free: 14.84 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2728/0.2728, allocations: 34.88 MB / 279.5 MB, free: 14.9 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02956/0.3024, allocations: 13.24 MB / 292.8 MB, free: 6.383 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.[0-9,]+.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.[0-9,]+.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 294.1 MB, free: 5.082 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.637e-05/1.802e-05, allocations: 7.953 kB / 294.1 MB, free: 5.074 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001504/0.001522, allocations: 0.5927 MB / 294.7 MB, free: 4.484 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007556/0.002278, allocations: 447 kB / 295.1 MB, free: 4.051 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.325e-05/0.002311, allocations: 0 / 295.1 MB, free: 4.051 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.228e-05/0.002343, allocations: 7.875 kB / 295.1 MB, free: 4.043 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.344e-05/0.002397, allocations: 7.984 kB / 295.1 MB, free: 4.035 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.typeClassSections: time 0.0006021/0.002999, allocations: 178.3 kB / 295.3 MB, free: 3.863 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001718/0.003171, allocations: 79.88 kB / 295.4 MB, free: 3.785 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.82e-05/0.003209, allocations: 3.984 kB / 295.4 MB, free: 3.781 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.003317, allocations: 55.89 kB / 295.5 MB, free: 3.727 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.359e-05/0.00338, allocations: 15.97 kB / 295.5 MB, free: 3.711 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.525e-05/0.003406, allocations: 0 / 295.5 MB, free: 3.711 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003032/0.003709, allocations: 131.7 kB / 295.6 MB, free: 3.582 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.625e-05/0.003775, allocations: 15.94 kB / 295.6 MB, free: 3.566 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.665e-05/0.003812, allocations: 8 kB / 295.6 MB, free: 3.559 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000275/0.004087, allocations: 131.6 kB / 295.8 MB, free: 3.43 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.143e-05/0.004098, allocations: 0 / 295.8 MB, free: 3.43 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.0041, allocations: 3.984 kB / 295.8 MB, free: 3.426 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.004115, allocations: 0 / 295.8 MB, free: 3.426 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006986/0.004814, allocations: 322.1 kB / 296.1 MB, free: 3.078 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.004858, allocations: 8.922 kB / 296.1 MB, free: 3.07 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.383e-05/0.004912, allocations: 8.922 kB / 296.1 MB, free: 3.062 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/0.005075, allocations: 121.8 kB / 296.2 MB, free: 2.918 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.005086, allocations: 384 / 296.2 MB, free: 2.918 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.843e-05/0.005115, allocations: 8.375 kB / 296.2 MB, free: 2.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001426/0.005257, allocations: 78.91 kB / 296.3 MB, free: 2.824 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.005266, allocations: 8.125 kB / 296.3 MB, free: 2.816 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.005289, allocations: 8.359 kB / 296.3 MB, free: 2.809 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.005295, allocations: 384 / 296.3 MB, free: 2.809 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.72e-05/0.005333, allocations: 19.91 kB / 296.3 MB, free: 2.789 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001137/0.005446, allocations: 63.88 kB / 296.4 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.657e-05/0.005513, allocations: 34.56 kB / 296.4 MB, free: 2.668 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.571e-05/0.005539, allocations: 16.8 kB / 296.4 MB, free: 2.648 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.005551, allocations: 0 / 296.4 MB, free: 2.648 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.005729, allocations: 118.2 kB / 296.6 MB, free: 2.52 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.012e-06/0.00573, allocations: 0 / 296.6 MB, free: 2.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001822/0.005912, allocations: 74.53 kB / 296.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.568e-05/0.005968, allocations: 55.41 kB / 296.7 MB, free: 2.375 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.683e-05/0.006055, allocations: 102.7 kB / 296.8 MB, free: 2.262 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.006083, allocations: 33.7 kB / 296.8 MB, free: 2.223 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.533e-05/0.006118, allocations: 84.12 kB / 296.9 MB, free: 2.137 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.693e-05/0.006155, allocations: 31.77 kB / 296.9 MB, free: 2.105 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-05/0.006198, allocations: 21.72 kB / 297 MB, free: 2.078 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.006309, allocations: 326.8 kB / 297.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.102e-05/0.00636, allocations: 37.7 kB / 297.3 MB, free: 1.707 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.318e-05/0.006414, allocations: 100.5 kB / 297.4 MB, free: 1.578 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.295e-05/0.006507, allocations: 115.3 kB / 297.5 MB, free: 1.434 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.006509, allocations: 0 / 297.5 MB, free: 1.434 MB / 282.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001148/0.006624, allocations: 156.9 kB / 297.7 MB, free: 1.262 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.968e-05/0.006653, allocations: 29.7 kB / 297.7 MB, free: 1.227 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.00666, allocations: 7.984 kB / 297.7 MB, free: 1.219 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.006672, allocations: 0 / 297.7 MB, free: 1.219 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.006774, allocations: 31.92 kB / 297.7 MB, free: 1.188 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.00678, allocations: 3.984 kB / 297.7 MB, free: 1.184 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.063e-05/0.006811, allocations: 15.83 kB / 297.8 MB, free: 1.168 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.006822, allocations: 8.219 kB / 297.8 MB, free: 1.16 MB / 282.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,cnt[3],$PRE.cnt[3],cnt[2],$PRE.cnt[2],cnt[1],$PRE.cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,samples,$PRE.samples) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001226/0.006944, allocations: 132.5 kB / 297.9 MB, free: 1.02 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.006958, allocations: 8.172 kB / 297.9 MB, free: 1.012 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.306e-05/0.006991, allocations: 12.12 kB / 297.9 MB, free: 1 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.006994, allocations: 3.984 kB / 297.9 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.006996, allocations: 0 / 297.9 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.007, allocations: 64 / 297.9 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.268e-05/0.007082, allocations: 81.81 kB / 298 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.007083, allocations: 0 / 298 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.225e-05/0.007105, allocations: 19.98 kB / 298 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.546e-06/0.007114, allocations: 7.953 kB / 298 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.007116, allocations: 4 kB / 298 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.581e-06/0.007121, allocations: 0 / 298 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.12e-07/0.007122, allocations: 0 / 298 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.007123, allocations: 0 / 298 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.628e-05/0.007219, allocations: 98.62 kB / 298.1 MB, free: 0.75 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.007236, allocations: 4 kB / 298.1 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.609e-05/0.007322, allocations: 11.98 kB / 298.1 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.17e-05/0.007344, allocations: 7.984 kB / 298.2 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.007356, allocations: 11.98 kB / 298.2 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.578e-05/0.007372, allocations: 12.84 kB / 298.2 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007372, allocations: 0 / 298.2 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001588/0.007531, allocations: 43.88 kB / 298.2 MB, free: 0.6562 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004304/0.007961, allocations: 195.4 kB / 298.4 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001653/0.008126, allocations: 137.9 kB / 298.5 MB, free: 364 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/0.008135, allocations: 0 / 298.5 MB, free: 364 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.398e-05/0.008169, allocations: 32.77 kB / 298.6 MB, free: 328 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001006/0.00827, allocations: 34.14 kB / 298.6 MB, free: 296 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002597/0.00853, allocations: 144.3 kB / 298.7 MB, free: 124 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.906e-05/0.008559, allocations: 55.36 kB / 298.8 MB, free: 48 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.531e-05/0.008594, allocations: 21.36 kB / 298.8 MB, free: 24 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.961e-05/0.008643, allocations: 59.38 kB / 298.9 MB, free: 15.96 MB / 298.7 MB Notification: Performance of SimCode: time 4.21e-07/0.008644, allocations: 0 / 298.9 MB, free: 15.96 MB / 298.7 MB Notification: Performance of Templates: time 0.003418/0.01206, allocations: 2.369 MB / 301.3 MB, free: 13.62 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0592630030587316]