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.00131/0.00131, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001442/0.001442, allocations: 216.6 kB / 22.25 MB, free: 5.129 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.489/1.489, allocations: 230.6 MB / 256 MB, free: 7.992 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.1759/0.1759, allocations: 31.57 MB / 344 MB, free: 3.961 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.002892/0.002892, allocations: 67.89 kB / 480.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3717/0.3746, allocations: 60.71 MB / 0.5289 GB, free: 7.633 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007556/0.3822, allocations: 7.379 MB / 0.5361 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002503/0.3847, allocations: 1.112 MB / 0.5372 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007037/0.3854, allocations: 26.72 kB / 0.5372 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004727/0.3858, allocations: 145 kB / 0.5373 GB, free: 1.484 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000298/0.3861, allocations: 84.94 kB / 0.5374 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008875/0.387, allocations: 314.8 kB / 0.5377 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000818/0.3878, allocations: 0.7213 MB / 0.5384 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005339/0.3884, allocations: 322.9 kB / 0.5387 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003503/0.3887, allocations: 300.4 kB / 0.539 GB, free: 496 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003232/0.3891, allocations: 311.5 kB / 0.5393 GB, free: 264 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001198/0.3892, allocations: 86.31 kB / 0.5394 GB, free: 260 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001341/0.3893, allocations: 93 kB / 0.5395 GB, free: 256 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.3894, allocations: 172.3 kB / 0.5397 GB, free: 108 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003146/0.3897, allocations: 346.7 kB / 0.54 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009793/0.3907, allocations: 0.7987 MB / 0.5408 GB, free: 15.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3907, allocations: 0 / 0.5408 GB, free: 15.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3907, allocations: 4 kB / 0.5408 GB, free: 15.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.3907, allocations: 3.938 kB / 0.5408 GB, free: 15.19 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.00155/0.3923, allocations: 0.8369 MB / 0.5416 GB, free: 14.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.3923, allocations: 10.34 kB / 0.5416 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001325/0.3925, allocations: 116.7 kB / 0.5417 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003491/0.3928, allocations: 103.1 kB / 0.5418 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006764/0.3935, allocations: 381.4 kB / 0.5422 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.989e-05/0.3936, allocations: 61.62 kB / 0.5422 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.3937, allocations: 73.5 kB / 0.5423 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.3948, allocations: 0.649 MB / 0.5429 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.3948, allocations: 1.531 kB / 0.5429 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.306e-05/0.3949, allocations: 25.94 kB / 0.543 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.3949, allocations: 17.44 kB / 0.543 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007345/0.3956, allocations: 383.5 kB / 0.5433 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003357/0.399, allocations: 2.203 MB / 0.5455 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006501/0.3996, allocations: 311.3 kB / 0.5458 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004341/0.4, allocations: 212.6 kB / 0.546 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.4001, allocations: 8.438 kB / 0.546 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.386e-05/0.4001, allocations: 42.16 kB / 0.546 GB, free: 11.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.104e-06/0.4001, allocations: 0 / 0.546 GB, free: 11.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008193/0.4009, allocations: 407.3 kB / 0.5464 GB, free: 10.97 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/0.4011, allocations: 218.3 kB / 0.5466 GB, free: 10.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004487/0.4015, allocations: 359.3 kB / 0.547 GB, free: 10.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.727e-05/0.4016, allocations: 51.38 kB / 0.547 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002626/0.4018, allocations: 313.4 kB / 0.5473 GB, free: 10.15 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.402, allocations: 127 kB / 0.5474 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/0.4022, allocations: 123.7 kB / 0.5476 GB, free: 9.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.4024, allocations: 351.6 kB / 0.5479 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/0.4027, allocations: 159.6 kB / 0.5481 GB, free: 9.543 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004488/0.4032, allocations: 295.9 kB / 0.5483 GB, free: 9.293 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005817/0.4037, allocations: 410.7 kB / 0.5487 GB, free: 8.988 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.4037, allocations: 1.312 kB / 0.5487 GB, free: 8.988 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.000943/0.4047, allocations: 0.5042 MB / 0.5492 GB, free: 8.734 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.4047, allocations: 12.62 kB / 0.5492 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.4047, allocations: 7.281 kB / 0.5492 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/0.4048, allocations: 7.156 kB / 0.5492 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003504/0.4051, allocations: 81.27 kB / 0.5493 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.023e-05/0.4051, allocations: 9.562 kB / 0.5493 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003454/0.4055, allocations: 75.52 kB / 0.5494 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.166e-05/0.4055, allocations: 24.19 kB / 0.5494 GB, free: 8.637 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.0003266/0.4058, allocations: 213 kB / 0.5496 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.406, allocations: 51.86 kB / 0.5497 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001123/0.4061, allocations: 48.36 kB / 0.5497 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.4061, allocations: 5.688 kB / 0.5497 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.4061, allocations: 3.984 kB / 0.5497 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.4061, allocations: 1.406 kB / 0.5497 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001966/0.4081, allocations: 1.213 MB / 0.5509 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.4081, allocations: 2.406 kB / 0.5509 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000251/0.4083, allocations: 51.53 kB / 0.551 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.4083, allocations: 4.344 kB / 0.551 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.379e-05/0.4084, allocations: 12.31 kB / 0.551 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.4084, allocations: 4.562 kB / 0.551 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.4084, allocations: 6.938 kB / 0.551 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008558/0.4092, allocations: 0.579 MB / 0.5516 GB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001722/0.4094, allocations: 78.62 kB / 0.5516 GB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.828e-05/0.4095, allocations: 17.53 kB / 0.5517 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.4097, allocations: 18.36 kB / 0.5517 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.71e-05/0.4098, allocations: 37.45 kB / 0.5517 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.4098, allocations: 12.41 kB / 0.5517 GB, free: 6.875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000324/0.4101, allocations: 238.5 kB / 0.552 GB, free: 6.723 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4101, allocations: 0 / 0.552 GB, free: 6.723 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006446/0.4107, allocations: 139 kB / 0.5521 GB, free: 6.676 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.001406/0.4122, allocations: 1.147 MB / 0.5532 GB, free: 5.715 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008788/0.413, allocations: 350.5 kB / 0.5535 GB, free: 5.562 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.413, allocations: 0.9375 kB / 0.5535 GB, free: 5.562 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000313/0.4133, allocations: 152.9 kB / 0.5537 GB, free: 5.496 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008315/0.4142, allocations: 123.2 kB / 0.5538 GB, free: 5.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007073/0.4213, allocations: 3.976 MB / 0.5577 GB, free: 2.512 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007556/0.422, allocations: 0.8668 MB / 0.5585 GB, free: 1.734 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003844/0.4224, allocations: 62.88 kB / 0.5586 GB, free: 1.703 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003421/0.4227, allocations: 198.3 kB / 0.5588 GB, free: 1.539 MB / 398.1 MB Notification: Performance of SimCode: time 1.432e-06/0.4227, allocations: 0 / 0.5588 GB, free: 1.539 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04133/0.4641, allocations: 9.003 MB / 0.5676 GB, free: 8.836 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.95, allocations: 13.56 kB / 0.5676 GB, free: 8.828 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.823853900001268] Failed to read output from testmodel.py, exit status != 0: 12.066491088997282 12.094642637 11.698550148 Calling exit ...