Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/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_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_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.001151/0.001151, 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.001183/0.001183, allocations: 193.4 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.175/1.175, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 6.102/6.102, allocations: 31.13 MB / 321.1 MB, free: 4.609 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 63.89 kB / 388.3 MB, free: 2.926 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2277, allocations: 56.35 MB / 444.7 MB, free: 34.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005929/0.2337, allocations: 7.317 MB / 452 MB, free: 29.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.2356, allocations: 1.083 MB / 453.1 MB, free: 28.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006214/0.2362, allocations: 27.56 kB / 453.1 MB, free: 28.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002669/0.2365, allocations: 83.47 kB / 453.2 MB, free: 28.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.2367, allocations: 51.44 kB / 453.2 MB, free: 28.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004609/0.2372, allocations: 198.5 kB / 453.4 MB, free: 28.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003257/0.2375, allocations: 0.538 MB / 454 MB, free: 28.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002786/0.2378, allocations: 279 kB / 454.2 MB, free: 28.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.2379, allocations: 196.9 kB / 454.4 MB, free: 27.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001566/0.2381, allocations: 232.4 kB / 454.7 MB, free: 27.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.92e-05/0.2381, allocations: 37.84 kB / 454.7 MB, free: 27.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.651e-05/0.2382, allocations: 42.44 kB / 454.7 MB, free: 27.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.405e-05/0.2383, allocations: 107.9 kB / 454.8 MB, free: 27.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.2384, allocations: 241.5 kB / 455.1 MB, free: 27.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002985/0.2387, allocations: 0.5326 MB / 455.6 MB, free: 27.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2388, allocations: 4 kB / 455.6 MB, free: 27.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.2388, allocations: 0 / 455.6 MB, free: 27.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.2388, allocations: 0 / 455.6 MB, free: 27.31 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.0009167/0.2397, allocations: 0.7883 MB / 456.4 MB, free: 26.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.033e-05/0.2397, allocations: 8.531 kB / 456.4 MB, free: 26.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.243e-05/0.2398, allocations: 94.5 kB / 456.5 MB, free: 26.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002715/0.2401, allocations: 79.12 kB / 456.6 MB, free: 26.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003525/0.2404, allocations: 387.2 kB / 457 MB, free: 26.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/0.2405, allocations: 49.03 kB / 457 MB, free: 26.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.439e-05/0.2405, allocations: 61.62 kB / 457.1 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006509/0.2412, allocations: 0.4887 MB / 457.6 MB, free: 25.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.2412, allocations: 0 / 457.6 MB, free: 25.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.28e-05/0.2413, allocations: 21.28 kB / 457.6 MB, free: 25.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.2413, allocations: 12.91 kB / 457.6 MB, free: 25.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005578/0.2418, allocations: 309.7 kB / 457.9 MB, free: 25.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.2436, allocations: 1.87 MB / 459.8 MB, free: 24.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005301/0.2441, allocations: 312.1 kB / 460.1 MB, free: 24.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002557/0.2444, allocations: 176.5 kB / 460.2 MB, free: 24.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.2444, allocations: 4.484 kB / 460.2 MB, free: 24.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.801e-05/0.2444, allocations: 55.06 kB / 460.3 MB, free: 24.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.323e-06/0.2445, allocations: 1.25 kB / 460.3 MB, free: 24.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007639/0.2452, allocations: 373.1 kB / 460.7 MB, free: 24.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.2453, allocations: 165 kB / 460.8 MB, free: 23.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002747/0.2456, allocations: 318.8 kB / 461.1 MB, free: 23.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.2456, allocations: 43.02 kB / 461.2 MB, free: 23.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.2457, allocations: 259.1 kB / 461.4 MB, free: 23.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.499e-05/0.2458, allocations: 99.53 kB / 461.5 MB, free: 23.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.2459, allocations: 101.3 kB / 461.6 MB, free: 23.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.407e-05/0.246, allocations: 344.4 kB / 462 MB, free: 22.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002971/0.2463, allocations: 148 kB / 462.1 MB, free: 22.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003364/0.2466, allocations: 263.2 kB / 462.4 MB, free: 22.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005216/0.2471, allocations: 362.5 kB / 462.7 MB, free: 22.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.2471, allocations: 1.031 kB / 462.7 MB, free: 22.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0007764/0.2479, allocations: 484.2 kB / 463.2 MB, free: 22.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.248, allocations: 6.75 kB / 463.2 MB, free: 22.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.248, allocations: 7 kB / 463.2 MB, free: 22.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.248, allocations: 6.359 kB / 463.2 MB, free: 22.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002539/0.2482, allocations: 77.81 kB / 463.3 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.2483, allocations: 6.312 kB / 463.3 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.2485, allocations: 61.2 kB / 463.4 MB, free: 22.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/0.2485, allocations: 20.23 kB / 463.4 MB, free: 22.22 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.0001621/0.2487, allocations: 194.3 kB / 463.6 MB, free: 22.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.727e-05/0.2488, allocations: 37.22 kB / 463.6 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.734e-05/0.2489, allocations: 45.02 kB / 463.6 MB, free: 22.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.2489, allocations: 3.688 kB / 463.7 MB, free: 22.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.2489, allocations: 1.375 kB / 463.7 MB, free: 22.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.2489, allocations: 3.094 kB / 463.7 MB, free: 22.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001333/0.2503, allocations: 1.217 MB / 464.9 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.2503, allocations: 6.062 kB / 464.9 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002077/0.2505, allocations: 46.02 kB / 464.9 MB, free: 21.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.2505, allocations: 8.312 kB / 464.9 MB, free: 21.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.506e-05/0.2505, allocations: 14.84 kB / 464.9 MB, free: 21.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.2506, allocations: 3.688 kB / 464.9 MB, free: 21.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2506, allocations: 6.5 kB / 465 MB, free: 21.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007241/0.2513, allocations: 0.5573 MB / 465.5 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.699e-05/0.2514, allocations: 138.2 kB / 465.6 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.591e-05/0.2514, allocations: 19 kB / 465.7 MB, free: 20.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.2516, allocations: 17.41 kB / 465.7 MB, free: 20.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.782e-05/0.2517, allocations: 32.03 kB / 465.7 MB, free: 20.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.2518, allocations: 17.3 kB / 465.7 MB, free: 20.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001912/0.252, allocations: 213.5 kB / 465.9 MB, free: 20.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.252, allocations: 1.156 kB / 465.9 MB, free: 20.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003842/0.2523, allocations: 115.1 kB / 466.1 MB, free: 20.42 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.0008801/0.2532, allocations: 1.109 MB / 467.2 MB, free: 19.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006305/0.2539, allocations: 346.9 kB / 467.5 MB, free: 19.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2539, allocations: 5.062 kB / 467.5 MB, free: 19.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002757/0.2542, allocations: 154.5 kB / 467.7 MB, free: 19.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005737/0.2548, allocations: 101.2 kB / 467.8 MB, free: 19.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004136/0.2589, allocations: 3.822 MB / 471.6 MB, free: 16.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002692/0.2592, allocations: 0.8302 MB / 472.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002259/0.2594, allocations: 63.03 kB / 472.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.2596, allocations: 155.2 kB / 472.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2596, allocations: 0 / 472.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.877/2.136, allocations: 6.889 MB / 479.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/2.137, allocations: 214.2 kB / 479.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/3.81, allocations: 0 / 479.7 MB, free: 14.06 MB / 350.1 MB (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)