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: translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008417/0.0008413, allocations: 97.72 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.006076/0.006076, allocations: 170.8 kB / 16.27 MB, free: 6.648 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.373/1.373, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3374/0.3374, allocations: 31.19 MB / 322.6 MB, free: 4.934 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003187/0.0003186, allocations: 8 kB / 390.8 MB, free: 2.078 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3135, allocations: 57.39 MB / 448.2 MB, free: 34.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006039/0.3195, allocations: 6.865 MB / 455 MB, free: 29.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001983/0.3216, allocations: 1.065 MB / 456.1 MB, free: 28.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004082/0.322, allocations: 28 kB / 456.1 MB, free: 28.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002541/0.3223, allocations: 81.88 kB / 456.2 MB, free: 28.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001905/0.3225, allocations: 54.67 kB / 456.3 MB, free: 28.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005117/0.323, allocations: 200.2 kB / 456.5 MB, free: 28.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004499/0.3234, allocations: 0.5298 MB / 457 MB, free: 27.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003513/0.3238, allocations: 278 kB / 457.3 MB, free: 27.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.324, allocations: 170 kB / 457.4 MB, free: 27.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.3242, allocations: 184.8 kB / 457.6 MB, free: 27.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.326e-05/0.3242, allocations: 19.69 kB / 457.6 MB, free: 27.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.043e-05/0.3243, allocations: 25.22 kB / 457.6 MB, free: 27.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.019e-05/0.3244, allocations: 89 kB / 457.7 MB, free: 27.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.3246, allocations: 234.3 kB / 458 MB, free: 27.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.3249, allocations: 0.5193 MB / 458.5 MB, free: 27.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3249, allocations: 0 / 458.5 MB, free: 27.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3249, allocations: 0 / 458.5 MB, free: 27.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.325, allocations: 4 kB / 458.5 MB, free: 27.18 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.000984/0.3259, allocations: 0.6876 MB / 459.2 MB, free: 26.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.326, allocations: 10.47 kB / 459.2 MB, free: 26.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003126/0.3263, allocations: 79.55 kB / 459.3 MB, free: 26.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00041/0.3267, allocations: 391.6 kB / 459.6 MB, free: 26.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.878e-05/0.3268, allocations: 42.5 kB / 459.7 MB, free: 26.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.125e-05/0.3269, allocations: 60.62 kB / 459.7 MB, free: 26.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007509/0.3276, allocations: 0.4995 MB / 460.2 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3277, allocations: 1.156 kB / 460.2 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.144e-05/0.3277, allocations: 21.09 kB / 460.3 MB, free: 25.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.3277, allocations: 12.66 kB / 460.3 MB, free: 25.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006321/0.3284, allocations: 319.5 kB / 460.6 MB, free: 25.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.3304, allocations: 1.89 MB / 462.5 MB, free: 24.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006415/0.3311, allocations: 314.8 kB / 462.8 MB, free: 24.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002926/0.3314, allocations: 178.8 kB / 463 MB, free: 24.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.3314, allocations: 9.359 kB / 463 MB, free: 24.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.3315, allocations: 45.67 kB / 463 MB, free: 24.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.174e-06/0.3315, allocations: 0 / 463 MB, free: 24.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008345/0.3323, allocations: 398.8 kB / 463.4 MB, free: 24.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.3324, allocations: 158.7 kB / 463.6 MB, free: 23.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.3327, allocations: 317.9 kB / 463.9 MB, free: 23.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.889e-05/0.3327, allocations: 41.59 kB / 463.9 MB, free: 23.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.3329, allocations: 257.7 kB / 464.2 MB, free: 23.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.408e-05/0.3329, allocations: 96.12 kB / 464.3 MB, free: 23.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.004e-05/0.333, allocations: 59.8 kB / 464.3 MB, free: 23.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.894e-05/0.3331, allocations: 351 kB / 464.7 MB, free: 22.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003496/0.3335, allocations: 151.1 kB / 464.8 MB, free: 22.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003928/0.3339, allocations: 268.6 kB / 465.1 MB, free: 22.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005986/0.3345, allocations: 375.5 kB / 465.4 MB, free: 22.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3345, allocations: 1.438 kB / 465.4 MB, free: 22.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000902/0.3354, allocations: 487 kB / 465.9 MB, free: 22.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.3354, allocations: 16.16 kB / 465.9 MB, free: 22.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.3354, allocations: 4.688 kB / 465.9 MB, free: 22.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.3355, allocations: 5.25 kB / 465.9 MB, free: 22.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002793/0.3358, allocations: 72.62 kB / 466 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.3358, allocations: 11 kB / 466 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/0.3361, allocations: 66.25 kB / 466.1 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.797e-05/0.3361, allocations: 24.5 kB / 466.1 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.0001909/0.3363, allocations: 194 kB / 466.3 MB, free: 22.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.3364, allocations: 37.09 kB / 466.3 MB, free: 22.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.565e-05/0.3365, allocations: 40.5 kB / 466.4 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.3365, allocations: 4.375 kB / 466.4 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.3365, allocations: 1.766 kB / 466.4 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.3365, allocations: 2.688 kB / 466.4 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001549/0.3381, allocations: 1.231 MB / 467.6 MB, free: 21.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3381, allocations: 6.875 kB / 467.6 MB, free: 21.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002275/0.3383, allocations: 47.28 kB / 467.7 MB, free: 21.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.3384, allocations: 4.094 kB / 467.7 MB, free: 21.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.909e-05/0.3384, allocations: 14.92 kB / 467.7 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.3384, allocations: 8 kB / 467.7 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.3384, allocations: 7.703 kB / 467.7 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008946/0.3393, allocations: 0.5731 MB / 468.3 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.3394, allocations: 137.6 kB / 468.4 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.032e-05/0.3395, allocations: 14.89 kB / 468.4 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.3397, allocations: 19.88 kB / 468.4 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.409e-05/0.3398, allocations: 33 kB / 468.5 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.3399, allocations: 16.47 kB / 468.5 MB, free: 20.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002263/0.3401, allocations: 214.5 kB / 468.7 MB, free: 20.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3401, allocations: 1.25 kB / 468.7 MB, free: 20.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004678/0.3406, allocations: 115.1 kB / 468.8 MB, free: 20.44 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.0001158/0.3407, allocations: 119 kB / 468.9 MB, free: 20.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007479/0.3414, allocations: 357.3 kB / 469.3 MB, free: 20.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3415, allocations: 1.188 kB / 469.3 MB, free: 20.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003147/0.3418, allocations: 162.6 kB / 469.4 MB, free: 20.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007195/0.3425, allocations: 99.94 kB / 469.5 MB, free: 20.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.3438, allocations: 1.026 MB / 470.6 MB, free: 19.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.3442, allocations: 0.8265 MB / 471.4 MB, free: 18.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000243/0.3444, allocations: 62.97 kB / 471.4 MB, free: 18.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.768e-05/0.3445, allocations: 42.81 kB / 471.5 MB, free: 18.68 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3445, allocations: 5.094 kB / 471.5 MB, free: 18.68 MB / 350.1 MB Notification: Performance of Templates: time 0.009987/0.3545, allocations: 4.07 MB / 475.6 MB, free: 18.36 MB / 350.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile (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 & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)