Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.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: "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00533/0.00533, allocations: 98.52 kB / 15.73 MB, free: 5.527 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.00107/0.00107, allocations: 187.4 kB / 16.67 MB, free: 5.465 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.429/0.429, allocations: 31.17 MB / 321.7 MB, free: 4.246 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 60.45 kB / 446.2 MB, free: 30.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1339, allocations: 56.37 MB / 0.4908 GB, free: 7.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.01013/0.1441, allocations: 5.376 MB / 0.496 GB, free: 2.352 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.1461, allocations: 0.6112 MB / 0.4966 GB, free: 1.738 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003163/0.1464, allocations: 11.94 kB / 0.4967 GB, free: 1.727 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003652/0.1468, allocations: 79.27 kB / 0.4967 GB, free: 1.648 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002891/0.1472, allocations: 75.3 kB / 0.4968 GB, free: 1.574 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008146/0.148, allocations: 179.6 kB / 0.497 GB, free: 1.398 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006566/0.1487, allocations: 459.3 kB / 0.4974 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004696/0.1491, allocations: 242.1 kB / 0.4976 GB, free: 0.7109 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00027/0.1494, allocations: 187.3 kB / 0.4978 GB, free: 0.5273 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003147/0.1497, allocations: 207 kB / 0.498 GB, free: 332 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.405e-05/0.1498, allocations: 44 kB / 0.4981 GB, free: 288 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.15, allocations: 55.98 kB / 0.4981 GB, free: 232 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.1501, allocations: 107.7 kB / 0.4982 GB, free: 124 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002679/0.1504, allocations: 203.1 kB / 0.4984 GB, free: 15.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007221/0.1511, allocations: 466.2 kB / 0.4989 GB, free: 15.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.1512, allocations: 0 / 0.4989 GB, free: 15.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1512, allocations: 3.938 kB / 0.4989 GB, free: 15.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.1512, allocations: 0 / 0.4989 GB, free: 15.46 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.001541/0.1527, allocations: 0.7094 MB / 0.4996 GB, free: 14.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.1528, allocations: 8.031 kB / 0.4996 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.1529, allocations: 74.72 kB / 0.4996 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004202/0.1533, allocations: 64.62 kB / 0.4997 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005404/0.1539, allocations: 339.4 kB / 0.5 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.999e-05/0.154, allocations: 41.12 kB / 0.5001 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.1541, allocations: 48 kB / 0.5001 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008975/0.155, allocations: 419.3 kB / 0.5005 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.155, allocations: 0 / 0.5005 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.345e-05/0.1551, allocations: 16 kB / 0.5005 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.1551, allocations: 12 kB / 0.5005 GB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007297/0.1558, allocations: 247.7 kB / 0.5008 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002588/0.1584, allocations: 1.649 MB / 0.5024 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007344/0.1592, allocations: 254.3 kB / 0.5026 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003615/0.1596, allocations: 155.8 kB / 0.5028 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.1596, allocations: 7.938 kB / 0.5028 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.643e-05/0.1597, allocations: 46.55 kB / 0.5028 GB, free: 11.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.993e-06/0.1597, allocations: 0 / 0.5028 GB, free: 11.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.001087/0.1608, allocations: 349.1 kB / 0.5032 GB, free: 10.78 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.1609, allocations: 166.6 kB / 0.5033 GB, free: 10.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003698/0.1613, allocations: 266.6 kB / 0.5036 GB, free: 10.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.46e-05/0.1613, allocations: 45.69 kB / 0.5036 GB, free: 10.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/0.1616, allocations: 212.7 kB / 0.5038 GB, free: 10.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.1617, allocations: 91.25 kB / 0.5039 GB, free: 9.965 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.1619, allocations: 98.2 kB / 0.504 GB, free: 9.863 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.162, allocations: 342.8 kB / 0.5043 GB, free: 9.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004209/0.1625, allocations: 144.9 kB / 0.5045 GB, free: 9.379 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005374/0.163, allocations: 245.9 kB / 0.5047 GB, free: 9.094 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007855/0.1638, allocations: 350.7 kB / 0.505 GB, free: 8.707 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.1638, allocations: 0 / 0.505 GB, free: 8.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001191/0.165, allocations: 457.4 kB / 0.5055 GB, free: 8.254 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.1651, allocations: 8 kB / 0.5055 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.1651, allocations: 0 / 0.5055 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.101e-05/0.1651, allocations: 12.34 kB / 0.5055 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003611/0.1655, allocations: 67.83 kB / 0.5055 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.334e-05/0.1655, allocations: 8 kB / 0.5056 GB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004034/0.166, allocations: 59.64 kB / 0.5056 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.374e-05/0.166, allocations: 20 kB / 0.5056 GB, free: 8.082 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 (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.0003062/0.1663, allocations: 183.5 kB / 0.5058 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000155/0.1665, allocations: 31.81 kB / 0.5058 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.963e-05/0.1666, allocations: 34.17 kB / 0.5059 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.1666, allocations: 7.938 kB / 0.5059 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/0.1666, allocations: 4 kB / 0.5059 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.1667, allocations: 3.984 kB / 0.5059 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/0.1688, allocations: 1.174 MB / 0.507 GB, free: 6.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.1689, allocations: 4.031 kB / 0.507 GB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002798/0.1692, allocations: 47.84 kB / 0.5071 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.937e-06/0.1692, allocations: 4 kB / 0.5071 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.671e-05/0.1692, allocations: 15.94 kB / 0.5071 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.657e-06/0.1692, allocations: 7.984 kB / 0.5071 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.1693, allocations: 4 kB / 0.5071 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.1704, allocations: 0.5365 MB / 0.5076 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001813/0.1706, allocations: 132.8 kB / 0.5078 GB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.134e-05/0.1707, allocations: 8 kB / 0.5078 GB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002945/0.171, allocations: 27.91 kB / 0.5078 GB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.1711, allocations: 39.84 kB / 0.5078 GB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-05/0.1712, allocations: 12.12 kB / 0.5078 GB, free: 5.617 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002439/0.1714, allocations: 174 kB / 0.508 GB, free: 5.445 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1714, allocations: 0 / 0.508 GB, free: 5.445 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006511/0.1721, allocations: 95.8 kB / 0.5081 GB, free: 5.352 MB / 382.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.001424/0.1735, allocations: 1.1 MB / 0.5092 GB, free: 4.188 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009062/0.1744, allocations: 335.5 kB / 0.5095 GB, free: 3.859 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.1745, allocations: 0 / 0.5095 GB, free: 3.859 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003888/0.1749, allocations: 145.1 kB / 0.5096 GB, free: 3.719 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008501/0.1757, allocations: 109.8 kB / 0.5097 GB, free: 3.621 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006027/0.1818, allocations: 3.361 MB / 0.513 GB, free: 32 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005073/0.1823, allocations: 0.7999 MB / 0.5138 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002687/0.1826, allocations: 51.25 kB / 0.5139 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000238/0.1828, allocations: 119.4 kB / 0.514 GB, free: 15.04 MB / 398.1 MB Notification: Performance of SimCode: time 8.61e-07/0.1828, allocations: 0 / 0.514 GB, free: 15.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0311/0.2139, allocations: 6.357 MB / 0.5202 GB, free: 8.816 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.961/8.175, allocations: 5.438 kB / 0.5202 GB, free: 8.812 MB / 398.1 MB (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & python3 -m fmpy simulate --output-file BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)