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.001081/0.001081, allocations: 116.2 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.001062/0.001062, 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.343/1.343, 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/package.mo): time 0.1589/0.1589, allocations: 31.13 MB / 322.3 MB, free: 64 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 71.88 kB / 447.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1252, allocations: 56.36 MB / 0.4919 GB, free: 9.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainIII): time 0.2428/0.368, allocations: 9.732 MB / 0.5014 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003487/0.3715, allocations: 1.713 MB / 0.5031 GB, free: 5.605 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000566/0.3721, allocations: 35.22 kB / 0.5031 GB, free: 5.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004421/0.3726, allocations: 208.3 kB / 0.5033 GB, free: 5.605 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003009/0.3729, allocations: 127.7 kB / 0.5034 GB, free: 5.605 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008491/0.3738, allocations: 431.2 kB / 0.5038 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009248/0.3747, allocations: 1.095 MB / 0.5049 GB, free: 5.484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008683/0.3756, allocations: 0.6541 MB / 0.5056 GB, free: 5.402 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004382/0.376, allocations: 440.4 kB / 0.506 GB, free: 5.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003971/0.3764, allocations: 454.3 kB / 0.5064 GB, free: 5.203 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001611/0.3766, allocations: 124 kB / 0.5065 GB, free: 5.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.3768, allocations: 131.5 kB / 0.5067 GB, free: 5.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002/0.377, allocations: 263.5 kB / 0.5069 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003466/0.3774, allocations: 0.4987 MB / 0.5074 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001122/0.3785, allocations: 1.177 MB / 0.5085 GB, free: 4.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.3785, allocations: 2.469 kB / 0.5085 GB, free: 4.812 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3785, allocations: 3.938 kB / 0.5085 GB, free: 4.809 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.526e-05/0.3786, allocations: 0 / 0.5085 GB, free: 4.809 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.001809/0.3804, allocations: 1.185 MB / 0.5097 GB, free: 4.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.3804, allocations: 10.06 kB / 0.5097 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005879/0.381, allocations: 150.8 kB / 0.5099 GB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00083/0.3819, allocations: 0.6011 MB / 0.5104 GB, free: 3.816 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.539e-05/0.3819, allocations: 92.08 kB / 0.5105 GB, free: 3.812 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.3821, allocations: 115.9 kB / 0.5106 GB, free: 3.809 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.3836, allocations: 0.9572 MB / 0.5116 GB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.3836, allocations: 5.344 kB / 0.5116 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.271e-05/0.3837, allocations: 42.28 kB / 0.5116 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.424e-05/0.3838, allocations: 25.78 kB / 0.5117 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009824/0.3847, allocations: 0.554 MB / 0.5122 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003806/0.3886, allocations: 3.439 MB / 0.5155 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008315/0.3894, allocations: 0.5944 MB / 0.5161 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004603/0.3899, allocations: 331.8 kB / 0.5164 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.3899, allocations: 6 kB / 0.5165 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.3899, allocations: 50.16 kB / 0.5165 GB, free: 1.332 MB / 382.1 MB Notification: Performance of pre-optimization done (n=62): time 1.994e-06/0.39, allocations: 0 / 0.5165 GB, free: 1.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=62): time 0.0009956/0.391, allocations: 0.5957 MB / 0.5171 GB, free: 1.074 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.977e-05/0.391, allocations: 316.8 kB / 0.5174 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004907/0.3915, allocations: 489.2 kB / 0.5179 GB, free: 464 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.438e-05/0.3916, allocations: 55.19 kB / 0.5179 GB, free: 416 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.3918, allocations: 433.8 kB / 0.5183 GB, free: 76 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.392, allocations: 188 kB / 0.5185 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002792/0.3923, allocations: 185.4 kB / 0.5187 GB, free: 15.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.3925, allocations: 375.1 kB / 0.519 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004755/0.3929, allocations: 245 kB / 0.5193 GB, free: 15.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006508/0.3936, allocations: 479 kB / 0.5197 GB, free: 15.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008317/0.3945, allocations: 0.6 MB / 0.5203 GB, free: 14.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.3945, allocations: 2.5 kB / 0.5203 GB, free: 14.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001317/0.3958, allocations: 0.7837 MB / 0.5211 GB, free: 14.28 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.293e-05/0.3958, allocations: 7.531 kB / 0.5211 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.3958, allocations: 5.656 kB / 0.5211 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/0.3959, allocations: 11.66 kB / 0.5211 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003958/0.3963, allocations: 115.1 kB / 0.5212 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.594e-05/0.3963, allocations: 16.41 kB / 0.5212 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004446/0.3968, allocations: 106.4 kB / 0.5213 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-05/0.3968, allocations: 36.7 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.0003553/0.3972, allocations: 286.2 kB / 0.5216 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001646/0.3974, allocations: 57.11 kB / 0.5217 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001712/0.3975, allocations: 69.8 kB / 0.5218 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.3976, allocations: 8.406 kB / 0.5218 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.3976, allocations: 1.719 kB / 0.5218 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002129/0.3978, allocations: 183.9 kB / 0.5219 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.624e-05/0.3979, allocations: 19.5 kB / 0.522 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004023/0.3983, allocations: 22.53 kB / 0.522 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.3984, allocations: 52.58 kB / 0.522 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001234/0.3997, allocations: 0.8848 MB / 0.5229 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00139/0.4011, allocations: 1.158 MB / 0.524 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000408/0.4015, allocations: 244.5 kB / 0.5243 GB, free: 12.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003955/0.4019, allocations: 310.5 kB / 0.5246 GB, free: 12.08 MB / 398.1 MB Notification: Performance of Backend: time 5.61e-07/0.4019, allocations: 0 / 0.5246 GB, free: 12.08 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.4034, allocations: 0.5218 MB / 0.5251 GB, free: 11.86 MB / 398.1 MB Notification: Performance of SimCode: time 0.002654/0.406, allocations: 1.755 MB / 0.5268 GB, free: 10.66 MB / 398.1 MB Notification: Performance of Templates: time 0.0159/0.4219, allocations: 9.18 MB / 0.5357 GB, free: 6.996 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)