Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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-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.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009559/0.009559, allocations: 98.83 kB / 15.73 MB, free: 6.031 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.00172/0.00172, allocations: 196.5 kB / 16.67 MB, free: 5.953 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.493/1.493, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1715/0.1715, allocations: 31.18 MB / 321.7 MB, free: 184 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 63.91 kB / 446.8 MB, free: 1.742 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1092, allocations: 56.36 MB / 0.4913 GB, free: 9.348 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008186/0.1174, allocations: 7.241 MB / 0.4984 GB, free: 2.074 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002726/0.1202, allocations: 1.095 MB / 0.4995 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001052/0.1213, allocations: 19.94 kB / 0.4995 GB, free: 0.957 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006215/0.122, allocations: 142.7 kB / 0.4996 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004646/0.1225, allocations: 91.19 kB / 0.4997 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001047/0.1235, allocations: 299.3 kB / 0.5 GB, free: 444 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2664/0.3899, allocations: 0.7185 MB / 0.5007 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001154/0.3911, allocations: 473.2 kB / 0.5011 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004805/0.3916, allocations: 295.6 kB / 0.5014 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003436/0.392, allocations: 311.5 kB / 0.5017 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.3921, allocations: 83.12 kB / 0.5018 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000182/0.3923, allocations: 92.25 kB / 0.5019 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.3924, allocations: 175.9 kB / 0.5021 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002366/0.3927, allocations: 344.5 kB / 0.5024 GB, free: 5.961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008298/0.3935, allocations: 0.7947 MB / 0.5032 GB, free: 5.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.3935, allocations: 3.406 kB / 0.5032 GB, free: 5.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3936, allocations: 0.9062 kB / 0.5032 GB, free: 5.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.3936, allocations: 0 / 0.5032 GB, free: 5.84 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.00128/0.3949, allocations: 0.9234 MB / 0.5041 GB, free: 5.281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.3949, allocations: 10.22 kB / 0.5041 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003597/0.3953, allocations: 96.53 kB / 0.5042 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005574/0.3959, allocations: 454.3 kB / 0.5046 GB, free: 4.992 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-05/0.3959, allocations: 56 kB / 0.5047 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.3961, allocations: 80.94 kB / 0.5047 GB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.3971, allocations: 0.649 MB / 0.5054 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.3972, allocations: 5.031 kB / 0.5054 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5e-05/0.3972, allocations: 29.94 kB / 0.5054 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.898e-05/0.3973, allocations: 16.59 kB / 0.5054 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007028/0.398, allocations: 379 kB / 0.5058 GB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002851/0.4008, allocations: 2.261 MB / 0.508 GB, free: 3.898 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005675/0.4014, allocations: 324.3 kB / 0.5083 GB, free: 3.828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003896/0.4018, allocations: 232.2 kB / 0.5085 GB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.4018, allocations: 9.016 kB / 0.5085 GB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.4019, allocations: 39.73 kB / 0.5086 GB, free: 3.758 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.264e-06/0.4019, allocations: 0 / 0.5086 GB, free: 3.758 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007296/0.4026, allocations: 408.1 kB / 0.509 GB, free: 3.688 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/0.4027, allocations: 212 kB / 0.5092 GB, free: 3.438 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004218/0.4031, allocations: 363 kB / 0.5095 GB, free: 3.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.551e-05/0.4032, allocations: 44.28 kB / 0.5095 GB, free: 3.289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.4034, allocations: 321.9 kB / 0.5099 GB, free: 3.102 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.559e-05/0.4035, allocations: 124.7 kB / 0.51 GB, free: 3.023 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/0.4036, allocations: 120 kB / 0.5101 GB, free: 3.008 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.083e-05/0.4037, allocations: 355.2 kB / 0.5104 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002959/0.404, allocations: 153.6 kB / 0.5106 GB, free: 2.691 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003766/0.4044, allocations: 307.2 kB / 0.5109 GB, free: 2.531 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005296/0.4049, allocations: 408.5 kB / 0.5113 GB, free: 2.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.405, allocations: 1.125 kB / 0.5113 GB, free: 2.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008341/0.4058, allocations: 0.5119 MB / 0.5118 GB, free: 2.309 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.4058, allocations: 6.719 kB / 0.5118 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.4058, allocations: 4.094 kB / 0.5118 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.879e-05/0.4059, allocations: 10.5 kB / 0.5118 GB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003103/0.4062, allocations: 81.44 kB / 0.5119 GB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.649e-05/0.4062, allocations: 11.22 kB / 0.5119 GB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002873/0.4065, allocations: 62.42 kB / 0.5119 GB, free: 2.277 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.916e-05/0.4066, allocations: 22.11 kB / 0.5119 GB, free: 2.277 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.0002321/0.4068, allocations: 229.2 kB / 0.5122 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.4069, allocations: 43.12 kB / 0.5122 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.199e-05/0.407, allocations: 47.81 kB / 0.5123 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.407, allocations: 8.094 kB / 0.5123 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.407, allocations: 1.094 kB / 0.5123 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.4071, allocations: 5.406 kB / 0.5123 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/0.4086, allocations: 1.245 MB / 0.5135 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.4086, allocations: 2.125 kB / 0.5135 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002528/0.4088, allocations: 46.84 kB / 0.5135 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.196e-06/0.4089, allocations: 4.219 kB / 0.5135 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.838e-05/0.4089, allocations: 16.19 kB / 0.5135 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.315e-06/0.4089, allocations: 5.234 kB / 0.5136 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.4089, allocations: 9.812 kB / 0.5136 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007406/0.4097, allocations: 0.5848 MB / 0.5141 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.4098, allocations: 151.4 kB / 0.5143 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.392e-05/0.4099, allocations: 12.59 kB / 0.5143 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/0.4101, allocations: 13.77 kB / 0.5143 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.794e-05/0.4102, allocations: 42.42 kB / 0.5143 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.4102, allocations: 14.16 kB / 0.5144 GB, free: 1.191 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002411/0.4104, allocations: 237.1 kB / 0.5146 GB, free: 1.105 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4105, allocations: 0 / 0.5146 GB, free: 1.105 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004896/0.4109, allocations: 138.5 kB / 0.5147 GB, free: 1.07 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.0001219/0.4111, allocations: 127.7 kB / 0.5148 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006388/0.4117, allocations: 379.4 kB / 0.5152 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4117, allocations: 6.469 kB / 0.5152 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002273/0.412, allocations: 159.2 kB / 0.5154 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006432/0.4126, allocations: 122.3 kB / 0.5155 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.4141, allocations: 0.9606 MB / 0.5164 GB, free: 452 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004709/0.4146, allocations: 0.8674 MB / 0.5173 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002315/0.4148, allocations: 66.36 kB / 0.5173 GB, free: 15.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.4149, allocations: 41.02 kB / 0.5174 GB, free: 15.71 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4149, allocations: 0 / 0.5174 GB, free: 15.71 MB / 398.1 MB Notification: Performance of Templates: time 0.01246/0.4274, allocations: 5.115 MB / 0.5224 GB, free: 15.34 MB / 398.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SIR.makefile (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SIR.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1)