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.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.001369/0.001369, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001909/0.001909, allocations: 215.3 kB / 22.25 MB, free: 5.262 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.556/1.556, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.2625/0.2625, allocations: 31.54 MB / 344 MB, free: 3.812 MB / 270.1 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/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_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"}) [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.00231/0.00231, allocations: 59.91 kB / 480.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.367, allocations: 60.71 MB / 0.5288 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007824/0.3748, allocations: 6.705 MB / 0.5353 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002718/0.3776, allocations: 1.105 MB / 0.5364 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007648/0.3783, allocations: 26.41 kB / 0.5364 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004592/0.3788, allocations: 137.7 kB / 0.5366 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003175/0.3791, allocations: 85.09 kB / 0.5367 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008471/0.3799, allocations: 303.6 kB / 0.537 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007239/0.3807, allocations: 0.7203 MB / 0.5377 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005357/0.3812, allocations: 306.9 kB / 0.5379 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003047/0.3815, allocations: 307.1 kB / 0.5382 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002548/0.3818, allocations: 263 kB / 0.5385 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.3819, allocations: 82.81 kB / 0.5386 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001375/0.382, allocations: 93.81 kB / 0.5387 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.3821, allocations: 172 kB / 0.5388 GB, free: 1.016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.3823, allocations: 278.3 kB / 0.5391 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006317/0.3829, allocations: 0.8051 MB / 0.5399 GB, free: 180 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3829, allocations: 5.062 kB / 0.5399 GB, free: 176 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3829, allocations: 0 / 0.5399 GB, free: 176 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.783e-05/0.3829, allocations: 3.938 kB / 0.5399 GB, free: 172 kB / 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.001513/0.3845, allocations: 0.833 MB / 0.5407 GB, free: 15.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.3845, allocations: 10.38 kB / 0.5407 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001311/0.3846, allocations: 116.8 kB / 0.5408 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003695/0.385, allocations: 104.2 kB / 0.5409 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006913/0.3857, allocations: 388.2 kB / 0.5413 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.936e-05/0.3858, allocations: 61.45 kB / 0.5413 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.3859, allocations: 74.03 kB / 0.5414 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.3871, allocations: 0.7769 MB / 0.5422 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.3871, allocations: 1.375 kB / 0.5422 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.4e-05/0.3872, allocations: 26.88 kB / 0.5422 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.767e-05/0.3872, allocations: 16.5 kB / 0.5422 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007675/0.388, allocations: 377.9 kB / 0.5426 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00338/0.3913, allocations: 1.946 MB / 0.5445 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006227/0.392, allocations: 300.4 kB / 0.5448 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004203/0.3924, allocations: 211.6 kB / 0.545 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.3924, allocations: 5.219 kB / 0.545 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.3924, allocations: 43.5 kB / 0.545 GB, free: 12.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.735e-06/0.3924, allocations: 0 / 0.545 GB, free: 12.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007846/0.3932, allocations: 403.2 kB / 0.5454 GB, free: 12.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.3934, allocations: 214.8 kB / 0.5456 GB, free: 11.83 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004683/0.3938, allocations: 368 kB / 0.546 GB, free: 11.58 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.458e-05/0.3939, allocations: 39.27 kB / 0.546 GB, free: 11.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002799/0.3942, allocations: 330.1 kB / 0.5463 GB, free: 11.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.3943, allocations: 118.5 kB / 0.5464 GB, free: 11.15 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001867/0.3945, allocations: 124.6 kB / 0.5465 GB, free: 11.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.3947, allocations: 347.8 kB / 0.5469 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003242/0.395, allocations: 154.7 kB / 0.547 GB, free: 10.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005164/0.3955, allocations: 412.3 kB / 0.5474 GB, free: 10.28 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006182/0.3961, allocations: 398.7 kB / 0.5478 GB, free: 9.988 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.3961, allocations: 5.25 kB / 0.5478 GB, free: 9.984 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00095/0.3971, allocations: 0.5073 MB / 0.5483 GB, free: 9.727 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.3971, allocations: 9.812 kB / 0.5483 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.3971, allocations: 3.719 kB / 0.5483 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.269e-05/0.3972, allocations: 7.5 kB / 0.5483 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003413/0.3975, allocations: 88.58 kB / 0.5484 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.3975, allocations: 7.281 kB / 0.5484 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003253/0.3978, allocations: 66.78 kB / 0.5485 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.663e-05/0.3979, allocations: 20.91 kB / 0.5485 GB, free: 9.641 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.0002836/0.3982, allocations: 220.5 kB / 0.5487 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.3983, allocations: 51.41 kB / 0.5487 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.981e-05/0.3984, allocations: 45.92 kB / 0.5488 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3984, allocations: 3.656 kB / 0.5488 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.3984, allocations: 5.234 kB / 0.5488 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.3984, allocations: 5.656 kB / 0.5488 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001788/0.4002, allocations: 1.163 MB / 0.5499 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.4002, allocations: 2.156 kB / 0.5499 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002476/0.4004, allocations: 48.12 kB / 0.55 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.4004, allocations: 3.156 kB / 0.55 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.4005, allocations: 20.92 kB / 0.55 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.4005, allocations: 12.62 kB / 0.55 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.4005, allocations: 2.406 kB / 0.55 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008763/0.4014, allocations: 0.5746 MB / 0.5506 GB, free: 8.027 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001697/0.4015, allocations: 74.72 kB / 0.5507 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.14e-05/0.4016, allocations: 17.55 kB / 0.5507 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.4018, allocations: 11.88 kB / 0.5507 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.4019, allocations: 37.62 kB / 0.5507 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.4019, allocations: 13.12 kB / 0.5507 GB, free: 7.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003306/0.4023, allocations: 242 kB / 0.551 GB, free: 7.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4023, allocations: 0 / 0.551 GB, free: 7.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000558/0.4028, allocations: 139 kB / 0.5511 GB, free: 7.723 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.001251/0.4041, allocations: 1.143 MB / 0.5522 GB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007294/0.4048, allocations: 352.8 kB / 0.5525 GB, free: 6.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/0.4048, allocations: 1.219 kB / 0.5526 GB, free: 6.617 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002646/0.4051, allocations: 159.7 kB / 0.5527 GB, free: 6.543 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006762/0.4058, allocations: 122.4 kB / 0.5528 GB, free: 6.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005915/0.4117, allocations: 3.977 MB / 0.5567 GB, free: 3.582 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.412, allocations: 264.8 kB / 0.557 GB, free: 3.414 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002849/0.4123, allocations: 74.03 kB / 0.557 GB, free: 3.344 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002958/0.4126, allocations: 195.4 kB / 0.5572 GB, free: 3.152 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4126, allocations: 0 / 0.5572 GB, free: 3.152 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04259/0.4552, allocations: 9.602 MB / 0.5666 GB, free: 9.766 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.9, allocations: 23.53 kB / 0.5666 GB, free: 9.75 MB / 414.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.861250550020486] Failed to read output from testmodel.py, exit status != 0: 12.014601483009756 12.04200563 11.653966443 Calling exit ...