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.00128/0.00128, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 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.001508/0.001508, allocations: 171.8 kB / 24.82 MB, free: 9.254 MB / 18.57 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 1.019/1.019, allocations: 177 MB / 205.1 MB, free: 5.473 MB / 186.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.2889/0.2889, allocations: 34.86 MB / 296.6 MB, free: 0.5078 MB / 266.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.543e-06/1.543e-06, allocations: 0 / 379.2 MB, free: 1.828 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.973e-05/2.127e-05, allocations: 7.234 kB / 379.2 MB, free: 1.82 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001323/0.001344, allocations: 0.556 MB / 379.8 MB, free: 1.262 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003968/0.005312, allocations: 442.5 kB / 380.2 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.688e-05/0.005359, allocations: 0 / 380.2 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.415e-05/0.005443, allocations: 3.938 kB / 380.2 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001201/0.005563, allocations: 3.938 kB / 380.2 MB, free: 0.8203 MB / 346.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.0006048/0.006168, allocations: 187.3 kB / 380.4 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.006314, allocations: 75.86 kB / 380.5 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.245e-05/0.006346, allocations: 4 kB / 380.5 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.499e-05/0.006441, allocations: 43.95 kB / 380.5 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.29e-05/0.006504, allocations: 23.91 kB / 380.5 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.764e-05/0.006532, allocations: 4 kB / 380.5 MB, free: 500 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000265/0.006797, allocations: 127.7 kB / 380.7 MB, free: 372 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.525e-05/0.006852, allocations: 19.97 kB / 380.7 MB, free: 352 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.11e-05/0.006893, allocations: 31.89 kB / 380.7 MB, free: 320 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.007136, allocations: 151.6 kB / 380.9 MB, free: 168 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.007139, allocations: 0 / 380.9 MB, free: 168 kB / 346.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.00714, allocations: 0 / 380.9 MB, free: 168 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.386e-06/0.007143, allocations: 0 / 380.9 MB, free: 168 kB / 346.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.0005127/0.007656, allocations: 434 kB / 381.3 MB, free: 15.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.007698, allocations: 12.03 kB / 381.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.221e-05/0.00775, allocations: 4.938 kB / 381.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/0.007901, allocations: 128.5 kB / 381.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.007914, allocations: 8.359 kB / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.092e-05/0.007935, allocations: 12.38 kB / 381.5 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001441/0.008079, allocations: 78.91 kB / 381.5 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.008087, allocations: 192 / 381.5 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.008104, allocations: 4.375 kB / 381.5 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.008109, allocations: 384 / 381.5 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.938e-05/0.008148, allocations: 19.86 kB / 381.6 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001365/0.008285, allocations: 101.2 kB / 381.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.138e-05/0.008356, allocations: 51.05 kB / 381.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.68e-05/0.008383, allocations: 11.69 kB / 381.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.008403, allocations: 12.05 kB / 381.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001704/0.008574, allocations: 104.9 kB / 381.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.674e-06/0.008576, allocations: 0 / 381.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002404/0.008816, allocations: 113.6 kB / 381.9 MB, free: 14.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.008857, allocations: 59.39 kB / 382 MB, free: 14.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.934e-05/0.008937, allocations: 149.9 kB / 382.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.008964, allocations: 33.7 kB / 382.2 MB, free: 14.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.842e-05/0.009012, allocations: 130.8 kB / 382.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.461e-05/0.009057, allocations: 27.77 kB / 382.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.368e-05/0.009111, allocations: 47.34 kB / 382.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.009264, allocations: 0.4884 MB / 382.9 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.319e-05/0.009307, allocations: 37.69 kB / 382.9 MB, free: 13.92 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.397e-05/0.009391, allocations: 113.6 kB / 383 MB, free: 13.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/0.009533, allocations: 151 kB / 383.2 MB, free: 13.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.009536, allocations: 0 / 383.2 MB, free: 13.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001977/0.009734, allocations: 164.9 kB / 383.3 MB, free: 13.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.019e-05/0.009764, allocations: 33.7 kB / 383.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.00977, allocations: 4 kB / 383.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.009786, allocations: 7.938 kB / 383.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.009898, allocations: 27.92 kB / 383.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.009904, allocations: 4.219 kB / 383.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.02e-05/0.009955, allocations: 15.89 kB / 383.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.009966, allocations: 7.984 kB / 383.4 MB, free: 13.3 MB / 362.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.0001362/0.0101, allocations: 172.5 kB / 383.6 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.965e-05/0.01013, allocations: 4 kB / 383.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.792e-05/0.01017, allocations: 12.11 kB / 383.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.01017, allocations: 4 kB / 383.6 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.01017, allocations: 192 / 383.6 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.01018, allocations: 3.938 kB / 383.6 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001124/0.01029, allocations: 117.1 kB / 383.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.0103, allocations: 3.984 kB / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.172e-05/0.01033, allocations: 4 kB / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.01033, allocations: 0 / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.343e-06/0.01034, allocations: 0 / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.01034, allocations: 4 kB / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01034, allocations: 0 / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000184/0.01052, allocations: 132.3 kB / 383.9 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.138e-05/0.01053, allocations: 11.89 kB / 383.9 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.812e-05/0.01055, allocations: 0 / 383.9 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.01068, allocations: 19.97 kB / 383.9 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.196e-05/0.01071, allocations: 8 kB / 383.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.01072, allocations: 3.984 kB / 383.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.151e-05/0.01076, allocations: 123.2 kB / 384 MB, free: 12.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.01076, allocations: 0 / 384 MB, free: 12.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002867/0.01105, allocations: 47.92 kB / 384.1 MB, free: 12.58 MB / 362.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.0003647/0.01141, allocations: 185.9 kB / 384.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001832/0.0116, allocations: 152.7 kB / 384.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.0116, allocations: 0 / 384.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.402e-05/0.01164, allocations: 31.66 kB / 384.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001805/0.01182, allocations: 22.27 kB / 384.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003223/0.01215, allocations: 142.2 kB / 384.6 MB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.703e-05/0.01218, allocations: 59.34 kB / 384.7 MB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.906e-05/0.01223, allocations: 17.16 kB / 384.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.691e-05/0.01229, allocations: 78.2 kB / 384.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01229, allocations: 0 / 384.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of Templates: time 0.005168/0.01746, allocations: 2.357 MB / 387.1 MB, free: 9.508 MB / 362.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1785608190111816]