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.007131/0.007131, allocations: 98.02 kB / 15.73 MB, free: 6.062 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.001757/0.001757, allocations: 194.3 kB / 16.68 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.468/1.468, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1755/0.1755, allocations: 31.17 MB / 321.7 MB, free: 188 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 71.89 kB / 446.3 MB, free: 2.211 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1243, allocations: 56.35 MB / 0.4908 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.009119/0.1335, allocations: 7.246 MB / 0.4979 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002415/0.136, allocations: 1.098 MB / 0.499 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004093/0.1364, allocations: 19.88 kB / 0.499 GB, free: 1.426 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004014/0.1368, allocations: 142.7 kB / 0.4991 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002586/0.1371, allocations: 87.16 kB / 0.4992 GB, free: 1.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007246/0.1379, allocations: 287.4 kB / 0.4995 GB, free: 0.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007655/0.1386, allocations: 0.7305 MB / 0.5002 GB, free: 188 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2534/0.3921, allocations: 473.6 kB / 0.5007 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005336/0.3926, allocations: 291 kB / 0.5009 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004421/0.3931, allocations: 309.1 kB / 0.5012 GB, free: 5.633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001561/0.3933, allocations: 83.47 kB / 0.5013 GB, free: 5.633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002034/0.3935, allocations: 93.34 kB / 0.5014 GB, free: 5.633 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.3936, allocations: 173 kB / 0.5016 GB, free: 5.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003337/0.394, allocations: 344.6 kB / 0.5019 GB, free: 5.504 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001067/0.3951, allocations: 0.8019 MB / 0.5027 GB, free: 5.383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.3951, allocations: 0 / 0.5027 GB, free: 5.383 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3951, allocations: 1 kB / 0.5027 GB, free: 5.383 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.3951, allocations: 3.938 kB / 0.5027 GB, free: 5.379 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.00178/0.3969, allocations: 0.9091 MB / 0.5036 GB, free: 4.824 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.397, allocations: 10.03 kB / 0.5036 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001623/0.3971, allocations: 117 kB / 0.5037 GB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004448/0.3976, allocations: 99.98 kB / 0.5038 GB, free: 4.746 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005644/0.3982, allocations: 455.1 kB / 0.5042 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.624e-05/0.3982, allocations: 63.78 kB / 0.5043 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.3984, allocations: 72.5 kB / 0.5044 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009696/0.3993, allocations: 0.6484 MB / 0.505 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.3994, allocations: 3.531 kB / 0.505 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.972e-05/0.3994, allocations: 25.22 kB / 0.505 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.3994, allocations: 22.23 kB / 0.505 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006732/0.4001, allocations: 381.8 kB / 0.5054 GB, free: 4.352 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002874/0.403, allocations: 2.251 MB / 0.5076 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005928/0.4036, allocations: 326.9 kB / 0.5079 GB, free: 3.332 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003899/0.404, allocations: 230.9 kB / 0.5081 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.39e-05/0.4041, allocations: 4.656 kB / 0.5081 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.4041, allocations: 41.91 kB / 0.5082 GB, free: 3.266 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 1.954e-06/0.4041, allocations: 0 / 0.5082 GB, free: 3.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007495/0.4048, allocations: 400.3 kB / 0.5086 GB, free: 3.199 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.4049, allocations: 220.8 kB / 0.5088 GB, free: 2.945 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003837/0.4053, allocations: 367.2 kB / 0.5091 GB, free: 2.828 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/0.4054, allocations: 42.25 kB / 0.5092 GB, free: 2.797 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.4055, allocations: 323 kB / 0.5095 GB, free: 2.605 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.229e-05/0.4056, allocations: 127.9 kB / 0.5096 GB, free: 2.527 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.4058, allocations: 117.4 kB / 0.5097 GB, free: 2.512 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.612e-05/0.4059, allocations: 353 kB / 0.51 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002957/0.4062, allocations: 156.9 kB / 0.5102 GB, free: 2.195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003629/0.4066, allocations: 304 kB / 0.5105 GB, free: 2.035 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004937/0.4071, allocations: 405.3 kB / 0.5109 GB, free: 1.891 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.4071, allocations: 1.062 kB / 0.5109 GB, free: 1.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008159/0.4079, allocations: 0.5093 MB / 0.5114 GB, free: 1.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.4079, allocations: 10.59 kB / 0.5114 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.4079, allocations: 4.156 kB / 0.5114 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.82e-05/0.408, allocations: 11.45 kB / 0.5114 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003239/0.4083, allocations: 82.92 kB / 0.5115 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.742e-05/0.4083, allocations: 9.828 kB / 0.5115 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003181/0.4087, allocations: 64.3 kB / 0.5115 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-05/0.4087, allocations: 21.44 kB / 0.5116 GB, free: 1.781 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.0002975/0.409, allocations: 230.4 kB / 0.5118 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.4091, allocations: 46.91 kB / 0.5118 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.874e-05/0.4092, allocations: 50.27 kB / 0.5119 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.4092, allocations: 5.125 kB / 0.5119 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/0.4093, allocations: 1.219 kB / 0.5119 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.4093, allocations: 3.312 kB / 0.5119 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001621/0.4109, allocations: 1.239 MB / 0.5131 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.4109, allocations: 1.531 kB / 0.5131 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002446/0.4112, allocations: 50.64 kB / 0.5131 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.022e-06/0.4112, allocations: 4.969 kB / 0.5131 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.746e-05/0.4112, allocations: 10.44 kB / 0.5132 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.989e-06/0.4112, allocations: 15.27 kB / 0.5132 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.4112, allocations: 3.062 kB / 0.5132 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007537/0.412, allocations: 0.5818 MB / 0.5137 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.4121, allocations: 152.6 kB / 0.5139 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.617e-05/0.4122, allocations: 15.92 kB / 0.5139 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.4124, allocations: 20.64 kB / 0.5139 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.969e-05/0.4125, allocations: 35.67 kB / 0.514 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.4125, allocations: 16.94 kB / 0.514 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003541/0.4129, allocations: 235.9 kB / 0.5142 GB, free: 16.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4129, allocations: 1.406 kB / 0.5142 GB, free: 16.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005213/0.4134, allocations: 142 kB / 0.5143 GB, free: 16.57 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.001039/0.4145, allocations: 1.134 MB / 0.5154 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006591/0.4151, allocations: 385.5 kB / 0.5158 GB, free: 15.81 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4152, allocations: 5.562 kB / 0.5158 GB, free: 15.81 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002361/0.4154, allocations: 169.4 kB / 0.516 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006695/0.4161, allocations: 116.2 kB / 0.5161 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005263/0.4214, allocations: 3.956 MB / 0.52 GB, free: 13.83 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005955/0.422, allocations: 0.8682 MB / 0.5208 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002997/0.4223, allocations: 69.97 kB / 0.5209 GB, free: 13.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002455/0.4225, allocations: 198.8 kB / 0.5211 GB, free: 13.1 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4226, allocations: 4 kB / 0.5211 GB, free: 13.1 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03633/0.4589, allocations: 8.538 MB / 0.5294 GB, free: 10.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.876/9.335, allocations: 3.562 kB / 0.5294 GB, free: 10.95 MB / 398.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)