Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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-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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 115.9 kB / 16.42 MB, free: 6.465 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.001007/0.001007, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.278/1.278, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1664/0.1664, allocations: 31.17 MB / 322.4 MB, free: 196 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 64.05 kB / 447.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08487/0.08612, allocations: 56.35 MB / 0.4919 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007109/0.09324, allocations: 6.796 MB / 0.4986 GB, free: 2.555 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001955/0.09521, allocations: 0.9972 MB / 0.4996 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004237/0.09565, allocations: 23.88 kB / 0.4996 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003085/0.09596, allocations: 107 kB / 0.4997 GB, free: 1.426 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000239/0.09622, allocations: 79.25 kB / 0.4998 GB, free: 1.348 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000671/0.0969, allocations: 227.5 kB / 0.5 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005377/0.09745, allocations: 0.5697 MB / 0.5005 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000421/0.09788, allocations: 313.4 kB / 0.5008 GB, free: 244 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000251/0.09814, allocations: 227.1 kB / 0.501 GB, free: 16 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.177/0.2752, allocations: 239.1 kB / 0.5013 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001608/0.2754, allocations: 56.5 kB / 0.5013 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.2756, allocations: 66.41 kB / 0.5014 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.2757, allocations: 130 kB / 0.5015 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002526/0.276, allocations: 265.5 kB / 0.5018 GB, free: 6.613 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005795/0.2765, allocations: 0.5739 MB / 0.5023 GB, free: 6.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.2766, allocations: 0 / 0.5023 GB, free: 6.535 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2766, allocations: 0 / 0.5023 GB, free: 6.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.131e-05/0.2766, allocations: 1.781 kB / 0.5023 GB, free: 6.535 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.001244/0.2778, allocations: 0.779 MB / 0.5031 GB, free: 6.039 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.2779, allocations: 12.77 kB / 0.5031 GB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003425/0.2782, allocations: 79.17 kB / 0.5032 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005262/0.2788, allocations: 399.4 kB / 0.5036 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.518e-05/0.2788, allocations: 46.31 kB / 0.5036 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.93e-05/0.2789, allocations: 59.97 kB / 0.5037 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007915/0.2797, allocations: 0.4951 MB / 0.5041 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.2797, allocations: 1.188 kB / 0.5041 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.2798, allocations: 19.84 kB / 0.5042 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.2798, allocations: 12.5 kB / 0.5042 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006525/0.2805, allocations: 310.2 kB / 0.5045 GB, free: 5.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.2826, allocations: 1.859 MB / 0.5063 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006075/0.2832, allocations: 312.2 kB / 0.5066 GB, free: 4.559 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.2835, allocations: 178.8 kB / 0.5068 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.2835, allocations: 4.266 kB / 0.5068 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.2835, allocations: 42.95 kB / 0.5068 GB, free: 4.488 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.653e-06/0.2836, allocations: 0.6562 kB / 0.5068 GB, free: 4.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008579/0.2844, allocations: 390.5 kB / 0.5072 GB, free: 4.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.2845, allocations: 165.2 kB / 0.5073 GB, free: 4.234 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003182/0.2848, allocations: 312.2 kB / 0.5076 GB, free: 4.121 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.2848, allocations: 39.98 kB / 0.5077 GB, free: 4.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.285, allocations: 262.1 kB / 0.5079 GB, free: 3.934 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.582e-05/0.2851, allocations: 98.2 kB / 0.508 GB, free: 3.871 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.2852, allocations: 98.09 kB / 0.5081 GB, free: 3.852 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.239e-05/0.2853, allocations: 351.4 kB / 0.5084 GB, free: 3.539 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003344/0.2856, allocations: 142.4 kB / 0.5086 GB, free: 3.539 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003755/0.286, allocations: 258.4 kB / 0.5088 GB, free: 3.418 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000585/0.2866, allocations: 368.3 kB / 0.5092 GB, free: 3.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.2866, allocations: 1.219 kB / 0.5092 GB, free: 3.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008649/0.2875, allocations: 475.8 kB / 0.5096 GB, free: 3.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.2875, allocations: 9.547 kB / 0.5096 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.2875, allocations: 6.344 kB / 0.5096 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.2875, allocations: 10.72 kB / 0.5097 GB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002803/0.2878, allocations: 68.3 kB / 0.5097 GB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.2878, allocations: 7.031 kB / 0.5097 GB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.2881, allocations: 64.89 kB / 0.5098 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.302e-05/0.2882, allocations: 19.55 kB / 0.5098 GB, free: 3.195 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.000185/0.2884, allocations: 198.4 kB / 0.51 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.2885, allocations: 37.92 kB / 0.51 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.222e-05/0.2886, allocations: 43.91 kB / 0.5101 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.2886, allocations: 3.062 kB / 0.5101 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.2886, allocations: 1.344 kB / 0.5101 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001106/0.2887, allocations: 135.3 kB / 0.5102 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.03e-05/0.2888, allocations: 17.08 kB / 0.5102 GB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.2891, allocations: 24.19 kB / 0.5102 GB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.069e-05/0.2891, allocations: 25.16 kB / 0.5103 GB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008453/0.29, allocations: 0.6365 MB / 0.5109 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008672/0.2909, allocations: 0.8284 MB / 0.5117 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002625/0.2911, allocations: 145.5 kB / 0.5118 GB, free: 2.113 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000199/0.2914, allocations: 211 kB / 0.512 GB, free: 2.035 MB / 382.1 MB Notification: Performance of Backend: time 4.61e-07/0.2914, allocations: 0 / 0.512 GB, free: 2.035 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.2924, allocations: 338.3 kB / 0.5124 GB, free: 1.961 MB / 382.1 MB Notification: Performance of SimCode: time 0.001247/0.2936, allocations: 1.208 MB / 0.5135 GB, free: 1.109 MB / 382.1 MB Notification: Performance of Templates: time 0.0102/0.3039, allocations: 5.011 MB / 0.5184 GB, free: 0.793 MB / 382.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)