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: "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_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.00755/0.00755, allocations: 98.8 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.001778/0.001778, allocations: 193.3 kB / 16.67 MB, free: 5.961 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.399/1.399, 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/package.mo): time 0.2715/0.2715, allocations: 31.13 MB / 321.7 MB, free: 4.191 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 60.88 kB / 446.2 MB, free: 30.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09004/0.09124, allocations: 56.38 MB / 0.4908 GB, free: 7.629 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007664/0.09895, allocations: 7.236 MB / 0.4979 GB, free: 368 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.101, allocations: 1.098 MB / 0.4989 GB, free: 15.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003393/0.1014, allocations: 19.94 kB / 0.499 GB, free: 15.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003563/0.1018, allocations: 142.6 kB / 0.4991 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002486/0.102, allocations: 87.19 kB / 0.4992 GB, free: 15.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006681/0.1027, allocations: 299.3 kB / 0.4995 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006611/0.1034, allocations: 0.7266 MB / 0.5002 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006085/0.104, allocations: 474.5 kB / 0.5006 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002915/0.1043, allocations: 302.9 kB / 0.5009 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000284/0.1046, allocations: 310.5 kB / 0.5012 GB, free: 12.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.013e-05/0.1047, allocations: 84 kB / 0.5013 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.1048, allocations: 88 kB / 0.5014 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.105, allocations: 179.5 kB / 0.5016 GB, free: 12.56 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000255/0.1052, allocations: 346.2 kB / 0.5019 GB, free: 12.22 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007491/0.106, allocations: 0.7978 MB / 0.5027 GB, free: 11.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.106, allocations: 0 / 0.5027 GB, free: 11.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.106, allocations: 0 / 0.5027 GB, free: 11.42 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.163e-05/0.106, allocations: 4 kB / 0.5027 GB, free: 11.41 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.001365/0.1074, allocations: 0.9163 MB / 0.5036 GB, free: 10.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.1074, allocations: 12.03 kB / 0.5036 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.1076, allocations: 106.7 kB / 0.5037 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003557/0.1079, allocations: 104.4 kB / 0.5038 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005901/0.1085, allocations: 454.6 kB / 0.5042 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.197e-05/0.1086, allocations: 58 kB / 0.5043 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.699e-05/0.1087, allocations: 72 kB / 0.5043 GB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.1097, allocations: 0.65 MB / 0.505 GB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.851e-05/0.1097, allocations: 3.938 kB / 0.505 GB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.13e-05/0.1098, allocations: 28 kB / 0.505 GB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.1098, allocations: 19.94 kB / 0.505 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007002/0.1105, allocations: 381 kB / 0.5054 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002935/0.1135, allocations: 2.258 MB / 0.5076 GB, free: 6.145 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005596/0.1141, allocations: 324.6 kB / 0.5079 GB, free: 5.797 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004075/0.1145, allocations: 234.2 kB / 0.5081 GB, free: 5.562 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.1145, allocations: 4.281 kB / 0.5081 GB, free: 5.559 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.1145, allocations: 46.77 kB / 0.5082 GB, free: 5.504 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 1.713e-06/0.1145, allocations: 0 / 0.5082 GB, free: 5.504 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007099/0.1153, allocations: 394.8 kB / 0.5085 GB, free: 5.113 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.1154, allocations: 217.6 kB / 0.5088 GB, free: 4.852 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003965/0.1158, allocations: 365.5 kB / 0.5091 GB, free: 4.488 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.876e-05/0.1158, allocations: 45.7 kB / 0.5091 GB, free: 4.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002162/0.1161, allocations: 316.7 kB / 0.5094 GB, free: 4.125 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.1162, allocations: 127.2 kB / 0.5096 GB, free: 4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/0.1163, allocations: 114.3 kB / 0.5097 GB, free: 3.883 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.1165, allocations: 354.8 kB / 0.51 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003053/0.1168, allocations: 153.2 kB / 0.5102 GB, free: 3.379 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004049/0.1172, allocations: 305.7 kB / 0.5105 GB, free: 3.027 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005429/0.1178, allocations: 406.1 kB / 0.5108 GB, free: 2.582 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.1178, allocations: 4 kB / 0.5108 GB, free: 2.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008362/0.1186, allocations: 0.5064 MB / 0.5113 GB, free: 2.066 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.1187, allocations: 15.92 kB / 0.5114 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.1187, allocations: 4 kB / 0.5114 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.1187, allocations: 4 kB / 0.5114 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003116/0.119, allocations: 83.84 kB / 0.5114 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.119, allocations: 11.92 kB / 0.5115 GB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002883/0.1193, allocations: 71.92 kB / 0.5115 GB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-05/0.1194, allocations: 20 kB / 0.5115 GB, free: 1.859 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.0002421/0.1196, allocations: 222.2 kB / 0.5118 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.1197, allocations: 51.66 kB / 0.5118 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.952e-05/0.1198, allocations: 44.14 kB / 0.5118 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1198, allocations: 4 kB / 0.5118 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1199, allocations: 4 kB / 0.5119 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.485e-06/0.1199, allocations: 3.984 kB / 0.5119 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001517/0.1214, allocations: 1.241 MB / 0.5131 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.1214, allocations: 4 kB / 0.5131 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002527/0.1217, allocations: 56.16 kB / 0.5131 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.1217, allocations: 4 kB / 0.5131 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.566e-05/0.1217, allocations: 11.94 kB / 0.5131 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.1217, allocations: 4 kB / 0.5131 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.1217, allocations: 7.938 kB / 0.5132 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000723/0.1225, allocations: 0.5808 MB / 0.5137 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/0.1226, allocations: 152.7 kB / 0.5139 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.556e-05/0.1227, allocations: 23.92 kB / 0.5139 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/0.1229, allocations: 16 kB / 0.5139 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.44e-05/0.123, allocations: 39.89 kB / 0.5139 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.123, allocations: 8 kB / 0.5139 GB, free: 15.24 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002449/0.1233, allocations: 239.2 kB / 0.5142 GB, free: 15.01 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1233, allocations: 0 / 0.5142 GB, free: 15.01 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004377/0.1237, allocations: 139.6 kB / 0.5143 GB, free: 14.87 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.000957/0.1247, allocations: 1.137 MB / 0.5154 GB, free: 13.69 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006278/0.1253, allocations: 382.7 kB / 0.5158 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.1253, allocations: 0.9375 kB / 0.5158 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002385/0.1256, allocations: 168.8 kB / 0.5159 GB, free: 13.15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006531/0.1262, allocations: 112.2 kB / 0.5161 GB, free: 13.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005013/0.1313, allocations: 3.971 MB / 0.5199 GB, free: 8.844 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.1317, allocations: 0.8663 MB / 0.5208 GB, free: 7.953 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002307/0.1319, allocations: 68.33 kB / 0.5208 GB, free: 7.883 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002649/0.1322, allocations: 199.4 kB / 0.521 GB, free: 7.688 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1322, allocations: 0 / 0.521 GB, free: 7.688 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/0.1587, allocations: 8.54 MB / 0.5294 GB, free: 15.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.969/8.127, allocations: 4 kB / 0.5294 GB, free: 15.27 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file BusinessSimulation_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_BusinessSimulation_Examples_SIR.fmu > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1)