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.0009397/0.0009397, allocations: 98.27 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.006234/0.006234, allocations: 169.8 kB / 16.27 MB, free: 6.344 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.346/1.346, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 7.647/7.647, allocations: 31.15 MB / 322.6 MB, free: 4.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004392/0.0004392, allocations: 8 kB / 390.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3146, allocations: 57.4 MB / 448.2 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004417/0.3191, allocations: 5.305 MB / 453.5 MB, free: 30.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.3202, allocations: 0.6477 MB / 454.2 MB, free: 29.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002146/0.3205, allocations: 22.38 kB / 454.2 MB, free: 29.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.3207, allocations: 60.44 kB / 454.3 MB, free: 29.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001624/0.3208, allocations: 61.92 kB / 454.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004235/0.3213, allocations: 160.8 kB / 454.5 MB, free: 29.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003488/0.3216, allocations: 435.7 kB / 454.9 MB, free: 29.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002516/0.3219, allocations: 194.1 kB / 455.1 MB, free: 29.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.322, allocations: 144.3 kB / 455.2 MB, free: 29.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001694/0.3222, allocations: 162.6 kB / 455.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.847e-05/0.3222, allocations: 18.38 kB / 455.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.217e-05/0.3223, allocations: 23.62 kB / 455.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.964e-05/0.3224, allocations: 78.7 kB / 455.5 MB, free: 29.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.3225, allocations: 200.5 kB / 455.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002906/0.3228, allocations: 418.8 kB / 456.1 MB, free: 28.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.3228, allocations: 2.719 kB / 456.1 MB, free: 28.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3229, allocations: 0 / 456.1 MB, free: 28.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.3229, allocations: 0 / 456.1 MB, free: 28.78 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.0008351/0.3237, allocations: 0.6142 MB / 456.7 MB, free: 28.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.3238, allocations: 10.94 kB / 456.8 MB, free: 28.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.519e-05/0.3238, allocations: 77.41 kB / 456.8 MB, free: 28.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002773/0.3241, allocations: 63.72 kB / 456.9 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003186/0.3244, allocations: 314.9 kB / 457.2 MB, free: 27.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.471e-05/0.3245, allocations: 45.2 kB / 457.2 MB, free: 27.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.469e-05/0.3246, allocations: 43.97 kB / 457.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006184/0.3252, allocations: 422.1 kB / 457.7 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.3252, allocations: 2.812 kB / 457.7 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.423e-05/0.3252, allocations: 18 kB / 457.7 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.3253, allocations: 10.97 kB / 457.7 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005064/0.3258, allocations: 267 kB / 458 MB, free: 27.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001697/0.3275, allocations: 1.675 MB / 459.7 MB, free: 26.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005239/0.328, allocations: 256.2 kB / 459.9 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002447/0.3283, allocations: 163 kB / 460.1 MB, free: 26.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.3283, allocations: 2.938 kB / 460.1 MB, free: 26.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.931e-05/0.3283, allocations: 45.36 kB / 460.1 MB, free: 26.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.623e-06/0.3283, allocations: 2.75 kB / 460.1 MB, free: 26.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007508/0.3291, allocations: 352.9 kB / 460.5 MB, free: 25.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.3292, allocations: 168.4 kB / 460.6 MB, free: 25.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002683/0.3294, allocations: 271.1 kB / 460.9 MB, free: 25.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.3295, allocations: 43.72 kB / 460.9 MB, free: 25.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.3296, allocations: 209.9 kB / 461.1 MB, free: 25.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.205e-05/0.3297, allocations: 90.97 kB / 461.2 MB, free: 25.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.365e-05/0.3297, allocations: 58.83 kB / 461.3 MB, free: 25.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.498e-05/0.3298, allocations: 343 kB / 461.6 MB, free: 24.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003103/0.3301, allocations: 149.5 kB / 461.8 MB, free: 24.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003619/0.3305, allocations: 250 kB / 462 MB, free: 24.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005103/0.331, allocations: 362.8 kB / 462.4 MB, free: 24.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3311, allocations: 0 / 462.4 MB, free: 24.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007481/0.3318, allocations: 464.2 kB / 462.8 MB, free: 24.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.3318, allocations: 6.531 kB / 462.8 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3318, allocations: 3.312 kB / 462.8 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.3319, allocations: 10.31 kB / 462.8 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000239/0.3321, allocations: 71.92 kB / 462.9 MB, free: 24.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.3321, allocations: 5.938 kB / 462.9 MB, free: 24.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002576/0.3324, allocations: 49.8 kB / 463 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.17e-05/0.3324, allocations: 18.78 kB / 463 MB, free: 24.16 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.0001691/0.3326, allocations: 190 kB / 463.2 MB, free: 23.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.3327, allocations: 34.53 kB / 463.2 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.999e-05/0.3328, allocations: 33.02 kB / 463.2 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.3328, allocations: 7.562 kB / 463.2 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.3328, allocations: 0.9375 kB / 463.2 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.3328, allocations: 2.484 kB / 463.3 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/0.3342, allocations: 1.189 MB / 464.4 MB, free: 23.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.3342, allocations: 3.5 kB / 464.4 MB, free: 23.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002022/0.3344, allocations: 43.5 kB / 464.5 MB, free: 23.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-06/0.3344, allocations: 4.312 kB / 464.5 MB, free: 23.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.3345, allocations: 16.53 kB / 464.5 MB, free: 23.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.3345, allocations: 9.891 kB / 464.5 MB, free: 23.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.3345, allocations: 8.312 kB / 464.5 MB, free: 23.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007384/0.3353, allocations: 0.5473 MB / 465.1 MB, free: 22.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.177e-05/0.3354, allocations: 132.4 kB / 465.2 MB, free: 22.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.15e-05/0.3354, allocations: 15.81 kB / 465.2 MB, free: 22.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.3356, allocations: 27.98 kB / 465.2 MB, free: 22.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.374e-05/0.3357, allocations: 35.84 kB / 465.3 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.3357, allocations: 17.06 kB / 465.3 MB, free: 22.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001577/0.3359, allocations: 179.2 kB / 465.5 MB, free: 22.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3359, allocations: 0 / 465.5 MB, free: 22.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004365/0.3363, allocations: 92.06 kB / 465.6 MB, free: 22.36 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.0009788/0.3373, allocations: 1.113 MB / 466.7 MB, free: 21.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006815/0.338, allocations: 332.4 kB / 467 MB, free: 21.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.338, allocations: 1.156 kB / 467 MB, free: 21.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000284/0.3383, allocations: 152.5 kB / 467.1 MB, free: 21.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006822/0.339, allocations: 96.2 kB / 467.2 MB, free: 21.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004235/0.3433, allocations: 3.56 MB / 470.8 MB, free: 18.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002797/0.3436, allocations: 0.7913 MB / 471.6 MB, free: 17.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00023/0.3438, allocations: 55.98 kB / 471.6 MB, free: 17.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/0.344, allocations: 117.7 kB / 471.8 MB, free: 17.89 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.344, allocations: 0 / 471.8 MB, free: 17.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5829/0.9268, allocations: 6.138 MB / 477.9 MB, free: 17.06 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002133/0.9271, allocations: 208.4 kB / 478.1 MB, free: 16.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.937/2.864, allocations: 2.875 kB / 478.1 MB, free: 16.8 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)