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.006436/0.006436, allocations: 95.77 kB / 15.73 MB, free: 6.039 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.001432/0.001432, allocations: 200.7 kB / 16.68 MB, free: 5.969 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3885/0.3885, allocations: 31.16 MB / 321.7 MB, free: 4.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 61.25 kB / 446.2 MB, free: 30.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1327, allocations: 56.38 MB / 0.4908 GB, free: 7.734 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008563/0.1413, allocations: 6.777 MB / 0.4974 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002043/0.1434, allocations: 1.009 MB / 0.4984 GB, free: 15.92 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000368/0.1438, allocations: 19.88 kB / 0.4984 GB, free: 15.9 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003237/0.1441, allocations: 103 kB / 0.4985 GB, free: 15.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002378/0.1444, allocations: 83.23 kB / 0.4986 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006687/0.1451, allocations: 227.5 kB / 0.4988 GB, free: 15.49 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006312/0.1457, allocations: 0.562 MB / 0.4994 GB, free: 14.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004243/0.1462, allocations: 305.4 kB / 0.4997 GB, free: 14.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002553/0.1464, allocations: 239.1 kB / 0.4999 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.1467, allocations: 242.8 kB / 0.5001 GB, free: 14.15 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.045e-05/0.1468, allocations: 56 kB / 0.5002 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.1469, allocations: 63.94 kB / 0.5002 GB, free: 14.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.1471, allocations: 131.6 kB / 0.5004 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000224/0.1473, allocations: 258.7 kB / 0.5006 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006838/0.148, allocations: 0.5837 MB / 0.5012 GB, free: 13.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.148, allocations: 0 / 0.5012 GB, free: 13.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.148, allocations: 0 / 0.5012 GB, free: 13.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.148, allocations: 0 / 0.5012 GB, free: 13.06 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.001375/0.1494, allocations: 0.8033 MB / 0.502 GB, free: 12.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.1495, allocations: 8.031 kB / 0.502 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001014/0.1496, allocations: 90.7 kB / 0.5021 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003231/0.1499, allocations: 80.53 kB / 0.5021 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005756/0.1505, allocations: 408.3 kB / 0.5025 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.201e-05/0.1506, allocations: 49.12 kB / 0.5026 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.931e-05/0.1507, allocations: 60 kB / 0.5026 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000849/0.1515, allocations: 0.4953 MB / 0.5031 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.1515, allocations: 0 / 0.5031 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.255e-05/0.1516, allocations: 20 kB / 0.5031 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.1516, allocations: 16 kB / 0.5031 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007082/0.1523, allocations: 311.7 kB / 0.5034 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002362/0.1547, allocations: 1.868 MB / 0.5053 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006481/0.1554, allocations: 299.2 kB / 0.5056 GB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000328/0.1557, allocations: 179.8 kB / 0.5057 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.1557, allocations: 4.234 kB / 0.5057 GB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.1558, allocations: 46.67 kB / 0.5058 GB, free: 8.082 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.503e-06/0.1558, allocations: 4 kB / 0.5058 GB, free: 8.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008771/0.1567, allocations: 377.5 kB / 0.5061 GB, free: 7.707 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.928e-05/0.1568, allocations: 162.2 kB / 0.5063 GB, free: 7.512 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003259/0.1571, allocations: 316.8 kB / 0.5066 GB, free: 7.195 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.268e-05/0.1572, allocations: 45.7 kB / 0.5066 GB, free: 7.145 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.1574, allocations: 261.1 kB / 0.5069 GB, free: 6.887 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.522e-05/0.1575, allocations: 103.2 kB / 0.507 GB, free: 6.785 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.1576, allocations: 102.2 kB / 0.5071 GB, free: 6.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1578, allocations: 354.8 kB / 0.5074 GB, free: 6.324 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003267/0.1581, allocations: 137 kB / 0.5076 GB, free: 6.191 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003849/0.1585, allocations: 258 kB / 0.5078 GB, free: 5.891 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005991/0.1591, allocations: 374.8 kB / 0.5082 GB, free: 5.484 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.1591, allocations: 0 / 0.5082 GB, free: 5.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008563/0.16, allocations: 479.4 kB / 0.5086 GB, free: 5.008 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.16, allocations: 8 kB / 0.5086 GB, free: 5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.16, allocations: 7.984 kB / 0.5086 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.1601, allocations: 7.938 kB / 0.5086 GB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002781/0.1603, allocations: 67.84 kB / 0.5087 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.383e-05/0.1604, allocations: 8.391 kB / 0.5087 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.1606, allocations: 63.61 kB / 0.5088 GB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/0.1607, allocations: 19.98 kB / 0.5088 GB, free: 4.828 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.0002175/0.1609, allocations: 207.4 kB / 0.509 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.161, allocations: 39.7 kB / 0.509 GB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.319e-05/0.1611, allocations: 43.86 kB / 0.5091 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.1611, allocations: 4 kB / 0.5091 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.1611, allocations: 0 / 0.5091 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.862e-06/0.1611, allocations: 11.98 kB / 0.5091 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/0.1627, allocations: 1.224 MB / 0.5103 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.1628, allocations: 0 / 0.5103 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.163, allocations: 43.91 kB / 0.5103 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.163, allocations: 4 kB / 0.5103 GB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.163, allocations: 8 kB / 0.5103 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.1631, allocations: 11.88 kB / 0.5103 GB, free: 3.129 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.1631, allocations: 4 kB / 0.5103 GB, free: 3.125 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00088/0.1639, allocations: 0.562 MB / 0.5109 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.1641, allocations: 140.8 kB / 0.511 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.028e-05/0.1642, allocations: 11.94 kB / 0.511 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.1644, allocations: 19.98 kB / 0.5111 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.682e-05/0.1645, allocations: 39.94 kB / 0.5111 GB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/0.1645, allocations: 8 kB / 0.5111 GB, free: 2.285 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002247/0.1647, allocations: 215 kB / 0.5113 GB, free: 2.078 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1647, allocations: 0 / 0.5113 GB, free: 2.078 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004561/0.1652, allocations: 107.7 kB / 0.5114 GB, free: 1.973 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.001277/0.1665, allocations: 1.108 MB / 0.5125 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007552/0.1673, allocations: 350.8 kB / 0.5128 GB, free: 480 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.1673, allocations: 4 kB / 0.5128 GB, free: 476 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003096/0.1676, allocations: 155.8 kB / 0.513 GB, free: 320 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006645/0.1683, allocations: 111.4 kB / 0.5131 GB, free: 216 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005247/0.1735, allocations: 3.646 MB / 0.5166 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000557/0.1741, allocations: 0.8269 MB / 0.5175 GB, free: 11.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002717/0.1744, allocations: 67.34 kB / 0.5175 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002897/0.1747, allocations: 155.4 kB / 0.5177 GB, free: 11.28 MB / 398.1 MB Notification: Performance of SimCode: time 8.41e-07/0.1747, allocations: 0 / 0.5177 GB, free: 11.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03232/0.207, allocations: 7.379 MB / 0.5249 GB, free: 4.059 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.058/8.265, allocations: 9.156 kB / 0.5249 GB, free: 4.055 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)