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.001166/0.001166, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001163/0.001163, allocations: 195.2 kB / 16.14 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.189/1.189, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3171/0.3171, allocations: 31.16 MB / 321.1 MB, free: 4.742 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 63.89 kB / 388.4 MB, free: 3.035 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2031, allocations: 56.36 MB / 444.7 MB, free: 34.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004709/0.2079, allocations: 5.732 MB / 450.5 MB, free: 30.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.209, allocations: 0.659 MB / 451.1 MB, free: 30.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002481/0.2093, allocations: 16.59 kB / 451.1 MB, free: 30 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002032/0.2095, allocations: 62.94 kB / 451.2 MB, free: 29.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001481/0.2096, allocations: 62.31 kB / 451.3 MB, free: 29.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.21, allocations: 156.1 kB / 451.4 MB, free: 29.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002806/0.2103, allocations: 444 kB / 451.8 MB, free: 29.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002222/0.2105, allocations: 192.5 kB / 452 MB, free: 29.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.2107, allocations: 171.7 kB / 452.2 MB, free: 29.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.2108, allocations: 186 kB / 452.4 MB, free: 29.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.383e-05/0.2109, allocations: 30.75 kB / 452.4 MB, free: 29.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.407e-05/0.211, allocations: 35.78 kB / 452.4 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.892e-05/0.211, allocations: 92.67 kB / 452.5 MB, free: 29.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.2112, allocations: 195.9 kB / 452.7 MB, free: 29.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002591/0.2114, allocations: 430.1 kB / 453.1 MB, free: 28.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.2114, allocations: 4 kB / 453.1 MB, free: 28.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.2114, allocations: 0 / 453.1 MB, free: 28.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.2114, allocations: 0 / 453.1 MB, free: 28.97 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.0008206/0.2123, allocations: 0.6943 MB / 453.8 MB, free: 28.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.046e-05/0.2123, allocations: 8.625 kB / 453.8 MB, free: 28.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.63e-05/0.2124, allocations: 82.77 kB / 453.9 MB, free: 28.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002662/0.2126, allocations: 62.39 kB / 454 MB, free: 28.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002613/0.2129, allocations: 316.9 kB / 454.3 MB, free: 28.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/0.2129, allocations: 44.17 kB / 454.3 MB, free: 28.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.921e-05/0.213, allocations: 47.59 kB / 454.4 MB, free: 28.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005228/0.2135, allocations: 418.9 kB / 454.8 MB, free: 27.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.2136, allocations: 0 / 454.8 MB, free: 27.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.2136, allocations: 14.88 kB / 454.8 MB, free: 27.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.936e-06/0.2136, allocations: 15.16 kB / 454.8 MB, free: 27.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004483/0.214, allocations: 251.9 kB / 455.1 MB, free: 27.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.2155, allocations: 1.658 MB / 456.7 MB, free: 26.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004499/0.2159, allocations: 257.2 kB / 457 MB, free: 26.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002278/0.2162, allocations: 161.2 kB / 457.1 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.618e-05/0.2162, allocations: 2.75 kB / 457.1 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/0.2162, allocations: 41.5 kB / 457.2 MB, free: 26.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.332e-06/0.2162, allocations: 0 / 457.2 MB, free: 26.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0006878/0.2169, allocations: 349.7 kB / 457.5 MB, free: 26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.217, allocations: 162.3 kB / 457.7 MB, free: 25.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.2172, allocations: 272 kB / 457.9 MB, free: 25.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.077e-05/0.2172, allocations: 43.14 kB / 458 MB, free: 25.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.368e-05/0.2173, allocations: 205 kB / 458.2 MB, free: 25.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.5e-05/0.2173, allocations: 90.56 kB / 458.3 MB, free: 25.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.2175, allocations: 102.4 kB / 458.4 MB, free: 25.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.893e-05/0.2175, allocations: 343.7 kB / 458.7 MB, free: 24.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002687/0.2178, allocations: 136.9 kB / 458.8 MB, free: 24.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003/0.2181, allocations: 249.9 kB / 459.1 MB, free: 24.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004563/0.2186, allocations: 343.2 kB / 459.4 MB, free: 24.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2186, allocations: 1.953 kB / 459.4 MB, free: 24.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006887/0.2193, allocations: 456.2 kB / 459.9 MB, free: 24.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.2193, allocations: 7.578 kB / 459.9 MB, free: 24.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2193, allocations: 3.062 kB / 459.9 MB, free: 24.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.2193, allocations: 7.406 kB / 459.9 MB, free: 24.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.2195, allocations: 64.91 kB / 460 MB, free: 24.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.2196, allocations: 6.156 kB / 460 MB, free: 24.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002205/0.2198, allocations: 53.77 kB / 460 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.2198, allocations: 18.22 kB / 460 MB, free: 24.29 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.0001356/0.22, allocations: 192.5 kB / 460.2 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.15e-05/0.2201, allocations: 29.78 kB / 460.3 MB, free: 24.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.019e-05/0.2201, allocations: 33.52 kB / 460.3 MB, free: 24.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.2201, allocations: 13.81 kB / 460.3 MB, free: 24.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.2201, allocations: 1.188 kB / 460.3 MB, free: 24.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2201, allocations: 1.125 kB / 460.3 MB, free: 24.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.2213, allocations: 1.185 MB / 461.5 MB, free: 23.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.2213, allocations: 2.312 kB / 461.5 MB, free: 23.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001793/0.2215, allocations: 44.09 kB / 461.5 MB, free: 23.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.2215, allocations: 4.938 kB / 461.5 MB, free: 23.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.277e-05/0.2216, allocations: 14.16 kB / 461.5 MB, free: 23.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.2216, allocations: 4.906 kB / 461.6 MB, free: 23.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.2216, allocations: 12.31 kB / 461.6 MB, free: 23.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006364/0.2222, allocations: 0.5284 MB / 462.1 MB, free: 22.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.329e-05/0.2223, allocations: 131.1 kB / 462.2 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.115e-05/0.2224, allocations: 15.5 kB / 462.2 MB, free: 22.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.2226, allocations: 20.27 kB / 462.3 MB, free: 22.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.481e-05/0.2226, allocations: 36.3 kB / 462.3 MB, free: 22.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.776e-05/0.2227, allocations: 13.53 kB / 462.3 MB, free: 22.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001405/0.2228, allocations: 186 kB / 462.5 MB, free: 22.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.2228, allocations: 0 / 462.5 MB, free: 22.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003663/0.2232, allocations: 99.53 kB / 462.6 MB, free: 22.48 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.0007637/0.224, allocations: 1.089 MB / 463.7 MB, free: 21.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005582/0.2245, allocations: 324.8 kB / 464 MB, free: 21.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.2245, allocations: 1.281 kB / 464 MB, free: 21.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002424/0.2248, allocations: 140 kB / 464.1 MB, free: 21.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005134/0.2253, allocations: 95.66 kB / 464.2 MB, free: 21.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003423/0.2287, allocations: 3.497 MB / 467.7 MB, free: 18.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002022/0.229, allocations: 0.792 MB / 468.5 MB, free: 18.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001846/0.2291, allocations: 56.08 kB / 468.6 MB, free: 18.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.2293, allocations: 116.6 kB / 468.7 MB, free: 18.05 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2293, allocations: 7.938 kB / 468.7 MB, free: 18.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01545/0.2448, allocations: 5.94 MB / 474.6 MB, free: 17.5 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/0.2449, allocations: 209.7 kB / 474.8 MB, free: 17.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.654/1.899, allocations: 0 / 474.8 MB, free: 17.25 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)