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.001342/0.001342, 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.00164/0.00164, allocations: 161 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 1.044/1.044, allocations: 177.1 MB / 205 MB, free: 5.602 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.2806/0.2806, allocations: 34.26 MB / 295.7 MB, free: 0.7422 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.413e-06/1.413e-06, allocations: 0 / 378 MB, free: 2.664 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.073e-05/2.214e-05, allocations: 2.312 kB / 378 MB, free: 2.66 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001097/0.001119, allocations: 0.5474 MB / 378.6 MB, free: 2.109 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007033/0.001823, allocations: 450.5 kB / 379 MB, free: 1.668 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.119e-05/0.001864, allocations: 0 / 379 MB, free: 1.668 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.312e-05/0.001957, allocations: 3.938 kB / 379 MB, free: 1.664 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.002096, allocations: 3.938 kB / 379 MB, free: 1.66 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.000551/0.002647, allocations: 183.3 kB / 379.2 MB, free: 1.48 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001327/0.00278, allocations: 75.86 kB / 379.3 MB, free: 1.406 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.006e-05/0.00282, allocations: 7.984 kB / 379.3 MB, free: 1.398 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.993e-05/0.00289, allocations: 43.97 kB / 379.3 MB, free: 1.355 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.482e-05/0.002945, allocations: 27.89 kB / 379.4 MB, free: 1.328 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.194e-05/0.002967, allocations: 4 kB / 379.4 MB, free: 1.324 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002128/0.00318, allocations: 131.7 kB / 379.5 MB, free: 1.195 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.195e-05/0.003252, allocations: 19.97 kB / 379.5 MB, free: 1.176 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.474e-05/0.003296, allocations: 19.92 kB / 379.5 MB, free: 1.156 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002413/0.003538, allocations: 155.6 kB / 379.7 MB, free: 1.004 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.00354, allocations: 0 / 379.7 MB, free: 1.004 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.003541, allocations: 0 / 379.7 MB, free: 1.004 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.003547, allocations: 0 / 379.7 MB, free: 1.004 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.0005348/0.004081, allocations: 438.1 kB / 380.1 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.004116, allocations: 12.03 kB / 380.1 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.17e-05/0.004168, allocations: 4.938 kB / 380.1 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001479/0.004316, allocations: 132.5 kB / 380.3 MB, free: 368 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.004326, allocations: 4.375 kB / 380.3 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.004348, allocations: 12.36 kB / 380.3 MB, free: 352 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001479/0.004496, allocations: 82.91 kB / 380.4 MB, free: 260 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.004506, allocations: 192 / 380.4 MB, free: 260 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.004521, allocations: 384 / 380.4 MB, free: 260 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.004529, allocations: 8.312 kB / 380.4 MB, free: 252 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4e-05/0.004569, allocations: 19.92 kB / 380.4 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001334/0.004703, allocations: 124.6 kB / 380.5 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.2e-05/0.004765, allocations: 46.98 kB / 380.5 MB, free: 12 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.867e-05/0.004803, allocations: 15.69 kB / 380.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/0.00482, allocations: 4 kB / 380.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001376/0.004957, allocations: 121 kB / 380.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 8.82e-07/0.004958, allocations: 0 / 380.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002145/0.005173, allocations: 113.5 kB / 380.8 MB, free: 15.74 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/0.005209, allocations: 59.41 kB / 380.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.017e-05/0.00528, allocations: 161.9 kB / 381 MB, free: 15.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.005298, allocations: 29.7 kB / 381 MB, free: 15.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.646e-05/0.005334, allocations: 130.9 kB / 381.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.839e-05/0.005362, allocations: 31.92 kB / 381.2 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.357e-05/0.005406, allocations: 39.36 kB / 381.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.005521, allocations: 496.1 kB / 381.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.097e-05/0.005562, allocations: 41.69 kB / 381.8 MB, free: 14.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.254e-05/0.005625, allocations: 114.7 kB / 381.9 MB, free: 14.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001146/0.005739, allocations: 155.1 kB / 382 MB, free: 14.36 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.005742, allocations: 3.984 kB / 382 MB, free: 14.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001506/0.005893, allocations: 177.1 kB / 382.2 MB, free: 14.17 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.005918, allocations: 35.73 kB / 382.2 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.005924, allocations: 7.938 kB / 382.2 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.00594, allocations: 0 / 382.2 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.282e-05/0.006033, allocations: 31.92 kB / 382.3 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.006041, allocations: 8.016 kB / 382.3 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.98e-05/0.006071, allocations: 7.953 kB / 382.3 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.006081, allocations: 11.97 kB / 382.3 MB, free: 14.06 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.0001175/0.006199, allocations: 172.5 kB / 382.5 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.006216, allocations: 8 kB / 382.5 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.006251, allocations: 12.11 kB / 382.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.006252, allocations: 4 kB / 382.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.006257, allocations: 3.938 kB / 382.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.00626, allocations: 0 / 382.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.101e-05/0.006351, allocations: 128.5 kB / 382.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.006352, allocations: 0 / 382.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.902e-05/0.006371, allocations: 4 kB / 382.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.01e-07/0.006372, allocations: 0 / 382.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.006382, allocations: 7.984 kB / 382.6 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.006383, allocations: 0 / 382.6 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.006384, allocations: 4 kB / 382.6 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001469/0.006531, allocations: 140.5 kB / 382.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.336e-06/0.006539, allocations: 11.88 kB / 382.8 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.006558, allocations: 7.984 kB / 382.8 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.018e-05/0.006649, allocations: 11.98 kB / 382.8 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.416e-05/0.006673, allocations: 7.984 kB / 382.8 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.006685, allocations: 7.938 kB / 382.8 MB, free: 13.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.147e-05/0.006716, allocations: 123.2 kB / 382.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006716, allocations: 0 / 382.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001952/0.006911, allocations: 43.92 kB / 383 MB, free: 13.31 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.0002998/0.007211, allocations: 187.9 kB / 383.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001581/0.007369, allocations: 148.6 kB / 383.3 MB, free: 12.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.007371, allocations: 448 / 383.3 MB, free: 12.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.338e-05/0.007405, allocations: 35.67 kB / 383.4 MB, free: 12.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.007527, allocations: 22.11 kB / 383.4 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002635/0.007791, allocations: 142.2 kB / 383.5 MB, free: 12.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.272e-05/0.007824, allocations: 63.28 kB / 383.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.234e-05/0.007856, allocations: 12.72 kB / 383.6 MB, free: 12.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.232e-05/0.007878, allocations: 16.5 kB / 383.6 MB, free: 12.63 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.007879, allocations: 0 / 383.6 MB, free: 12.63 MB / 362.7 MB Notification: Performance of Templates: time 0.003752/0.01163, allocations: 2.114 MB / 385.7 MB, free: 10.54 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.3337697852402925]