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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 113 kB / 17.08 MB, free: 5.992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 193.2 kB / 20.03 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 222.9 MB / 245.7 MB, free: 4.227 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2829/0.2829, allocations: 31.11 MB / 329 MB, free: 3.266 MB / 254.1 MB " [Timeout remaining time 180] 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=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SIR") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 71.39 kB / 456.1 MB, free: 30.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1122, allocations: 56.35 MB / 0.5005 GB, free: 6.188 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008825/0.1211, allocations: 7.243 MB / 0.5075 GB, free: 14.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002801/0.1239, allocations: 1.098 MB / 0.5086 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006611/0.1246, allocations: 23.88 kB / 0.5086 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005148/0.1252, allocations: 142.7 kB / 0.5088 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000326/0.1255, allocations: 79.17 kB / 0.5088 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008413/0.1263, allocations: 307.3 kB / 0.5091 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008061/0.1272, allocations: 0.715 MB / 0.5098 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007012/0.1279, allocations: 478.4 kB / 0.5103 GB, free: 12.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000349/0.1282, allocations: 298.9 kB / 0.5106 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003441/0.1286, allocations: 306.5 kB / 0.5109 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.1287, allocations: 84 kB / 0.5109 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001469/0.1289, allocations: 92 kB / 0.511 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.129, allocations: 183.4 kB / 0.5112 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003085/0.1293, allocations: 334.3 kB / 0.5115 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009279/0.1303, allocations: 0.8014 MB / 0.5123 GB, free: 9.984 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1303, allocations: 0 / 0.5123 GB, free: 9.984 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1303, allocations: 0 / 0.5123 GB, free: 9.984 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.1303, allocations: 0 / 0.5123 GB, free: 9.984 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.001516/0.1318, allocations: 0.9163 MB / 0.5132 GB, free: 9.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.1319, allocations: 8.031 kB / 0.5132 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003465/0.1322, allocations: 100.4 kB / 0.5133 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006315/0.1329, allocations: 454.8 kB / 0.5137 GB, free: 8.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.278e-05/0.133, allocations: 65.88 kB / 0.5138 GB, free: 8.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.1331, allocations: 72 kB / 0.5139 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.1341, allocations: 0.65 MB / 0.5145 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.1342, allocations: 0 / 0.5145 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.176e-05/0.1342, allocations: 28 kB / 0.5145 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.921e-05/0.1342, allocations: 16 kB / 0.5145 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007149/0.135, allocations: 385 kB / 0.5149 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003102/0.1381, allocations: 2.258 MB / 0.5171 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006181/0.1387, allocations: 324.8 kB / 0.5174 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004461/0.1392, allocations: 231.3 kB / 0.5176 GB, free: 4.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.1392, allocations: 4.281 kB / 0.5177 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.184e-05/0.1393, allocations: 46.83 kB / 0.5177 GB, free: 4.191 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.304e-06/0.1393, allocations: 0 / 0.5177 GB, free: 4.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008034/0.1401, allocations: 398.8 kB / 0.5181 GB, free: 3.797 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.1402, allocations: 217.6 kB / 0.5183 GB, free: 3.535 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004478/0.1407, allocations: 365.5 kB / 0.5186 GB, free: 3.172 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.489e-05/0.1407, allocations: 45.7 kB / 0.5187 GB, free: 3.121 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002565/0.141, allocations: 320.6 kB / 0.519 GB, free: 2.805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.1411, allocations: 123.3 kB / 0.5191 GB, free: 2.684 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001751/0.1413, allocations: 114.3 kB / 0.5192 GB, free: 2.566 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.1415, allocations: 358.8 kB / 0.5196 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003094/0.1418, allocations: 149.2 kB / 0.5197 GB, free: 2.062 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004288/0.1422, allocations: 309.5 kB / 0.52 GB, free: 1.707 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006021/0.1428, allocations: 402.3 kB / 0.5204 GB, free: 1.266 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1428, allocations: 0 / 0.5204 GB, free: 1.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008778/0.1437, allocations: 0.5103 MB / 0.5209 GB, free: 0.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.947e-05/0.1438, allocations: 7.938 kB / 0.5209 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.1438, allocations: 7.938 kB / 0.5209 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.1438, allocations: 8 kB / 0.5209 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003106/0.1441, allocations: 79.83 kB / 0.521 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/0.1441, allocations: 11.98 kB / 0.521 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002981/0.1445, allocations: 71.95 kB / 0.521 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.901e-05/0.1445, allocations: 20 kB / 0.5211 GB, free: 0.5469 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.0002919/0.1448, allocations: 226.2 kB / 0.5213 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.1449, allocations: 51.59 kB / 0.5213 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.145, allocations: 48.14 kB / 0.5214 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.145, allocations: 4 kB / 0.5214 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.145, allocations: 0 / 0.5214 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1451, allocations: 0 / 0.5214 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00176/0.1468, allocations: 1.249 MB / 0.5226 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1468, allocations: 0 / 0.5226 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002527/0.1471, allocations: 56.16 kB / 0.5227 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.1471, allocations: 4 kB / 0.5227 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/0.1471, allocations: 11.94 kB / 0.5227 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.887e-06/0.1472, allocations: 7.938 kB / 0.5227 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1472, allocations: 4 kB / 0.5227 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007909/0.148, allocations: 0.5884 MB / 0.5233 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001586/0.1481, allocations: 148.7 kB / 0.5234 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.519e-05/0.1482, allocations: 19.94 kB / 0.5234 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/0.1484, allocations: 15.98 kB / 0.5234 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.486e-05/0.1485, allocations: 35.95 kB / 0.5235 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.1485, allocations: 12 kB / 0.5235 GB, free: 13.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002816/0.1488, allocations: 235.2 kB / 0.5237 GB, free: 13.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1488, allocations: 0 / 0.5237 GB, free: 13.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004825/0.1493, allocations: 143.5 kB / 0.5238 GB, free: 13.55 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.0001437/0.1495, allocations: 131.1 kB / 0.524 GB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006729/0.1501, allocations: 366.9 kB / 0.5243 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.1502, allocations: 4 kB / 0.5243 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.1504, allocations: 161.6 kB / 0.5245 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006893/0.1511, allocations: 125.4 kB / 0.5246 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.1527, allocations: 0.9901 MB / 0.5256 GB, free: 11.74 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005083/0.1533, allocations: 0.8625 MB / 0.5264 GB, free: 10.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.1534, allocations: 43.44 kB / 0.5264 GB, free: 10.81 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1534, allocations: 0 / 0.5264 GB, free: 10.81 MB / 398.1 MB Notification: Performance of Templates: time 0.01006/0.1635, allocations: 6.241 MB / 0.5325 GB, free: 4.602 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SIR.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.546746931038797] Failed to read output from testmodel.py, exit status != 0: 0.1700979268644005 0.18393188900000002 0.050963468000000005 Calling exit ...