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.0008438/0.0008438, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.004851/0.004851, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.138/1.138, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 4.225/4.225, allocations: 31.19 MB / 322.6 MB, free: 4.969 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003229/0.0003229, allocations: 12 kB / 390.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2956, allocations: 57.39 MB / 448.3 MB, free: 34.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.00458/0.3003, allocations: 5.311 MB / 453.6 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.3014, allocations: 0.6609 MB / 454.2 MB, free: 29.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002562/0.3017, allocations: 15.88 kB / 454.3 MB, free: 29.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001999/0.3019, allocations: 59.5 kB / 454.3 MB, free: 29.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001664/0.3021, allocations: 49.94 kB / 454.4 MB, free: 29.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004683/0.3026, allocations: 171.2 kB / 454.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003422/0.3029, allocations: 439.5 kB / 455 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002635/0.3032, allocations: 194.5 kB / 455.2 MB, free: 29.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.3034, allocations: 147.4 kB / 455.3 MB, free: 29.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.3035, allocations: 166 kB / 455.5 MB, free: 29.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.024e-05/0.3036, allocations: 18.38 kB / 455.5 MB, free: 29.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.797e-05/0.3037, allocations: 21 kB / 455.5 MB, free: 29.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.789e-05/0.3037, allocations: 77.67 kB / 455.6 MB, free: 29.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.3039, allocations: 197.5 kB / 455.8 MB, free: 28.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003178/0.3042, allocations: 419.4 kB / 456.2 MB, free: 28.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.3042, allocations: 0 / 456.2 MB, free: 28.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.3042, allocations: 0 / 456.2 MB, free: 28.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.3042, allocations: 4 kB / 456.2 MB, free: 28.75 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.0008891/0.3051, allocations: 0.6094 MB / 456.8 MB, free: 28.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.3052, allocations: 10.38 kB / 456.8 MB, free: 28.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.789e-05/0.3053, allocations: 75.72 kB / 456.9 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002859/0.3055, allocations: 66.2 kB / 456.9 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003036/0.3059, allocations: 323.3 kB / 457.3 MB, free: 27.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/0.3059, allocations: 43.5 kB / 457.3 MB, free: 27.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.512e-05/0.306, allocations: 45.69 kB / 457.3 MB, free: 27.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006163/0.3066, allocations: 417 kB / 457.8 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.3066, allocations: 2.719 kB / 457.8 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.248e-05/0.3067, allocations: 19.78 kB / 457.8 MB, free: 27.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.3067, allocations: 11.25 kB / 457.8 MB, free: 27.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004875/0.3072, allocations: 261.5 kB / 458 MB, free: 27.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.3089, allocations: 1.68 MB / 459.7 MB, free: 26.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005614/0.3095, allocations: 255 kB / 460 MB, free: 26.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000273/0.3098, allocations: 171.5 kB / 460.1 MB, free: 26.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.3098, allocations: 2.594 kB / 460.1 MB, free: 26.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.3098, allocations: 41.09 kB / 460.2 MB, free: 25.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.352e-06/0.3098, allocations: 0 / 460.2 MB, free: 25.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008079/0.3107, allocations: 358.3 kB / 460.5 MB, free: 25.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.3107, allocations: 162.1 kB / 460.7 MB, free: 25.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.311, allocations: 272.5 kB / 461 MB, free: 25.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/0.311, allocations: 47.33 kB / 461 MB, free: 25.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.3112, allocations: 210 kB / 461.2 MB, free: 25.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.011e-05/0.3112, allocations: 91.34 kB / 461.3 MB, free: 25.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.348e-05/0.3113, allocations: 52.3 kB / 461.3 MB, free: 25.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.006e-05/0.3114, allocations: 344.9 kB / 461.7 MB, free: 24.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003138/0.3117, allocations: 142.8 kB / 461.8 MB, free: 24.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003288/0.3121, allocations: 249.6 kB / 462.1 MB, free: 24.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004991/0.3126, allocations: 361.7 kB / 462.4 MB, free: 24.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3126, allocations: 0 / 462.4 MB, free: 24.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007323/0.3133, allocations: 463.6 kB / 462.9 MB, free: 24.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3133, allocations: 6.531 kB / 462.9 MB, free: 24.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3134, allocations: 6.25 kB / 462.9 MB, free: 24.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.3134, allocations: 10.48 kB / 462.9 MB, free: 24.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002547/0.3136, allocations: 66.53 kB / 463 MB, free: 24.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.3137, allocations: 6.344 kB / 463 MB, free: 24.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002693/0.3139, allocations: 58.27 kB / 463 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.627e-05/0.314, allocations: 19.83 kB / 463 MB, free: 24.13 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.0001828/0.3142, allocations: 190.9 kB / 463.2 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.3143, allocations: 29.42 kB / 463.3 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.199e-05/0.3144, allocations: 35.59 kB / 463.3 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3144, allocations: 8.438 kB / 463.3 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.3144, allocations: 5.422 kB / 463.3 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.3144, allocations: 2.141 kB / 463.3 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001453/0.3159, allocations: 1.19 MB / 464.5 MB, free: 23.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.3159, allocations: 3.938 kB / 464.5 MB, free: 23.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002004/0.3161, allocations: 40.84 kB / 464.5 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.3161, allocations: 4.031 kB / 464.5 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.754e-05/0.3161, allocations: 17.31 kB / 464.6 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.3161, allocations: 8.547 kB / 464.6 MB, free: 23.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.3161, allocations: 7.469 kB / 464.6 MB, free: 23.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007362/0.3169, allocations: 0.5529 MB / 465.1 MB, free: 22.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.317, allocations: 132.1 kB / 465.3 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.4e-05/0.3171, allocations: 14.72 kB / 465.3 MB, free: 22.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.3173, allocations: 24.52 kB / 465.3 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.988e-05/0.3174, allocations: 31.34 kB / 465.3 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.3174, allocations: 25.09 kB / 465.4 MB, free: 22.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001636/0.3176, allocations: 178.8 kB / 465.5 MB, free: 22.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3176, allocations: 0 / 465.5 MB, free: 22.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004505/0.318, allocations: 88.62 kB / 465.6 MB, free: 22.34 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.0009264/0.319, allocations: 1.11 MB / 466.7 MB, free: 21.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006806/0.3197, allocations: 332.9 kB / 467 MB, free: 21.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3197, allocations: 1.656 kB / 467 MB, free: 21.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002746/0.32, allocations: 148.1 kB / 467.2 MB, free: 21.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006789/0.3206, allocations: 97.23 kB / 467.3 MB, free: 21.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004196/0.3248, allocations: 3.552 MB / 470.8 MB, free: 18.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.3251, allocations: 0.7926 MB / 471.6 MB, free: 17.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002298/0.3254, allocations: 55.8 kB / 471.7 MB, free: 17.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.3256, allocations: 117.5 kB / 471.8 MB, free: 17.88 MB / 350.1 MB Notification: Performance of SimCode: time 1.203e-06/0.3256, allocations: 0 / 471.8 MB, free: 17.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.785/1.111, allocations: 6.15 MB / 478 MB, free: 17.2 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/1.111, allocations: 213.3 kB / 478.2 MB, free: 16.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.014/3.125, allocations: 0 / 478.2 MB, free: 16.95 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)