Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.002585/0.002585, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002907/0.002907, allocations: 169.3 kB / 24.28 MB, free: 152 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.618/1.618, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3582/0.3582, allocations: 32.81 MB / 293.9 MB, free: 1.18 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.284e-06/2.284e-06, allocations: 0 / 375.3 MB, free: 4.996 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.099e-05/3.327e-05, allocations: 2.312 kB / 375.3 MB, free: 4.992 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002309/0.002343, allocations: 0.532 MB / 375.8 MB, free: 4.457 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.00373, allocations: 438.5 kB / 376.2 MB, free: 4.027 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.059e-05/0.003771, allocations: 4 kB / 376.2 MB, free: 4.023 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.003877, allocations: 3.938 kB / 376.2 MB, free: 4.02 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001562/0.004033, allocations: 11.92 kB / 376.2 MB, free: 4.008 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.0008541/0.004888, allocations: 179.3 kB / 376.4 MB, free: 3.832 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002395/0.005127, allocations: 79.86 kB / 376.5 MB, free: 3.754 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.44e-05/0.005171, allocations: 7.969 kB / 376.5 MB, free: 3.746 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.005311, allocations: 47.91 kB / 376.6 MB, free: 3.699 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.048e-05/0.005391, allocations: 15.97 kB / 376.6 MB, free: 3.684 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.624e-05/0.005437, allocations: 8 kB / 376.6 MB, free: 3.676 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000439/0.005876, allocations: 127.7 kB / 376.7 MB, free: 3.551 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.385e-05/0.00596, allocations: 23.91 kB / 376.7 MB, free: 3.527 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.835e-05/0.006028, allocations: 19.92 kB / 376.7 MB, free: 3.508 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003933/0.006422, allocations: 155.6 kB / 376.9 MB, free: 3.355 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.006425, allocations: 0 / 376.9 MB, free: 3.355 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.006426, allocations: 0 / 376.9 MB, free: 3.355 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.006434, allocations: 4 kB / 376.9 MB, free: 3.352 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.0007755/0.00721, allocations: 433.7 kB / 377.3 MB, free: 2.883 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.007257, allocations: 12.03 kB / 377.3 MB, free: 2.871 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.589e-05/0.007343, allocations: 8.938 kB / 377.3 MB, free: 2.863 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.00763, allocations: 132.5 kB / 377.5 MB, free: 2.707 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.007648, allocations: 8.312 kB / 377.5 MB, free: 2.699 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.621e-05/0.007694, allocations: 8.375 kB / 377.5 MB, free: 2.691 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.00796, allocations: 74.2 kB / 377.6 MB, free: 2.613 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.00797, allocations: 192 / 377.6 MB, free: 2.613 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/0.007993, allocations: 8.359 kB / 377.6 MB, free: 2.605 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.007997, allocations: 384 / 377.6 MB, free: 2.605 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.465e-05/0.008072, allocations: 23.92 kB / 377.6 MB, free: 2.582 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002119/0.008283, allocations: 120.6 kB / 377.7 MB, free: 2.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001466/0.00843, allocations: 50.98 kB / 377.8 MB, free: 2.367 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.77e-05/0.008508, allocations: 23.75 kB / 377.8 MB, free: 2.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.008526, allocations: 0 / 377.8 MB, free: 2.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003542/0.008881, allocations: 121 kB / 377.9 MB, free: 2.207 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.008882, allocations: 0 / 377.9 MB, free: 2.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.000455/0.009337, allocations: 117.5 kB / 378 MB, free: 2.086 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.996e-05/0.009417, allocations: 63.34 kB / 378.1 MB, free: 2.012 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001767/0.009594, allocations: 161.9 kB / 378.2 MB, free: 1.836 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.964e-05/0.009644, allocations: 33.7 kB / 378.3 MB, free: 1.797 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.009748, allocations: 126.9 kB / 378.4 MB, free: 1.668 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.999e-05/0.009828, allocations: 35.92 kB / 378.4 MB, free: 1.633 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.00993, allocations: 35.38 kB / 378.5 MB, free: 1.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003695/0.0103, allocations: 0.4884 MB / 379 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.0104, allocations: 45.69 kB / 379 MB, free: 1.039 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.0106, allocations: 122.6 kB / 379.1 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003065/0.0109, allocations: 159.1 kB / 379.3 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.01091, allocations: 0 / 379.3 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004072/0.01131, allocations: 184.8 kB / 379.5 MB, free: 500 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.764e-05/0.01136, allocations: 33.7 kB / 379.5 MB, free: 460 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.01137, allocations: 0 / 379.5 MB, free: 460 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.983e-05/0.0114, allocations: 8.219 kB / 379.5 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.01158, allocations: 19.98 kB / 379.5 MB, free: 432 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.833e-05/0.0116, allocations: 11.88 kB / 379.5 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.708e-05/0.01168, allocations: 7.953 kB / 379.5 MB, free: 412 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.426e-05/0.0117, allocations: 8 kB / 379.5 MB, free: 404 kB / 346.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.0002339/0.01194, allocations: 168.6 kB / 379.7 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.396e-05/0.01199, allocations: 8 kB / 379.7 MB, free: 216 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.429e-05/0.01203, allocations: 8.188 kB / 379.7 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.01204, allocations: 8 kB / 379.7 MB, free: 204 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.01205, allocations: 3.938 kB / 379.7 MB, free: 200 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.01205, allocations: 3.984 kB / 379.7 MB, free: 196 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002189/0.01227, allocations: 124.5 kB / 379.9 MB, free: 36 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.01228, allocations: 0 / 379.9 MB, free: 36 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.688e-05/0.01235, allocations: 11.98 kB / 379.9 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.01236, allocations: 192 / 379.9 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.01237, allocations: 4 kB / 379.9 MB, free: 20 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.01238, allocations: 3.938 kB / 379.9 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.01238, allocations: 0 / 379.9 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000398/0.01277, allocations: 148.2 kB / 380 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.603e-05/0.01279, allocations: 15.89 kB / 380 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.01281, allocations: 4 kB / 380 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.01299, allocations: 15.97 kB / 380.1 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.739e-05/0.01301, allocations: 0 / 380.1 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.172e-05/0.01305, allocations: 15.92 kB / 380.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.315e-05/0.01314, allocations: 123.2 kB / 380.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.01314, allocations: 0 / 380.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005235/0.01366, allocations: 43.92 kB / 380.2 MB, free: 15.63 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.0007473/0.01441, allocations: 182.8 kB / 380.4 MB, free: 15.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003948/0.0148, allocations: 160.6 kB / 380.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.01481, allocations: 0 / 380.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.01493, allocations: 31.67 kB / 380.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.01521, allocations: 20.41 kB / 380.6 MB, free: 15.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005062/0.01571, allocations: 154.1 kB / 380.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001068/0.01582, allocations: 75.22 kB / 380.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.072e-05/0.01589, allocations: 16.7 kB / 380.9 MB, free: 14.94 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.01593, allocations: 12.5 kB / 380.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01593, allocations: 0 / 380.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of Templates: time 0.008989/0.02492, allocations: 2.101 MB / 383 MB, free: 12.85 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.142253048019484]