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) 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/package.mo", uses=false) 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=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 109.5 kB / 16.41 MB, free: 5.996 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.001564/0.001564, allocations: 188.9 kB / 17.35 MB, free: 5.582 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.348/1.348, 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/package.mo): time 0.2481/0.2481, allocations: 31.13 MB / 322.3 MB, free: 48 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 63.89 kB / 447.4 MB, free: 1.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.099/0.1002, allocations: 56.36 MB / 0.4919 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008044/0.1083, allocations: 6.793 MB / 0.4985 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003186/0.1115, allocations: 1.005 MB / 0.4995 GB, free: 1.488 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009211/0.1124, allocations: 23.88 kB / 0.4995 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005216/0.113, allocations: 99.06 kB / 0.4996 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004952/0.1135, allocations: 79.25 kB / 0.4997 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000819/0.1144, allocations: 227.5 kB / 0.4999 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009213/0.1153, allocations: 0.5697 MB / 0.5005 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005658/0.1159, allocations: 313.3 kB / 0.5008 GB, free: 184 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2351/0.351, allocations: 224.4 kB / 0.501 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004963/0.3515, allocations: 244 kB / 0.5012 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001372/0.3517, allocations: 56.5 kB / 0.5013 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001454/0.3518, allocations: 66.5 kB / 0.5014 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.352, allocations: 127.1 kB / 0.5015 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002562/0.3522, allocations: 263.1 kB / 0.5017 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007184/0.353, allocations: 0.5756 MB / 0.5023 GB, free: 6.145 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.353, allocations: 1.375 kB / 0.5023 GB, free: 6.145 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.353, allocations: 0.9688 kB / 0.5023 GB, free: 6.145 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.531e-05/0.353, allocations: 0 / 0.5023 GB, free: 6.145 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.00121/0.3542, allocations: 0.8015 MB / 0.5031 GB, free: 5.625 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.3543, allocations: 12.56 kB / 0.5031 GB, free: 5.621 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003102/0.3546, allocations: 81.58 kB / 0.5032 GB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005216/0.3551, allocations: 403.3 kB / 0.5035 GB, free: 5.352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.936e-05/0.3552, allocations: 45.91 kB / 0.5036 GB, free: 5.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.865e-05/0.3553, allocations: 62.14 kB / 0.5036 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008173/0.3561, allocations: 0.498 MB / 0.5041 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.3561, allocations: 4.906 kB / 0.5041 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.904e-05/0.3562, allocations: 19.81 kB / 0.5042 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.3562, allocations: 11.81 kB / 0.5042 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006875/0.3569, allocations: 310.3 kB / 0.5045 GB, free: 5.234 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002092/0.359, allocations: 1.853 MB / 0.5063 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006336/0.3596, allocations: 309 kB / 0.5066 GB, free: 4.137 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002938/0.36, allocations: 177.1 kB / 0.5067 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.141e-05/0.36, allocations: 9.391 kB / 0.5067 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.36, allocations: 39.25 kB / 0.5068 GB, free: 4.066 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.36, allocations: 4 kB / 0.5068 GB, free: 4.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008847/0.3609, allocations: 387.2 kB / 0.5072 GB, free: 4.004 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.361, allocations: 160.1 kB / 0.5073 GB, free: 3.816 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.3613, allocations: 320.1 kB / 0.5076 GB, free: 3.695 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.958e-05/0.3614, allocations: 43.84 kB / 0.5077 GB, free: 3.664 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.3615, allocations: 268 kB / 0.5079 GB, free: 3.504 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.07e-05/0.3616, allocations: 101.7 kB / 0.508 GB, free: 3.441 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001447/0.3617, allocations: 105.5 kB / 0.5081 GB, free: 3.418 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.28e-05/0.3618, allocations: 346 kB / 0.5084 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003531/0.3622, allocations: 144.2 kB / 0.5086 GB, free: 3.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003858/0.3626, allocations: 266 kB / 0.5088 GB, free: 2.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005963/0.3632, allocations: 365.1 kB / 0.5092 GB, free: 2.859 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3632, allocations: 0 / 0.5092 GB, free: 2.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008943/0.3641, allocations: 478.7 kB / 0.5096 GB, free: 2.793 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.3641, allocations: 7.672 kB / 0.5096 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.3642, allocations: 3 kB / 0.5096 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.3642, allocations: 13.59 kB / 0.5097 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002852/0.3645, allocations: 64.64 kB / 0.5097 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.3645, allocations: 11.05 kB / 0.5097 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002846/0.3648, allocations: 65.36 kB / 0.5098 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.482e-05/0.3648, allocations: 20.03 kB / 0.5098 GB, free: 2.758 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.0001747/0.365, allocations: 201.2 kB / 0.51 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.3651, allocations: 34.12 kB / 0.51 GB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.66e-05/0.3652, allocations: 44.05 kB / 0.5101 GB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3652, allocations: 2.766 kB / 0.5101 GB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3652, allocations: 1.062 kB / 0.5101 GB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.3653, allocations: 141.1 kB / 0.5102 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.916e-05/0.3654, allocations: 12.44 kB / 0.5102 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002854/0.3657, allocations: 16.06 kB / 0.5102 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.504e-05/0.3658, allocations: 26.5 kB / 0.5103 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008836/0.3667, allocations: 0.6425 MB / 0.5109 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009069/0.3676, allocations: 0.8249 MB / 0.5117 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002817/0.3679, allocations: 147.2 kB / 0.5118 GB, free: 1.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002167/0.3681, allocations: 210.3 kB / 0.512 GB, free: 1.602 MB / 382.1 MB Notification: Performance of Backend: time 3.5e-07/0.3681, allocations: 4 kB / 0.512 GB, free: 1.598 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.3692, allocations: 334.2 kB / 0.5124 GB, free: 1.523 MB / 382.1 MB Notification: Performance of SimCode: time 0.00138/0.3706, allocations: 1.216 MB / 0.5136 GB, free: 16.66 MB / 398.1 MB Notification: Performance of Templates: time 0.01203/0.3826, allocations: 5.017 MB / 0.5185 GB, free: 16.34 MB / 398.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.makefile (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)