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.001742/0.001742, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001504/0.001504, allocations: 164.4 kB / 24.82 MB, free: 9.266 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.122/1.122, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.3659/0.3659, allocations: 34.26 MB / 296.1 MB, free: 0.7148 MB / 266.7 MB " [Timeout remaining time 179] 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 2.013e-06/2.013e-06, allocations: 0 / 378.5 MB, free: 2.414 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.372e-05/3.574e-05, allocations: 6.312 kB / 378.5 MB, free: 2.406 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001504/0.00154, allocations: 0.5428 MB / 379 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009204/0.00246, allocations: 442.5 kB / 379.5 MB, free: 1.43 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.465e-05/0.002515, allocations: 3.938 kB / 379.5 MB, free: 1.426 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.002625, allocations: 4 kB / 379.5 MB, free: 1.422 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.002773, allocations: 15.88 kB / 379.5 MB, free: 1.406 MB / 346.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.0005582/0.003331, allocations: 171.4 kB / 379.7 MB, free: 1.238 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.003485, allocations: 83.86 kB / 379.7 MB, free: 1.156 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.123e-05/0.003527, allocations: 0 / 379.7 MB, free: 1.156 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.818e-05/0.003615, allocations: 47.94 kB / 379.8 MB, free: 1.109 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.126e-05/0.003686, allocations: 19.92 kB / 379.8 MB, free: 1.09 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.003709, allocations: 0 / 379.8 MB, free: 1.09 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001966/0.003905, allocations: 139.7 kB / 379.9 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.046e-05/0.003956, allocations: 19.97 kB / 380 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.622e-05/0.003992, allocations: 23.89 kB / 380 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002175/0.004209, allocations: 155.6 kB / 380.1 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.004212, allocations: 0 / 380.1 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.004213, allocations: 0 / 380.1 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.004218, allocations: 3.938 kB / 380.1 MB, free: 0.7539 MB / 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.0005271/0.004745, allocations: 430 kB / 380.6 MB, free: 296 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.00479, allocations: 8.031 kB / 380.6 MB, free: 288 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.784e-05/0.004838, allocations: 16.92 kB / 380.6 MB, free: 272 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.004983, allocations: 128.5 kB / 380.7 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.004994, allocations: 384 / 380.7 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.514e-05/0.005009, allocations: 4.375 kB / 380.7 MB, free: 112 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.005136, allocations: 86.91 kB / 380.8 MB, free: 16 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.005146, allocations: 4.125 kB / 380.8 MB, free: 12 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.005158, allocations: 384 / 380.8 MB, free: 12 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.005171, allocations: 4.359 kB / 380.8 MB, free: 8 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.765e-05/0.005219, allocations: 23.84 kB / 380.8 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001389/0.005358, allocations: 105.3 kB / 380.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.876e-05/0.005417, allocations: 43.11 kB / 381 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.283e-05/0.00544, allocations: 19.67 kB / 381 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.005457, allocations: 4 kB / 381 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001453/0.005602, allocations: 113.1 kB / 381.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.005604, allocations: 0 / 381.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002059/0.00581, allocations: 101.5 kB / 381.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.005854, allocations: 59.39 kB / 381.3 MB, free: 15.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.92e-05/0.005933, allocations: 153.9 kB / 381.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.005956, allocations: 33.7 kB / 381.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.899e-05/0.006005, allocations: 138.8 kB / 381.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.246e-05/0.006037, allocations: 27.78 kB / 381.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.122e-05/0.006078, allocations: 39.34 kB / 381.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.00623, allocations: 0.4923 MB / 382.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.049e-05/0.00626, allocations: 33.7 kB / 382.2 MB, free: 14.51 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.728e-05/0.006328, allocations: 115.2 kB / 382.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001167/0.006444, allocations: 143 kB / 382.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.006446, allocations: 4 kB / 382.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001484/0.006595, allocations: 172.8 kB / 382.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.006621, allocations: 29.7 kB / 382.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.006628, allocations: 7.984 kB / 382.6 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.006644, allocations: 0 / 382.6 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.952e-05/0.006743, allocations: 28.16 kB / 382.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.006752, allocations: 12.05 kB / 382.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.967e-05/0.006782, allocations: 7.891 kB / 382.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.437e-06/0.006791, allocations: 12 kB / 382.7 MB, free: 13.88 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.0001269/0.006918, allocations: 164.5 kB / 382.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.006937, allocations: 8 kB / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.905e-05/0.006976, allocations: 12.11 kB / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.006978, allocations: 0 / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.00698, allocations: 64 / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.006986, allocations: 15.94 kB / 382.9 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.743e-05/0.007083, allocations: 109.1 kB / 383 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.007084, allocations: 0 / 383 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.421e-05/0.007109, allocations: 8 kB / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.00711, allocations: 0 / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.00712, allocations: 3.984 kB / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.007122, allocations: 0 / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.007122, allocations: 0 / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001427/0.007265, allocations: 136.3 kB / 383.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.08e-05/0.007276, allocations: 7.891 kB / 383.2 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.007295, allocations: 7.984 kB / 383.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.715e-05/0.007383, allocations: 15.98 kB / 383.2 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.439e-05/0.007407, allocations: 4.172 kB / 383.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.007419, allocations: 8 kB / 383.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.267e-05/0.007461, allocations: 123.2 kB / 383.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007461, allocations: 4 kB / 383.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001774/0.007639, allocations: 39.92 kB / 383.4 MB, free: 13.17 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.0003358/0.007974, allocations: 187.1 kB / 383.5 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001726/0.008147, allocations: 152.5 kB / 383.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.008149, allocations: 0 / 383.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.336e-05/0.008183, allocations: 31.61 kB / 383.7 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001223/0.008305, allocations: 15.98 kB / 383.7 MB, free: 12.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002838/0.008589, allocations: 142.6 kB / 383.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.99e-05/0.008629, allocations: 63.34 kB / 383.9 MB, free: 12.53 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.929e-05/0.008668, allocations: 12.72 kB / 383.9 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.602e-05/0.008724, allocations: 82.19 kB / 384 MB, free: 12.43 MB / 362.7 MB Notification: Performance of SimCode: time 9.32e-07/0.008725, allocations: 0 / 384 MB, free: 12.43 MB / 362.7 MB Notification: Performance of Templates: time 0.004065/0.01279, allocations: 2.364 MB / 386.4 MB, free: 10.09 MB / 362.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.7453369088470936]