Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.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.0009857/0.0009857, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001322/0.001322, allocations: 170.3 kB / 24.91 MB, free: 8.723 MB / 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.021/1.021, allocations: 177.1 MB / 205.3 MB, free: 5.109 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2839/0.2839, allocations: 34.26 MB / 296.1 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.[0-9,]+.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0_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_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 325.2 MB, free: 7.734 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.366e-05/1.492e-05, allocations: 3.156 kB / 325.2 MB, free: 7.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0009591/0.0009741, allocations: 0.5513 MB / 325.8 MB, free: 7.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006234/0.001597, allocations: 435 kB / 326.2 MB, free: 6.754 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.105e-05/0.001629, allocations: 0 / 326.2 MB, free: 6.754 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.218e-05/0.001701, allocations: 7.938 kB / 326.2 MB, free: 6.746 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.001802, allocations: 11.92 kB / 326.2 MB, free: 6.734 MB / 298.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.typeClassSections: time 0.0004319/0.002234, allocations: 179.3 kB / 326.4 MB, free: 6.559 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001134/0.002347, allocations: 83.84 kB / 326.5 MB, free: 6.477 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.869e-05/0.002376, allocations: 4 kB / 326.5 MB, free: 6.473 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.222e-05/0.002438, allocations: 39.95 kB / 326.5 MB, free: 6.434 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.558e-05/0.002484, allocations: 23.91 kB / 326.6 MB, free: 6.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.0025, allocations: 0 / 326.6 MB, free: 6.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.002665, allocations: 135.7 kB / 326.7 MB, free: 6.277 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.954e-05/0.002704, allocations: 19.97 kB / 326.7 MB, free: 6.258 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.657e-05/0.002731, allocations: 23.86 kB / 326.7 MB, free: 6.234 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001726/0.002904, allocations: 155.6 kB / 326.9 MB, free: 6.082 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.393e-06/0.002905, allocations: 0 / 326.9 MB, free: 6.082 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.002906, allocations: 4 kB / 326.9 MB, free: 6.078 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.825e-06/0.002908, allocations: 0 / 326.9 MB, free: 6.078 MB / 298.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.0003289/0.003237, allocations: 303.2 kB / 327.2 MB, free: 5.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.832e-05/0.003266, allocations: 8.031 kB / 327.2 MB, free: 5.742 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.881e-05/0.003294, allocations: 4.938 kB / 327.2 MB, free: 5.738 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.003406, allocations: 133.7 kB / 327.3 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.692e-06/0.003412, allocations: 384 / 327.3 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.629e-05/0.003429, allocations: 4.375 kB / 327.3 MB, free: 5.578 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.497e-05/0.003524, allocations: 82.89 kB / 327.4 MB, free: 5.488 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.149e-06/0.003529, allocations: 192 / 327.4 MB, free: 5.488 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.00354, allocations: 4.375 kB / 327.4 MB, free: 5.484 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.003545, allocations: 8.312 kB / 327.4 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.511e-05/0.00357, allocations: 15.92 kB / 327.4 MB, free: 5.461 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.037e-05/0.003651, allocations: 67.88 kB / 327.5 MB, free: 5.379 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.349e-05/0.003694, allocations: 34.5 kB / 327.5 MB, free: 5.336 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.803e-05/0.003712, allocations: 12.86 kB / 327.6 MB, free: 5.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.109e-05/0.003723, allocations: 3.984 kB / 327.6 MB, free: 5.316 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000109/0.003832, allocations: 118.3 kB / 327.7 MB, free: 5.188 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 8.72e-07/0.003833, allocations: 0 / 327.7 MB, free: 5.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001172/0.00395, allocations: 73.61 kB / 327.7 MB, free: 5.109 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.003982, allocations: 59.39 kB / 327.8 MB, free: 5.039 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.546e-05/0.004028, allocations: 102.7 kB / 327.9 MB, free: 4.926 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.004046, allocations: 37.64 kB / 327.9 MB, free: 4.883 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.181e-05/0.004068, allocations: 80.14 kB / 328 MB, free: 4.801 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.00409, allocations: 27.77 kB / 328 MB, free: 4.773 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.038e-05/0.004121, allocations: 29.7 kB / 328.1 MB, free: 4.738 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.004221, allocations: 322.8 kB / 328.4 MB, free: 4.414 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.499e-05/0.004246, allocations: 37.69 kB / 328.4 MB, free: 4.371 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.254e-05/0.004289, allocations: 96.55 kB / 328.5 MB, free: 4.246 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.354e-05/0.004372, allocations: 123.2 kB / 328.6 MB, free: 4.094 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.004374, allocations: 0 / 328.6 MB, free: 4.094 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001039/0.004478, allocations: 148.9 kB / 328.8 MB, free: 3.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.004501, allocations: 37.69 kB / 328.8 MB, free: 3.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.004506, allocations: 3.938 kB / 328.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.004517, allocations: 4 kB / 328.8 MB, free: 3.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.121e-05/0.004598, allocations: 23.98 kB / 328.9 MB, free: 3.855 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.004602, allocations: 3.938 kB / 328.9 MB, free: 3.852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.755e-05/0.00463, allocations: 15.89 kB / 328.9 MB, free: 3.836 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.004638, allocations: 4 kB / 328.9 MB, free: 3.832 MB / 298.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 8.86e-05/0.004726, allocations: 128.8 kB / 329 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.9e-05/0.004745, allocations: 11.98 kB / 329 MB, free: 3.684 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.507e-05/0.00477, allocations: 8.125 kB / 329 MB, free: 3.676 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.004772, allocations: 0 / 329 MB, free: 3.676 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.004773, allocations: 0 / 329 MB, free: 3.676 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.004777, allocations: 3.984 kB / 329 MB, free: 3.672 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001323/0.004909, allocations: 77.83 kB / 329.1 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.00491, allocations: 64 / 329.1 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.212e-05/0.004932, allocations: 19.92 kB / 329.1 MB, free: 3.559 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.004934, allocations: 4 kB / 329.1 MB, free: 3.555 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-06/0.004939, allocations: 0 / 329.1 MB, free: 3.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.00494, allocations: 0 / 329.1 MB, free: 3.555 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.004941, allocations: 0 / 329.1 MB, free: 3.555 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.13e-05/0.005022, allocations: 98.69 kB / 329.2 MB, free: 3.438 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.397e-06/0.005031, allocations: 15.88 kB / 329.2 MB, free: 3.422 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.005046, allocations: 4 kB / 329.2 MB, free: 3.418 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.363e-05/0.00512, allocations: 7.984 kB / 329.3 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.791e-05/0.005138, allocations: 15.92 kB / 329.3 MB, free: 3.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.005145, allocations: 0 / 329.3 MB, free: 3.395 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.085e-05/0.005155, allocations: 12.84 kB / 329.3 MB, free: 3.379 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005155, allocations: 4 kB / 329.3 MB, free: 3.375 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000145/0.0053, allocations: 39.94 kB / 329.3 MB, free: 3.336 MB / 298.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.0003072/0.005608, allocations: 191.5 kB / 329.5 MB, free: 3.191 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001243/0.005732, allocations: 141.8 kB / 329.6 MB, free: 3.031 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.005735, allocations: 0.5 kB / 329.6 MB, free: 3.031 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.371e-05/0.005758, allocations: 24.83 kB / 329.7 MB, free: 3.004 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.826e-05/0.005827, allocations: 19.92 kB / 329.7 MB, free: 2.984 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002211/0.006048, allocations: 138.8 kB / 329.8 MB, free: 2.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.76e-05/0.006075, allocations: 59.34 kB / 329.9 MB, free: 2.742 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.145e-05/0.006107, allocations: 17.09 kB / 329.9 MB, free: 2.723 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.388e-05/0.006141, allocations: 63.38 kB / 330 MB, free: 2.66 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.006141, allocations: 0 / 330 MB, free: 2.66 MB / 298.7 MB Notification: Performance of Templates: time 0.003583/0.009724, allocations: 2.341 MB / 332.3 MB, free: 348 kB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1268586148507893]