Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainIII.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.SimpleProductionChainIII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainIII") translateModel(BusinessSimulation.Examples.SimpleProductionChainIII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainIII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 114.4 kB / 16.42 MB, free: 6.5 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.001126/0.001126, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1683/0.1683, allocations: 31.18 MB / 322.4 MB, free: 204 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 63.91 kB / 447.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0949/0.09613, allocations: 56.36 MB / 0.4919 GB, free: 9.391 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainIII): time 0.1881/0.2843, allocations: 9.733 MB / 0.5015 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002983/0.2873, allocations: 1.709 MB / 0.5031 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000441/0.2878, allocations: 38.59 kB / 0.5032 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003997/0.2882, allocations: 208.5 kB / 0.5034 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002822/0.2885, allocations: 124.2 kB / 0.5035 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007118/0.2892, allocations: 428 kB / 0.5039 GB, free: 5.555 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008153/0.2901, allocations: 1.089 MB / 0.5049 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000746/0.2908, allocations: 0.6553 MB / 0.5056 GB, free: 5.375 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003455/0.2912, allocations: 441.3 kB / 0.506 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003396/0.2915, allocations: 453.8 kB / 0.5064 GB, free: 5.172 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000142/0.2917, allocations: 124 kB / 0.5066 GB, free: 5.172 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001751/0.2918, allocations: 137.5 kB / 0.5067 GB, free: 5.172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001671/0.292, allocations: 259.2 kB / 0.5069 GB, free: 5.133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003053/0.2923, allocations: 0.5063 MB / 0.5074 GB, free: 4.977 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009101/0.2932, allocations: 1.174 MB / 0.5086 GB, free: 4.781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2933, allocations: 2.672 kB / 0.5086 GB, free: 4.781 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2933, allocations: 3.938 kB / 0.5086 GB, free: 4.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.2933, allocations: 0 / 0.5086 GB, free: 4.777 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001673/0.295, allocations: 1.189 MB / 0.5097 GB, free: 4.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.295, allocations: 8.906 kB / 0.5098 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005907/0.2956, allocations: 150.4 kB / 0.5099 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007753/0.2964, allocations: 0.5975 MB / 0.5105 GB, free: 3.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.443e-05/0.2965, allocations: 98.05 kB / 0.5106 GB, free: 3.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.2966, allocations: 115.5 kB / 0.5107 GB, free: 3.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.298, allocations: 0.9587 MB / 0.5116 GB, free: 3.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.2981, allocations: 5.312 kB / 0.5116 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.057e-05/0.2981, allocations: 39.78 kB / 0.5117 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-05/0.2982, allocations: 25.97 kB / 0.5117 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009786/0.2991, allocations: 0.5553 MB / 0.5122 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003634/0.3028, allocations: 3.441 MB / 0.5156 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007972/0.3036, allocations: 0.5922 MB / 0.5162 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004351/0.304, allocations: 318.8 kB / 0.5165 GB, free: 1.395 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/0.3041, allocations: 12.11 kB / 0.5165 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.936e-05/0.3041, allocations: 51.44 kB / 0.5165 GB, free: 1.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=62): time 2.054e-06/0.3041, allocations: 1.125 kB / 0.5165 GB, free: 1.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=62): time 0.0009672/0.3051, allocations: 0.586 MB / 0.5171 GB, free: 1.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.3051, allocations: 321.9 kB / 0.5174 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004825/0.3056, allocations: 492.6 kB / 0.5179 GB, free: 472 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.04e-05/0.3057, allocations: 55.86 kB / 0.5179 GB, free: 424 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.3059, allocations: 433 kB / 0.5183 GB, free: 84 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.3061, allocations: 187.6 kB / 0.5185 GB, free: 15.94 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002425/0.3063, allocations: 184.5 kB / 0.5187 GB, free: 15.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3065, allocations: 375.8 kB / 0.5191 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004957/0.307, allocations: 241 kB / 0.5193 GB, free: 15.42 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000619/0.3076, allocations: 477.5 kB / 0.5197 GB, free: 15.06 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008171/0.3085, allocations: 0.6057 MB / 0.5203 GB, free: 14.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.3085, allocations: 4.906 kB / 0.5203 GB, free: 14.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001286/0.3098, allocations: 0.7762 MB / 0.5211 GB, free: 14.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.3098, allocations: 7.672 kB / 0.5211 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.3098, allocations: 6.531 kB / 0.5211 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.3098, allocations: 10.97 kB / 0.5211 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004097/0.3102, allocations: 125 kB / 0.5212 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/0.3103, allocations: 14.98 kB / 0.5213 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00046/0.3107, allocations: 106.7 kB / 0.5214 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-05/0.3108, allocations: 37.86 kB / 0.5214 GB, free: 14.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 68 ($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,$PRE.potCustomers.inflow.stopInflow,$PRE.potCustomers.outflow.stopInflow,$PRE.customers.inflow.stopInflow,$PRE.customers.outflow.stopInflow,customers.outflow.stopInflow,potCustomers.inflow.stopInflow,cloud1.massPort.stopOutflow,cloud1.massPort.stopInflow,customers.inflow.stopInflow,installedBase.inflow.stopInflow,producing.cloud.massPort.stopOutflow,inventory.inflow.stopInflow,potCustomers.outflow.stopInflow,installedBase.inflow.stopOutflow,producing.cloud.massPort.stopInflow,inventory.outflow.stopInflow,shipping.portA.stopInflow,producing.growing.portA.stopInflow,shipping.portB.stopOutflow,wordOfMouth.adopting.flowing.portA.stopInflow,wordOfMouth.converting.portA.stopInflow,customers.outflow.stopOutflow,$PRE.customers.outflow.stopOutflow,customers.inflow.stopOutflow,$PRE.customers.inflow.stopOutflow,wordOfMouth.adopting.flowing.useB_rate,$PRE.wordOfMouth.adopting.flowing.useB_rate,wordOfMouth.adopting.flowing.useA_rate,$PRE.wordOfMouth.adopting.flowing.useA_rate,wordOfMouth.adopting.flowing.portB.stopOutflow,wordOfMouth.adopting.flowing.portB.stopInflow,wordOfMouth.adopting.flowing.portA.stopOutflow,wordOfMouth.converting.useB_rate,$PRE.wordOfMouth.converting.useB_rate,wordOfMouth.converting.useA_rate,$PRE.wordOfMouth.converting.useA_rate,wordOfMouth.converting.portB.stopOutflow,wordOfMouth.converting.portB.stopInflow,wordOfMouth.converting.portA.stopOutflow,potCustomers.outflow.stopOutflow,$PRE.potCustomers.outflow.stopOutflow,potCustomers.inflow.stopOutflow,$PRE.potCustomers.inflow.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 (118): * Single equations (assignments): 118 * 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.0003539/0.3112, allocations: 283.4 kB / 0.5217 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.3113, allocations: 56.66 kB / 0.5217 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001448/0.3115, allocations: 78.83 kB / 0.5218 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.3115, allocations: 8.031 kB / 0.5218 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3115, allocations: 1.703 kB / 0.5218 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002141/0.3117, allocations: 179.9 kB / 0.522 GB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.365e-05/0.3118, allocations: 14.92 kB / 0.522 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004084/0.3122, allocations: 22.27 kB / 0.522 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.3123, allocations: 52.97 kB / 0.5221 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001195/0.3136, allocations: 0.8865 MB / 0.5229 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001218/0.3148, allocations: 1.154 MB / 0.5241 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003626/0.3152, allocations: 244.9 kB / 0.5243 GB, free: 12.24 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003708/0.3155, allocations: 315.3 kB / 0.5246 GB, free: 12.09 MB / 398.1 MB Notification: Performance of Backend: time 5.91e-07/0.3155, allocations: 0 / 0.5246 GB, free: 12.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.317, allocations: 0.5216 MB / 0.5251 GB, free: 11.87 MB / 398.1 MB Notification: Performance of SimCode: time 0.002462/0.3195, allocations: 1.756 MB / 0.5268 GB, free: 10.68 MB / 398.1 MB Notification: Performance of Templates: time 0.0169/0.3364, allocations: 9.188 MB / 0.5358 GB, free: 7.004 MB / 398.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainIII.makefile (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainIII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainIII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainIII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainIII.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainIII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainIII.pipe 2>&1)