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.001242/0.001242, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 193.7 kB / 16.53 MB, free: 6.691 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.327/1.327, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2881/0.2881, allocations: 31.17 MB / 321.6 MB, free: 4.418 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.001471, allocations: 59.91 kB / 389 MB, free: 2.477 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.327, allocations: 56.36 MB / 445.4 MB, free: 34.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006089/0.3331, allocations: 6.79 MB / 452.2 MB, free: 29.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.3348, allocations: 1.004 MB / 453.2 MB, free: 28.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003134/0.3351, allocations: 23.44 kB / 453.2 MB, free: 28.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002488/0.3354, allocations: 104.9 kB / 453.3 MB, free: 28.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002137/0.3356, allocations: 67.25 kB / 453.4 MB, free: 28.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004954/0.3361, allocations: 230.7 kB / 453.6 MB, free: 28.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003933/0.3366, allocations: 0.566 MB / 454.2 MB, free: 28.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003288/0.3369, allocations: 304.5 kB / 454.5 MB, free: 28.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.3371, allocations: 230.2 kB / 454.7 MB, free: 27.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.3373, allocations: 245.4 kB / 454.9 MB, free: 27.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.331e-05/0.3373, allocations: 56.72 kB / 455 MB, free: 27.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.223e-05/0.3374, allocations: 68.31 kB / 455.1 MB, free: 27.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.428e-05/0.3375, allocations: 130.8 kB / 455.2 MB, free: 27.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001544/0.3377, allocations: 260 kB / 455.4 MB, free: 27.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003793/0.3381, allocations: 0.5545 MB / 456 MB, free: 27.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.3381, allocations: 0 / 456 MB, free: 27.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3381, allocations: 0 / 456 MB, free: 27.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.3381, allocations: 0 / 456 MB, free: 27.22 MB / 350.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.001037/0.3392, allocations: 0.7858 MB / 456.8 MB, free: 26.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.3392, allocations: 10.78 kB / 456.8 MB, free: 26.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.7e-05/0.3393, allocations: 90.5 kB / 456.9 MB, free: 26.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002979/0.3396, allocations: 77.19 kB / 457 MB, free: 26.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003817/0.34, allocations: 387.4 kB / 457.3 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.876e-05/0.34, allocations: 48.25 kB / 457.4 MB, free: 26.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.676e-05/0.3401, allocations: 57.84 kB / 457.4 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006759/0.3408, allocations: 0.4921 MB / 457.9 MB, free: 25.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.3408, allocations: 0 / 457.9 MB, free: 25.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.406e-05/0.3408, allocations: 20.91 kB / 457.9 MB, free: 25.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.3409, allocations: 16.78 kB / 458 MB, free: 25.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005772/0.3414, allocations: 309.1 kB / 458.3 MB, free: 25.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.3435, allocations: 1.871 MB / 460.1 MB, free: 24.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006056/0.3441, allocations: 313.8 kB / 460.4 MB, free: 24.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002779/0.3444, allocations: 186.4 kB / 460.6 MB, free: 24.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.3444, allocations: 1.453 kB / 460.6 MB, free: 24.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.3444, allocations: 46.08 kB / 460.7 MB, free: 24.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 3.337e-06/0.3444, allocations: 0 / 460.7 MB, free: 24.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008771/0.3453, allocations: 386.3 kB / 461 MB, free: 23.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.851e-05/0.3454, allocations: 164.2 kB / 461.2 MB, free: 23.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003369/0.3457, allocations: 315 kB / 461.5 MB, free: 23.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.3458, allocations: 43.11 kB / 461.6 MB, free: 23.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.3459, allocations: 258.3 kB / 461.8 MB, free: 23.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.033e-05/0.346, allocations: 96.16 kB / 461.9 MB, free: 23.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.3461, allocations: 104.1 kB / 462 MB, free: 23.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.075e-05/0.3462, allocations: 348.7 kB / 462.3 MB, free: 22.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003122/0.3465, allocations: 142.9 kB / 462.5 MB, free: 22.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003575/0.3469, allocations: 261.1 kB / 462.7 MB, free: 22.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005448/0.3474, allocations: 363.6 kB / 463.1 MB, free: 22.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3474, allocations: 1.125 kB / 463.1 MB, free: 22.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008835/0.3483, allocations: 489.8 kB / 463.6 MB, free: 22.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.3484, allocations: 6.219 kB / 463.6 MB, free: 22.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.3484, allocations: 3.344 kB / 463.6 MB, free: 22.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.474e-05/0.3484, allocations: 5.938 kB / 463.6 MB, free: 22.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.3487, allocations: 68.67 kB / 463.7 MB, free: 22.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.403e-05/0.3487, allocations: 9.422 kB / 463.7 MB, free: 22.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002627/0.349, allocations: 63.48 kB / 463.7 MB, free: 22.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.545e-05/0.349, allocations: 19.28 kB / 463.7 MB, free: 22.15 MB / 350.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.0001895/0.3492, allocations: 199.8 kB / 463.9 MB, free: 21.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.3493, allocations: 41.09 kB / 464 MB, free: 21.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.721e-05/0.3494, allocations: 41.33 kB / 464 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.3494, allocations: 4.938 kB / 464 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.3494, allocations: 1.219 kB / 464 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3494, allocations: 1.25 kB / 464 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001424/0.3509, allocations: 1.217 MB / 465.2 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.3509, allocations: 2.25 kB / 465.2 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002136/0.3511, allocations: 46.09 kB / 465.3 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.3511, allocations: 3.75 kB / 465.3 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.3511, allocations: 14.25 kB / 465.3 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.015e-06/0.3512, allocations: 7.969 kB / 465.3 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3512, allocations: 7.969 kB / 465.3 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008048/0.352, allocations: 0.5582 MB / 465.9 MB, free: 20.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.3521, allocations: 138.3 kB / 466 MB, free: 20.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.067e-05/0.3521, allocations: 14.72 kB / 466 MB, free: 20.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.3524, allocations: 22.27 kB / 466.1 MB, free: 20.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.601e-05/0.3524, allocations: 30.33 kB / 466.1 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.3525, allocations: 13.41 kB / 466.1 MB, free: 20.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002108/0.3527, allocations: 218.8 kB / 466.3 MB, free: 20.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3527, allocations: 3.938 kB / 466.3 MB, free: 20.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004218/0.3531, allocations: 107.2 kB / 466.4 MB, free: 20.34 MB / 350.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.0009604/0.3541, allocations: 1.106 MB / 467.5 MB, free: 19.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000772/0.3549, allocations: 370.7 kB / 467.9 MB, free: 19.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.3549, allocations: 4.125 kB / 467.9 MB, free: 19.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003268/0.3552, allocations: 156.3 kB / 468 MB, free: 19.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006816/0.3559, allocations: 108.3 kB / 468.2 MB, free: 19.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005245/0.3612, allocations: 3.653 MB / 471.8 MB, free: 16.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003636/0.3616, allocations: 0.8261 MB / 472.6 MB, free: 16.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003103/0.3619, allocations: 66.53 kB / 472.7 MB, free: 16.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002244/0.3621, allocations: 151.6 kB / 472.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of SimCode: time 1.233e-06/0.3621, allocations: 1.188 kB / 472.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02775/0.3899, allocations: 7.299 MB / 480.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.498/7.888, allocations: 9.891 kB / 480.2 MB, free: 14.25 MB / 350.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)