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.00822/0.00822, allocations: 104.7 kB / 15.74 MB, free: 6.492 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.001571/0.001571, allocations: 191.7 kB / 16.68 MB, free: 6.375 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.476/1.476, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2904/0.2904, allocations: 31.16 MB / 321.7 MB, free: 4.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 62.88 kB / 446.7 MB, free: 30.43 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1281, allocations: 56.37 MB / 0.4913 GB, free: 7.262 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008932/0.1371, allocations: 6.799 MB / 0.4979 GB, free: 448 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002695/0.1399, allocations: 0.9895 MB / 0.4989 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000508/0.1404, allocations: 23.88 kB / 0.4989 GB, free: 15.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003485/0.1408, allocations: 107 kB / 0.499 GB, free: 15.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002517/0.1411, allocations: 83.22 kB / 0.4991 GB, free: 15.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007304/0.1418, allocations: 231.5 kB / 0.4993 GB, free: 15 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006207/0.1424, allocations: 0.5658 MB / 0.4999 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004561/0.1429, allocations: 309.4 kB / 0.5002 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000274/0.1432, allocations: 231.1 kB / 0.5004 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000296/0.1435, allocations: 242.8 kB / 0.5006 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.918e-05/0.1436, allocations: 60 kB / 0.5007 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001242/0.1437, allocations: 67.98 kB / 0.5007 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.1439, allocations: 127.6 kB / 0.5008 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002453/0.1441, allocations: 262.6 kB / 0.5011 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006811/0.1448, allocations: 0.5721 MB / 0.5017 GB, free: 12.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1448, allocations: 0 / 0.5017 GB, free: 12.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1448, allocations: 0 / 0.5017 GB, free: 12.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.1449, allocations: 0 / 0.5017 GB, free: 12.58 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.001428/0.1463, allocations: 0.7876 MB / 0.5024 GB, free: 11.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.577e-05/0.1464, allocations: 12.03 kB / 0.5024 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003801/0.1468, allocations: 72.25 kB / 0.5025 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006933/0.1475, allocations: 404.1 kB / 0.5029 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.74e-05/0.1475, allocations: 49.31 kB / 0.5029 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.773e-05/0.1476, allocations: 63.84 kB / 0.503 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009156/0.1486, allocations: 0.4915 MB / 0.5035 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.1486, allocations: 3.938 kB / 0.5035 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.829e-05/0.1486, allocations: 20 kB / 0.5035 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.1487, allocations: 12 kB / 0.5035 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006939/0.1494, allocations: 303.8 kB / 0.5038 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.1519, allocations: 1.863 MB / 0.5056 GB, free: 8.309 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000657/0.1526, allocations: 303.2 kB / 0.5059 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003031/0.1529, allocations: 179.8 kB / 0.5061 GB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.153, allocations: 8.219 kB / 0.5061 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.153, allocations: 46.67 kB / 0.5061 GB, free: 7.727 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.783e-06/0.153, allocations: 0 / 0.5061 GB, free: 7.727 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.000867/0.1539, allocations: 389.4 kB / 0.5065 GB, free: 7.344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.154, allocations: 158.2 kB / 0.5067 GB, free: 7.152 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003464/0.1544, allocations: 320.4 kB / 0.507 GB, free: 6.832 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.122e-05/0.1544, allocations: 37.7 kB / 0.507 GB, free: 6.789 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.1546, allocations: 252.6 kB / 0.5072 GB, free: 6.539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.826e-05/0.1547, allocations: 102.6 kB / 0.5073 GB, free: 6.438 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.1549, allocations: 106.2 kB / 0.5074 GB, free: 6.328 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.155, allocations: 346.8 kB / 0.5078 GB, free: 5.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000324/0.1553, allocations: 149 kB / 0.5079 GB, free: 5.832 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000446/0.1558, allocations: 265.9 kB / 0.5082 GB, free: 5.527 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006632/0.1565, allocations: 370.8 kB / 0.5085 GB, free: 5.125 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1565, allocations: 0 / 0.5085 GB, free: 5.125 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009686/0.1575, allocations: 475.7 kB / 0.509 GB, free: 4.652 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.997e-05/0.1575, allocations: 7.938 kB / 0.509 GB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.1575, allocations: 7.938 kB / 0.509 GB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.274e-05/0.1576, allocations: 8 kB / 0.509 GB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.1579, allocations: 67.83 kB / 0.5091 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.756e-05/0.1579, allocations: 11.94 kB / 0.5091 GB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.1582, allocations: 55.5 kB / 0.5091 GB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.1582, allocations: 20 kB / 0.5091 GB, free: 4.477 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.0002376/0.1584, allocations: 199.5 kB / 0.5093 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.1586, allocations: 39.56 kB / 0.5094 GB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.483e-05/0.1587, allocations: 43.86 kB / 0.5094 GB, free: 4.188 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1587, allocations: 7.938 kB / 0.5094 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.1587, allocations: 0 / 0.5094 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.1587, allocations: 0 / 0.5094 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001635/0.1603, allocations: 1.224 MB / 0.5106 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.1603, allocations: 8.031 kB / 0.5106 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000217/0.1606, allocations: 39.91 kB / 0.5107 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/0.1606, allocations: 4 kB / 0.5107 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.085e-05/0.1606, allocations: 11.98 kB / 0.5107 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.979e-06/0.1606, allocations: 7.938 kB / 0.5107 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-05/0.1607, allocations: 4 kB / 0.5107 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008905/0.1616, allocations: 0.5615 MB / 0.5112 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.1617, allocations: 132.7 kB / 0.5114 GB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.82e-05/0.1618, allocations: 15.98 kB / 0.5114 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001984/0.162, allocations: 23.83 kB / 0.5114 GB, free: 1.992 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.558e-05/0.1621, allocations: 35.91 kB / 0.5114 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.1621, allocations: 8 kB / 0.5114 GB, free: 1.949 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002193/0.1623, allocations: 215.1 kB / 0.5117 GB, free: 1.742 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1623, allocations: 0 / 0.5117 GB, free: 1.742 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004463/0.1628, allocations: 107.6 kB / 0.5118 GB, free: 1.637 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.0001589/0.1629, allocations: 123.3 kB / 0.5119 GB, free: 1.508 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007217/0.1637, allocations: 350.5 kB / 0.5122 GB, free: 1.168 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1637, allocations: 0 / 0.5122 GB, free: 1.168 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002991/0.164, allocations: 159.8 kB / 0.5124 GB, free: 1.012 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006148/0.1646, allocations: 103 kB / 0.5125 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.166, allocations: 0.8103 MB / 0.5132 GB, free: 48 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.1664, allocations: 0.8192 MB / 0.514 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002022/0.1666, allocations: 71.34 kB / 0.5141 GB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.353e-05/0.1667, allocations: 31.44 kB / 0.5141 GB, free: 15.1 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1667, allocations: 0 / 0.5141 GB, free: 15.1 MB / 398.1 MB Notification: Performance of Templates: time 0.00897/0.1757, allocations: 4.396 MB / 0.5184 GB, free: 10.75 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)