Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006476/0.006476, allocations: 97.11 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 194.5 kB / 16.68 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3075/0.3075, allocations: 31.16 MB / 321.7 MB, free: 4.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 63.06 kB / 446.7 MB, free: 30.38 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.141, allocations: 56.37 MB / 0.4913 GB, free: 7.25 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008351/0.1494, allocations: 6.783 MB / 0.4979 GB, free: 452 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002518/0.1519, allocations: 1.005 MB / 0.4989 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005134/0.1525, allocations: 23.88 kB / 0.4989 GB, free: 15.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003684/0.1528, allocations: 103 kB / 0.499 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002531/0.1532, allocations: 75.3 kB / 0.4991 GB, free: 15.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007327/0.1539, allocations: 231.4 kB / 0.4993 GB, free: 15 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006097/0.1545, allocations: 0.5658 MB / 0.4999 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005457/0.1551, allocations: 309.4 kB / 0.5002 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002937/0.1554, allocations: 235 kB / 0.5004 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002911/0.1557, allocations: 238.9 kB / 0.5006 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.614e-05/0.1558, allocations: 56 kB / 0.5007 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.1559, allocations: 71.98 kB / 0.5007 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.1561, allocations: 123.6 kB / 0.5008 GB, free: 13.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002196/0.1563, allocations: 262.7 kB / 0.5011 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007039/0.157, allocations: 0.5795 MB / 0.5017 GB, free: 12.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.157, allocations: 4 kB / 0.5017 GB, free: 12.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.157, allocations: 0 / 0.5017 GB, free: 12.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.1571, allocations: 0 / 0.5017 GB, free: 12.57 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001335/0.1584, allocations: 0.7987 MB / 0.5024 GB, free: 11.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.1584, allocations: 12.03 kB / 0.5025 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003428/0.1588, allocations: 80.53 kB / 0.5025 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005714/0.1594, allocations: 404.3 kB / 0.5029 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.108e-05/0.1594, allocations: 49.38 kB / 0.503 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.837e-05/0.1595, allocations: 59.94 kB / 0.503 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008338/0.1604, allocations: 499.2 kB / 0.5035 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.1604, allocations: 7.938 kB / 0.5035 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.367e-05/0.1605, allocations: 20 kB / 0.5035 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.1605, allocations: 12 kB / 0.5035 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000657/0.1611, allocations: 303.8 kB / 0.5038 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002299/0.1634, allocations: 1.872 MB / 0.5057 GB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006578/0.1641, allocations: 315.1 kB / 0.506 GB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002929/0.1644, allocations: 175.8 kB / 0.5061 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.1645, allocations: 4.234 kB / 0.5061 GB, free: 7.746 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/0.1645, allocations: 50.66 kB / 0.5062 GB, free: 7.688 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.463e-06/0.1645, allocations: 0 / 0.5062 GB, free: 7.688 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008769/0.1654, allocations: 381.5 kB / 0.5065 GB, free: 7.312 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.1655, allocations: 166.6 kB / 0.5067 GB, free: 7.113 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003411/0.1659, allocations: 316.5 kB / 0.507 GB, free: 6.797 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.681e-05/0.1659, allocations: 41.7 kB / 0.507 GB, free: 6.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/0.1661, allocations: 257.1 kB / 0.5073 GB, free: 6.496 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.029e-05/0.1662, allocations: 103.2 kB / 0.5074 GB, free: 6.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/0.1664, allocations: 106.2 kB / 0.5075 GB, free: 6.285 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.1665, allocations: 346.8 kB / 0.5078 GB, free: 5.938 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003355/0.1669, allocations: 153 kB / 0.508 GB, free: 5.785 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004256/0.1673, allocations: 257.9 kB / 0.5082 GB, free: 5.488 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005977/0.1679, allocations: 366.8 kB / 0.5086 GB, free: 5.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.1679, allocations: 0 / 0.5086 GB, free: 5.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000867/0.1688, allocations: 479.5 kB / 0.509 GB, free: 4.613 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.1688, allocations: 11.88 kB / 0.509 GB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1688, allocations: 4 kB / 0.509 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/0.1689, allocations: 8.406 kB / 0.509 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002686/0.1692, allocations: 71.83 kB / 0.5091 GB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.1692, allocations: 11.94 kB / 0.5091 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002709/0.1695, allocations: 59.59 kB / 0.5092 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.279e-05/0.1695, allocations: 20 kB / 0.5092 GB, free: 4.43 MB / 382.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 (63): * Single equations (assignments): 63 * 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.000226/0.1697, allocations: 195.5 kB / 0.5094 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.1699, allocations: 47.64 kB / 0.5094 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.163e-05/0.17, allocations: 43.86 kB / 0.5095 GB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.17, allocations: 4 kB / 0.5095 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.17, allocations: 3.938 kB / 0.5095 GB, free: 4.129 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.17, allocations: 0 / 0.5095 GB, free: 4.129 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001729/0.1717, allocations: 1.224 MB / 0.5107 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.1718, allocations: 8 kB / 0.5107 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002144/0.172, allocations: 43.91 kB / 0.5107 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.172, allocations: 4 kB / 0.5107 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.626e-05/0.172, allocations: 12.27 kB / 0.5107 GB, free: 2.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.172, allocations: 11.94 kB / 0.5107 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.1721, allocations: 4 kB / 0.5107 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008619/0.1729, allocations: 0.5539 MB / 0.5113 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.1731, allocations: 136.8 kB / 0.5114 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.788e-05/0.1731, allocations: 15.98 kB / 0.5114 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.1733, allocations: 23.92 kB / 0.5115 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.1735, allocations: 35.91 kB / 0.5115 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-05/0.1735, allocations: 12 kB / 0.5115 GB, free: 1.891 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002341/0.1737, allocations: 211.1 kB / 0.5117 GB, free: 1.688 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1737, allocations: 0 / 0.5117 GB, free: 1.688 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000467/0.1742, allocations: 107.7 kB / 0.5118 GB, free: 1.582 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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,producing.growing.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 31 * 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.000178/0.1744, allocations: 127.5 kB / 0.5119 GB, free: 1.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007637/0.1752, allocations: 350.2 kB / 0.5123 GB, free: 1.109 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1752, allocations: 0.8125 kB / 0.5123 GB, free: 1.109 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003146/0.1755, allocations: 163.9 kB / 0.5124 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006252/0.1762, allocations: 98.09 kB / 0.5125 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.1776, allocations: 0.8198 MB / 0.5133 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004249/0.178, allocations: 0.8269 MB / 0.5141 GB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002018/0.1782, allocations: 63.36 kB / 0.5142 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.1783, allocations: 39.44 kB / 0.5142 GB, free: 15.03 MB / 398.1 MB Notification: Performance of SimCode: time 6.22e-07/0.1783, allocations: 0 / 0.5142 GB, free: 15.03 MB / 398.1 MB Notification: Performance of Templates: time 0.009302/0.1876, allocations: 4.393 MB / 0.5185 GB, free: 10.68 MB / 398.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)