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: translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001387/0.001388, 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.001608/0.001608, allocations: 194.3 kB / 16.14 MB, free: 6.645 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.371/1.371, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2856/0.2856, allocations: 31.12 MB / 321.1 MB, free: 4.625 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 63.91 kB / 388.2 MB, free: 3.055 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3179/0.3192, allocations: 56.37 MB / 444.6 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007778/0.327, allocations: 7.323 MB / 451.9 MB, free: 29.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002809/0.3299, allocations: 1.075 MB / 453 MB, free: 28.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008361/0.3308, allocations: 28.09 kB / 453 MB, free: 28.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003819/0.3312, allocations: 82.03 kB / 453.1 MB, free: 28.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/0.3315, allocations: 51.31 kB / 453.1 MB, free: 28.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006695/0.3321, allocations: 203.9 kB / 453.3 MB, free: 28.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004903/0.3326, allocations: 0.5325 MB / 453.9 MB, free: 28.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004102/0.3331, allocations: 281.4 kB / 454.1 MB, free: 27.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002268/0.3333, allocations: 204.6 kB / 454.3 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002531/0.3336, allocations: 221.3 kB / 454.6 MB, free: 27.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.066e-05/0.3336, allocations: 36.16 kB / 454.6 MB, free: 27.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.3337, allocations: 46.66 kB / 454.6 MB, free: 27.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.3339, allocations: 108.6 kB / 454.7 MB, free: 27.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001868/0.3341, allocations: 234.5 kB / 455 MB, free: 27.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005022/0.3346, allocations: 0.5293 MB / 455.5 MB, free: 27.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.3346, allocations: 6.719 kB / 455.5 MB, free: 27.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.3346, allocations: 0 / 455.5 MB, free: 27.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.3346, allocations: 3.938 kB / 455.5 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.00142/0.336, allocations: 0.7852 MB / 456.3 MB, free: 26.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.3361, allocations: 8.156 kB / 456.3 MB, free: 26.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003582/0.3365, allocations: 86.91 kB / 456.4 MB, free: 26.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005/0.337, allocations: 387.1 kB / 456.8 MB, free: 26.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.53e-05/0.337, allocations: 44.88 kB / 456.8 MB, free: 26.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.4e-05/0.3371, allocations: 56.44 kB / 456.9 MB, free: 26.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000899/0.338, allocations: 0.4995 MB / 457.4 MB, free: 26.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.3381, allocations: 3.938 kB / 457.4 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.234e-05/0.3381, allocations: 21.12 kB / 457.4 MB, free: 25.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.3381, allocations: 13.25 kB / 457.4 MB, free: 25.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006643/0.3388, allocations: 302.7 kB / 457.7 MB, free: 25.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002497/0.3413, allocations: 1.88 MB / 459.6 MB, free: 24.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006468/0.342, allocations: 303.8 kB / 459.9 MB, free: 24.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002814/0.3423, allocations: 180.2 kB / 460.1 MB, free: 24.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.886e-05/0.3423, allocations: 3.984 kB / 460.1 MB, free: 24.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.3423, allocations: 46.61 kB / 460.1 MB, free: 24.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.705e-06/0.3424, allocations: 0 / 460.1 MB, free: 24.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008911/0.3433, allocations: 384.8 kB / 460.5 MB, free: 24.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.578e-05/0.3433, allocations: 158.3 kB / 460.6 MB, free: 23.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000348/0.3437, allocations: 317.8 kB / 460.9 MB, free: 23.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.32e-05/0.3437, allocations: 43.14 kB / 461 MB, free: 23.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.3439, allocations: 263.7 kB / 461.2 MB, free: 23.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.567e-05/0.344, allocations: 90.59 kB / 461.3 MB, free: 23.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/0.3442, allocations: 105.3 kB / 461.4 MB, free: 23.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.724e-05/0.3442, allocations: 346.5 kB / 461.8 MB, free: 22.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003443/0.3446, allocations: 143.9 kB / 461.9 MB, free: 22.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004113/0.345, allocations: 265 kB / 462.2 MB, free: 22.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006303/0.3457, allocations: 366.4 kB / 462.5 MB, free: 22.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.3457, allocations: 1.25 kB / 462.5 MB, free: 22.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008752/0.3466, allocations: 476.8 kB / 463 MB, free: 22.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.3466, allocations: 10.25 kB / 463 MB, free: 22.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.3466, allocations: 3.781 kB / 463 MB, free: 22.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.436e-05/0.3466, allocations: 5.344 kB / 463 MB, free: 22.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002852/0.3469, allocations: 75.47 kB / 463.1 MB, free: 22.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.489e-05/0.3469, allocations: 9.812 kB / 463.1 MB, free: 22.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000297/0.3473, allocations: 59.83 kB / 463.2 MB, free: 22.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.924e-05/0.3473, allocations: 20.94 kB / 463.2 MB, free: 22.25 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.0002087/0.3475, allocations: 194.6 kB / 463.4 MB, free: 22.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.3476, allocations: 35.5 kB / 463.4 MB, free: 22.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.23e-05/0.3477, allocations: 40.44 kB / 463.4 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.3477, allocations: 9.234 kB / 463.5 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.3477, allocations: 5.062 kB / 463.5 MB, free: 22.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3478, allocations: 2.969 kB / 463.5 MB, free: 22.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001573/0.3493, allocations: 1.22 MB / 464.7 MB, free: 21.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.3494, allocations: 2.094 kB / 464.7 MB, free: 21.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002406/0.3496, allocations: 46.56 kB / 464.7 MB, free: 21.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.3496, allocations: 3.969 kB / 464.7 MB, free: 21.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.892e-05/0.3497, allocations: 18.5 kB / 464.7 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.735e-06/0.3497, allocations: 4.562 kB / 464.8 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.3497, allocations: 2.875 kB / 464.8 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008792/0.3506, allocations: 0.556 MB / 465.3 MB, free: 20.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.3507, allocations: 141.9 kB / 465.5 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.533e-05/0.3508, allocations: 15.06 kB / 465.5 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.351, allocations: 17.34 kB / 465.5 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.3511, allocations: 36.33 kB / 465.5 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.3511, allocations: 8.906 kB / 465.5 MB, free: 20.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000247/0.3514, allocations: 218.4 kB / 465.7 MB, free: 20.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3514, allocations: 0 / 465.7 MB, free: 20.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005048/0.3519, allocations: 116.7 kB / 465.9 MB, free: 20.45 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.0001278/0.352, allocations: 115.5 kB / 466 MB, free: 20.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007672/0.3528, allocations: 341.8 kB / 466.3 MB, free: 20.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3528, allocations: 0 / 466.3 MB, free: 20.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003264/0.3532, allocations: 161.6 kB / 466.5 MB, free: 20.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006645/0.3538, allocations: 92.23 kB / 466.5 MB, free: 20.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.3553, allocations: 1.021 MB / 467.6 MB, free: 19.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003632/0.3557, allocations: 0.827 MB / 468.4 MB, free: 18.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002923/0.356, allocations: 63.19 kB / 468.5 MB, free: 18.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.3561, allocations: 34.97 kB / 468.5 MB, free: 18.69 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3561, allocations: 4 kB / 468.5 MB, free: 18.69 MB / 350.1 MB Notification: Performance of Templates: time 0.01092/0.3671, allocations: 3.999 MB / 472.5 MB, free: 18.38 MB / 350.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.makefile (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 & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)