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.008031/0.008031, allocations: 101.6 kB / 15.73 MB, free: 6.449 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.00209/0.00209, allocations: 196.8 kB / 16.68 MB, free: 6.352 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.484/1.484, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.398/0.398, allocations: 31.17 MB / 321.7 MB, free: 4.301 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 61.73 kB / 446.2 MB, free: 30.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1239, allocations: 56.36 MB / 0.4908 GB, free: 7.758 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.007597/0.1316, allocations: 5.376 MB / 0.496 GB, free: 2.355 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001629/0.1332, allocations: 0.6228 MB / 0.4967 GB, free: 1.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004669/0.1337, allocations: 11.94 kB / 0.4967 GB, free: 1.719 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003633/0.1341, allocations: 79.27 kB / 0.4967 GB, free: 1.641 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003864/0.1345, allocations: 67.38 kB / 0.4968 GB, free: 1.574 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007132/0.1353, allocations: 187.5 kB / 0.497 GB, free: 1.391 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006729/0.136, allocations: 455.3 kB / 0.4974 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004045/0.1364, allocations: 234.1 kB / 0.4976 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003181/0.1367, allocations: 195.3 kB / 0.4978 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003123/0.137, allocations: 195.1 kB / 0.498 GB, free: 340 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.738e-05/0.1371, allocations: 44 kB / 0.4981 GB, free: 296 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001167/0.1372, allocations: 63.98 kB / 0.4981 GB, free: 232 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.1374, allocations: 99.73 kB / 0.4982 GB, free: 132 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000226/0.1376, allocations: 211 kB / 0.4984 GB, free: 15.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005735/0.1382, allocations: 466 kB / 0.4989 GB, free: 15.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.1382, allocations: 0 / 0.4989 GB, free: 15.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1382, allocations: 0 / 0.4989 GB, free: 15.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.954e-05/0.1382, allocations: 4 kB / 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.001419/0.1397, allocations: 0.6978 MB / 0.4995 GB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.1397, allocations: 11.97 kB / 0.4996 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001106/0.1398, allocations: 82.7 kB / 0.4996 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003442/0.1402, allocations: 64.62 kB / 0.4997 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004925/0.1407, allocations: 335.4 kB / 0.5 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.1407, allocations: 41.12 kB / 0.5001 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.757e-05/0.1408, allocations: 48 kB / 0.5001 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007251/0.1416, allocations: 419.3 kB / 0.5005 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.1416, allocations: 3.984 kB / 0.5005 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.541e-05/0.1416, allocations: 16 kB / 0.5005 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.1417, allocations: 12 kB / 0.5005 GB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005713/0.1422, allocations: 251.7 kB / 0.5008 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002217/0.1445, allocations: 1.645 MB / 0.5024 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006074/0.1451, allocations: 254.3 kB / 0.5026 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002959/0.1454, allocations: 159.8 kB / 0.5028 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.1454, allocations: 7.938 kB / 0.5028 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.1455, allocations: 34.56 kB / 0.5028 GB, free: 11.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.562e-06/0.1455, allocations: 0 / 0.5028 GB, free: 11.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008787/0.1464, allocations: 357.3 kB / 0.5032 GB, free: 10.78 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.085e-05/0.1465, allocations: 158.2 kB / 0.5033 GB, free: 10.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000322/0.1468, allocations: 278.5 kB / 0.5036 GB, free: 10.31 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.296e-05/0.1469, allocations: 37.7 kB / 0.5036 GB, free: 10.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.147, allocations: 220.6 kB / 0.5038 GB, free: 10.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.873e-05/0.1471, allocations: 87.22 kB / 0.5039 GB, free: 9.965 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/0.1473, allocations: 102.3 kB / 0.504 GB, free: 9.859 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1474, allocations: 350.8 kB / 0.5043 GB, free: 9.508 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/0.1478, allocations: 137 kB / 0.5045 GB, free: 9.375 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004231/0.1482, allocations: 241.9 kB / 0.5047 GB, free: 9.094 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005884/0.1488, allocations: 346.7 kB / 0.505 GB, free: 8.711 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.1488, allocations: 3.938 kB / 0.505 GB, free: 8.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000903/0.1497, allocations: 465.8 kB / 0.5055 GB, free: 8.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.1498, allocations: 8 kB / 0.5055 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.1498, allocations: 7.984 kB / 0.5055 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.1498, allocations: 7.938 kB / 0.5055 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002558/0.1501, allocations: 67.83 kB / 0.5056 GB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/0.1501, allocations: 4 kB / 0.5056 GB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002828/0.1504, allocations: 55.64 kB / 0.5056 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.271e-05/0.1504, allocations: 16 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.0002104/0.1506, allocations: 183.5 kB / 0.5058 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.1508, allocations: 31.81 kB / 0.5058 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.138e-05/0.1508, allocations: 34.17 kB / 0.5059 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1509, allocations: 3.938 kB / 0.5059 GB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.1509, allocations: 4 kB / 0.5059 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.884e-06/0.1509, allocations: 7.969 kB / 0.5059 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001664/0.1526, allocations: 1.184 MB / 0.507 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.1526, allocations: 4 kB / 0.507 GB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002088/0.1528, allocations: 39.91 kB / 0.5071 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.135e-06/0.1528, allocations: 4 kB / 0.5071 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.187e-05/0.1528, allocations: 15.94 kB / 0.5071 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.76e-06/0.1529, allocations: 4 kB / 0.5071 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.1529, allocations: 4 kB / 0.5071 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000825/0.1537, allocations: 0.5387 MB / 0.5076 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000142/0.1538, allocations: 140.8 kB / 0.5078 GB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.863e-05/0.1539, allocations: 16.12 kB / 0.5078 GB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002114/0.1541, allocations: 23.92 kB / 0.5078 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.068e-05/0.1542, allocations: 27.91 kB / 0.5078 GB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.05e-05/0.1543, allocations: 19.98 kB / 0.5079 GB, free: 5.609 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002003/0.1545, allocations: 174 kB / 0.508 GB, free: 5.438 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1545, allocations: 8 kB / 0.508 GB, free: 5.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004511/0.1549, allocations: 95.73 kB / 0.5081 GB, free: 5.336 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.001114/0.156, allocations: 1.085 MB / 0.5092 GB, free: 4.188 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007008/0.1568, allocations: 328.3 kB / 0.5095 GB, free: 3.867 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.1568, allocations: 8 kB / 0.5095 GB, free: 3.859 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000286/0.1571, allocations: 147.6 kB / 0.5096 GB, free: 3.715 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005871/0.1577, allocations: 87.78 kB / 0.5097 GB, free: 3.633 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004922/0.1626, allocations: 3.376 MB / 0.513 GB, free: 28 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004039/0.163, allocations: 0.7961 MB / 0.5138 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.1632, allocations: 51.25 kB / 0.5138 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001826/0.1634, allocations: 119.4 kB / 0.514 GB, free: 15.04 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1634, allocations: 0 / 0.514 GB, free: 15.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02776/0.1912, allocations: 6.367 MB / 0.5202 GB, free: 8.816 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.121/8.312, allocations: 14.25 kB / 0.5202 GB, free: 8.805 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)