Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.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.001684/0.001684, allocations: 113.9 kB / 17.61 MB, free: 4.684 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.001949/0.001949, allocations: 185.9 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 225.6 MB / 249.4 MB, free: 3.152 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2517/0.2517, allocations: 31.57 MB / 336.1 MB, free: 14.5 MB / 270.1 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002058/0.002058, allocations: 72.94 kB / 470.4 MB, free: 36.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1345, allocations: 59.5 MB / 0.5175 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.008167/0.1426, allocations: 5.449 MB / 0.5228 GB, free: 6.926 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.1444, allocations: 0.6112 MB / 0.5234 GB, free: 6.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002634/0.1446, allocations: 8 kB / 0.5234 GB, free: 6.305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002919/0.1449, allocations: 83.25 kB / 0.5235 GB, free: 6.223 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.1451, allocations: 63.38 kB / 0.5236 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000665/0.1458, allocations: 207.4 kB / 0.5238 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005988/0.1464, allocations: 459.3 kB / 0.5242 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003784/0.1468, allocations: 162.2 kB / 0.5244 GB, free: 5.348 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002435/0.147, allocations: 195.3 kB / 0.5246 GB, free: 5.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003435/0.1474, allocations: 199.1 kB / 0.5248 GB, free: 4.957 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.72e-05/0.1474, allocations: 44 kB / 0.5248 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.1476, allocations: 52 kB / 0.5248 GB, free: 4.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.1477, allocations: 111.6 kB / 0.5249 GB, free: 4.754 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002781/0.148, allocations: 207 kB / 0.5251 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006932/0.1486, allocations: 466.1 kB / 0.5256 GB, free: 4.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1487, allocations: 0 / 0.5256 GB, free: 4.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1487, allocations: 3.938 kB / 0.5256 GB, free: 4.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.1487, allocations: 0 / 0.5256 GB, free: 4.09 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001669/0.1503, allocations: 0.6977 MB / 0.5263 GB, free: 3.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.1504, allocations: 12.03 kB / 0.5263 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004672/0.1509, allocations: 68.61 kB / 0.5264 GB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007052/0.1516, allocations: 323.7 kB / 0.5267 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.344e-05/0.1516, allocations: 37.38 kB / 0.5267 GB, free: 2.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.1517, allocations: 51.92 kB / 0.5267 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.1528, allocations: 419.3 kB / 0.5271 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.1528, allocations: 0 / 0.5271 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.998e-05/0.1528, allocations: 16 kB / 0.5272 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.1529, allocations: 8 kB / 0.5272 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007423/0.1536, allocations: 255.7 kB / 0.5274 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003076/0.1567, allocations: 1.653 MB / 0.529 GB, free: 372 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008365/0.1575, allocations: 238.3 kB / 0.5293 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004137/0.1579, allocations: 159.8 kB / 0.5294 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.158, allocations: 7.938 kB / 0.5294 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.06e-05/0.158, allocations: 46.5 kB / 0.5295 GB, free: 15.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 2.425e-06/0.158, allocations: 0 / 0.5295 GB, free: 15.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001102/0.1591, allocations: 353 kB / 0.5298 GB, free: 15.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/0.1593, allocations: 166.2 kB / 0.53 GB, free: 15.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003891/0.1597, allocations: 270.5 kB / 0.5302 GB, free: 15.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.02e-05/0.1597, allocations: 41.7 kB / 0.5303 GB, free: 15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002915/0.16, allocations: 213 kB / 0.5305 GB, free: 14.79 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.1601, allocations: 99.19 kB / 0.5306 GB, free: 14.69 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/0.1603, allocations: 102.2 kB / 0.5306 GB, free: 14.58 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002566/0.1606, allocations: 338.8 kB / 0.531 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004158/0.161, allocations: 133 kB / 0.5311 GB, free: 14.11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006175/0.1616, allocations: 253.9 kB / 0.5313 GB, free: 13.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008764/0.1625, allocations: 350.7 kB / 0.5317 GB, free: 13.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1625, allocations: 0 / 0.5317 GB, free: 13.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001143/0.1637, allocations: 449.7 kB / 0.5321 GB, free: 12.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.1637, allocations: 4 kB / 0.5321 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.1637, allocations: 4 kB / 0.5321 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.214e-05/0.1637, allocations: 8 kB / 0.5321 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003935/0.1641, allocations: 67.77 kB / 0.5322 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.922e-05/0.1641, allocations: 4 kB / 0.5322 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003841/0.1645, allocations: 67.73 kB / 0.5323 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.289e-05/0.1646, allocations: 20 kB / 0.5323 GB, free: 12.81 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.inventory.inflow.stopInflow,$PRE.inventory.outflow.stopInflow,$PRE.producing.cloud.massPort.stopInflow,$PRE.producing.cloud.massPort.stopOutflow,$PRE.installedBase.inflow.stopInflow,$PRE.installedBase.inflow.stopOutflow,$PRE.cloud1.massPort.stopInflow,$PRE.cloud1.massPort.stopOutflow,cloud1.massPort.stopOutflow,cloud1.massPort.stopInflow,installedBase.inflow.stopInflow,producing.cloud.massPort.stopOutflow,inventory.inflow.stopInflow,installedBase.inflow.stopOutflow,producing.cloud.massPort.stopInflow,inventory.outflow.stopInflow,shipping.portA.stopInflow,producing.growing.portA.stopInflow,shipping.portB.stopOutflow,producing.growing.useB_rate,$PRE.producing.growing.useB_rate,producing.growing.useA_rate,$PRE.producing.growing.useA_rate,producing.growing.portB.stopOutflow,producing.growing.portB.stopInflow,producing.growing.portA.stopOutflow,shipping.useB_rate,$PRE.shipping.useB_rate,shipping.useA_rate,$PRE.shipping.useA_rate,shipping.portB.stopInflow,shipping.portA.stopOutflow,inventory.outflow.stopOutflow,$PRE.inventory.outflow.stopOutflow,inventory.inflow.stopOutflow,$PRE.inventory.inflow.stopOutflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * 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.0004686/0.165, allocations: 179.5 kB / 0.5324 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.1652, allocations: 31.81 kB / 0.5325 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.1653, allocations: 34.17 kB / 0.5325 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.1653, allocations: 7.938 kB / 0.5325 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.1653, allocations: 0 / 0.5325 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.1653, allocations: 4 kB / 0.5325 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002399/0.1677, allocations: 1.184 MB / 0.5337 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.1677, allocations: 4 kB / 0.5337 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002236/0.168, allocations: 39.92 kB / 0.5337 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.194e-06/0.168, allocations: 4 kB / 0.5337 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.515e-05/0.168, allocations: 23.92 kB / 0.5337 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/0.168, allocations: 4.406 kB / 0.5337 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.168, allocations: 11.94 kB / 0.5338 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008845/0.1689, allocations: 0.5319 MB / 0.5343 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002093/0.1691, allocations: 132.8 kB / 0.5344 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.915e-05/0.1692, allocations: 15.98 kB / 0.5344 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/0.1694, allocations: 15.98 kB / 0.5344 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.98e-05/0.1695, allocations: 39.84 kB / 0.5345 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-05/0.1695, allocations: 15.94 kB / 0.5345 GB, free: 10.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002086/0.1697, allocations: 182 kB / 0.5347 GB, free: 10.17 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1697, allocations: 0 / 0.5347 GB, free: 10.17 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005242/0.1702, allocations: 99.73 kB / 0.5348 GB, free: 10.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 5 (inventory.x,installedBase.x_hidden[1],installedBase.x_hidden[2],installedBase.x_hidden[3],installedBase.x_hidden[4]) * Number of discrete variables: 14 (inventory.outflow.stopOutflow,producing.growing.portB.stopOutflow,inventory.inflow.stopOutflow,shipping.portA.stopOutflow,shipping.useA_rate,shipping.portA.stopInflow,producing.growing.portA.stopInflow,shipping.portB.stopOutflow,producing.growing.useB_rate,producing.growing.portB.stopInflow,producing.growing.portA.stopOutflow,shipping.useB_rate,shipping.portB.stopInflow,producing.growing.useA_rate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001553/0.1704, allocations: 116.9 kB / 0.5349 GB, free: 9.953 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007486/0.1711, allocations: 299.8 kB / 0.5352 GB, free: 9.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1711, allocations: 3.938 kB / 0.5352 GB, free: 9.656 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003218/0.1715, allocations: 139.8 kB / 0.5353 GB, free: 9.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006553/0.1721, allocations: 92.31 kB / 0.5354 GB, free: 9.438 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001337/0.1734, allocations: 0.7339 MB / 0.5361 GB, free: 8.637 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006229/0.1741, allocations: 0.7961 MB / 0.5369 GB, free: 7.816 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002657/0.1743, allocations: 63.23 kB / 0.5369 GB, free: 7.754 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.1744, allocations: 27.44 kB / 0.537 GB, free: 7.727 MB / 398.1 MB Notification: Performance of SimCode: time 6.72e-07/0.1744, allocations: 0 / 0.537 GB, free: 7.727 MB / 398.1 MB Notification: Performance of Templates: time 0.009807/0.1842, allocations: 3.885 MB / 0.5408 GB, free: 3.895 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.makefile [Timeout 660] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.281127879396081]