Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001917/0.001917, allocations: 106.3 kB / 18.9 MB, free: 3.164 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002354/0.002354, allocations: 197.9 kB / 22.06 MB, free: 16 kB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.487/1.487, allocations: 207.6 MB / 232.6 MB, free: 11.04 MB / 190.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2249/0.2249, allocations: 44.24 MB / 328.9 MB, free: 10.14 MB / 270.1 MB [Timeout remaining time 89] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_3.2.3_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_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002188/0.002188, allocations: 79.81 kB / 465.9 MB, free: 5.121 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1357, allocations: 61.01 MB / 0.5146 GB, free: 7.977 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002161/0.1378, allocations: 0.5338 MB / 0.5151 GB, free: 7.445 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.1389, allocations: 447.5 kB / 0.5155 GB, free: 7.004 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.601e-05/0.1389, allocations: 0 / 0.5155 GB, free: 7.004 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.072e-05/0.139, allocations: 7.938 kB / 0.5156 GB, free: 6.996 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.1391, allocations: 11.94 kB / 0.5156 GB, free: 6.984 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000617/0.1398, allocations: 171.5 kB / 0.5157 GB, free: 6.816 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001739/0.1399, allocations: 83.84 kB / 0.5158 GB, free: 6.734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.417e-05/0.14, allocations: 0 / 0.5158 GB, free: 6.734 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.655e-05/0.14, allocations: 39.95 kB / 0.5158 GB, free: 6.695 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003152/0.1432, allocations: 417.5 kB / 0.5162 GB, free: 6.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.552e-05/0.1432, allocations: 4 kB / 0.5162 GB, free: 6.336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.723e-05/0.1433, allocations: 19.98 kB / 0.5163 GB, free: 6.316 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.085e-05/0.1434, allocations: 15.97 kB / 0.5163 GB, free: 6.301 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.51e-05/0.1434, allocations: 23.91 kB / 0.5163 GB, free: 6.277 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002068/0.1437, allocations: 71.7 kB / 0.5164 GB, free: 6.207 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1437, allocations: 4 kB / 0.5164 GB, free: 6.203 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1437, allocations: 0 / 0.5164 GB, free: 6.203 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1437, allocations: 0 / 0.5164 GB, free: 6.203 MB / 398.1 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.0006298/0.1443, allocations: 389.1 kB / 0.5167 GB, free: 5.766 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.1443, allocations: 12.03 kB / 0.5168 GB, free: 5.754 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.157e-05/0.1444, allocations: 12.88 kB / 0.5168 GB, free: 5.742 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002179/0.1446, allocations: 184.3 kB / 0.5169 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.845e-06/0.1446, allocations: 384 / 0.5169 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.873e-05/0.1446, allocations: 4.375 kB / 0.5169 GB, free: 5.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002174/0.1449, allocations: 98.08 kB / 0.517 GB, free: 5.418 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1449, allocations: 192 / 0.517 GB, free: 5.418 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/0.1449, allocations: 7.922 kB / 0.5171 GB, free: 5.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.1449, allocations: 0 / 0.5171 GB, free: 5.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.777e-05/0.145, allocations: 19.98 kB / 0.5171 GB, free: 5.391 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002255/0.1452, allocations: 173.6 kB / 0.5172 GB, free: 5.172 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.674e-05/0.1453, allocations: 42.56 kB / 0.5173 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.978e-05/0.1453, allocations: 20.91 kB / 0.5173 GB, free: 5.098 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.1454, allocations: 8 kB / 0.5173 GB, free: 5.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002622/0.1456, allocations: 131.2 kB / 0.5174 GB, free: 4.949 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.1456, allocations: 0 / 0.5174 GB, free: 4.949 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003143/0.1459, allocations: 129.5 kB / 0.5176 GB, free: 4.816 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.146, allocations: 59.41 kB / 0.5176 GB, free: 4.746 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.792e-05/0.1461, allocations: 101.8 kB / 0.5177 GB, free: 4.637 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.1461, allocations: 25.7 kB / 0.5177 GB, free: 4.605 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.323e-05/0.1461, allocations: 84.14 kB / 0.5178 GB, free: 4.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.438e-05/0.1462, allocations: 35.94 kB / 0.5178 GB, free: 4.484 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.766e-05/0.1462, allocations: 25.72 kB / 0.5179 GB, free: 4.453 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1464, allocations: 318.8 kB / 0.5182 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.058e-05/0.1464, allocations: 23.98 kB / 0.5182 GB, free: 4.109 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.1465, allocations: 82.78 kB / 0.5183 GB, free: 4.004 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.1467, allocations: 136.5 kB / 0.5184 GB, free: 3.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.1468, allocations: 7.938 kB / 0.5184 GB, free: 3.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002227/0.147, allocations: 155.4 kB / 0.5186 GB, free: 3.668 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.479e-05/0.147, allocations: 48.94 kB / 0.5186 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.147, allocations: 0 / 0.5186 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.147, allocations: 4 kB / 0.5186 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.1472, allocations: 15.94 kB / 0.5186 GB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.1472, allocations: 7.984 kB / 0.5186 GB, free: 3.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.078e-05/0.1472, allocations: 11.95 kB / 0.5186 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.1472, allocations: 4 kB / 0.5186 GB, free: 3.574 MB / 398.1 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.0001565/0.1474, allocations: 129.7 kB / 0.5188 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.501e-05/0.1474, allocations: 19.88 kB / 0.5188 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.1475, allocations: 3.969 kB / 0.5188 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1475, allocations: 4 kB / 0.5188 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.1475, allocations: 0 / 0.5188 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.1475, allocations: 0 / 0.5188 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001655/0.1476, allocations: 169.6 kB / 0.519 GB, free: 3.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1476, allocations: 0 / 0.519 GB, free: 3.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.371e-05/0.1477, allocations: 4 kB / 0.519 GB, free: 3.184 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.1477, allocations: 4.125 kB / 0.519 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.789e-06/0.1477, allocations: 8 kB / 0.519 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.1477, allocations: 3.984 kB / 0.519 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1477, allocations: 0 / 0.519 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002051/0.1479, allocations: 137.2 kB / 0.5191 GB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/0.1479, allocations: 92.97 kB / 0.5192 GB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.148, allocations: 4 kB / 0.5192 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001988/0.1482, allocations: 16.03 kB / 0.5192 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.349e-05/0.1482, allocations: 12 kB / 0.5192 GB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.1482, allocations: 11.98 kB / 0.5192 GB, free: 2.863 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.386e-05/0.1483, allocations: 75.28 kB / 0.5193 GB, free: 2.789 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1483, allocations: 0 / 0.5193 GB, free: 2.789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002337/0.1485, allocations: 24 kB / 0.5193 GB, free: 2.766 MB / 398.1 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.0002871/0.1488, allocations: 127.3 kB / 0.5195 GB, free: 2.633 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002268/0.149, allocations: 131.2 kB / 0.5196 GB, free: 2.492 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.149, allocations: 0 / 0.5196 GB, free: 2.492 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.678e-05/0.1491, allocations: 28.08 kB / 0.5196 GB, free: 2.465 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001569/0.1492, allocations: 8 kB / 0.5196 GB, free: 2.457 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003829/0.1496, allocations: 170.7 kB / 0.5198 GB, free: 2.258 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.1499, allocations: 0.6846 MB / 0.5204 GB, free: 1.547 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.899e-05/0.15, allocations: 15.44 kB / 0.5205 GB, free: 1.531 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.15, allocations: 448 / 0.5205 GB, free: 1.531 MB / 398.1 MB Notification: Performance of Templates: time 0.003319/0.1533, allocations: 1.291 MB / 0.5217 GB, free: 248 kB / 398.1 MB [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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