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.007859/0.007859, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001742/0.001742, allocations: 194.3 kB / 16.67 MB, free: 5.938 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3024/0.3024, allocations: 31.17 MB / 321.7 MB, free: 4.297 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001214, allocations: 67.78 kB / 446.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1245, allocations: 56.36 MB / 0.4913 GB, free: 7.207 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008679/0.1332, allocations: 7.241 MB / 0.4984 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00297/0.1362, allocations: 1.098 MB / 0.4995 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004199/0.1367, allocations: 23.88 kB / 0.4995 GB, free: 14.81 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004031/0.1371, allocations: 142.7 kB / 0.4996 GB, free: 14.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002373/0.1374, allocations: 75.19 kB / 0.4997 GB, free: 14.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007184/0.1381, allocations: 299.3 kB / 0.5 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006979/0.1388, allocations: 0.7189 MB / 0.5007 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006733/0.1395, allocations: 482.4 kB / 0.5011 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002823/0.1398, allocations: 294.9 kB / 0.5014 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003087/0.1401, allocations: 302.5 kB / 0.5017 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.285e-05/0.1402, allocations: 84 kB / 0.5018 GB, free: 12.42 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001421/0.1404, allocations: 95.98 kB / 0.5019 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.1405, allocations: 179.5 kB / 0.5021 GB, free: 12.15 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003543/0.1409, allocations: 346.2 kB / 0.5024 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001089/0.142, allocations: 0.8053 MB / 0.5032 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.142, allocations: 0 / 0.5032 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.142, allocations: 4 kB / 0.5032 GB, free: 11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.142, allocations: 0 / 0.5032 GB, free: 11 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.00173/0.1438, allocations: 0.9086 MB / 0.5041 GB, free: 10.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.1438, allocations: 12.03 kB / 0.5041 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000379/0.1442, allocations: 92.44 kB / 0.5042 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006599/0.1449, allocations: 458.8 kB / 0.5046 GB, free: 9.453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.919e-05/0.145, allocations: 58 kB / 0.5047 GB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.872e-05/0.1451, allocations: 72 kB / 0.5047 GB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.1462, allocations: 0.6578 MB / 0.5054 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.1462, allocations: 0 / 0.5054 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.172e-05/0.1463, allocations: 28 kB / 0.5054 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.813e-05/0.1463, allocations: 16 kB / 0.5054 GB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000663/0.1469, allocations: 381 kB / 0.5058 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002868/0.1498, allocations: 2.262 MB / 0.508 GB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005699/0.1504, allocations: 331.5 kB / 0.5083 GB, free: 5.504 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003942/0.1508, allocations: 231 kB / 0.5085 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/0.1509, allocations: 4.281 kB / 0.5085 GB, free: 5.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.1509, allocations: 38.84 kB / 0.5086 GB, free: 5.219 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 1.413e-06/0.1509, allocations: 4 kB / 0.5086 GB, free: 5.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007467/0.1517, allocations: 398.8 kB / 0.5089 GB, free: 4.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/0.1518, allocations: 217.5 kB / 0.5092 GB, free: 4.559 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004211/0.1522, allocations: 369.5 kB / 0.5095 GB, free: 4.191 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.708e-05/0.1523, allocations: 41.7 kB / 0.5095 GB, free: 4.145 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002328/0.1525, allocations: 316.7 kB / 0.5098 GB, free: 3.832 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.1526, allocations: 127 kB / 0.51 GB, free: 3.707 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.1528, allocations: 122.6 kB / 0.5101 GB, free: 3.582 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.153, allocations: 354.8 kB / 0.5104 GB, free: 3.227 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002905/0.1533, allocations: 153.2 kB / 0.5106 GB, free: 3.078 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004003/0.1537, allocations: 303.2 kB / 0.5109 GB, free: 2.727 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005377/0.1542, allocations: 406.2 kB / 0.5112 GB, free: 2.281 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1542, allocations: 0 / 0.5112 GB, free: 2.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008063/0.1551, allocations: 0.5105 MB / 0.5117 GB, free: 1.766 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.1551, allocations: 7.938 kB / 0.5118 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.1551, allocations: 4 kB / 0.5118 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.443e-05/0.1551, allocations: 8 kB / 0.5118 GB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002879/0.1554, allocations: 83.77 kB / 0.5118 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.1554, allocations: 11.94 kB / 0.5119 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002606/0.1557, allocations: 63.55 kB / 0.5119 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.938e-05/0.1558, allocations: 28.2 kB / 0.5119 GB, free: 1.562 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.0002553/0.156, allocations: 218.3 kB / 0.5122 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.198e-05/0.1561, allocations: 43.66 kB / 0.5122 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.1562, allocations: 52.14 kB / 0.5122 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1562, allocations: 4 kB / 0.5122 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.1562, allocations: 0 / 0.5122 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.1563, allocations: 3.984 kB / 0.5123 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.1578, allocations: 1.241 MB / 0.5135 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.1578, allocations: 3.984 kB / 0.5135 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002561/0.1581, allocations: 52.11 kB / 0.5135 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.1581, allocations: 8 kB / 0.5135 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.154e-05/0.1581, allocations: 19.91 kB / 0.5135 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.1581, allocations: 7.938 kB / 0.5136 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1582, allocations: 4 kB / 0.5136 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007265/0.1589, allocations: 0.5845 MB / 0.5141 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.159, allocations: 152.7 kB / 0.5143 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.265e-05/0.1591, allocations: 15.94 kB / 0.5143 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.1593, allocations: 15.98 kB / 0.5143 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.341e-05/0.1594, allocations: 31.97 kB / 0.5143 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-05/0.1594, allocations: 16 kB / 0.5143 GB, free: 14.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002563/0.1597, allocations: 235.2 kB / 0.5146 GB, free: 14.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1597, allocations: 0 / 0.5146 GB, free: 14.72 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004162/0.1601, allocations: 135.6 kB / 0.5147 GB, free: 14.59 MB / 398.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.0001418/0.1603, allocations: 131 kB / 0.5148 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006407/0.1609, allocations: 382.9 kB / 0.5152 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1609, allocations: 0 / 0.5152 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002463/0.1612, allocations: 169.8 kB / 0.5154 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006773/0.1619, allocations: 119.9 kB / 0.5155 GB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.1633, allocations: 0.9572 MB / 0.5164 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004312/0.1638, allocations: 0.8664 MB / 0.5172 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002023/0.164, allocations: 64.34 kB / 0.5173 GB, free: 11.83 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.769e-05/0.1641, allocations: 35.44 kB / 0.5173 GB, free: 11.8 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1641, allocations: 4 kB / 0.5173 GB, free: 11.79 MB / 398.1 MB Notification: Performance of Templates: time 0.01051/0.1746, allocations: 5.128 MB / 0.5224 GB, free: 6.715 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)