Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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/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.SimpleProductionChain,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_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.001458/0.001458, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001703/0.001703, allocations: 190.6 kB / 16.25 MB, free: 6.641 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.383/1.383, allocations: 222.9 MB / 239.9 MB, free: 4.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 1.273/1.273, allocations: 31.12 MB / 321.2 MB, free: 4.477 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 63.89 kB / 388.5 MB, free: 2.742 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2691, allocations: 56.35 MB / 444.9 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004979/0.2741, allocations: 5.739 MB / 450.6 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009966/0.2752, allocations: 0.6569 MB / 451.3 MB, free: 29.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002005/0.2754, allocations: 16.38 kB / 451.3 MB, free: 29.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002086/0.2756, allocations: 61.62 kB / 451.3 MB, free: 29.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001542/0.2758, allocations: 50.2 kB / 451.4 MB, free: 29.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.2762, allocations: 162.8 kB / 451.5 MB, free: 29.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003206/0.2765, allocations: 459.5 kB / 452 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002554/0.2768, allocations: 221.1 kB / 452.2 MB, free: 29.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.2769, allocations: 183.7 kB / 452.4 MB, free: 29.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001606/0.2771, allocations: 199.1 kB / 452.6 MB, free: 29.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.969e-05/0.2772, allocations: 48.62 kB / 452.6 MB, free: 29.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.976e-05/0.2772, allocations: 53.34 kB / 452.7 MB, free: 29.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.251e-05/0.2773, allocations: 106.6 kB / 452.8 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.2774, allocations: 207.5 kB / 453 MB, free: 28.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003091/0.2778, allocations: 449.2 kB / 453.4 MB, free: 28.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.2778, allocations: 3.938 kB / 453.4 MB, free: 28.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2778, allocations: 0 / 453.4 MB, free: 28.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.2778, allocations: 3.938 kB / 453.4 MB, free: 28.61 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.000868/0.2787, allocations: 0.6898 MB / 454.1 MB, free: 28.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.2787, allocations: 8.219 kB / 454.1 MB, free: 28.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.993e-05/0.2788, allocations: 82 kB / 454.2 MB, free: 28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000284/0.2791, allocations: 67.03 kB / 454.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002777/0.2793, allocations: 314.7 kB / 454.6 MB, free: 27.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/0.2794, allocations: 43.97 kB / 454.6 MB, free: 27.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.52e-05/0.2794, allocations: 44.28 kB / 454.7 MB, free: 27.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005796/0.28, allocations: 418.2 kB / 455.1 MB, free: 27.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.28, allocations: 0 / 455.1 MB, free: 27.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.2801, allocations: 15.5 kB / 455.1 MB, free: 27.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.2801, allocations: 12.53 kB / 455.1 MB, free: 27.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004638/0.2806, allocations: 252.5 kB / 455.3 MB, free: 27.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00152/0.2821, allocations: 1.668 MB / 457 MB, free: 26.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004718/0.2826, allocations: 253.7 kB / 457.3 MB, free: 25.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/0.2828, allocations: 158.7 kB / 457.4 MB, free: 25.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.2829, allocations: 5.156 kB / 457.4 MB, free: 25.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.522e-05/0.2829, allocations: 44.25 kB / 457.5 MB, free: 25.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.493e-06/0.2829, allocations: 0 / 457.5 MB, free: 25.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0006942/0.2836, allocations: 346.5 kB / 457.8 MB, free: 25.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.2836, allocations: 158.6 kB / 458 MB, free: 25.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002141/0.2839, allocations: 275.6 kB / 458.2 MB, free: 25.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.529e-05/0.2839, allocations: 47.55 kB / 458.3 MB, free: 25.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.72e-05/0.284, allocations: 206 kB / 458.5 MB, free: 25.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.923e-05/0.284, allocations: 87.91 kB / 458.6 MB, free: 25.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.2842, allocations: 104.5 kB / 458.7 MB, free: 24.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.277e-05/0.2842, allocations: 340.3 kB / 459 MB, free: 24.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002814/0.2845, allocations: 137 kB / 459.1 MB, free: 24.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003099/0.2848, allocations: 248.5 kB / 459.4 MB, free: 24.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004588/0.2853, allocations: 346.1 kB / 459.7 MB, free: 24.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.2853, allocations: 0 / 459.7 MB, free: 24.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007127/0.286, allocations: 456.5 kB / 460.2 MB, free: 23.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.286, allocations: 7.312 kB / 460.2 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2861, allocations: 2.875 kB / 460.2 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.2861, allocations: 10.38 kB / 460.2 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002412/0.2863, allocations: 63.08 kB / 460.2 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.2863, allocations: 9.219 kB / 460.2 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.2866, allocations: 51.88 kB / 460.3 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.174e-05/0.2866, allocations: 21.16 kB / 460.3 MB, free: 23.93 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.0001413/0.2868, allocations: 184.5 kB / 460.5 MB, free: 23.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.2869, allocations: 29.75 kB / 460.5 MB, free: 23.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.079e-05/0.2869, allocations: 36.14 kB / 460.6 MB, free: 23.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.287, allocations: 7.469 kB / 460.6 MB, free: 23.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.287, allocations: 9.562 kB / 460.6 MB, free: 23.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.287, allocations: 4.719 kB / 460.6 MB, free: 23.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001233/0.2882, allocations: 1.173 MB / 461.8 MB, free: 22.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.2882, allocations: 3.531 kB / 461.8 MB, free: 22.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/0.2884, allocations: 42.92 kB / 461.8 MB, free: 22.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.2884, allocations: 8.438 kB / 461.8 MB, free: 22.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.2885, allocations: 14.75 kB / 461.8 MB, free: 22.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.521e-06/0.2885, allocations: 5.578 kB / 461.8 MB, free: 22.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.2885, allocations: 4.312 kB / 461.8 MB, free: 22.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006826/0.2892, allocations: 0.5329 MB / 462.4 MB, free: 22.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.201e-05/0.2893, allocations: 132.6 kB / 462.5 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.561e-05/0.2893, allocations: 20.38 kB / 462.5 MB, free: 22.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.2896, allocations: 22.75 kB / 462.5 MB, free: 22.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.327e-05/0.2896, allocations: 37.66 kB / 462.6 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.2897, allocations: 13.12 kB / 462.6 MB, free: 22.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001445/0.2898, allocations: 181.6 kB / 462.8 MB, free: 22.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2898, allocations: 0 / 462.8 MB, free: 22.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003953/0.2902, allocations: 96.06 kB / 462.9 MB, free: 22.13 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.0008125/0.291, allocations: 1.083 MB / 463.9 MB, free: 21.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006125/0.2917, allocations: 344.9 kB / 464.3 MB, free: 21.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2917, allocations: 1.156 kB / 464.3 MB, free: 21.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002608/0.2919, allocations: 143 kB / 464.4 MB, free: 21.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005593/0.2925, allocations: 100.6 kB / 464.5 MB, free: 21.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003637/0.2962, allocations: 3.5 MB / 468 MB, free: 18.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002212/0.2964, allocations: 0.7966 MB / 468.8 MB, free: 17.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002055/0.2966, allocations: 51.48 kB / 468.9 MB, free: 17.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.2968, allocations: 117.8 kB / 469 MB, free: 17.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2968, allocations: 0 / 469 MB, free: 17.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3274/0.6242, allocations: 6.124 MB / 475.1 MB, free: 17.16 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002032/0.6245, allocations: 203.4 kB / 475.3 MB, free: 16.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.325/2.949, allocations: 0 / 475.3 MB, free: 16.91 MB / 350.1 MB (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)