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.001865/0.001865, 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.002514/0.002514, allocations: 211 kB / 22.24 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.509/1.509, allocations: 230.6 MB / 256 MB, free: 7.73 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.1815/0.1815, allocations: 31.55 MB / 344 MB, free: 3.773 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.002121/0.002121, allocations: 59.91 kB / 480.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3616, allocations: 60.72 MB / 0.5288 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.00827/0.3699, allocations: 6.708 MB / 0.5354 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.3725, allocations: 1.098 MB / 0.5364 GB, free: 2.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005525/0.373, allocations: 29.91 kB / 0.5365 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000438/0.3735, allocations: 141.3 kB / 0.5366 GB, free: 2.402 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002798/0.3737, allocations: 85.8 kB / 0.5367 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000788/0.3745, allocations: 298.7 kB / 0.537 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006991/0.3752, allocations: 0.7289 MB / 0.5377 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005323/0.3758, allocations: 306.8 kB / 0.538 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003153/0.3761, allocations: 303.7 kB / 0.5383 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000264/0.3763, allocations: 255 kB / 0.5385 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001105/0.3764, allocations: 83.66 kB / 0.5386 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.3766, allocations: 100.3 kB / 0.5387 GB, free: 1.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.3767, allocations: 175.7 kB / 0.5388 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.3769, allocations: 275.1 kB / 0.5391 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006495/0.3775, allocations: 0.8024 MB / 0.5399 GB, free: 216 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3776, allocations: 0 / 0.5399 GB, free: 216 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3776, allocations: 4 kB / 0.5399 GB, free: 212 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.596e-05/0.3776, allocations: 0 / 0.5399 GB, free: 212 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.001434/0.379, allocations: 0.8414 MB / 0.5407 GB, free: 15.54 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.379, allocations: 10.34 kB / 0.5407 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001282/0.3792, allocations: 114.1 kB / 0.5408 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003328/0.3795, allocations: 102.5 kB / 0.5409 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007137/0.3802, allocations: 379 kB / 0.5413 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.899e-05/0.3803, allocations: 61.03 kB / 0.5413 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.3804, allocations: 77.58 kB / 0.5414 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.3815, allocations: 0.7886 MB / 0.5422 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.3816, allocations: 1.406 kB / 0.5422 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.113e-05/0.3816, allocations: 26.72 kB / 0.5422 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.3816, allocations: 16.5 kB / 0.5422 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007154/0.3824, allocations: 378.8 kB / 0.5426 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003195/0.3856, allocations: 1.937 MB / 0.5445 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006355/0.3862, allocations: 303.3 kB / 0.5448 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004136/0.3866, allocations: 212.9 kB / 0.545 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.3866, allocations: 6.125 kB / 0.545 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.979e-05/0.3867, allocations: 43.53 kB / 0.545 GB, free: 12.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.064e-06/0.3867, allocations: 0 / 0.545 GB, free: 12.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007754/0.3874, allocations: 394.5 kB / 0.5454 GB, free: 12.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/0.3876, allocations: 211.4 kB / 0.5456 GB, free: 11.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004847/0.3881, allocations: 375.7 kB / 0.546 GB, free: 11.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.749e-05/0.3881, allocations: 39.11 kB / 0.546 GB, free: 11.58 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000269/0.3884, allocations: 324.8 kB / 0.5463 GB, free: 11.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.3885, allocations: 123 kB / 0.5464 GB, free: 11.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/0.3887, allocations: 128.5 kB / 0.5465 GB, free: 11.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.3889, allocations: 352.9 kB / 0.5469 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003012/0.3892, allocations: 151.1 kB / 0.547 GB, free: 10.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005107/0.3897, allocations: 409.6 kB / 0.5474 GB, free: 10.31 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006151/0.3903, allocations: 398.2 kB / 0.5478 GB, free: 10.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.3903, allocations: 1.375 kB / 0.5478 GB, free: 10.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009159/0.3912, allocations: 0.5153 MB / 0.5483 GB, free: 9.758 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.3912, allocations: 5.75 kB / 0.5483 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.3912, allocations: 4.469 kB / 0.5483 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.3913, allocations: 6.844 kB / 0.5483 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003359/0.3916, allocations: 80.92 kB / 0.5484 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.643e-05/0.3916, allocations: 14.34 kB / 0.5484 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003146/0.3919, allocations: 66.78 kB / 0.5485 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.351e-05/0.392, allocations: 24.86 kB / 0.5485 GB, free: 9.672 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.0003093/0.3923, allocations: 225.6 kB / 0.5487 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.3924, allocations: 38.23 kB / 0.5487 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001011/0.3925, allocations: 46.27 kB / 0.5488 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3925, allocations: 8.438 kB / 0.5488 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.3925, allocations: 5.094 kB / 0.5488 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.3925, allocations: 7.984 kB / 0.5488 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.3943, allocations: 1.156 MB / 0.5499 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.3943, allocations: 2.25 kB / 0.5499 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000247/0.3945, allocations: 52.62 kB / 0.55 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.124e-06/0.3945, allocations: 3.969 kB / 0.55 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.3946, allocations: 12.53 kB / 0.55 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.3946, allocations: 12.06 kB / 0.55 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.3946, allocations: 2.438 kB / 0.55 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000816/0.3954, allocations: 0.5827 MB / 0.5506 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/0.3956, allocations: 71.8 kB / 0.5507 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.041e-05/0.3956, allocations: 8.781 kB / 0.5507 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.3958, allocations: 15.95 kB / 0.5507 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.3959, allocations: 40.28 kB / 0.5507 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/0.3959, allocations: 17.69 kB / 0.5507 GB, free: 7.965 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002959/0.3962, allocations: 238 kB / 0.551 GB, free: 7.809 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3962, allocations: 5.312 kB / 0.551 GB, free: 7.805 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005028/0.3967, allocations: 137.6 kB / 0.5511 GB, free: 7.758 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.001179/0.3979, allocations: 1.14 MB / 0.5522 GB, free: 6.809 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007366/0.3987, allocations: 348 kB / 0.5525 GB, free: 6.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3987, allocations: 4.062 kB / 0.5526 GB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002813/0.3989, allocations: 157.5 kB / 0.5527 GB, free: 6.586 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007192/0.3997, allocations: 125.1 kB / 0.5528 GB, free: 6.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00641/0.4061, allocations: 3.982 MB / 0.5567 GB, free: 3.617 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.4064, allocations: 260.4 kB / 0.557 GB, free: 3.387 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003005/0.4067, allocations: 72.33 kB / 0.557 GB, free: 3.312 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003046/0.407, allocations: 195.4 kB / 0.5572 GB, free: 3.121 MB / 398.1 MB Notification: Performance of SimCode: time 1.263e-06/0.407, allocations: 0 / 0.5572 GB, free: 3.121 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04076/0.4478, allocations: 9.615 MB / 0.5666 GB, free: 9.727 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.06, allocations: 19.66 kB / 0.5666 GB, free: 9.707 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.987251431681216] Failed to read output from testmodel.py, exit status != 0: 12.172194047830999 12.194024121 11.813259226 Calling exit ...