Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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/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.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_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.007289/0.007289, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001711/0.001711, allocations: 197 kB / 16.67 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.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.166/0.166, allocations: 31.14 MB / 321.7 MB, free: 56 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 60.14 kB / 446.2 MB, free: 2.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09448/0.09579, allocations: 56.36 MB / 0.4908 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007495/0.1033, allocations: 6.796 MB / 0.4974 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.1053, allocations: 1.005 MB / 0.4984 GB, free: 2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005058/0.1059, allocations: 23.88 kB / 0.4984 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003548/0.1062, allocations: 103 kB / 0.4985 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002995/0.1065, allocations: 75.25 kB / 0.4986 GB, free: 1.801 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006673/0.1072, allocations: 234.5 kB / 0.4988 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006497/0.1079, allocations: 0.5736 MB / 0.4993 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004289/0.1083, allocations: 309.3 kB / 0.4996 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002813/0.1086, allocations: 227.1 kB / 0.4999 GB, free: 476 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002777/0.1089, allocations: 246.8 kB / 0.5001 GB, free: 228 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.191e-05/0.109, allocations: 56 kB / 0.5001 GB, free: 172 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.1091, allocations: 64 kB / 0.5002 GB, free: 108 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1969/0.306, allocations: 125.8 kB / 0.5003 GB, free: 6.312 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003056/0.3063, allocations: 261.8 kB / 0.5006 GB, free: 6.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006884/0.307, allocations: 0.5728 MB / 0.5011 GB, free: 6.227 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3071, allocations: 0 / 0.5011 GB, free: 6.227 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3071, allocations: 1.281 kB / 0.5011 GB, free: 6.227 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.3071, allocations: 0 / 0.5011 GB, free: 6.227 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.001184/0.3083, allocations: 0.8064 MB / 0.5019 GB, free: 5.707 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.3083, allocations: 10.06 kB / 0.5019 GB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.056e-05/0.3084, allocations: 90.98 kB / 0.502 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003159/0.3087, allocations: 75.7 kB / 0.5021 GB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004842/0.3092, allocations: 410.2 kB / 0.5025 GB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.501e-05/0.3093, allocations: 45.09 kB / 0.5025 GB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.627e-05/0.3094, allocations: 65.23 kB / 0.5026 GB, free: 5.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007993/0.3102, allocations: 0.4939 MB / 0.5031 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.3102, allocations: 1.375 kB / 0.5031 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.849e-05/0.3102, allocations: 21.67 kB / 0.5031 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.3102, allocations: 16.16 kB / 0.5031 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006326/0.3109, allocations: 303.2 kB / 0.5034 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00199/0.3129, allocations: 1.867 MB / 0.5052 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000609/0.3135, allocations: 304.1 kB / 0.5055 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002988/0.3138, allocations: 177 kB / 0.5057 GB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.3138, allocations: 5.797 kB / 0.5057 GB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.3139, allocations: 40.16 kB / 0.5057 GB, free: 4.109 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.553e-06/0.3139, allocations: 4 kB / 0.5057 GB, free: 4.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009644/0.3149, allocations: 386.6 kB / 0.5061 GB, free: 4.047 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.304e-05/0.3149, allocations: 163.1 kB / 0.5063 GB, free: 3.859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003701/0.3153, allocations: 316.9 kB / 0.5066 GB, free: 3.742 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/0.3154, allocations: 45.52 kB / 0.5066 GB, free: 3.711 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.3156, allocations: 263.4 kB / 0.5069 GB, free: 3.547 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.216e-05/0.3156, allocations: 101.3 kB / 0.5069 GB, free: 3.484 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.3158, allocations: 106.5 kB / 0.5071 GB, free: 3.461 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.688e-05/0.3159, allocations: 345.7 kB / 0.5074 GB, free: 3.148 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003795/0.3163, allocations: 145.8 kB / 0.5075 GB, free: 3.148 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/0.3167, allocations: 261.1 kB / 0.5078 GB, free: 3.027 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005645/0.3173, allocations: 364.9 kB / 0.5081 GB, free: 2.906 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3173, allocations: 1.156 kB / 0.5081 GB, free: 2.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008457/0.3181, allocations: 482.6 kB / 0.5086 GB, free: 2.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.3182, allocations: 16.84 kB / 0.5086 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.3182, allocations: 2.562 kB / 0.5086 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.3182, allocations: 5.719 kB / 0.5086 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002822/0.3185, allocations: 69.62 kB / 0.5087 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.3185, allocations: 7.453 kB / 0.5087 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002799/0.3188, allocations: 64.53 kB / 0.5087 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.517e-05/0.3188, allocations: 19.8 kB / 0.5088 GB, free: 2.801 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.0001832/0.319, allocations: 194.8 kB / 0.5089 GB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.3191, allocations: 40.81 kB / 0.509 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.734e-05/0.3192, allocations: 41.25 kB / 0.509 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.3192, allocations: 3.844 kB / 0.509 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.3193, allocations: 1.406 kB / 0.509 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3193, allocations: 7.406 kB / 0.509 GB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.3208, allocations: 1.223 MB / 0.5102 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.3208, allocations: 5.625 kB / 0.5102 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002341/0.3211, allocations: 39.92 kB / 0.5103 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.3211, allocations: 5.625 kB / 0.5103 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.3211, allocations: 13.12 kB / 0.5103 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.3211, allocations: 5.344 kB / 0.5103 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.3211, allocations: 7.219 kB / 0.5103 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008365/0.322, allocations: 0.5577 MB / 0.5108 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.3221, allocations: 140.4 kB / 0.511 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.335e-05/0.3222, allocations: 11.02 kB / 0.511 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.3224, allocations: 25.41 kB / 0.511 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.3225, allocations: 32.2 kB / 0.511 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.3225, allocations: 16.75 kB / 0.5111 GB, free: 1.617 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002097/0.3227, allocations: 211.6 kB / 0.5113 GB, free: 1.539 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3227, allocations: 0 / 0.5113 GB, free: 1.539 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004639/0.3232, allocations: 109.5 kB / 0.5114 GB, free: 1.516 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.001098/0.3243, allocations: 1.111 MB / 0.5125 GB, free: 16.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007061/0.325, allocations: 358.3 kB / 0.5128 GB, free: 16.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.325, allocations: 0 / 0.5128 GB, free: 16.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002979/0.3254, allocations: 159.8 kB / 0.5129 GB, free: 16.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006221/0.326, allocations: 93.86 kB / 0.513 GB, free: 16.74 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004654/0.3307, allocations: 3.64 MB / 0.5166 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003801/0.3311, allocations: 0.8237 MB / 0.5174 GB, free: 14.19 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002322/0.3313, allocations: 70.94 kB / 0.5175 GB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000204/0.3315, allocations: 153.7 kB / 0.5176 GB, free: 14.17 MB / 398.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3315, allocations: 0 / 0.5176 GB, free: 14.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02515/0.3567, allocations: 7.378 MB / 0.5248 GB, free: 12.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.102/8.458, allocations: 7.938 kB / 0.5248 GB, free: 12.91 MB / 398.1 MB (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & python3 -m fmpy simulate --output-file BusinessSimulation_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_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)