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.001219/0.001219, allocations: 108 kB / 15.6 MB, free: 132 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.001168/0.001168, allocations: 196 kB / 16.54 MB, free: 6.672 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.3/1.3, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3874/0.3874, allocations: 31.17 MB / 321.6 MB, free: 4.438 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 63.89 kB / 389 MB, free: 2.465 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2945, allocations: 56.36 MB / 445.4 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005413/0.3, allocations: 5.375 MB / 450.8 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.3011, allocations: 0.6206 MB / 451.4 MB, free: 30.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002014/0.3013, allocations: 11.81 kB / 451.4 MB, free: 30.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002199/0.3015, allocations: 78.11 kB / 451.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.3017, allocations: 66.62 kB / 451.5 MB, free: 30.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004885/0.3022, allocations: 182.3 kB / 451.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003717/0.3026, allocations: 464.3 kB / 452.2 MB, free: 29.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002671/0.3028, allocations: 211.4 kB / 452.4 MB, free: 29.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.303, allocations: 191.3 kB / 452.6 MB, free: 29.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001916/0.3032, allocations: 196.4 kB / 452.8 MB, free: 29.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.11e-05/0.3033, allocations: 48.62 kB / 452.8 MB, free: 29.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.505e-05/0.3034, allocations: 53.88 kB / 452.9 MB, free: 29.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.738e-05/0.3035, allocations: 106.2 kB / 453 MB, free: 29.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.3036, allocations: 207.2 kB / 453.2 MB, free: 29.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003791/0.304, allocations: 454 kB / 453.6 MB, free: 29.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.304, allocations: 0 / 453.6 MB, free: 29.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3041, allocations: 2.406 kB / 453.6 MB, free: 29.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.3041, allocations: 0 / 453.6 MB, free: 29.11 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001148/0.3052, allocations: 0.6917 MB / 454.3 MB, free: 28.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.3053, allocations: 10.69 kB / 454.3 MB, free: 28.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.369e-05/0.3054, allocations: 74.52 kB / 454.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003231/0.3057, allocations: 68.33 kB / 454.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.306, allocations: 317.2 kB / 454.8 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.568e-05/0.3061, allocations: 40.56 kB / 454.8 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.435e-05/0.3062, allocations: 53.64 kB / 454.9 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006067/0.3068, allocations: 412.7 kB / 455.3 MB, free: 27.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.3068, allocations: 6.656 kB / 455.3 MB, free: 27.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.3068, allocations: 14.72 kB / 455.3 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.3069, allocations: 11.22 kB / 455.3 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005027/0.3074, allocations: 249.9 kB / 455.5 MB, free: 27.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0017/0.3091, allocations: 1.664 MB / 457.2 MB, free: 26.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000498/0.3096, allocations: 261.1 kB / 457.5 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.3098, allocations: 156.4 kB / 457.6 MB, free: 26.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.3099, allocations: 3.125 kB / 457.6 MB, free: 26.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.075e-05/0.3099, allocations: 42.69 kB / 457.7 MB, free: 26.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.613e-06/0.3099, allocations: 0 / 457.7 MB, free: 26.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007768/0.3107, allocations: 354.3 kB / 458 MB, free: 26.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.218e-05/0.3108, allocations: 158.5 kB / 458.2 MB, free: 25.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003102/0.3111, allocations: 270.3 kB / 458.4 MB, free: 25.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.3111, allocations: 42.56 kB / 458.5 MB, free: 25.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.3113, allocations: 214.5 kB / 458.7 MB, free: 25.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.379e-05/0.3114, allocations: 85.05 kB / 458.8 MB, free: 25.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.3115, allocations: 98.28 kB / 458.9 MB, free: 25.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.3116, allocations: 344.5 kB / 459.2 MB, free: 25.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002913/0.3119, allocations: 135.5 kB / 459.3 MB, free: 25.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003575/0.3123, allocations: 248.7 kB / 459.6 MB, free: 24.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005592/0.3128, allocations: 348.9 kB / 459.9 MB, free: 24.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.3129, allocations: 0 / 459.9 MB, free: 24.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008077/0.3137, allocations: 458.1 kB / 460.4 MB, free: 24.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.3137, allocations: 6.656 kB / 460.4 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.3137, allocations: 4.016 kB / 460.4 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.501e-05/0.3137, allocations: 9.5 kB / 460.4 MB, free: 24.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002528/0.314, allocations: 60.72 kB / 460.4 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.589e-05/0.314, allocations: 18.56 kB / 460.4 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.3143, allocations: 59.64 kB / 460.5 MB, free: 24.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.651e-05/0.3143, allocations: 15.25 kB / 460.5 MB, free: 24.42 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 (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.0001706/0.3145, allocations: 187.4 kB / 460.7 MB, free: 24.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.3146, allocations: 28.59 kB / 460.7 MB, free: 24.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.501e-05/0.3147, allocations: 32.31 kB / 460.8 MB, free: 24.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.3147, allocations: 8.953 kB / 460.8 MB, free: 24.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.3147, allocations: 5.156 kB / 460.8 MB, free: 24.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3147, allocations: 2.672 kB / 460.8 MB, free: 24.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.3161, allocations: 1.177 MB / 462 MB, free: 23.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.3161, allocations: 3.156 kB / 462 MB, free: 23.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002058/0.3164, allocations: 43.62 kB / 462 MB, free: 23.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-06/0.3164, allocations: 5.531 kB / 462 MB, free: 23.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.3164, allocations: 18.19 kB / 462 MB, free: 23.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.3164, allocations: 9.922 kB / 462 MB, free: 23.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.3164, allocations: 3.688 kB / 462 MB, free: 23.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007449/0.3172, allocations: 0.5385 MB / 462.6 MB, free: 22.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.3173, allocations: 130 kB / 462.7 MB, free: 22.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.692e-05/0.3173, allocations: 18.66 kB / 462.7 MB, free: 22.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/0.3175, allocations: 22.53 kB / 462.7 MB, free: 22.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.037e-05/0.3176, allocations: 34.31 kB / 462.8 MB, free: 22.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.3176, allocations: 16.97 kB / 462.8 MB, free: 22.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001747/0.3178, allocations: 180.9 kB / 463 MB, free: 22.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3178, allocations: 0 / 463 MB, free: 22.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004998/0.3183, allocations: 88.22 kB / 463.1 MB, free: 22.62 MB / 350.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.001249/0.3196, allocations: 1.093 MB / 464.2 MB, free: 21.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008923/0.3205, allocations: 334.9 kB / 464.5 MB, free: 21.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.3205, allocations: 1.688 kB / 464.5 MB, free: 21.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003333/0.3209, allocations: 146.4 kB / 464.6 MB, free: 21.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006467/0.3215, allocations: 95.52 kB / 464.7 MB, free: 21.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004281/0.3258, allocations: 3.371 MB / 468.1 MB, free: 19.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.3262, allocations: 0.7957 MB / 468.9 MB, free: 18.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002415/0.3264, allocations: 51.52 kB / 468.9 MB, free: 18.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.3266, allocations: 117 kB / 469 MB, free: 18.32 MB / 350.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3266, allocations: 0 / 469 MB, free: 18.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03269/0.3593, allocations: 6.299 MB / 475.3 MB, free: 17.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.424/7.784, allocations: 6.344 kB / 475.4 MB, free: 17.48 MB / 350.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)