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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 102.8 kB / 16.4 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001896/0.001896, allocations: 199.8 kB / 19.35 MB, free: 3.73 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 222.9 MB / 245 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1781/0.1781, allocations: 31.14 MB / 328.3 MB, free: 13.96 MB / 270.1 MB " [Timeout remaining time 180] 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=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 63.89 kB / 455.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1232, allocations: 56.36 MB / 0.4997 GB, free: 7.055 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.009061/0.1323, allocations: 6.793 MB / 0.5064 GB, free: 240 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2548/0.3872, allocations: 0.9947 MB / 0.5073 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004686/0.3877, allocations: 22.19 kB / 0.5074 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003579/0.3881, allocations: 108.9 kB / 0.5075 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000214/0.3883, allocations: 69.8 kB / 0.5075 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005938/0.3889, allocations: 229.7 kB / 0.5078 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005792/0.3895, allocations: 0.5739 MB / 0.5083 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004093/0.3899, allocations: 303.9 kB / 0.5086 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002168/0.3902, allocations: 226.8 kB / 0.5088 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002271/0.3904, allocations: 240.9 kB / 0.5091 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.469e-05/0.3905, allocations: 56.72 kB / 0.5091 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.3906, allocations: 64.11 kB / 0.5092 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.3907, allocations: 131.2 kB / 0.5093 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000207/0.3909, allocations: 265.5 kB / 0.5095 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007153/0.3917, allocations: 0.5716 MB / 0.5101 GB, free: 7.355 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3917, allocations: 2 kB / 0.5101 GB, free: 7.355 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3917, allocations: 0 / 0.5101 GB, free: 7.355 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.3917, allocations: 0.7969 kB / 0.5101 GB, free: 7.355 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001255/0.393, allocations: 0.8048 MB / 0.5109 GB, free: 6.836 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.393, allocations: 14.39 kB / 0.5109 GB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003402/0.3934, allocations: 79.91 kB / 0.511 GB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005495/0.3939, allocations: 400.7 kB / 0.5114 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.068e-05/0.394, allocations: 53.25 kB / 0.5114 GB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.661e-05/0.3941, allocations: 56.47 kB / 0.5115 GB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008576/0.3949, allocations: 0.493 MB / 0.512 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.395, allocations: 7.125 kB / 0.512 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.108e-05/0.395, allocations: 21.16 kB / 0.512 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.395, allocations: 12.19 kB / 0.512 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006497/0.3957, allocations: 302.2 kB / 0.5123 GB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002165/0.3978, allocations: 1.867 MB / 0.5141 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006282/0.3985, allocations: 303.2 kB / 0.5144 GB, free: 5.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003091/0.3988, allocations: 177.5 kB / 0.5146 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.3988, allocations: 2.672 kB / 0.5146 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.3989, allocations: 47.2 kB / 0.5146 GB, free: 5.195 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.023e-06/0.3989, allocations: 1.062 kB / 0.5146 GB, free: 5.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.000907/0.3998, allocations: 389.6 kB / 0.515 GB, free: 5.129 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.098e-05/0.3999, allocations: 164.3 kB / 0.5151 GB, free: 4.938 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003724/0.4003, allocations: 321.7 kB / 0.5154 GB, free: 4.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.028e-05/0.4003, allocations: 37.92 kB / 0.5155 GB, free: 4.789 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000167/0.4005, allocations: 264.3 kB / 0.5157 GB, free: 4.633 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.022e-05/0.4006, allocations: 101.8 kB / 0.5158 GB, free: 4.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001619/0.4008, allocations: 105.7 kB / 0.5159 GB, free: 4.547 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.213e-05/0.4008, allocations: 347.7 kB / 0.5163 GB, free: 4.234 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003709/0.4012, allocations: 151.5 kB / 0.5164 GB, free: 4.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004058/0.4016, allocations: 258.8 kB / 0.5167 GB, free: 4.109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006008/0.4023, allocations: 376.7 kB / 0.517 GB, free: 3.969 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.4023, allocations: 1.344 kB / 0.517 GB, free: 3.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008317/0.4031, allocations: 477.2 kB / 0.5175 GB, free: 3.887 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.4031, allocations: 6.906 kB / 0.5175 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.4031, allocations: 7.25 kB / 0.5175 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.347e-05/0.4032, allocations: 11.34 kB / 0.5175 GB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002708/0.4035, allocations: 72.89 kB / 0.5176 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.4035, allocations: 10.41 kB / 0.5176 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.4038, allocations: 62.3 kB / 0.5176 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.646e-05/0.4038, allocations: 21.41 kB / 0.5177 GB, free: 3.836 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 (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.0001785/0.404, allocations: 193 kB / 0.5178 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.4041, allocations: 47.77 kB / 0.5179 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.828e-05/0.4042, allocations: 44.38 kB / 0.5179 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.4042, allocations: 4.75 kB / 0.5179 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.4042, allocations: 1.062 kB / 0.5179 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.4042, allocations: 1.594 kB / 0.5179 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/0.4057, allocations: 1.219 MB / 0.5191 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.4057, allocations: 2.688 kB / 0.5191 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002145/0.4059, allocations: 46.08 kB / 0.5192 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.4059, allocations: 3 kB / 0.5192 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.406, allocations: 15.62 kB / 0.5192 GB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.406, allocations: 3.812 kB / 0.5192 GB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.406, allocations: 7.312 kB / 0.5192 GB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007779/0.4068, allocations: 0.5497 MB / 0.5197 GB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.4069, allocations: 137.2 kB / 0.5199 GB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.763e-05/0.407, allocations: 17.08 kB / 0.5199 GB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.4072, allocations: 14.56 kB / 0.5199 GB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.431e-05/0.4072, allocations: 39.16 kB / 0.5199 GB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.4073, allocations: 13.75 kB / 0.5199 GB, free: 2.617 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001876/0.4075, allocations: 210.9 kB / 0.5201 GB, free: 2.539 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4075, allocations: 0 / 0.5201 GB, free: 2.539 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004265/0.4079, allocations: 109.3 kB / 0.5203 GB, free: 2.516 MB / 382.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 9.846e-05/0.408, allocations: 123.1 kB / 0.5204 GB, free: 2.418 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007615/0.4088, allocations: 356 kB / 0.5207 GB, free: 2.395 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4088, allocations: 5.312 kB / 0.5207 GB, free: 2.391 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003309/0.4091, allocations: 158.5 kB / 0.5209 GB, free: 2.375 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006158/0.4098, allocations: 100.4 kB / 0.521 GB, free: 2.367 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.411, allocations: 0.8232 MB / 0.5218 GB, free: 1.895 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.4113, allocations: 0.8223 MB / 0.5226 GB, free: 1.195 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002133/0.4115, allocations: 66.27 kB / 0.5226 GB, free: 1.184 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.198e-05/0.4116, allocations: 33.62 kB / 0.5227 GB, free: 1.176 MB / 382.1 MB Notification: Performance of SimCode: time 4e-07/0.4116, allocations: 0 / 0.5227 GB, free: 1.176 MB / 382.1 MB Notification: Performance of Templates: time 0.00984/0.4214, allocations: 4.385 MB / 0.5269 GB, free: 0.8633 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.966038575395942]