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: "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",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.004951/0.004951, allocations: 98.56 kB / 15.73 MB, free: 5.949 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.001294/0.001294, allocations: 196.5 kB / 16.68 MB, free: 5.871 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.518/1.518, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1752/0.1752, allocations: 31.18 MB / 321.7 MB, free: 168 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 71.88 kB / 446.2 MB, free: 2.254 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1283, allocations: 56.35 MB / 0.4908 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.009062/0.1374, allocations: 6.792 MB / 0.4974 GB, free: 3.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002497/0.1399, allocations: 0.9972 MB / 0.4984 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004925/0.1405, allocations: 23.88 kB / 0.4984 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003748/0.1409, allocations: 103 kB / 0.4985 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002597/0.1411, allocations: 75.3 kB / 0.4986 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007051/0.1418, allocations: 227.5 kB / 0.4988 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006934/0.1426, allocations: 0.5696 MB / 0.4994 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004999/0.1431, allocations: 313.3 kB / 0.4997 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.1434, allocations: 223.2 kB / 0.4999 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003071/0.1437, allocations: 242.8 kB / 0.5001 GB, free: 296 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.051e-05/0.1438, allocations: 56 kB / 0.5002 GB, free: 240 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.1439, allocations: 64 kB / 0.5002 GB, free: 176 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.1441, allocations: 131.6 kB / 0.5004 GB, free: 44 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2685/0.4125, allocations: 259.5 kB / 0.5006 GB, free: 6.406 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009248/0.4135, allocations: 0.5775 MB / 0.5012 GB, free: 6.375 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.4135, allocations: 0.875 kB / 0.5012 GB, free: 6.375 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4135, allocations: 0 / 0.5012 GB, free: 6.375 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.4136, allocations: 0 / 0.5012 GB, free: 6.375 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.001292/0.4149, allocations: 0.8009 MB / 0.502 GB, free: 5.855 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.4149, allocations: 9.781 kB / 0.502 GB, free: 5.855 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.695e-05/0.415, allocations: 90.33 kB / 0.5021 GB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003296/0.4153, allocations: 75.67 kB / 0.5021 GB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005689/0.4159, allocations: 409.3 kB / 0.5025 GB, free: 5.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.743e-05/0.416, allocations: 45.22 kB / 0.5026 GB, free: 5.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.4161, allocations: 65.23 kB / 0.5026 GB, free: 5.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009269/0.417, allocations: 0.4934 MB / 0.5031 GB, free: 5.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.4171, allocations: 1.375 kB / 0.5031 GB, free: 5.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.349e-05/0.4171, allocations: 21.19 kB / 0.5031 GB, free: 5.441 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/0.4171, allocations: 13.12 kB / 0.5031 GB, free: 5.441 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007107/0.4179, allocations: 313.4 kB / 0.5034 GB, free: 5.434 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00217/0.42, allocations: 1.86 MB / 0.5053 GB, free: 4.426 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006573/0.4207, allocations: 307.2 kB / 0.5055 GB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000305/0.421, allocations: 180.5 kB / 0.5057 GB, free: 4.301 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.4211, allocations: 6.234 kB / 0.5057 GB, free: 4.301 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.4211, allocations: 44.64 kB / 0.5058 GB, free: 4.262 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.914e-06/0.4211, allocations: 0 / 0.5058 GB, free: 4.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009186/0.422, allocations: 386.7 kB / 0.5061 GB, free: 4.203 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/0.4221, allocations: 163.1 kB / 0.5063 GB, free: 4.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003608/0.4225, allocations: 316.7 kB / 0.5066 GB, free: 3.898 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.877e-05/0.4225, allocations: 40.55 kB / 0.5066 GB, free: 3.867 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.4227, allocations: 267.4 kB / 0.5069 GB, free: 3.707 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.772e-05/0.4228, allocations: 102.8 kB / 0.507 GB, free: 3.645 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.4229, allocations: 105.8 kB / 0.5071 GB, free: 3.621 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.955e-05/0.423, allocations: 347.8 kB / 0.5074 GB, free: 3.309 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003449/0.4234, allocations: 144.1 kB / 0.5076 GB, free: 3.309 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003987/0.4238, allocations: 259 kB / 0.5078 GB, free: 3.188 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005966/0.4244, allocations: 368.5 kB / 0.5082 GB, free: 3.066 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.4244, allocations: 1.094 kB / 0.5082 GB, free: 3.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001004/0.4254, allocations: 479.5 kB / 0.5086 GB, free: 3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.4255, allocations: 10.59 kB / 0.5086 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.4255, allocations: 7.406 kB / 0.5086 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.961e-05/0.4255, allocations: 5.812 kB / 0.5086 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002946/0.4258, allocations: 73.45 kB / 0.5087 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.517e-05/0.4258, allocations: 6.828 kB / 0.5087 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003044/0.4261, allocations: 60.03 kB / 0.5088 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.786e-05/0.4262, allocations: 20.05 kB / 0.5088 GB, free: 2.961 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.0002264/0.4264, allocations: 196 kB / 0.509 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.4265, allocations: 37.2 kB / 0.509 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.4266, allocations: 43.98 kB / 0.509 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.988e-06/0.4267, allocations: 8.484 kB / 0.5091 GB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.4267, allocations: 8.094 kB / 0.5091 GB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.4267, allocations: 2.625 kB / 0.5091 GB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001897/0.4286, allocations: 1.217 MB / 0.5103 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.4286, allocations: 3.219 kB / 0.5103 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002442/0.4289, allocations: 45.44 kB / 0.5103 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.956e-06/0.4289, allocations: 4.438 kB / 0.5103 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.315e-05/0.4289, allocations: 10.3 kB / 0.5103 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-05/0.4289, allocations: 8.609 kB / 0.5103 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.429, allocations: 10.56 kB / 0.5103 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.43, allocations: 0.5554 MB / 0.5109 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001504/0.4302, allocations: 134.3 kB / 0.511 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.661e-05/0.4302, allocations: 14.11 kB / 0.511 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/0.4304, allocations: 29.25 kB / 0.511 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.4306, allocations: 29.64 kB / 0.5111 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.723e-05/0.4306, allocations: 12.64 kB / 0.5111 GB, free: 1.777 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003225/0.4309, allocations: 214.4 kB / 0.5113 GB, free: 1.699 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4309, allocations: 0 / 0.5113 GB, free: 1.699 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007636/0.4317, allocations: 110.9 kB / 0.5114 GB, free: 1.676 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.001261/0.433, allocations: 1.108 MB / 0.5125 GB, free: 16.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008672/0.4339, allocations: 350.9 kB / 0.5128 GB, free: 16.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.4339, allocations: 1.344 kB / 0.5128 GB, free: 16.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003276/0.4342, allocations: 159.3 kB / 0.513 GB, free: 16.9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00072/0.4349, allocations: 110.1 kB / 0.5131 GB, free: 16.89 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005665/0.4406, allocations: 3.638 MB / 0.5166 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006927/0.4414, allocations: 0.8264 MB / 0.5174 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000304/0.4417, allocations: 62.98 kB / 0.5175 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.4419, allocations: 153.9 kB / 0.5176 GB, free: 14.33 MB / 398.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4419, allocations: 0 / 0.5176 GB, free: 14.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03825/0.4802, allocations: 7.385 MB / 0.5249 GB, free: 13.08 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.592/9.072, allocations: 8.75 kB / 0.5249 GB, free: 13.08 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII_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_SimpleProductionChainII.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)