Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.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.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 112.9 kB / 16.42 MB, free: 6.52 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.001895/0.001895, allocations: 186.7 kB / 17.35 MB, free: 5.734 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.451/1.451, 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.2411/0.2411, allocations: 31.13 MB / 322.3 MB, free: 40 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 63.89 kB / 447.5 MB, free: 1.469 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1084, allocations: 56.36 MB / 0.4921 GB, free: 9.129 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006961/0.1154, allocations: 5.394 MB / 0.4973 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.1167, allocations: 0.6112 MB / 0.4979 GB, free: 3.094 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001967/0.117, allocations: 8 kB / 0.4979 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002698/0.1172, allocations: 79.27 kB / 0.498 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002103/0.1175, allocations: 75.36 kB / 0.4981 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005761/0.1181, allocations: 183.5 kB / 0.4983 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005345/0.1186, allocations: 463.1 kB / 0.4987 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000376/0.119, allocations: 234.1 kB / 0.4989 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002341/0.1192, allocations: 195.3 kB / 0.4991 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002638/0.1195, allocations: 195.1 kB / 0.4993 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.905e-05/0.1196, allocations: 44 kB / 0.4993 GB, free: 1.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.1197, allocations: 56 kB / 0.4994 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.1198, allocations: 111.6 kB / 0.4995 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002065/0.12, allocations: 206.9 kB / 0.4997 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005591/0.1206, allocations: 462.1 kB / 0.5001 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1206, allocations: 0 / 0.5001 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1206, allocations: 0 / 0.5001 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.1206, allocations: 0 / 0.5001 GB, free: 0.8164 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001222/0.1219, allocations: 0.7055 MB / 0.5008 GB, free: 64 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.1219, allocations: 8.031 kB / 0.5008 GB, free: 56 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2077/0.3296, allocations: 67.7 kB / 0.5009 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005369/0.3302, allocations: 329.5 kB / 0.5012 GB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.613e-05/0.3303, allocations: 37.25 kB / 0.5013 GB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.102e-05/0.3304, allocations: 46.53 kB / 0.5013 GB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007353/0.3311, allocations: 418 kB / 0.5017 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.3311, allocations: 5.156 kB / 0.5017 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.449e-05/0.3312, allocations: 20.78 kB / 0.5017 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.3312, allocations: 10.72 kB / 0.5017 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005264/0.3317, allocations: 253.3 kB / 0.502 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.3335, allocations: 1.651 MB / 0.5036 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005168/0.334, allocations: 254.6 kB / 0.5038 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/0.3343, allocations: 157.8 kB / 0.504 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.3343, allocations: 10.97 kB / 0.504 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.3344, allocations: 41.16 kB / 0.504 GB, free: 11.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.445e-06/0.3344, allocations: 0 / 0.504 GB, free: 11.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007844/0.3351, allocations: 350.1 kB / 0.5044 GB, free: 11.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.979e-05/0.3352, allocations: 163.5 kB / 0.5045 GB, free: 11.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002512/0.3355, allocations: 262.4 kB / 0.5048 GB, free: 11.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/0.3355, allocations: 42.33 kB / 0.5048 GB, free: 11.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.3356, allocations: 221.2 kB / 0.505 GB, free: 11.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.275e-05/0.3357, allocations: 92.14 kB / 0.5051 GB, free: 11.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.3358, allocations: 98.81 kB / 0.5052 GB, free: 11.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.671e-05/0.3359, allocations: 350.5 kB / 0.5055 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003196/0.3362, allocations: 138.4 kB / 0.5057 GB, free: 10.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003437/0.3366, allocations: 250.9 kB / 0.5059 GB, free: 10.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005075/0.3371, allocations: 349.8 kB / 0.5062 GB, free: 10.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3371, allocations: 0.9375 kB / 0.5062 GB, free: 10.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007897/0.3379, allocations: 455 kB / 0.5067 GB, free: 10.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.3379, allocations: 6.875 kB / 0.5067 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.3379, allocations: 3.281 kB / 0.5067 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.3379, allocations: 6.109 kB / 0.5067 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002516/0.3382, allocations: 67.09 kB / 0.5068 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.3382, allocations: 7.078 kB / 0.5068 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.3385, allocations: 59.25 kB / 0.5068 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-05/0.3385, allocations: 19.67 kB / 0.5068 GB, free: 10.47 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 (60): * Single equations (assignments): 60 * 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.0001817/0.3387, allocations: 190.7 kB / 0.507 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.3388, allocations: 29.72 kB / 0.5071 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.756e-05/0.3389, allocations: 34.64 kB / 0.5071 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3389, allocations: 3.469 kB / 0.5071 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3389, allocations: 5.406 kB / 0.5071 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.452e-05/0.339, allocations: 125.8 kB / 0.5072 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.103e-05/0.3391, allocations: 8.766 kB / 0.5072 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002768/0.3393, allocations: 28.25 kB / 0.5072 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.323e-05/0.3394, allocations: 25.97 kB / 0.5073 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008008/0.3403, allocations: 0.6072 MB / 0.5079 GB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007614/0.341, allocations: 0.7828 MB / 0.5086 GB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002401/0.3413, allocations: 124.6 kB / 0.5087 GB, free: 9.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001628/0.3414, allocations: 184.6 kB / 0.5089 GB, free: 9.324 MB / 382.1 MB Notification: Performance of Backend: time 3.91e-07/0.3415, allocations: 1.062 kB / 0.5089 GB, free: 9.324 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.3425, allocations: 320.7 kB / 0.5092 GB, free: 9.238 MB / 382.1 MB Notification: Performance of SimCode: time 0.00109/0.3436, allocations: 1.07 MB / 0.5103 GB, free: 8.445 MB / 382.1 MB Notification: Performance of Templates: time 0.009594/0.3532, allocations: 4.384 MB / 0.5146 GB, free: 8.18 MB / 382.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.makefile (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)