Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.SIR.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.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009498/0.009498, allocations: 97.97 kB / 15.73 MB, free: 6.055 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.002022/0.002022, allocations: 191.2 kB / 16.67 MB, free: 5.973 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.416/1.416, allocations: 222.9 MB / 240.4 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.1704/0.1704, allocations: 31.12 MB / 321.7 MB, free: 60 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 67.91 kB / 446.7 MB, free: 1.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1308, allocations: 56.36 MB / 0.4913 GB, free: 9.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008282/0.1391, allocations: 7.248 MB / 0.4984 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002702/0.1419, allocations: 1.095 MB / 0.4994 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004211/0.1423, allocations: 23.88 kB / 0.4995 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004119/0.1427, allocations: 142.7 kB / 0.4996 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002437/0.143, allocations: 79.19 kB / 0.4997 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007757/0.1438, allocations: 291.4 kB / 0.4999 GB, free: 376 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3209/0.4647, allocations: 0.7215 MB / 0.5006 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001055/0.4659, allocations: 476.2 kB / 0.5011 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004567/0.4663, allocations: 293.2 kB / 0.5014 GB, free: 6.176 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000412/0.4667, allocations: 309.1 kB / 0.5017 GB, free: 6.102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001571/0.4669, allocations: 84.09 kB / 0.5018 GB, free: 6.102 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.4671, allocations: 96.05 kB / 0.5018 GB, free: 6.102 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001747/0.4673, allocations: 176.2 kB / 0.502 GB, free: 6.074 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003018/0.4676, allocations: 344.3 kB / 0.5023 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001136/0.4688, allocations: 0.7944 MB / 0.5031 GB, free: 5.852 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.4688, allocations: 1.344 kB / 0.5031 GB, free: 5.852 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.837e-06/0.4688, allocations: 0 / 0.5031 GB, free: 5.852 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.4688, allocations: 4.719 kB / 0.5031 GB, free: 5.848 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: 172 * Number of variables: 172 Notification: Performance of Generate backend data structure: time 0.001549/0.4704, allocations: 0.9166 MB / 0.504 GB, free: 5.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.4704, allocations: 8.938 kB / 0.504 GB, free: 5.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003739/0.4708, allocations: 96.03 kB / 0.5041 GB, free: 5.254 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006027/0.4714, allocations: 456.9 kB / 0.5046 GB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.85e-05/0.4715, allocations: 64.19 kB / 0.5046 GB, free: 5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.4716, allocations: 79.28 kB / 0.5047 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.4728, allocations: 0.6417 MB / 0.5053 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.4728, allocations: 3.469 kB / 0.5053 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.882e-05/0.4729, allocations: 28.28 kB / 0.5054 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.75e-05/0.4729, allocations: 17.22 kB / 0.5054 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008085/0.4737, allocations: 381.8 kB / 0.5057 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00318/0.4769, allocations: 2.263 MB / 0.5079 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006186/0.4776, allocations: 318.5 kB / 0.5082 GB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/0.478, allocations: 234.2 kB / 0.5085 GB, free: 3.809 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/0.4781, allocations: 4.75 kB / 0.5085 GB, free: 3.809 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.4781, allocations: 44.56 kB / 0.5085 GB, free: 3.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.043e-06/0.4781, allocations: 4 kB / 0.5085 GB, free: 3.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008105/0.4789, allocations: 402.3 kB / 0.5089 GB, free: 3.699 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.142e-05/0.479, allocations: 214.8 kB / 0.5091 GB, free: 3.449 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004488/0.4795, allocations: 365.6 kB / 0.5095 GB, free: 3.332 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.768e-05/0.4795, allocations: 43.33 kB / 0.5095 GB, free: 3.301 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002233/0.4798, allocations: 319.4 kB / 0.5098 GB, free: 3.113 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.204e-05/0.4799, allocations: 127.7 kB / 0.5099 GB, free: 3.031 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001906/0.4801, allocations: 123.1 kB / 0.51 GB, free: 3.012 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.276e-05/0.4802, allocations: 355.1 kB / 0.5104 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.4805, allocations: 151.6 kB / 0.5105 GB, free: 2.699 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003969/0.4809, allocations: 306.6 kB / 0.5108 GB, free: 2.539 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005603/0.4814, allocations: 402.8 kB / 0.5112 GB, free: 2.395 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.4815, allocations: 1.25 kB / 0.5112 GB, free: 2.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008651/0.4823, allocations: 0.5129 MB / 0.5117 GB, free: 2.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.4824, allocations: 6.344 kB / 0.5117 GB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.4824, allocations: 4.688 kB / 0.5117 GB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.997e-05/0.4824, allocations: 9.875 kB / 0.5117 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002951/0.4827, allocations: 82.62 kB / 0.5118 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.4827, allocations: 12.42 kB / 0.5118 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002789/0.483, allocations: 59.75 kB / 0.5119 GB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.4831, allocations: 26.23 kB / 0.5119 GB, free: 2.285 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.susceptible.inflow.stopInflow,$PRE.susceptible.outflow.stopInflow,$PRE.removed.inflow.stopInflow,$PRE.removed.outflow.stopInflow,$PRE.infected.inflow.stopInflow,$PRE.infected.inflow.stopOutflow,removed.outflow.stopInflow,removed.inflow.stopInflow,infected.inflow.stopInflow,infected.inflow.stopOutflow,susceptible.outflow.stopInflow,becoming_infected.adopting.flowing.portA.stopInflow,becoming_infected.converting.portA.stopInflow,becoming_infected.adopting.flowing.portB.stopOutflow,becoming_infected.converting.portB.stopOutflow,becoming_infected.adopting.flowing.useB_rate,$PRE.becoming_infected.adopting.flowing.useB_rate,becoming_infected.adopting.flowing.useA_rate,$PRE.becoming_infected.adopting.flowing.useA_rate,becoming_infected.adopting.flowing.portB.stopInflow,becoming_infected.adopting.flowing.portA.stopOutflow,becoming_infected.converting.useB_rate,$PRE.becoming_infected.converting.useB_rate,becoming_infected.converting.useA_rate,$PRE.becoming_infected.converting.useA_rate,becoming_infected.converting.portB.stopInflow,becoming_infected.converting.portA.stopOutflow,removed.outflow.stopOutflow,$PRE.removed.outflow.stopOutflow,removed.inflow.stopOutflow,$PRE.removed.inflow.stopOutflow,susceptible.outflow.stopOutflow,$PRE.susceptible.outflow.stopOutflow,susceptible.inflow.stopOutflow,$PRE.susceptible.inflow.stopOutflow,susceptible.inflow.stopInflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 73 * 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.000229/0.4833, allocations: 226.4 kB / 0.5121 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.568e-05/0.4834, allocations: 42.72 kB / 0.5122 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.607e-05/0.4835, allocations: 47.22 kB / 0.5122 GB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.4835, allocations: 8.781 kB / 0.5122 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.4835, allocations: 6 kB / 0.5122 GB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.4835, allocations: 2.25 kB / 0.5122 GB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00158/0.4851, allocations: 1.236 MB / 0.5134 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.4851, allocations: 2.375 kB / 0.5134 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002475/0.4854, allocations: 56.89 kB / 0.5135 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.4854, allocations: 3.281 kB / 0.5135 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.098e-05/0.4855, allocations: 12.66 kB / 0.5135 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.4855, allocations: 6.219 kB / 0.5135 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/0.4855, allocations: 6.922 kB / 0.5135 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007307/0.4862, allocations: 0.5858 MB / 0.5141 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.4864, allocations: 148.4 kB / 0.5142 GB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.779e-05/0.4864, allocations: 13.56 kB / 0.5142 GB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.4866, allocations: 13.86 kB / 0.5142 GB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.4867, allocations: 45.8 kB / 0.5143 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.4868, allocations: 9.781 kB / 0.5143 GB, free: 1.203 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002864/0.4871, allocations: 241.1 kB / 0.5145 GB, free: 1.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4871, allocations: 0 / 0.5145 GB, free: 1.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005068/0.4876, allocations: 141.5 kB / 0.5147 GB, free: 1.078 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (susceptible.x,removed.x,infected.x_hidden[1],infected.x_hidden[2],infected.x_hidden[3]) * Number of discrete variables: 16 (becoming_infected.adopting.flowing.portA.stopOutflow,becoming_infected.converting.portA.stopOutflow,susceptible.outflow.stopOutflow,removed.outflow.stopOutflow,susceptible.inflow.stopOutflow,removed.inflow.stopOutflow,becoming_infected.converting.useA_rate,becoming_infected.adopting.flowing.useA_rate,becoming_infected.adopting.flowing.portA.stopInflow,becoming_infected.converting.portA.stopInflow,becoming_infected.adopting.flowing.portB.stopOutflow,becoming_infected.converting.portB.stopOutflow,becoming_infected.adopting.flowing.useB_rate,becoming_infected.adopting.flowing.portB.stopInflow,becoming_infected.converting.useB_rate,becoming_infected.converting.portB.stopInflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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 Backend phase and start with SimCode phase: time 0.0001497/0.4877, allocations: 126.2 kB / 0.5148 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007553/0.4885, allocations: 378.1 kB / 0.5151 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.4885, allocations: 2.656 kB / 0.5151 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002868/0.4888, allocations: 161.8 kB / 0.5153 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007279/0.4895, allocations: 129.1 kB / 0.5154 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.4912, allocations: 0.9574 MB / 0.5164 GB, free: 460 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005318/0.4917, allocations: 0.8627 MB / 0.5172 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002464/0.492, allocations: 63.73 kB / 0.5173 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.4921, allocations: 42.64 kB / 0.5173 GB, free: 15.73 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4921, allocations: 4 kB / 0.5173 GB, free: 15.72 MB / 398.1 MB Notification: Performance of Templates: time 0.01228/0.5044, allocations: 5.118 MB / 0.5223 GB, free: 15.34 MB / 398.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SIR.makefile (rm -f BusinessSimulation_BusinessSimulation.Examples.SIR.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SIR.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SIR.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SIR.sim & ./BusinessSimulation_BusinessSimulation.Examples.SIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1)