Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/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_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_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.007118/0.007118, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001983/0.001983, allocations: 199.3 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.4266/0.4266, allocations: 31.13 MB / 321.7 MB, free: 4.246 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 60.03 kB / 446.2 MB, free: 30.85 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0856/0.08683, allocations: 56.37 MB / 0.4908 GB, free: 7.789 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005841/0.09271, allocations: 5.374 MB / 0.496 GB, free: 2.387 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.0939, allocations: 0.6151 MB / 0.4966 GB, free: 1.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.09411, allocations: 8 kB / 0.4966 GB, free: 1.762 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002361/0.09437, allocations: 79.27 kB / 0.4967 GB, free: 1.684 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001882/0.09457, allocations: 71.36 kB / 0.4968 GB, free: 1.613 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005097/0.09509, allocations: 187.5 kB / 0.4969 GB, free: 1.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004492/0.09555, allocations: 459.3 kB / 0.4974 GB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003209/0.09588, allocations: 226.2 kB / 0.4976 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.09609, allocations: 195.3 kB / 0.4978 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/0.09632, allocations: 203 kB / 0.498 GB, free: 376 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.108e-05/0.09639, allocations: 44 kB / 0.498 GB, free: 332 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.901e-05/0.09649, allocations: 52 kB / 0.4981 GB, free: 280 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.09661, allocations: 111.7 kB / 0.4982 GB, free: 168 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.0968, allocations: 207 kB / 0.4984 GB, free: 15.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004809/0.09729, allocations: 462.3 kB / 0.4988 GB, free: 15.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.09731, allocations: 0 / 0.4988 GB, free: 15.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.09731, allocations: 0 / 0.4988 GB, free: 15.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.09733, allocations: 0 / 0.4988 GB, free: 15.51 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.001109/0.09844, allocations: 0.7094 MB / 0.4995 GB, free: 14.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.09849, allocations: 11.97 kB / 0.4995 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.718e-05/0.09857, allocations: 78.7 kB / 0.4996 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003162/0.09889, allocations: 68.62 kB / 0.4997 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000418/0.09932, allocations: 331.5 kB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.828e-05/0.09937, allocations: 41.12 kB / 0.5 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.655e-05/0.09945, allocations: 48 kB / 0.5001 GB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00068/0.1001, allocations: 419.3 kB / 0.5005 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1002, allocations: 0 / 0.5005 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.918e-05/0.1002, allocations: 16 kB / 0.5005 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.1002, allocations: 12 kB / 0.5005 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005481/0.1008, allocations: 255.7 kB / 0.5007 GB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001898/0.1027, allocations: 1.649 MB / 0.5023 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005405/0.1032, allocations: 258.3 kB / 0.5026 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002755/0.1035, allocations: 158.1 kB / 0.5027 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.1036, allocations: 11.94 kB / 0.5027 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.1036, allocations: 38.5 kB / 0.5028 GB, free: 11.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.543e-06/0.1036, allocations: 0 / 0.5028 GB, free: 11.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007962/0.1044, allocations: 357.4 kB / 0.5031 GB, free: 10.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.599e-05/0.1045, allocations: 158.2 kB / 0.5033 GB, free: 10.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.1047, allocations: 274.5 kB / 0.5035 GB, free: 10.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.04e-05/0.1048, allocations: 37.7 kB / 0.5036 GB, free: 10.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.1049, allocations: 216.7 kB / 0.5038 GB, free: 10.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.882e-05/0.105, allocations: 87.27 kB / 0.5039 GB, free: 10 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/0.1052, allocations: 102.2 kB / 0.504 GB, free: 9.895 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.1053, allocations: 350.8 kB / 0.5043 GB, free: 9.543 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003227/0.1056, allocations: 133 kB / 0.5044 GB, free: 9.414 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003854/0.106, allocations: 249.9 kB / 0.5047 GB, free: 9.125 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005613/0.1066, allocations: 346.7 kB / 0.505 GB, free: 8.742 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1066, allocations: 3.938 kB / 0.505 GB, free: 8.738 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008118/0.1074, allocations: 453.8 kB / 0.5054 GB, free: 8.289 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.1074, allocations: 15.94 kB / 0.5054 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.1075, allocations: 0 / 0.5054 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.1075, allocations: 11.94 kB / 0.5055 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002491/0.1077, allocations: 63.83 kB / 0.5055 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.1078, allocations: 11.94 kB / 0.5055 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.108, allocations: 55.64 kB / 0.5056 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.057e-05/0.1081, allocations: 16 kB / 0.5056 GB, free: 8.117 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.0001821/0.1082, allocations: 183.5 kB / 0.5058 GB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.1084, allocations: 31.81 kB / 0.5058 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.909e-05/0.1084, allocations: 30.17 kB / 0.5058 GB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.1084, allocations: 7.938 kB / 0.5058 GB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.1084, allocations: 7.938 kB / 0.5058 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.1085, allocations: 3.984 kB / 0.5058 GB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.1099, allocations: 1.181 MB / 0.507 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.1099, allocations: 4 kB / 0.507 GB, free: 6.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002078/0.1102, allocations: 43.91 kB / 0.507 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.481e-06/0.1102, allocations: 4 kB / 0.507 GB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.551e-05/0.1102, allocations: 15.94 kB / 0.5071 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.1102, allocations: 7.938 kB / 0.5071 GB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.1102, allocations: 4 kB / 0.5071 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007751/0.111, allocations: 0.5386 MB / 0.5076 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.1111, allocations: 136.8 kB / 0.5077 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.315e-05/0.1112, allocations: 8 kB / 0.5077 GB, free: 5.719 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.1114, allocations: 27.92 kB / 0.5078 GB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.323e-05/0.1115, allocations: 31.84 kB / 0.5078 GB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.997e-05/0.1115, allocations: 19.98 kB / 0.5078 GB, free: 5.641 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001682/0.1117, allocations: 174 kB / 0.508 GB, free: 5.469 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1117, allocations: 0 / 0.508 GB, free: 5.469 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003952/0.1121, allocations: 95.8 kB / 0.5081 GB, free: 5.375 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.001014/0.1131, allocations: 1.093 MB / 0.5091 GB, free: 4.219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006433/0.1138, allocations: 324.3 kB / 0.5094 GB, free: 3.902 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.1138, allocations: 8.125 kB / 0.5095 GB, free: 3.895 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002789/0.1141, allocations: 149.9 kB / 0.5096 GB, free: 3.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005774/0.1147, allocations: 91.23 kB / 0.5097 GB, free: 3.664 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00411/0.1188, allocations: 3.365 MB / 0.513 GB, free: 72 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.1191, allocations: 0.7961 MB / 0.5137 GB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000182/0.1193, allocations: 55.23 kB / 0.5138 GB, free: 15.19 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001728/0.1195, allocations: 119.3 kB / 0.5139 GB, free: 15.08 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1195, allocations: 0 / 0.5139 GB, free: 15.08 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02351/0.143, allocations: 6.369 MB / 0.5201 GB, free: 8.848 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.825/7.968, allocations: 6.5 kB / 0.5201 GB, free: 8.844 MB / 398.1 MB (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & python3 -m fmpy simulate --output-file BusinessSimulation_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_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)