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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001827/0.001827, allocations: 113.6 kB / 19.69 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001968/0.001968, allocations: 190.5 kB / 22.98 MB, free: 5.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.663/1.663, allocations: 207.6 MB / 233.7 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2607/0.2607, allocations: 44.23 MB / 330.2 MB, free: 9.555 MB / 270.1 MB " [Timeout remaining time 179] 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.002322/0.002322, allocations: 71.89 kB / 467.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.161, allocations: 61.03 MB / 0.5166 GB, free: 6.867 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002177/0.1632, allocations: 0.5416 MB / 0.5171 GB, free: 6.324 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.1644, allocations: 461.2 kB / 0.5176 GB, free: 5.871 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.938e-05/0.1644, allocations: 0 / 0.5176 GB, free: 5.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001022/0.1645, allocations: 3.938 kB / 0.5176 GB, free: 5.867 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001468/0.1647, allocations: 7.922 kB / 0.5176 GB, free: 5.859 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006394/0.1653, allocations: 183.5 kB / 0.5177 GB, free: 5.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001882/0.1655, allocations: 95.77 kB / 0.5178 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.383e-05/0.1655, allocations: 0 / 0.5178 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.763e-05/0.1656, allocations: 35.97 kB / 0.5179 GB, free: 5.551 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003213/0.1688, allocations: 465.6 kB / 0.5183 GB, free: 5.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.779e-05/0.1689, allocations: 4 kB / 0.5183 GB, free: 5.156 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.308e-05/0.1689, allocations: 15.98 kB / 0.5183 GB, free: 5.141 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.16e-05/0.169, allocations: 23.97 kB / 0.5183 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.267e-05/0.1691, allocations: 27.84 kB / 0.5184 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002106/0.1693, allocations: 63.77 kB / 0.5184 GB, free: 5.027 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1693, allocations: 4 kB / 0.5184 GB, free: 5.023 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1693, allocations: 0 / 0.5184 GB, free: 5.023 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.1693, allocations: 4 kB / 0.5184 GB, free: 5.02 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.0006483/0.1699, allocations: 316 kB / 0.5187 GB, free: 4.672 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.17, allocations: 8.031 kB / 0.5188 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.167e-05/0.17, allocations: 8.891 kB / 0.5188 GB, free: 4.656 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.1702, allocations: 126.4 kB / 0.5189 GB, free: 4.508 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.1703, allocations: 4.375 kB / 0.5189 GB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.826e-05/0.1703, allocations: 4.312 kB / 0.5189 GB, free: 4.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000231/0.1705, allocations: 94.12 kB / 0.519 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.1705, allocations: 4.188 kB / 0.519 GB, free: 4.398 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.1705, allocations: 11.94 kB / 0.519 GB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.1706, allocations: 0 / 0.519 GB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.39e-05/0.1706, allocations: 19.98 kB / 0.519 GB, free: 4.367 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002309/0.1709, allocations: 144.7 kB / 0.5192 GB, free: 4.184 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001045/0.171, allocations: 38.56 kB / 0.5192 GB, free: 4.137 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.212e-05/0.171, allocations: 17.08 kB / 0.5192 GB, free: 4.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.171, allocations: 7.984 kB / 0.5192 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002585/0.1713, allocations: 139.2 kB / 0.5193 GB, free: 3.961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.1713, allocations: 0 / 0.5193 GB, free: 3.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003519/0.1716, allocations: 121.5 kB / 0.5195 GB, free: 3.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.1717, allocations: 59.39 kB / 0.5195 GB, free: 3.766 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.681e-05/0.1718, allocations: 101.9 kB / 0.5196 GB, free: 3.656 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/0.1718, allocations: 29.7 kB / 0.5196 GB, free: 3.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.1e-05/0.1719, allocations: 80.14 kB / 0.5197 GB, free: 3.539 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.64e-05/0.1719, allocations: 27.8 kB / 0.5197 GB, free: 3.512 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.135e-05/0.172, allocations: 33.7 kB / 0.5198 GB, free: 3.473 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1721, allocations: 314.8 kB / 0.5201 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.528e-05/0.1722, allocations: 27.92 kB / 0.5201 GB, free: 3.129 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.568e-05/0.1723, allocations: 78.86 kB / 0.5202 GB, free: 3.027 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001967/0.1725, allocations: 144.5 kB / 0.5203 GB, free: 2.855 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1725, allocations: 0 / 0.5203 GB, free: 2.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002232/0.1727, allocations: 159.2 kB / 0.5205 GB, free: 2.688 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.815e-05/0.1727, allocations: 41.64 kB / 0.5205 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1727, allocations: 8.203 kB / 0.5205 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.1728, allocations: 4 kB / 0.5205 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.1729, allocations: 19.92 kB / 0.5205 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.1729, allocations: 4 kB / 0.5205 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.936e-05/0.1729, allocations: 3.953 kB / 0.5205 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.1729, allocations: 8.281 kB / 0.5206 GB, free: 2.594 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.0001535/0.1731, allocations: 133.7 kB / 0.5207 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.1731, allocations: 15.89 kB / 0.5207 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.593e-05/0.1732, allocations: 12 kB / 0.5207 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1732, allocations: 0 / 0.5207 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1732, allocations: 0 / 0.5207 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1732, allocations: 4 kB / 0.5207 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001438/0.1733, allocations: 144.7 kB / 0.5209 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1733, allocations: 0 / 0.5209 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.29e-05/0.1733, allocations: 4 kB / 0.5209 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.1733, allocations: 7.922 kB / 0.5209 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.1734, allocations: 11.94 kB / 0.5209 GB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1734, allocations: 0 / 0.5209 GB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1734, allocations: 4 kB / 0.5209 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002002/0.1736, allocations: 129.2 kB / 0.521 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.233e-05/0.1736, allocations: 11.92 kB / 0.521 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.138e-05/0.1736, allocations: 4 kB / 0.521 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.1738, allocations: 19.97 kB / 0.521 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.132e-05/0.1738, allocations: 7.984 kB / 0.521 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.1739, allocations: 8 kB / 0.5211 GB, free: 2.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.83e-05/0.1739, allocations: 79.28 kB / 0.5211 GB, free: 1.934 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1739, allocations: 0 / 0.5211 GB, free: 1.934 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002282/0.1741, allocations: 23.98 kB / 0.5212 GB, free: 1.91 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.0002686/0.1744, allocations: 130.7 kB / 0.5213 GB, free: 1.777 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003107/0.1747, allocations: 131.5 kB / 0.5214 GB, free: 1.637 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1747, allocations: 4.062 kB / 0.5214 GB, free: 1.633 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.516e-05/0.1748, allocations: 31.92 kB / 0.5214 GB, free: 1.602 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001484/0.1749, allocations: 4 kB / 0.5214 GB, free: 1.598 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004052/0.1753, allocations: 148.8 kB / 0.5216 GB, free: 1.426 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.1757, allocations: 0.6846 MB / 0.5222 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.599e-05/0.1757, allocations: 16.66 kB / 0.5223 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.843e-05/0.1757, allocations: 15.44 kB / 0.5223 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1757, allocations: 0 / 0.5223 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of Templates: time 0.004677/0.1804, allocations: 1.495 MB / 0.5237 GB, free: 15.19 MB / 414.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] [Calling os._exit(0), Time elapsed: 5.327925095334649] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 0.18935303390026093 0.20335517 0.031086845000000002 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f3639a417b0>