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.001241/0.001241, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001283/0.001283, allocations: 197.1 kB / 16.14 MB, free: 6.711 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.208/1.208, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2346/0.2346, allocations: 31.18 MB / 321.1 MB, free: 4.77 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 63.89 kB / 388.4 MB, free: 3.062 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2082, allocations: 56.36 MB / 444.7 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005267/0.2135, allocations: 7.324 MB / 452.1 MB, free: 29.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.2149, allocations: 1.075 MB / 453.1 MB, free: 28.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002816/0.2152, allocations: 27.84 kB / 453.2 MB, free: 28.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002266/0.2155, allocations: 80.06 kB / 453.2 MB, free: 28.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000156/0.2156, allocations: 57.36 kB / 453.3 MB, free: 28.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004098/0.216, allocations: 196.1 kB / 453.5 MB, free: 28.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003395/0.2164, allocations: 0.534 MB / 454 MB, free: 28.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002831/0.2167, allocations: 284.4 kB / 454.3 MB, free: 27.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.2168, allocations: 197.8 kB / 454.5 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.217, allocations: 230 kB / 454.7 MB, free: 27.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.882e-05/0.2171, allocations: 34.25 kB / 454.7 MB, free: 27.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.67e-05/0.2171, allocations: 39.38 kB / 454.8 MB, free: 27.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.436e-05/0.2172, allocations: 114.8 kB / 454.9 MB, free: 27.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.2173, allocations: 239 kB / 455.1 MB, free: 27.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003077/0.2177, allocations: 0.5377 MB / 455.7 MB, free: 27.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.2177, allocations: 0 / 455.7 MB, free: 27.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.2177, allocations: 0 / 455.7 MB, free: 27.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.2177, allocations: 3.938 kB / 455.7 MB, free: 27.26 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.0009199/0.2186, allocations: 0.7877 MB / 456.5 MB, free: 26.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.965e-05/0.2186, allocations: 8.906 kB / 456.5 MB, free: 26.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.468e-05/0.2187, allocations: 92.69 kB / 456.6 MB, free: 26.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002688/0.219, allocations: 75.84 kB / 456.6 MB, free: 26.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003425/0.2193, allocations: 387 kB / 457 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.224e-05/0.2194, allocations: 49.88 kB / 457.1 MB, free: 26.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.181e-05/0.2194, allocations: 56.81 kB / 457.1 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006527/0.2201, allocations: 0.4974 MB / 457.6 MB, free: 25.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.2201, allocations: 1.469 kB / 457.6 MB, free: 25.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.257e-05/0.2202, allocations: 20.41 kB / 457.6 MB, free: 25.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.2202, allocations: 12.75 kB / 457.6 MB, free: 25.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005575/0.2207, allocations: 312.5 kB / 457.9 MB, free: 25.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.2224, allocations: 1.868 MB / 459.8 MB, free: 24.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005251/0.223, allocations: 306.9 kB / 460.1 MB, free: 24.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002525/0.2232, allocations: 182.8 kB / 460.3 MB, free: 24.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.2233, allocations: 8.703 kB / 460.3 MB, free: 24.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.574e-05/0.2233, allocations: 45.83 kB / 460.3 MB, free: 24.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.413e-06/0.2233, allocations: 0 / 460.3 MB, free: 24.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007401/0.224, allocations: 377.2 kB / 460.7 MB, free: 23.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.2241, allocations: 164.1 kB / 460.9 MB, free: 23.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002648/0.2243, allocations: 320.7 kB / 461.2 MB, free: 23.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.2244, allocations: 39.17 kB / 461.2 MB, free: 23.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.2245, allocations: 256.6 kB / 461.5 MB, free: 23.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.21e-05/0.2246, allocations: 94.83 kB / 461.6 MB, free: 23.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.2247, allocations: 100.2 kB / 461.7 MB, free: 23.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.515e-05/0.2247, allocations: 347.8 kB / 462 MB, free: 22.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002942/0.225, allocations: 150 kB / 462.2 MB, free: 22.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003275/0.2254, allocations: 258.4 kB / 462.4 MB, free: 22.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004971/0.2259, allocations: 366.8 kB / 462.8 MB, free: 22.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.2259, allocations: 9.062 kB / 462.8 MB, free: 22.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0007412/0.2266, allocations: 478.9 kB / 463.2 MB, free: 22.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2267, allocations: 7.375 kB / 463.2 MB, free: 22.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.2267, allocations: 7.438 kB / 463.3 MB, free: 22.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.2267, allocations: 5.719 kB / 463.3 MB, free: 22.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.2269, allocations: 69.72 kB / 463.3 MB, free: 22.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.227, allocations: 4.75 kB / 463.3 MB, free: 22.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.2272, allocations: 64.23 kB / 463.4 MB, free: 22.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.978e-05/0.2272, allocations: 18.12 kB / 463.4 MB, free: 22.18 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.0001535/0.2274, allocations: 194 kB / 463.6 MB, free: 22.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.733e-05/0.2275, allocations: 45.41 kB / 463.6 MB, free: 21.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.873e-05/0.2276, allocations: 44.48 kB / 463.7 MB, free: 21.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.2276, allocations: 4.25 kB / 463.7 MB, free: 21.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.2276, allocations: 1.469 kB / 463.7 MB, free: 21.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.2276, allocations: 1.266 kB / 463.7 MB, free: 21.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00127/0.2289, allocations: 1.217 MB / 464.9 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2289, allocations: 3.438 kB / 464.9 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002053/0.2291, allocations: 45.78 kB / 465 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.92e-06/0.2291, allocations: 3.406 kB / 465 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.2291, allocations: 14.58 kB / 465 MB, free: 21.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.229e-06/0.2291, allocations: 5.172 kB / 465 MB, free: 21.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.2292, allocations: 10.09 kB / 465 MB, free: 21.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007145/0.2299, allocations: 0.5674 MB / 465.6 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.416e-05/0.23, allocations: 137.9 kB / 465.7 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.291e-05/0.23, allocations: 10.59 kB / 465.7 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001923/0.2302, allocations: 18.12 kB / 465.7 MB, free: 20.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.563e-05/0.2303, allocations: 32.06 kB / 465.8 MB, free: 20.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.2303, allocations: 13.5 kB / 465.8 MB, free: 20.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001797/0.2305, allocations: 218 kB / 466 MB, free: 20.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2305, allocations: 1.438 kB / 466 MB, free: 20.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000366/0.2309, allocations: 110.8 kB / 466.1 MB, free: 20.38 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.0008437/0.2317, allocations: 1.105 MB / 467.2 MB, free: 19.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006204/0.2324, allocations: 347.7 kB / 467.5 MB, free: 19.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2324, allocations: 1.312 kB / 467.5 MB, free: 19.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002726/0.2327, allocations: 162.5 kB / 467.7 MB, free: 19.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005519/0.2332, allocations: 91.66 kB / 467.8 MB, free: 19.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003978/0.2372, allocations: 3.828 MB / 471.6 MB, free: 16.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.2375, allocations: 0.8341 MB / 472.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000232/0.2377, allocations: 67.34 kB / 472.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.2379, allocations: 151.7 kB / 472.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2379, allocations: 0 / 472.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01607/0.254, allocations: 6.896 MB / 479.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001271/0.2541, allocations: 209.4 kB / 479.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.73/1.984, allocations: 4.531 kB / 479.8 MB, free: 14.09 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)