Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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-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.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001709/0.001709, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.598/1.598, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3242/0.3242, allocations: 31.21 MB / 322.3 MB, free: 5.051 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003629, allocations: 8 kB / 390.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.3423, allocations: 57.4 MB / 447.6 MB, free: 34.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004521/0.3468, allocations: 5.078 MB / 452.6 MB, free: 30.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.348, allocations: 0.6436 MB / 453.3 MB, free: 30.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002192/0.3482, allocations: 14.44 kB / 453.3 MB, free: 30.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001993/0.3484, allocations: 70.8 kB / 453.4 MB, free: 29.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.3486, allocations: 71.97 kB / 453.4 MB, free: 29.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004689/0.3491, allocations: 139.6 kB / 453.6 MB, free: 29.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000357/0.3495, allocations: 421 kB / 454 MB, free: 29.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002582/0.3497, allocations: 164.1 kB / 454.2 MB, free: 29.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001708/0.3499, allocations: 147.6 kB / 454.3 MB, free: 29.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001788/0.3501, allocations: 158.4 kB / 454.5 MB, free: 29.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.957e-05/0.3502, allocations: 18.38 kB / 454.5 MB, free: 29.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.963e-05/0.3502, allocations: 31.33 kB / 454.5 MB, free: 29.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.231e-05/0.3503, allocations: 67.64 kB / 454.6 MB, free: 29.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.872e-05/0.3504, allocations: 86.39 kB / 454.6 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002724/0.3507, allocations: 339.5 kB / 455 MB, free: 29.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3507, allocations: 0 / 455 MB, free: 29.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3507, allocations: 0 / 455 MB, free: 29.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.3507, allocations: 0 / 455 MB, free: 29.25 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.0008673/0.3516, allocations: 0.6058 MB / 455.6 MB, free: 28.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3516, allocations: 9.906 kB / 455.6 MB, free: 28.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002748/0.3519, allocations: 61.69 kB / 455.7 MB, free: 28.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.3522, allocations: 318 kB / 456 MB, free: 28.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.134e-05/0.3523, allocations: 37.03 kB / 456 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.385e-05/0.3523, allocations: 48.14 kB / 456.1 MB, free: 28.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006182/0.353, allocations: 423.7 kB / 456.5 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.353, allocations: 7.938 kB / 456.5 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.24e-05/0.353, allocations: 16.69 kB / 456.5 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.353, allocations: 10.72 kB / 456.5 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004653/0.3535, allocations: 258 kB / 456.8 MB, free: 28.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.3552, allocations: 1.667 MB / 458.4 MB, free: 26.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005204/0.3557, allocations: 264.8 kB / 458.7 MB, free: 26.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/0.356, allocations: 167.1 kB / 458.8 MB, free: 26.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.356, allocations: 2.562 kB / 458.8 MB, free: 26.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.356, allocations: 37.22 kB / 458.9 MB, free: 26.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.884e-06/0.356, allocations: 0 / 458.9 MB, free: 26.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007315/0.3568, allocations: 366 kB / 459.2 MB, free: 26.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.3568, allocations: 157.3 kB / 459.4 MB, free: 26.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002666/0.3571, allocations: 262.5 kB / 459.6 MB, free: 26.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/0.3572, allocations: 41.92 kB / 459.7 MB, free: 26.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.3573, allocations: 219.3 kB / 459.9 MB, free: 25.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.255e-05/0.3573, allocations: 84.77 kB / 460 MB, free: 25.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-05/0.3574, allocations: 10.62 kB / 460 MB, free: 25.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.896e-05/0.3574, allocations: 343.5 kB / 460.3 MB, free: 25.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000281/0.3577, allocations: 141.4 kB / 460.5 MB, free: 25.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003352/0.3581, allocations: 256.1 kB / 460.7 MB, free: 25.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002881/0.3584, allocations: 148.1 kB / 460.9 MB, free: 25.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3584, allocations: 1.469 kB / 460.9 MB, free: 25.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007468/0.3591, allocations: 465.7 kB / 461.3 MB, free: 24.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.3592, allocations: 6.234 kB / 461.3 MB, free: 24.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.3592, allocations: 6.781 kB / 461.3 MB, free: 24.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.3592, allocations: 6.141 kB / 461.3 MB, free: 24.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.3594, allocations: 70.66 kB / 461.4 MB, free: 24.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.383e-05/0.3595, allocations: 12.53 kB / 461.4 MB, free: 24.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.3597, allocations: 56.86 kB / 461.5 MB, free: 24.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.383e-05/0.3597, allocations: 24.58 kB / 461.5 MB, free: 24.89 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,$PRE.inventory.inflow.stopOutflow,inventory.inflow.stopOutflow,$PRE.inventory.outflow.stopOutflow,inventory.outflow.stopOutflow,shipping.portA.stopOutflow,shipping.portB.stopInflow,$PRE.shipping.useA_rate,shipping.useA_rate,$PRE.shipping.useB_rate,shipping.useB_rate,producing.growing.portA.stopOutflow,producing.growing.portB.stopInflow,producing.growing.portB.stopOutflow,$PRE.producing.growing.useA_rate,producing.growing.useA_rate,$PRE.producing.growing.useB_rate,producing.growing.useB_rate,shipping.portB.stopOutflow,producing.growing.portA.stopInflow,shipping.portA.stopInflow,inventory.outflow.stopInflow,producing.cloud.massPort.stopInflow,installedBase.inflow.stopOutflow,inventory.inflow.stopInflow,producing.cloud.massPort.stopOutflow,installedBase.inflow.stopInflow) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000152/0.3599, allocations: 185 kB / 461.7 MB, free: 24.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.348e-05/0.36, allocations: 34.98 kB / 461.7 MB, free: 24.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.898e-05/0.3601, allocations: 36 kB / 461.7 MB, free: 24.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3601, allocations: 8.234 kB / 461.8 MB, free: 24.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.3601, allocations: 3.094 kB / 461.8 MB, free: 24.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3601, allocations: 1.641 kB / 461.8 MB, free: 24.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001345/0.3614, allocations: 1.182 MB / 462.9 MB, free: 23.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.3615, allocations: 3.531 kB / 462.9 MB, free: 23.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001983/0.3617, allocations: 45.88 kB / 463 MB, free: 23.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.197e-06/0.3617, allocations: 5.062 kB / 463 MB, free: 23.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.914e-05/0.3617, allocations: 16.56 kB / 463 MB, free: 23.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.285e-06/0.3617, allocations: 8.406 kB / 463 MB, free: 23.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.3618, allocations: 3.5 kB / 463 MB, free: 23.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007484/0.3625, allocations: 0.5473 MB / 463.6 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.3626, allocations: 131.7 kB / 463.7 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.7e-05/0.3627, allocations: 17.39 kB / 463.7 MB, free: 23.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.3629, allocations: 24.53 kB / 463.7 MB, free: 23.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.621e-05/0.363, allocations: 39.45 kB / 463.8 MB, free: 23.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.363, allocations: 9.469 kB / 463.8 MB, free: 23.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001596/0.3632, allocations: 181.3 kB / 464 MB, free: 23.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3632, allocations: 1.312 kB / 464 MB, free: 23.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004184/0.3636, allocations: 95 kB / 464.1 MB, free: 23.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001169/0.3637, allocations: 119.6 kB / 464.2 MB, free: 22.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006581/0.3644, allocations: 325.1 kB / 464.5 MB, free: 22.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.3644, allocations: 1 kB / 464.5 MB, free: 22.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002947/0.3647, allocations: 152.4 kB / 464.6 MB, free: 22.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005782/0.3653, allocations: 88.47 kB / 464.7 MB, free: 22.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.3664, allocations: 0.8627 MB / 465.6 MB, free: 22.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.3667, allocations: 0.7923 MB / 466.4 MB, free: 21.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001946/0.3669, allocations: 50.86 kB / 466.4 MB, free: 21.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.773e-05/0.367, allocations: 34.3 kB / 466.5 MB, free: 21.47 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.367, allocations: 0 / 466.5 MB, free: 21.47 MB / 350.1 MB Notification: Performance of Templates: time 0.00888/0.3759, allocations: 3.301 MB / 469.8 MB, free: 21.22 MB / 350.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.makefile (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)