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.005112/0.005112, allocations: 100.5 kB / 15.73 MB, free: 6.496 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.00121/0.00121, allocations: 201.3 kB / 16.68 MB, free: 6.375 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.233/1.233, allocations: 222.9 MB / 240.4 MB, free: 4.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.3432/0.3432, allocations: 31.16 MB / 321.7 MB, free: 4.336 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 62.19 kB / 446.7 MB, free: 30.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09222/0.09334, allocations: 56.37 MB / 0.4913 GB, free: 7.367 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005642/0.09902, allocations: 5.387 MB / 0.4965 GB, free: 1.957 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009863/0.1, allocations: 0.6112 MB / 0.4971 GB, free: 1.344 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.1002, allocations: 15.88 kB / 0.4971 GB, free: 1.328 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002062/0.1004, allocations: 79.27 kB / 0.4972 GB, free: 1.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001664/0.1006, allocations: 75.34 kB / 0.4973 GB, free: 1.176 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004346/0.101, allocations: 179.6 kB / 0.4975 GB, free: 1 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004165/0.1015, allocations: 459.3 kB / 0.4979 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002867/0.1018, allocations: 230.1 kB / 0.4981 GB, free: 332 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.1019, allocations: 187.3 kB / 0.4983 GB, free: 144 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002006/0.1021, allocations: 203.1 kB / 0.4985 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.171e-05/0.1022, allocations: 47.94 kB / 0.4985 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.962e-05/0.1023, allocations: 55.98 kB / 0.4986 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.319e-05/0.1024, allocations: 99.73 kB / 0.4987 GB, free: 15.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001602/0.1026, allocations: 210.9 kB / 0.4989 GB, free: 15.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004147/0.103, allocations: 466 kB / 0.4993 GB, free: 15.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.103, allocations: 3.938 kB / 0.4993 GB, free: 15.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.103, allocations: 4 kB / 0.4993 GB, free: 15.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.103, allocations: 0 / 0.4993 GB, free: 15.07 MB / 382.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.0009557/0.104, allocations: 0.7017 MB / 0.5 GB, free: 14.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.82e-05/0.104, allocations: 8.031 kB / 0.5 GB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002863/0.1043, allocations: 72.56 kB / 0.5001 GB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003596/0.1047, allocations: 331.5 kB / 0.5004 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.1047, allocations: 37.38 kB / 0.5005 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.282e-05/0.1048, allocations: 55.88 kB / 0.5005 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005951/0.1054, allocations: 411.3 kB / 0.5009 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1054, allocations: 3.938 kB / 0.5009 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.096e-05/0.1054, allocations: 19.98 kB / 0.5009 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.1055, allocations: 12 kB / 0.5009 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004946/0.106, allocations: 247.8 kB / 0.5012 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.1077, allocations: 1.649 MB / 0.5028 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004896/0.1082, allocations: 254.3 kB / 0.503 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002501/0.1084, allocations: 163.8 kB / 0.5032 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.1085, allocations: 7.938 kB / 0.5032 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.1085, allocations: 38.56 kB / 0.5032 GB, free: 10.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.373e-06/0.1085, allocations: 0 / 0.5032 GB, free: 10.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007097/0.1092, allocations: 349.4 kB / 0.5036 GB, free: 10.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/0.1093, allocations: 162.2 kB / 0.5037 GB, free: 10.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002467/0.1096, allocations: 270.5 kB / 0.504 GB, free: 10.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.1096, allocations: 41.7 kB / 0.504 GB, free: 9.965 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.1097, allocations: 216.7 kB / 0.5042 GB, free: 9.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.113e-05/0.1098, allocations: 87.27 kB / 0.5043 GB, free: 9.664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/0.1099, allocations: 102.3 kB / 0.5044 GB, free: 9.559 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.11, allocations: 354.7 kB / 0.5047 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002926/0.1103, allocations: 133 kB / 0.5049 GB, free: 9.074 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003428/0.1107, allocations: 253.9 kB / 0.5051 GB, free: 8.781 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005032/0.1112, allocations: 342.7 kB / 0.5054 GB, free: 8.402 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1112, allocations: 0 / 0.5054 GB, free: 8.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007577/0.112, allocations: 461.8 kB / 0.5059 GB, free: 7.945 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.112, allocations: 11.94 kB / 0.5059 GB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.112, allocations: 0 / 0.5059 GB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.112, allocations: 8 kB / 0.5059 GB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002327/0.1123, allocations: 67.77 kB / 0.506 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.649e-06/0.1123, allocations: 8 kB / 0.506 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/0.1125, allocations: 51.66 kB / 0.506 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.21e-05/0.1126, allocations: 23.98 kB / 0.506 GB, free: 7.777 MB / 382.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.0001634/0.1127, allocations: 187.5 kB / 0.5062 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.799e-05/0.1128, allocations: 31.81 kB / 0.5062 GB, free: 7.551 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.225e-05/0.1129, allocations: 34.17 kB / 0.5063 GB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.866e-06/0.1129, allocations: 7.938 kB / 0.5063 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.1129, allocations: 4 kB / 0.5063 GB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1129, allocations: 0 / 0.5063 GB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001356/0.1143, allocations: 1.181 MB / 0.5074 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1143, allocations: 0 / 0.5074 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.1145, allocations: 39.91 kB / 0.5075 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.1145, allocations: 4 kB / 0.5075 GB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.552e-05/0.1145, allocations: 15.94 kB / 0.5075 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.1146, allocations: 7.938 kB / 0.5075 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1146, allocations: 4 kB / 0.5075 GB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007145/0.1153, allocations: 0.5387 MB / 0.508 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.1154, allocations: 136.8 kB / 0.5082 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.719e-05/0.1154, allocations: 12 kB / 0.5082 GB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.1157, allocations: 23.92 kB / 0.5082 GB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.831e-05/0.1157, allocations: 35.84 kB / 0.5082 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.1158, allocations: 8 kB / 0.5082 GB, free: 5.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001576/0.1159, allocations: 182 kB / 0.5084 GB, free: 5.141 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1159, allocations: 0 / 0.5084 GB, free: 5.141 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003759/0.1163, allocations: 99.8 kB / 0.5085 GB, free: 5.043 MB / 382.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 9.995e-05/0.1164, allocations: 119.1 kB / 0.5086 GB, free: 4.922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000595/0.117, allocations: 328.3 kB / 0.5089 GB, free: 4.602 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.117, allocations: 4.062 kB / 0.5089 GB, free: 4.598 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002599/0.1173, allocations: 135.8 kB / 0.5091 GB, free: 4.465 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005288/0.1178, allocations: 97.11 kB / 0.5092 GB, free: 4.371 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009706/0.1188, allocations: 0.7339 MB / 0.5099 GB, free: 3.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.1191, allocations: 0.7922 MB / 0.5107 GB, free: 2.754 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001633/0.1193, allocations: 59.22 kB / 0.5107 GB, free: 2.695 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.936e-05/0.1194, allocations: 39.42 kB / 0.5108 GB, free: 2.656 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1194, allocations: 0 / 0.5108 GB, free: 2.656 MB / 382.1 MB Notification: Performance of Templates: time 0.00696/0.1264, allocations: 3.784 MB / 0.5144 GB, free: 14.91 MB / 398.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)