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.007561/0.007561, allocations: 98.69 kB / 15.73 MB, free: 6.004 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.001375/0.001376, allocations: 192.9 kB / 16.67 MB, free: 5.93 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.578/1.578, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.3052/0.3052, allocations: 31.11 MB / 321.7 MB, free: 4.105 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 59.58 kB / 446.7 MB, free: 30.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1222, allocations: 56.38 MB / 0.4913 GB, free: 7.125 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008489/0.1307, allocations: 7.229 MB / 0.4984 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003154/0.134, allocations: 1.102 MB / 0.4994 GB, free: 14.76 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005433/0.1345, allocations: 23.88 kB / 0.4995 GB, free: 14.74 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004033/0.1349, allocations: 138.7 kB / 0.4996 GB, free: 14.6 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002548/0.1352, allocations: 91.16 kB / 0.4997 GB, free: 14.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007182/0.136, allocations: 302.4 kB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006802/0.1367, allocations: 0.7189 MB / 0.5007 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006524/0.1373, allocations: 486.5 kB / 0.5011 GB, free: 13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003961/0.1377, allocations: 298.9 kB / 0.5014 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003952/0.1381, allocations: 302.5 kB / 0.5017 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.984e-05/0.1382, allocations: 84 kB / 0.5018 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001399/0.1384, allocations: 99.98 kB / 0.5019 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.1386, allocations: 167.5 kB / 0.502 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.1389, allocations: 350.2 kB / 0.5024 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008008/0.1397, allocations: 0.8014 MB / 0.5032 GB, free: 10.92 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1397, allocations: 0 / 0.5032 GB, free: 10.92 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1397, allocations: 0 / 0.5032 GB, free: 10.92 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.1398, allocations: 0 / 0.5032 GB, free: 10.92 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.00157/0.1413, allocations: 0.9163 MB / 0.504 GB, free: 9.953 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1414, allocations: 8.031 kB / 0.5041 GB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003717/0.1418, allocations: 96.44 kB / 0.5041 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006524/0.1424, allocations: 462.8 kB / 0.5046 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.009e-05/0.1425, allocations: 58 kB / 0.5046 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.1426, allocations: 72 kB / 0.5047 GB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009762/0.1436, allocations: 0.6539 MB / 0.5053 GB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.1436, allocations: 0 / 0.5053 GB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.106e-05/0.1437, allocations: 28 kB / 0.5054 GB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.1437, allocations: 16 kB / 0.5054 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006453/0.1443, allocations: 384.9 kB / 0.5058 GB, free: 8.125 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003086/0.1474, allocations: 2.258 MB / 0.508 GB, free: 5.762 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005749/0.148, allocations: 320.6 kB / 0.5083 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004377/0.1485, allocations: 231.4 kB / 0.5085 GB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.1485, allocations: 8.219 kB / 0.5085 GB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.1485, allocations: 34.84 kB / 0.5085 GB, free: 5.137 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 1.723e-06/0.1486, allocations: 4 kB / 0.5085 GB, free: 5.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007553/0.1493, allocations: 398.8 kB / 0.5089 GB, free: 4.738 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.1495, allocations: 217.6 kB / 0.5091 GB, free: 4.477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004258/0.1499, allocations: 365.5 kB / 0.5095 GB, free: 4.113 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.925e-05/0.1499, allocations: 49.64 kB / 0.5095 GB, free: 4.059 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00023/0.1502, allocations: 316.9 kB / 0.5098 GB, free: 3.746 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.1503, allocations: 127 kB / 0.5099 GB, free: 3.621 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001895/0.1505, allocations: 118.6 kB / 0.5101 GB, free: 3.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1507, allocations: 358.7 kB / 0.5104 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000299/0.151, allocations: 157.2 kB / 0.5105 GB, free: 2.988 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/0.1514, allocations: 303.3 kB / 0.5108 GB, free: 2.637 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005942/0.152, allocations: 406.2 kB / 0.5112 GB, free: 2.191 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.152, allocations: 4 kB / 0.5112 GB, free: 2.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008494/0.1528, allocations: 0.5067 MB / 0.5117 GB, free: 1.676 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.429e-05/0.1529, allocations: 11.94 kB / 0.5117 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1529, allocations: 4 kB / 0.5117 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/0.153, allocations: 8 kB / 0.5117 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000287/0.1532, allocations: 79.83 kB / 0.5118 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.1533, allocations: 7.938 kB / 0.5118 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002654/0.1535, allocations: 63.55 kB / 0.5119 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.461e-05/0.1536, allocations: 27.98 kB / 0.5119 GB, free: 1.477 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.0002402/0.1538, allocations: 222.4 kB / 0.5121 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.154, allocations: 47.66 kB / 0.5122 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.462e-05/0.1541, allocations: 48.14 kB / 0.5122 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.1541, allocations: 8 kB / 0.5122 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1541, allocations: 0 / 0.5122 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1541, allocations: 3.984 kB / 0.5122 GB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001694/0.1558, allocations: 1.237 MB / 0.5134 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.1558, allocations: 4 kB / 0.5134 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002333/0.156, allocations: 51.91 kB / 0.5135 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.1561, allocations: 4.25 kB / 0.5135 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.886e-05/0.1561, allocations: 23.92 kB / 0.5135 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.1561, allocations: 4 kB / 0.5135 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.1561, allocations: 4 kB / 0.5135 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008143/0.1569, allocations: 0.5845 MB / 0.5141 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.1571, allocations: 156.7 kB / 0.5142 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.931e-05/0.1572, allocations: 11.94 kB / 0.5143 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.1574, allocations: 19.98 kB / 0.5143 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.1575, allocations: 35.91 kB / 0.5143 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.1575, allocations: 12 kB / 0.5143 GB, free: 14.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002587/0.1578, allocations: 239.2 kB / 0.5146 GB, free: 14.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1578, allocations: 0 / 0.5146 GB, free: 14.62 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004602/0.1582, allocations: 135.6 kB / 0.5147 GB, free: 14.49 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.0001195/0.1584, allocations: 123.1 kB / 0.5148 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006902/0.1591, allocations: 382.9 kB / 0.5152 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1591, allocations: 0 / 0.5152 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002433/0.1593, allocations: 168.5 kB / 0.5153 GB, free: 13.83 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006561/0.16, allocations: 126.9 kB / 0.5154 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00176/0.1618, allocations: 0.9494 MB / 0.5164 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000565/0.1623, allocations: 0.8625 MB / 0.5172 GB, free: 11.81 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002551/0.1626, allocations: 68.33 kB / 0.5173 GB, free: 11.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.1627, allocations: 39.44 kB / 0.5173 GB, free: 11.71 MB / 398.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1627, allocations: 0 / 0.5173 GB, free: 11.71 MB / 398.1 MB Notification: Performance of Templates: time 0.01079/0.1735, allocations: 5.116 MB / 0.5223 GB, free: 6.637 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)