Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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/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.SimpleProductionChainIII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainIII") translateModel(BusinessSimulation.Examples.SimpleProductionChainIII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainIII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 114.9 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.001187/0.001187, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.317/1.317, allocations: 222.9 MB / 241.1 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1648/0.1648, allocations: 31.14 MB / 322.3 MB, free: 80 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 67.84 kB / 447.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.1008, allocations: 56.36 MB / 0.4919 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainIII): time 0.2076/0.3085, allocations: 9.731 MB / 0.5014 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003295/0.3118, allocations: 1.703 MB / 0.5031 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006482/0.3125, allocations: 38.94 kB / 0.5031 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000446/0.313, allocations: 208.6 kB / 0.5033 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003016/0.3133, allocations: 131.3 kB / 0.5034 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008066/0.3141, allocations: 428.2 kB / 0.5039 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008977/0.315, allocations: 1.088 MB / 0.5049 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007698/0.3158, allocations: 0.6482 MB / 0.5055 GB, free: 5.418 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003784/0.3162, allocations: 438.5 kB / 0.506 GB, free: 5.336 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003691/0.3165, allocations: 461.1 kB / 0.5064 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001462/0.3167, allocations: 122.7 kB / 0.5065 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001842/0.3169, allocations: 135.3 kB / 0.5066 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001823/0.3171, allocations: 263.6 kB / 0.5069 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000318/0.3174, allocations: 0.4984 MB / 0.5074 GB, free: 5.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001087/0.3185, allocations: 1.186 MB / 0.5085 GB, free: 4.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.3185, allocations: 0 / 0.5085 GB, free: 4.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3185, allocations: 1.312 kB / 0.5085 GB, free: 4.824 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.642e-05/0.3185, allocations: 3.625 kB / 0.5086 GB, free: 4.824 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.001689/0.3202, allocations: 1.215 MB / 0.5097 GB, free: 4.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.3203, allocations: 9.5 kB / 0.5097 GB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005611/0.3209, allocations: 157.3 kB / 0.5099 GB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007797/0.3216, allocations: 0.6123 MB / 0.5105 GB, free: 3.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.189e-05/0.3217, allocations: 89.3 kB / 0.5106 GB, free: 3.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.3219, allocations: 115.9 kB / 0.5107 GB, free: 3.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.3233, allocations: 0.9593 MB / 0.5116 GB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.432e-05/0.3233, allocations: 1.031 kB / 0.5116 GB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.872e-05/0.3234, allocations: 44.91 kB / 0.5117 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.229e-05/0.3234, allocations: 26.47 kB / 0.5117 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000967/0.3244, allocations: 0.5546 MB / 0.5122 GB, free: 3.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00375/0.3282, allocations: 3.452 MB / 0.5156 GB, free: 1.871 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008324/0.329, allocations: 0.5922 MB / 0.5162 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000442/0.3295, allocations: 320.5 kB / 0.5165 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.538e-05/0.3295, allocations: 15.06 kB / 0.5165 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.3295, allocations: 46.08 kB / 0.5166 GB, free: 1.281 MB / 382.1 MB Notification: Performance of pre-optimization done (n=62): time 2.174e-06/0.3295, allocations: 7.938 kB / 0.5166 GB, free: 1.273 MB / 382.1 MB Notification: Performance of matching and sorting (n=62): time 0.001016/0.3306, allocations: 0.5916 MB / 0.5171 GB, free: 1.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.75e-05/0.3306, allocations: 322.4 kB / 0.5174 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004922/0.3311, allocations: 480.7 kB / 0.5179 GB, free: 412 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.062e-05/0.3312, allocations: 58.06 kB / 0.518 GB, free: 360 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/0.3314, allocations: 447 kB / 0.5184 GB, free: 8 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001823/0.3316, allocations: 195.7 kB / 0.5186 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002724/0.3319, allocations: 190.5 kB / 0.5188 GB, free: 15.76 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.3321, allocations: 374.6 kB / 0.5191 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004976/0.3326, allocations: 237.3 kB / 0.5193 GB, free: 15.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006457/0.3333, allocations: 473.1 kB / 0.5198 GB, free: 14.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008339/0.3341, allocations: 0.6124 MB / 0.5204 GB, free: 14.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.3341, allocations: 0 / 0.5204 GB, free: 14.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001298/0.3354, allocations: 0.7841 MB / 0.5211 GB, free: 14.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3355, allocations: 7.344 kB / 0.5212 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.3355, allocations: 5.953 kB / 0.5212 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.3355, allocations: 10.06 kB / 0.5212 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003997/0.3359, allocations: 112.6 kB / 0.5213 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.993e-05/0.3359, allocations: 17.95 kB / 0.5213 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004339/0.3364, allocations: 111.5 kB / 0.5214 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.103e-05/0.3364, allocations: 36.45 kB / 0.5214 GB, free: 14.11 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.0003562/0.3368, allocations: 280.9 kB / 0.5217 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.337, allocations: 65.69 kB / 0.5218 GB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001432/0.3371, allocations: 71.25 kB / 0.5218 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.3371, allocations: 8.734 kB / 0.5218 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.3371, allocations: 1.312 kB / 0.5218 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000206/0.3374, allocations: 187.3 kB / 0.522 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.058e-05/0.3374, allocations: 19.92 kB / 0.522 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000376/0.3378, allocations: 30.77 kB / 0.5221 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.338, allocations: 48.17 kB / 0.5221 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001248/0.3392, allocations: 0.8849 MB / 0.523 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001321/0.3406, allocations: 1.16 MB / 0.5241 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000407/0.341, allocations: 240.8 kB / 0.5243 GB, free: 12.15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004178/0.3414, allocations: 313.9 kB / 0.5246 GB, free: 12 MB / 398.1 MB Notification: Performance of Backend: time 4.71e-07/0.3414, allocations: 0 / 0.5246 GB, free: 12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.343, allocations: 0.5275 MB / 0.5252 GB, free: 11.77 MB / 398.1 MB Notification: Performance of SimCode: time 0.002688/0.3457, allocations: 1.767 MB / 0.5269 GB, free: 10.56 MB / 398.1 MB Notification: Performance of Templates: time 0.01874/0.3644, allocations: 9.183 MB / 0.5359 GB, free: 6.906 MB / 398.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainIII.makefile (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainIII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainIII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainIII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainIII.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainIII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainIII.pipe 2>&1)