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.001518/0.001518, allocations: 109.9 kB / 16.4 MB, free: 6.395 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.001259/0.001259, allocations: 189.8 kB / 17.34 MB, free: 5.836 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.382/1.382, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3116/0.3116, allocations: 31.18 MB / 322.4 MB, free: 196 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 67.89 kB / 447.4 MB, free: 1.785 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09965/0.1011, allocations: 56.36 MB / 0.4919 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006569/0.1077, allocations: 5.392 MB / 0.4972 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.1092, allocations: 0.6111 MB / 0.4978 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003646/0.1096, allocations: 8 kB / 0.4978 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003515/0.11, allocations: 83.27 kB / 0.4979 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002984/0.1103, allocations: 67.36 kB / 0.4979 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006667/0.111, allocations: 183.5 kB / 0.4981 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005978/0.1116, allocations: 471.1 kB / 0.4986 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000359/0.112, allocations: 226.1 kB / 0.4988 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002908/0.1123, allocations: 191.3 kB / 0.499 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002911/0.1126, allocations: 199.1 kB / 0.4992 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.999e-05/0.1127, allocations: 44 kB / 0.4992 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001223/0.1128, allocations: 59.92 kB / 0.4993 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.1129, allocations: 107.7 kB / 0.4994 GB, free: 1.754 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002003/0.1131, allocations: 203 kB / 0.4995 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005266/0.1137, allocations: 466 kB / 0.5 GB, free: 1.098 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1137, allocations: 0 / 0.5 GB, free: 1.098 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1137, allocations: 0 / 0.5 GB, free: 1.098 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.06e-05/0.1137, allocations: 0 / 0.5 GB, free: 1.098 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.001198/0.1149, allocations: 0.7056 MB / 0.5007 GB, free: 352 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.115, allocations: 12.02 kB / 0.5007 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003336/0.1153, allocations: 64.62 kB / 0.5008 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2189/0.3342, allocations: 333.8 kB / 0.5011 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.293e-05/0.3343, allocations: 37.95 kB / 0.5011 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.593e-05/0.3344, allocations: 48.94 kB / 0.5012 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008638/0.3353, allocations: 421 kB / 0.5016 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.3353, allocations: 1.922 kB / 0.5016 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.561e-05/0.3354, allocations: 14.69 kB / 0.5016 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/0.3354, allocations: 11.53 kB / 0.5016 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007503/0.3362, allocations: 251.6 kB / 0.5018 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.3385, allocations: 1.655 MB / 0.5034 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006851/0.3392, allocations: 251.2 kB / 0.5037 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00032/0.3395, allocations: 151 kB / 0.5038 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.3396, allocations: 15.3 kB / 0.5038 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.3396, allocations: 38 kB / 0.5039 GB, free: 11.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 3.227e-06/0.3396, allocations: 0 / 0.5039 GB, free: 11.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008927/0.3405, allocations: 351.8 kB / 0.5042 GB, free: 11.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.819e-05/0.3406, allocations: 165.4 kB / 0.5044 GB, free: 11.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002831/0.3409, allocations: 271 kB / 0.5046 GB, free: 11.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.3409, allocations: 38.05 kB / 0.5047 GB, free: 11.49 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.3411, allocations: 220.3 kB / 0.5049 GB, free: 11.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.662e-05/0.3411, allocations: 92.31 kB / 0.505 GB, free: 11.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001405/0.3413, allocations: 102.7 kB / 0.5051 GB, free: 11.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.937e-05/0.3414, allocations: 346.2 kB / 0.5054 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003078/0.3417, allocations: 136.8 kB / 0.5055 GB, free: 10.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003572/0.342, allocations: 247.6 kB / 0.5058 GB, free: 10.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005182/0.3426, allocations: 349 kB / 0.5061 GB, free: 10.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.3426, allocations: 1.094 kB / 0.5061 GB, free: 10.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007971/0.3434, allocations: 460.6 kB / 0.5065 GB, free: 10.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.3434, allocations: 6.062 kB / 0.5065 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.3434, allocations: 3.594 kB / 0.5065 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.382e-05/0.3435, allocations: 5.812 kB / 0.5065 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.3437, allocations: 65.62 kB / 0.5066 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.3437, allocations: 8.25 kB / 0.5066 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002566/0.344, allocations: 64.03 kB / 0.5067 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.556e-05/0.344, allocations: 18 kB / 0.5067 GB, free: 10.65 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.0001922/0.3442, allocations: 188.5 kB / 0.5069 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.701e-05/0.3443, allocations: 30.5 kB / 0.5069 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.547e-05/0.3444, allocations: 31.45 kB / 0.5069 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.3444, allocations: 4.375 kB / 0.5069 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.3444, allocations: 0.8125 kB / 0.5069 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.545e-06/0.3445, allocations: 7.969 kB / 0.5069 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001464/0.3459, allocations: 1.179 MB / 0.5081 GB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3459, allocations: 6.688 kB / 0.5081 GB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001981/0.3461, allocations: 41.41 kB / 0.5081 GB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.3462, allocations: 4.406 kB / 0.5081 GB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.3462, allocations: 12.53 kB / 0.5082 GB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.097e-06/0.3462, allocations: 15.14 kB / 0.5082 GB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.3462, allocations: 7.984 kB / 0.5082 GB, free: 9.789 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007649/0.347, allocations: 0.5369 MB / 0.5087 GB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001144/0.3471, allocations: 131.3 kB / 0.5088 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.849e-05/0.3472, allocations: 15.5 kB / 0.5088 GB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/0.3474, allocations: 18.59 kB / 0.5089 GB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.3475, allocations: 32.83 kB / 0.5089 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.3475, allocations: 14.64 kB / 0.5089 GB, free: 9.395 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001918/0.3477, allocations: 179.9 kB / 0.5091 GB, free: 9.312 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3477, allocations: 0 / 0.5091 GB, free: 9.312 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004758/0.3482, allocations: 99.53 kB / 0.5092 GB, free: 9.293 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 0.0001249/0.3483, allocations: 118.9 kB / 0.5093 GB, free: 9.195 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000693/0.349, allocations: 327.5 kB / 0.5096 GB, free: 9.172 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.349, allocations: 5.25 kB / 0.5096 GB, free: 9.168 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002626/0.3493, allocations: 135.3 kB / 0.5097 GB, free: 9.156 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000556/0.3499, allocations: 87.44 kB / 0.5098 GB, free: 9.152 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.351, allocations: 0.7627 MB / 0.5106 GB, free: 8.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.3513, allocations: 0.7955 MB / 0.5113 GB, free: 7.973 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.3514, allocations: 34.06 kB / 0.5114 GB, free: 7.965 MB / 382.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3514, allocations: 0 / 0.5114 GB, free: 7.965 MB / 382.1 MB Notification: Performance of Templates: time 0.008015/0.3594, allocations: 4.326 MB / 0.5156 GB, free: 7.578 MB / 382.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)