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.0008376/0.0008376, allocations: 87.67 kB / 21.44 MB, free: 3.113 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.004063/0.004063, allocations: 152.5 kB / 24.69 MB, free: 9.426 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 0.8494/0.8494, allocations: 177.2 MB / 205 MB, free: 5.742 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.2131/0.2131, allocations: 34.25 MB / 295.7 MB, free: 0.7031 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.1.|cnt.2.|cnt.3.|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.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 443.4 MB, free: 1.164 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.196e-05/2.373e-05, allocations: 4.109 kB / 443.4 MB, free: 1.16 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001047/0.001071, allocations: 0.5323 MB / 444 MB, free: 0.6289 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006297/0.001701, allocations: 426.3 kB / 444.4 MB, free: 216 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.411e-05/0.001735, allocations: 0 / 444.4 MB, free: 216 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 7.464e-05/0.00181, allocations: 4 kB / 444.4 MB, free: 212 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001205/0.00193, allocations: 15.84 kB / 444.4 MB, free: 196 kB / 410.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.0004919/0.002422, allocations: 171.1 kB / 444.6 MB, free: 28 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.1705/0.1729, allocations: 83.83 kB / 444.7 MB, free: 43.73 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.194e-05/0.173, allocations: 2.875 kB / 444.7 MB, free: 43.73 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.414e-05/0.1731, allocations: 46.44 kB / 444.7 MB, free: 43.73 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.544e-05/0.1731, allocations: 16.09 kB / 444.7 MB, free: 43.73 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.252e-05/0.1732, allocations: 3.438 kB / 444.7 MB, free: 43.73 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002602/0.1734, allocations: 130.6 kB / 444.8 MB, free: 43.73 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.683e-05/0.1735, allocations: 26.05 kB / 444.9 MB, free: 43.73 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.175e-05/0.1735, allocations: 24.16 kB / 444.9 MB, free: 43.73 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000235/0.1737, allocations: 151 kB / 445 MB, free: 43.73 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1738, allocations: 0 / 445 MB, free: 43.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1738, allocations: 0 / 445 MB, free: 43.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1738, allocations: 4.188 kB / 445 MB, free: 43.73 MB / 410.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.0004305/0.1742, allocations: 336.4 kB / 445.4 MB, free: 43.44 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.1742, allocations: 8.219 kB / 445.4 MB, free: 43.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.71e-05/0.1743, allocations: 8.125 kB / 445.4 MB, free: 43.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.1744, allocations: 126.5 kB / 445.5 MB, free: 43.31 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.1744, allocations: 1 kB / 445.5 MB, free: 43.31 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.1744, allocations: 8.938 kB / 445.5 MB, free: 43.31 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001452/0.1746, allocations: 93.09 kB / 445.6 MB, free: 43.28 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.1746, allocations: 0.9531 kB / 445.6 MB, free: 43.28 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.1746, allocations: 2.625 kB / 445.6 MB, free: 43.28 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1746, allocations: 384 / 445.6 MB, free: 43.28 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.864e-05/0.1746, allocations: 30.8 kB / 445.7 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001121/0.1747, allocations: 108.7 kB / 445.8 MB, free: 43.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.666e-05/0.1748, allocations: 44.38 kB / 445.8 MB, free: 43.13 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.843e-05/0.1748, allocations: 19.98 kB / 445.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.1749, allocations: 3.938 kB / 445.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002135/0.1751, allocations: 131.2 kB / 446 MB, free: 43.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.162e-06/0.1751, allocations: 0.6875 kB / 446 MB, free: 43.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002263/0.1753, allocations: 128.5 kB / 446.1 MB, free: 43.04 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.494e-05/0.1753, allocations: 57.12 kB / 446.1 MB, free: 42.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.83e-05/0.1754, allocations: 102.8 kB / 446.2 MB, free: 42.88 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.1754, allocations: 31.73 kB / 446.3 MB, free: 42.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.369e-05/0.1754, allocations: 82.98 kB / 446.3 MB, free: 42.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.221e-05/0.1754, allocations: 29.61 kB / 446.4 MB, free: 42.75 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.958e-05/0.1754, allocations: 32.58 kB / 446.4 MB, free: 42.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.03e-05/0.1755, allocations: 316.7 kB / 446.7 MB, free: 42.42 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.58e-05/0.1755, allocations: 58.2 kB / 446.8 MB, free: 42.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.255e-05/0.1755, allocations: 108.1 kB / 446.9 MB, free: 42.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001203/0.1757, allocations: 141.4 kB / 447 MB, free: 42.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1757, allocations: 0 / 447 MB, free: 42.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001292/0.1758, allocations: 194.8 kB / 447.2 MB, free: 42.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.1758, allocations: 31.27 kB / 447.2 MB, free: 42.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.1758, allocations: 2.719 kB / 447.2 MB, free: 42.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.1758, allocations: 6.391 kB / 447.2 MB, free: 42.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.438e-05/0.1759, allocations: 18.91 kB / 447.3 MB, free: 42.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1759, allocations: 13.44 kB / 447.3 MB, free: 42.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.832e-05/0.176, allocations: 9.234 kB / 447.3 MB, free: 42.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.176, allocations: 5.281 kB / 447.3 MB, free: 42.06 MB / 410.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.729e-05/0.1761, allocations: 125.9 kB / 447.4 MB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.443e-05/0.1761, allocations: 2.344 kB / 447.4 MB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.106e-05/0.1761, allocations: 12.16 kB / 447.4 MB, free: 41.94 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.1761, allocations: 3.469 kB / 447.4 MB, free: 41.94 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1761, allocations: 7.938 kB / 447.4 MB, free: 41.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1761, allocations: 0.9844 kB / 447.4 MB, free: 41.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.845e-05/0.1762, allocations: 119.1 kB / 447.6 MB, free: 41.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.1762, allocations: 0 / 447.6 MB, free: 41.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.659e-05/0.1762, allocations: 5.438 kB / 447.6 MB, free: 41.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1762, allocations: 0 / 447.6 MB, free: 41.81 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.1762, allocations: 2.656 kB / 447.6 MB, free: 41.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1762, allocations: 3.234 kB / 447.6 MB, free: 41.81 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1762, allocations: 0 / 447.6 MB, free: 41.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001146/0.1763, allocations: 133.4 kB / 447.7 MB, free: 41.74 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-06/0.1763, allocations: 10.39 kB / 447.7 MB, free: 41.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.434e-05/0.1763, allocations: 13.88 kB / 447.7 MB, free: 41.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.923e-05/0.1764, allocations: 20.23 kB / 447.7 MB, free: 41.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.366e-05/0.1765, allocations: 6.172 kB / 447.7 MB, free: 41.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.1765, allocations: 12.69 kB / 447.8 MB, free: 41.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.39e-05/0.1765, allocations: 77.94 kB / 447.8 MB, free: 41.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1765, allocations: 0 / 447.8 MB, free: 41.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001829/0.1767, allocations: 47.55 kB / 447.9 MB, free: 41.65 MB / 410.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.000275/0.1769, allocations: 188.7 kB / 448.1 MB, free: 41.55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001383/0.1771, allocations: 151.1 kB / 448.2 MB, free: 41.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1771, allocations: 0 / 448.2 MB, free: 41.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.188e-05/0.1771, allocations: 26.77 kB / 448.2 MB, free: 41.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001119/0.1772, allocations: 13.14 kB / 448.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002636/0.1775, allocations: 170.8 kB / 448.4 MB, free: 41.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.176e-05/0.1775, allocations: 70.34 kB / 448.5 MB, free: 41.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.322e-05/0.1775, allocations: 21.42 kB / 448.5 MB, free: 41.23 MB / 410.7 MB Notification: Performance of SimCode: time 4.749e-06/0.1775, allocations: 0 / 448.5 MB, free: 41.23 MB / 410.7 MB Notification: Performance of Templates: time 0.002289/0.1798, allocations: 1.829 MB / 450.3 MB, free: 41.11 MB / 410.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:avg,cnt[1],cnt[2],cnt[3],highBound,lowBound,samples,time,y [Calling sys.exit(0), Time elapsed: 5.1529551688581705]