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.006631/0.006631, allocations: 100.7 kB / 15.73 MB, free: 6.035 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.001496/0.001496, allocations: 199.3 kB / 16.67 MB, free: 5.969 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3562/0.3562, allocations: 31.15 MB / 321.7 MB, free: 4.242 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 61.91 kB / 446.7 MB, free: 30.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1219, allocations: 56.38 MB / 0.4913 GB, free: 7.195 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008042/0.13, allocations: 7.231 MB / 0.4984 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002128/0.1321, allocations: 1.102 MB / 0.4995 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003546/0.1325, allocations: 19.94 kB / 0.4995 GB, free: 14.81 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004028/0.1329, allocations: 134.7 kB / 0.4996 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002395/0.1332, allocations: 91.17 kB / 0.4997 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007338/0.1339, allocations: 303.3 kB / 0.5 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007024/0.1347, allocations: 0.715 MB / 0.5007 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00065/0.1353, allocations: 486.4 kB / 0.5012 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002882/0.1356, allocations: 298.9 kB / 0.5014 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003153/0.1359, allocations: 302.5 kB / 0.5017 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.703e-05/0.136, allocations: 84 kB / 0.5018 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.1362, allocations: 95.98 kB / 0.5019 GB, free: 12.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001452/0.1363, allocations: 179.5 kB / 0.5021 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002577/0.1366, allocations: 342.3 kB / 0.5024 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007073/0.1373, allocations: 0.798 MB / 0.5032 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1373, allocations: 0 / 0.5032 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1373, allocations: 0 / 0.5032 GB, free: 11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.218e-05/0.1374, 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.001585/0.1389, allocations: 0.9016 MB / 0.5041 GB, free: 10.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.139, allocations: 8.031 kB / 0.5041 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000412/0.1394, allocations: 92.06 kB / 0.5042 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007405/0.1402, allocations: 450.5 kB / 0.5046 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.579e-05/0.1403, allocations: 62 kB / 0.5046 GB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.1404, allocations: 72 kB / 0.5047 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.1415, allocations: 0.6539 MB / 0.5054 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.1415, allocations: 0 / 0.5054 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.689e-05/0.1416, allocations: 28 kB / 0.5054 GB, free: 8.625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.1416, allocations: 16 kB / 0.5054 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006599/0.1423, allocations: 377 kB / 0.5058 GB, free: 8.238 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002846/0.1452, allocations: 2.265 MB / 0.508 GB, free: 5.867 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005785/0.1457, allocations: 330.5 kB / 0.5083 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004084/0.1462, allocations: 231 kB / 0.5085 GB, free: 5.285 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.876e-05/0.1462, allocations: 4.281 kB / 0.5085 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.1462, allocations: 38.84 kB / 0.5085 GB, free: 5.234 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 1.743e-06/0.1462, allocations: 4.281 kB / 0.5085 GB, free: 5.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007144/0.147, allocations: 402.5 kB / 0.5089 GB, free: 4.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.1471, allocations: 213.6 kB / 0.5091 GB, free: 4.574 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003863/0.1475, allocations: 361.4 kB / 0.5095 GB, free: 4.215 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.791e-05/0.1475, allocations: 45.7 kB / 0.5095 GB, free: 4.164 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002094/0.1477, allocations: 315.8 kB / 0.5098 GB, free: 3.852 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.1479, allocations: 114.5 kB / 0.5099 GB, free: 3.738 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/0.148, allocations: 126.4 kB / 0.5101 GB, free: 3.609 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1482, allocations: 358.8 kB / 0.5104 GB, free: 3.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/0.1485, allocations: 145.2 kB / 0.5105 GB, free: 3.109 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000406/0.1489, allocations: 307.3 kB / 0.5108 GB, free: 2.754 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00055/0.1494, allocations: 402.3 kB / 0.5112 GB, free: 2.312 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1495, allocations: 0 / 0.5112 GB, free: 2.312 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008189/0.1503, allocations: 0.5102 MB / 0.5117 GB, free: 1.797 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.1503, allocations: 11.94 kB / 0.5117 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1503, allocations: 4 kB / 0.5117 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.1504, allocations: 8 kB / 0.5117 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003106/0.1507, allocations: 79.83 kB / 0.5118 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.1507, allocations: 8 kB / 0.5118 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002794/0.151, allocations: 59.36 kB / 0.5119 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.85e-05/0.151, allocations: 32.23 kB / 0.5119 GB, free: 1.598 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.0002432/0.1513, allocations: 222.2 kB / 0.5121 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.1514, allocations: 47.38 kB / 0.5122 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.652e-05/0.1515, allocations: 48.14 kB / 0.5122 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.1515, allocations: 4 kB / 0.5122 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1515, allocations: 3.938 kB / 0.5122 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.1515, allocations: 3.984 kB / 0.5122 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.1531, allocations: 1.226 MB / 0.5134 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.1531, allocations: 4 kB / 0.5134 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002425/0.1533, allocations: 56.03 kB / 0.5135 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.1534, allocations: 8 kB / 0.5135 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.1534, allocations: 15.94 kB / 0.5135 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.1534, allocations: 7.984 kB / 0.5135 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1534, allocations: 4 kB / 0.5135 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007215/0.1541, allocations: 0.5765 MB / 0.5141 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000159/0.1543, allocations: 152.5 kB / 0.5142 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.516e-05/0.1544, allocations: 15.92 kB / 0.5142 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.1546, allocations: 16 kB / 0.5142 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.482e-05/0.1547, allocations: 35.95 kB / 0.5143 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.1547, allocations: 12 kB / 0.5143 GB, free: 15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000259/0.155, allocations: 239.2 kB / 0.5145 GB, free: 14.76 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.114e-06/0.155, allocations: 0 / 0.5145 GB, free: 14.76 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004489/0.1554, allocations: 139.3 kB / 0.5146 GB, free: 14.62 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.0001343/0.1556, allocations: 123.2 kB / 0.5148 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006426/0.1562, allocations: 375 kB / 0.5151 GB, free: 14.13 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.1562, allocations: 4 kB / 0.5151 GB, free: 14.13 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002556/0.1565, allocations: 165.8 kB / 0.5153 GB, free: 13.97 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007074/0.1572, allocations: 130.6 kB / 0.5154 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.1587, allocations: 0.939 MB / 0.5163 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004465/0.1592, allocations: 0.8625 MB / 0.5172 GB, free: 11.97 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002364/0.1594, allocations: 76.25 kB / 0.5172 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.1595, allocations: 35.44 kB / 0.5173 GB, free: 11.86 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1595, allocations: 8 kB / 0.5173 GB, free: 11.85 MB / 398.1 MB Notification: Performance of Templates: time 0.01095/0.1705, allocations: 5.11 MB / 0.5223 GB, free: 6.789 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)