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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001805/0.001805, allocations: 102.8 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001768/0.001768, allocations: 206.4 kB / 19.42 MB, free: 3.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.507/1.507, allocations: 230.6 MB / 252.8 MB, free: 8.953 MB / 206.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.1793/0.1793, allocations: 31.56 MB / 340.4 MB, free: 5.117 MB / 270.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: BusinessSimulation requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 60.19 kB / 475.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3285, allocations: 60.68 MB / 0.5238 GB, free: 6.949 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007573/0.3361, allocations: 7.334 MB / 0.5309 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002754/0.3389, allocations: 1.107 MB / 0.532 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001125/0.34, allocations: 26.38 kB / 0.532 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005053/0.3405, allocations: 136.4 kB / 0.5322 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003489/0.3408, allocations: 85.45 kB / 0.5323 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008936/0.3417, allocations: 306.5 kB / 0.5326 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007423/0.3425, allocations: 0.7224 MB / 0.5333 GB, free: 200 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005809/0.3431, allocations: 322.1 kB / 0.5336 GB, free: 0 / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004208/0.3435, allocations: 306.1 kB / 0.5339 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000377/0.3439, allocations: 302.2 kB / 0.5341 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001055/0.344, allocations: 83.12 kB / 0.5342 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.3441, allocations: 90 kB / 0.5343 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001796/0.3443, allocations: 178 kB / 0.5345 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003158/0.3446, allocations: 351.9 kB / 0.5348 GB, free: 15.28 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001043/0.3456, allocations: 0.7967 MB / 0.5356 GB, free: 14.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3456, allocations: 4.5 kB / 0.5356 GB, free: 14.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3457, allocations: 0 / 0.5356 GB, free: 14.89 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.782e-05/0.3457, allocations: 0 / 0.5356 GB, free: 14.89 MB / 398.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.001701/0.3474, allocations: 0.9132 MB / 0.5365 GB, free: 14.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.3474, allocations: 9.75 kB / 0.5365 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001464/0.3476, allocations: 114.5 kB / 0.5366 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003902/0.3479, allocations: 103.7 kB / 0.5367 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006847/0.3486, allocations: 457.5 kB / 0.5371 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.079e-05/0.3487, allocations: 56.78 kB / 0.5372 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.3488, allocations: 74 kB / 0.5373 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.3499, allocations: 0.6525 MB / 0.5379 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.35, allocations: 1.344 kB / 0.5379 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.877e-05/0.35, allocations: 30.67 kB / 0.5379 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/0.35, allocations: 16.28 kB / 0.538 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007422/0.3508, allocations: 376.6 kB / 0.5383 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003283/0.3541, allocations: 2.253 MB / 0.5405 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006291/0.3547, allocations: 313 kB / 0.5408 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004145/0.3551, allocations: 215.4 kB / 0.541 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.87e-05/0.3551, allocations: 8.672 kB / 0.541 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.3552, allocations: 41.66 kB / 0.5411 GB, free: 10.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.404e-06/0.3552, allocations: 4 kB / 0.5411 GB, free: 10.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008029/0.356, allocations: 404.1 kB / 0.5415 GB, free: 10.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.3561, allocations: 213.8 kB / 0.5417 GB, free: 10.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004439/0.3566, allocations: 360.1 kB / 0.542 GB, free: 10.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.389e-05/0.3566, allocations: 43.2 kB / 0.542 GB, free: 10.01 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002638/0.3569, allocations: 321.5 kB / 0.5423 GB, free: 9.727 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.357, allocations: 130.7 kB / 0.5425 GB, free: 9.613 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001962/0.3572, allocations: 124.1 kB / 0.5426 GB, free: 9.535 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.3574, allocations: 355.5 kB / 0.5429 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003204/0.3577, allocations: 151.3 kB / 0.5431 GB, free: 9.117 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004458/0.3581, allocations: 303.9 kB / 0.5434 GB, free: 8.859 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005911/0.3587, allocations: 397 kB / 0.5437 GB, free: 8.574 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.3587, allocations: 0 / 0.5437 GB, free: 8.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009169/0.3597, allocations: 0.517 MB / 0.5442 GB, free: 8.301 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.3597, allocations: 10.94 kB / 0.5443 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.3597, allocations: 3.5 kB / 0.5443 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.3597, allocations: 6.781 kB / 0.5443 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/0.36, allocations: 81 kB / 0.5443 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.54e-05/0.3601, allocations: 10.61 kB / 0.5444 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003288/0.3604, allocations: 62.88 kB / 0.5444 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.033e-05/0.3604, allocations: 32.75 kB / 0.5444 GB, free: 8.211 MB / 398.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.0003103/0.3607, allocations: 220.7 kB / 0.5447 GB, free: 8.027 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.3608, allocations: 43.11 kB / 0.5447 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.361, allocations: 49.58 kB / 0.5447 GB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.361, allocations: 4.062 kB / 0.5447 GB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.361, allocations: 1.219 kB / 0.5447 GB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.361, allocations: 5.391 kB / 0.5448 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/0.3629, allocations: 1.245 MB / 0.546 GB, free: 6.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3629, allocations: 2.75 kB / 0.546 GB, free: 6.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002642/0.3632, allocations: 52.16 kB / 0.546 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.165e-06/0.3632, allocations: 7.438 kB / 0.546 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/0.3632, allocations: 13.41 kB / 0.546 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.3632, allocations: 7.719 kB / 0.5461 GB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.3632, allocations: 6.172 kB / 0.5461 GB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008463/0.3641, allocations: 0.5752 MB / 0.5466 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/0.3642, allocations: 143.2 kB / 0.5468 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.712e-05/0.3643, allocations: 21.8 kB / 0.5468 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.3645, allocations: 11.28 kB / 0.5468 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.933e-05/0.3646, allocations: 39.83 kB / 0.5468 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/0.3646, allocations: 8.594 kB / 0.5468 GB, free: 6.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003042/0.3649, allocations: 242.7 kB / 0.5471 GB, free: 6.176 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3649, allocations: 0 / 0.5471 GB, free: 6.176 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005818/0.3655, allocations: 142.2 kB / 0.5472 GB, free: 6.125 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.00114/0.3667, allocations: 1.15 MB / 0.5483 GB, free: 5.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007313/0.3674, allocations: 347 kB / 0.5487 GB, free: 5.016 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.3674, allocations: 1.25 kB / 0.5487 GB, free: 5.016 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002667/0.3677, allocations: 157.8 kB / 0.5488 GB, free: 4.945 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007243/0.3684, allocations: 121.2 kB / 0.5489 GB, free: 4.883 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005811/0.3742, allocations: 3.976 MB / 0.5528 GB, free: 1.949 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000543/0.3747, allocations: 0.8628 MB / 0.5536 GB, free: 1.176 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003171/0.3751, allocations: 66.77 kB / 0.5537 GB, free: 1.141 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003073/0.3754, allocations: 202.5 kB / 0.5539 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of SimCode: time 1.623e-06/0.3754, allocations: 0 / 0.5539 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03736/0.4127, allocations: 8.595 MB / 0.5623 GB, free: 10.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.367/8.779, allocations: 3.938 kB / 0.5623 GB, free: 10.1 MB / 414.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.520507319000899] Failed to read output from testmodel.py, exit status != 0: 8.852842059990508 8.867500102 8.518741357 Calling exit ...