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.00752/0.00752, allocations: 97.56 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.001814/0.001814, allocations: 201.6 kB / 16.68 MB, free: 5.961 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.531/1.531, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.4944/0.4944, allocations: 31.16 MB / 321.7 MB, free: 4.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 71.89 kB / 446.2 MB, free: 30.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1162, allocations: 56.36 MB / 0.4908 GB, free: 7.766 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.007426/0.1237, allocations: 5.372 MB / 0.496 GB, free: 2.367 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.1251, allocations: 0.6226 MB / 0.4967 GB, free: 1.742 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002734/0.1254, allocations: 11.94 kB / 0.4967 GB, free: 1.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002834/0.1257, allocations: 79.27 kB / 0.4967 GB, free: 1.652 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002014/0.1259, allocations: 59.38 kB / 0.4968 GB, free: 1.594 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006322/0.1265, allocations: 191.6 kB / 0.497 GB, free: 1.406 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005843/0.1271, allocations: 455.3 kB / 0.4974 GB, free: 0.9609 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000377/0.1275, allocations: 234.3 kB / 0.4976 GB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002405/0.1278, allocations: 187.3 kB / 0.4978 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002707/0.1281, allocations: 203 kB / 0.498 GB, free: 356 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.102e-05/0.1281, allocations: 44 kB / 0.4981 GB, free: 312 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.1283, allocations: 55.98 kB / 0.4981 GB, free: 256 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.1284, allocations: 99.75 kB / 0.4982 GB, free: 156 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002318/0.1287, allocations: 211 kB / 0.4984 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006231/0.1293, allocations: 466.2 kB / 0.4988 GB, free: 15.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1293, allocations: 0 / 0.4988 GB, free: 15.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.097e-06/0.1293, allocations: 7.938 kB / 0.4989 GB, free: 15.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.1293, allocations: 0 / 0.4989 GB, free: 15.48 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.001364/0.1307, allocations: 0.6978 MB / 0.4995 GB, free: 14.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.1308, allocations: 11.97 kB / 0.4996 GB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.219e-05/0.1309, allocations: 78.72 kB / 0.4996 GB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003264/0.1312, allocations: 64.62 kB / 0.4997 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005015/0.1317, allocations: 335.4 kB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.088e-05/0.1318, allocations: 41.12 kB / 0.5 GB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.172e-05/0.1319, allocations: 48 kB / 0.5001 GB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007928/0.1327, allocations: 419.3 kB / 0.5005 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.1327, allocations: 4 kB / 0.5005 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.674e-05/0.1327, allocations: 16 kB / 0.5005 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.1328, allocations: 12 kB / 0.5005 GB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005884/0.1334, allocations: 251.7 kB / 0.5008 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/0.1357, allocations: 1.649 MB / 0.5024 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006057/0.1364, allocations: 250.3 kB / 0.5026 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003152/0.1367, allocations: 159.8 kB / 0.5028 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.1367, allocations: 7.938 kB / 0.5028 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.1368, allocations: 42.55 kB / 0.5028 GB, free: 11.15 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.084e-06/0.1368, allocations: 0 / 0.5028 GB, free: 11.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009114/0.1377, allocations: 353.4 kB / 0.5031 GB, free: 10.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.1378, allocations: 158.2 kB / 0.5033 GB, free: 10.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003612/0.1382, allocations: 274.5 kB / 0.5036 GB, free: 10.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.185e-05/0.1383, allocations: 41.7 kB / 0.5036 GB, free: 10.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002061/0.1385, allocations: 212.7 kB / 0.5038 GB, free: 10.08 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.254e-05/0.1386, allocations: 91.27 kB / 0.5039 GB, free: 9.988 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.1387, allocations: 98.2 kB / 0.504 GB, free: 9.887 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.1389, allocations: 346.8 kB / 0.5043 GB, free: 9.539 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003381/0.1393, allocations: 141 kB / 0.5045 GB, free: 9.402 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/0.1397, allocations: 249.9 kB / 0.5047 GB, free: 9.113 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000622/0.1403, allocations: 342.7 kB / 0.505 GB, free: 8.734 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.1404, allocations: 7.938 kB / 0.505 GB, free: 8.727 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008849/0.1412, allocations: 449.8 kB / 0.5055 GB, free: 8.281 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.1413, allocations: 17.66 kB / 0.5055 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.1413, allocations: 4 kB / 0.5055 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.537e-05/0.1413, allocations: 7.938 kB / 0.5055 GB, free: 8.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003218/0.1417, allocations: 67.83 kB / 0.5055 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.1417, allocations: 4 kB / 0.5055 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002948/0.142, allocations: 59.64 kB / 0.5056 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.232e-05/0.142, allocations: 16 kB / 0.5056 GB, free: 8.109 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.0002595/0.1423, allocations: 187.5 kB / 0.5058 GB, free: 7.914 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.1424, allocations: 31.8 kB / 0.5058 GB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.95e-05/0.1425, allocations: 34.19 kB / 0.5059 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.1425, allocations: 7.938 kB / 0.5059 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.1425, allocations: 4 kB / 0.5059 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.1425, allocations: 3.984 kB / 0.5059 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001831/0.1444, allocations: 1.177 MB / 0.507 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/0.1444, allocations: 4 kB / 0.507 GB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002262/0.1446, allocations: 43.84 kB / 0.5071 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.1447, allocations: 8 kB / 0.5071 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.24e-05/0.1447, allocations: 15.92 kB / 0.5071 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.504e-06/0.1447, allocations: 4 kB / 0.5071 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/0.1447, allocations: 4 kB / 0.5071 GB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009699/0.1457, allocations: 0.5308 MB / 0.5076 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001765/0.1459, allocations: 136.8 kB / 0.5078 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.3e-05/0.1459, allocations: 15.98 kB / 0.5078 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.1462, allocations: 23.92 kB / 0.5078 GB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.1463, allocations: 39.84 kB / 0.5078 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.1464, allocations: 8 kB / 0.5078 GB, free: 5.641 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002502/0.1466, allocations: 178 kB / 0.508 GB, free: 5.465 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1466, allocations: 0 / 0.508 GB, free: 5.465 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005331/0.1472, allocations: 99.8 kB / 0.5081 GB, free: 5.367 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.001484/0.1487, allocations: 1.095 MB / 0.5092 GB, free: 4.211 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009479/0.1496, allocations: 332.1 kB / 0.5095 GB, free: 3.887 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/0.1496, allocations: 8.188 kB / 0.5095 GB, free: 3.879 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002995/0.1499, allocations: 139.8 kB / 0.5096 GB, free: 3.742 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00069/0.1506, allocations: 111.1 kB / 0.5097 GB, free: 3.641 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004927/0.1556, allocations: 3.365 MB / 0.513 GB, free: 48 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005054/0.1561, allocations: 0.7922 MB / 0.5138 GB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002402/0.1564, allocations: 51.25 kB / 0.5138 GB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000202/0.1566, allocations: 123.3 kB / 0.514 GB, free: 15.06 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1566, allocations: 0 / 0.514 GB, free: 15.06 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03311/0.1897, allocations: 6.36 MB / 0.5202 GB, free: 8.836 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.508/8.697, allocations: 10.69 kB / 0.5202 GB, free: 8.832 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)