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: "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SIR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0074/0.0074, allocations: 99.84 kB / 15.73 MB, free: 6.492 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.001681/0.001681, allocations: 201.3 kB / 16.68 MB, free: 6.375 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2909/0.2909, allocations: 31.16 MB / 321.7 MB, free: 4.328 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.75 kB / 446.3 MB, free: 30.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1165, allocations: 56.36 MB / 0.4908 GB, free: 7.738 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.00808/0.1247, allocations: 7.242 MB / 0.4979 GB, free: 476 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002734/0.1274, allocations: 1.098 MB / 0.499 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000619/0.1281, allocations: 19.94 kB / 0.499 GB, free: 15.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004505/0.1285, allocations: 142.6 kB / 0.4991 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003036/0.1289, allocations: 95.16 kB / 0.4992 GB, free: 15.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008314/0.1298, allocations: 299.4 kB / 0.4995 GB, free: 14.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000696/0.1305, allocations: 0.7189 MB / 0.5002 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006429/0.1311, allocations: 474.5 kB / 0.5007 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003022/0.1314, allocations: 302.9 kB / 0.501 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002952/0.1317, allocations: 310.4 kB / 0.5013 GB, free: 13.01 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.693e-05/0.1318, allocations: 88 kB / 0.5013 GB, free: 12.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001189/0.132, allocations: 88 kB / 0.5014 GB, free: 12.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000145/0.1321, allocations: 171.5 kB / 0.5016 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002688/0.1324, allocations: 342.3 kB / 0.5019 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008465/0.1332, allocations: 0.8094 MB / 0.5027 GB, free: 11.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1333, allocations: 0 / 0.5027 GB, free: 11.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1333, allocations: 0 / 0.5027 GB, free: 11.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.1333, allocations: 0 / 0.5027 GB, free: 11.52 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.001541/0.1348, allocations: 0.9085 MB / 0.5036 GB, free: 10.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.1349, allocations: 12.03 kB / 0.5036 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001226/0.135, allocations: 114.7 kB / 0.5037 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003407/0.1354, allocations: 96.44 kB / 0.5038 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006215/0.136, allocations: 462.6 kB / 0.5042 GB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.681e-05/0.1361, allocations: 58 kB / 0.5043 GB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.903e-05/0.1362, allocations: 72 kB / 0.5044 GB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.1372, allocations: 0.6539 MB / 0.505 GB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.1372, allocations: 3.938 kB / 0.505 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.345e-05/0.1373, allocations: 28 kB / 0.505 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/0.1373, allocations: 16 kB / 0.5051 GB, free: 8.984 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006723/0.138, allocations: 389 kB / 0.5054 GB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002807/0.1408, allocations: 2.255 MB / 0.5076 GB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006272/0.1414, allocations: 319 kB / 0.5079 GB, free: 5.906 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003995/0.1419, allocations: 231.3 kB / 0.5082 GB, free: 5.672 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.1419, allocations: 4.281 kB / 0.5082 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.1419, allocations: 46.78 kB / 0.5082 GB, free: 5.613 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.124e-06/0.1419, allocations: 3.938 kB / 0.5082 GB, free: 5.609 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007012/0.1426, allocations: 394.8 kB / 0.5086 GB, free: 5.219 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.087e-05/0.1427, allocations: 217.6 kB / 0.5088 GB, free: 4.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003679/0.1431, allocations: 365.5 kB / 0.5091 GB, free: 4.594 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.508e-05/0.1432, allocations: 45.95 kB / 0.5092 GB, free: 4.543 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001928/0.1434, allocations: 324.9 kB / 0.5095 GB, free: 4.223 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.913e-05/0.1435, allocations: 123 kB / 0.5096 GB, free: 4.102 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/0.1436, allocations: 114.3 kB / 0.5097 GB, free: 3.984 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1438, allocations: 358.8 kB / 0.5101 GB, free: 3.625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.144, allocations: 149.2 kB / 0.5102 GB, free: 3.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004213/0.1445, allocations: 303.3 kB / 0.5105 GB, free: 3.129 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005225/0.145, allocations: 406.2 kB / 0.5109 GB, free: 2.684 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.145, allocations: 0 / 0.5109 GB, free: 2.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008318/0.1459, allocations: 0.5141 MB / 0.5114 GB, free: 2.164 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.1459, allocations: 7.938 kB / 0.5114 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.1459, allocations: 4 kB / 0.5114 GB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.1459, allocations: 8 kB / 0.5114 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003078/0.1462, allocations: 80.3 kB / 0.5115 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.1463, allocations: 11.94 kB / 0.5115 GB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002959/0.1466, allocations: 67.55 kB / 0.5116 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.056e-05/0.1466, allocations: 28 kB / 0.5116 GB, free: 1.961 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.000288/0.1469, allocations: 222.2 kB / 0.5118 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.147, allocations: 43.66 kB / 0.5118 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.051e-05/0.1471, allocations: 52.14 kB / 0.5119 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.1471, allocations: 4 kB / 0.5119 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.1472, allocations: 0 / 0.5119 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.1472, allocations: 7.984 kB / 0.5119 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001596/0.1488, allocations: 1.242 MB / 0.5131 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1488, allocations: 0 / 0.5131 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002441/0.149, allocations: 51.91 kB / 0.5132 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.149, allocations: 4 kB / 0.5132 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.514e-05/0.1491, allocations: 11.94 kB / 0.5132 GB, free: 244 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.768e-06/0.1491, allocations: 7.984 kB / 0.5132 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.1491, allocations: 7.938 kB / 0.5132 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007362/0.1499, allocations: 0.5807 MB / 0.5138 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.15, allocations: 148.7 kB / 0.5139 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.521e-05/0.1501, allocations: 27.92 kB / 0.5139 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001918/0.1503, allocations: 8.125 kB / 0.5139 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.48e-05/0.1504, allocations: 39.89 kB / 0.514 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-05/0.1504, allocations: 16 kB / 0.514 GB, free: 15.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002462/0.1507, allocations: 235.2 kB / 0.5142 GB, free: 15.12 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1507, allocations: 0 / 0.5142 GB, free: 15.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004603/0.1511, allocations: 143.5 kB / 0.5143 GB, free: 14.98 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.0009599/0.1521, allocations: 1.149 MB / 0.5155 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000622/0.1527, allocations: 379.5 kB / 0.5158 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.1528, allocations: 192 / 0.5158 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002332/0.153, allocations: 168.5 kB / 0.516 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006643/0.1537, allocations: 107.9 kB / 0.5161 GB, free: 13.15 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004944/0.1586, allocations: 3.971 MB / 0.52 GB, free: 8.949 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004639/0.1591, allocations: 0.8624 MB / 0.5208 GB, free: 8.062 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002434/0.1594, allocations: 72.33 kB / 0.5209 GB, free: 7.988 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002585/0.1596, allocations: 195.4 kB / 0.5211 GB, free: 7.797 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1596, allocations: 4 kB / 0.5211 GB, free: 7.793 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02582/0.1855, allocations: 8.543 MB / 0.5294 GB, free: 15.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.239/8.424, allocations: 0 / 0.5294 GB, free: 15.36 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file BusinessSimulation_dev_BusinessSimulation.Examples.SIR_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 BusinessSimulation_dev_BusinessSimulation_Examples_SIR.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1)