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.001639/0.001639, allocations: 110.4 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.001592/0.001592, allocations: 217.3 kB / 22.25 MB, free: 5.125 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.607/1.607, allocations: 230.6 MB / 256 MB, free: 7.98 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.1858/0.1858, allocations: 31.55 MB / 344 MB, free: 3.957 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.002076/0.002076, allocations: 63.89 kB / 480.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.406/0.4081, allocations: 60.71 MB / 0.5289 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007434/0.4155, allocations: 7.377 MB / 0.5361 GB, free: 2.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002401/0.4179, allocations: 1.111 MB / 0.5372 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005008/0.4184, allocations: 26.34 kB / 0.5372 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004095/0.4188, allocations: 146.1 kB / 0.5373 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002479/0.4191, allocations: 85.39 kB / 0.5374 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000778/0.4199, allocations: 310.4 kB / 0.5377 GB, free: 1.246 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006677/0.4205, allocations: 0.7168 MB / 0.5384 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004723/0.421, allocations: 326.3 kB / 0.5387 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002993/0.4213, allocations: 310 kB / 0.539 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002582/0.4216, allocations: 307.5 kB / 0.5393 GB, free: 276 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.038e-05/0.4217, allocations: 86.09 kB / 0.5394 GB, free: 272 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.4218, allocations: 88.44 kB / 0.5395 GB, free: 272 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.4219, allocations: 178.1 kB / 0.5396 GB, free: 120 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002675/0.4222, allocations: 344.6 kB / 0.54 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009343/0.4231, allocations: 0.7985 MB / 0.5408 GB, free: 15.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4231, allocations: 1.125 kB / 0.5408 GB, free: 15.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.4231, allocations: 0 / 0.5408 GB, free: 15.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.4231, allocations: 0 / 0.5408 GB, free: 15.21 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.00151/0.4246, allocations: 0.8405 MB / 0.5416 GB, free: 14.54 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.4247, allocations: 9.688 kB / 0.5416 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001212/0.4248, allocations: 113.4 kB / 0.5417 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003339/0.4251, allocations: 103.7 kB / 0.5418 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006166/0.4257, allocations: 385.4 kB / 0.5422 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.445e-05/0.4258, allocations: 61.62 kB / 0.5422 GB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.904e-05/0.4259, allocations: 73.5 kB / 0.5423 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.4269, allocations: 0.6455 MB / 0.5429 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.4269, allocations: 3.938 kB / 0.5429 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.538e-05/0.427, allocations: 30.84 kB / 0.543 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.427, allocations: 16.44 kB / 0.543 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007139/0.4277, allocations: 384.1 kB / 0.5433 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003345/0.4311, allocations: 2.207 MB / 0.5455 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006115/0.4317, allocations: 296.3 kB / 0.5458 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004497/0.4321, allocations: 225 kB / 0.546 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.4322, allocations: 4.219 kB / 0.546 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.4322, allocations: 42.75 kB / 0.546 GB, free: 11.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.673e-06/0.4322, allocations: 4 kB / 0.546 GB, free: 11.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008015/0.433, allocations: 406.9 kB / 0.5464 GB, free: 10.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001449/0.4331, allocations: 215.1 kB / 0.5466 GB, free: 10.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004477/0.4336, allocations: 362.3 kB / 0.547 GB, free: 10.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.219e-05/0.4337, allocations: 44.62 kB / 0.547 GB, free: 10.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002595/0.4339, allocations: 316.6 kB / 0.5473 GB, free: 10.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.434, allocations: 122.4 kB / 0.5474 GB, free: 10.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/0.4342, allocations: 127.7 kB / 0.5476 GB, free: 9.977 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.4344, allocations: 348.5 kB / 0.5479 GB, free: 9.637 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002962/0.4347, allocations: 155 kB / 0.548 GB, free: 9.562 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004273/0.4351, allocations: 299 kB / 0.5483 GB, free: 9.309 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005682/0.4357, allocations: 411.9 kB / 0.5487 GB, free: 9.004 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.4357, allocations: 5.156 kB / 0.5487 GB, free: 9 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009769/0.4367, allocations: 0.5074 MB / 0.5492 GB, free: 8.742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.4367, allocations: 10.62 kB / 0.5492 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.4367, allocations: 4.188 kB / 0.5492 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.4367, allocations: 6.188 kB / 0.5492 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003316/0.4371, allocations: 85.45 kB / 0.5493 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/0.4371, allocations: 9.594 kB / 0.5493 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003228/0.4374, allocations: 70.73 kB / 0.5494 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.744e-05/0.4374, allocations: 24.97 kB / 0.5494 GB, free: 8.648 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.0002969/0.4377, allocations: 216.7 kB / 0.5496 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.4378, allocations: 43.73 kB / 0.5497 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001013/0.4379, allocations: 45.11 kB / 0.5497 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.4379, allocations: 4.281 kB / 0.5497 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.438, allocations: 1.25 kB / 0.5497 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.438, allocations: 5.422 kB / 0.5497 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.4398, allocations: 1.22 MB / 0.5509 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.4398, allocations: 2.219 kB / 0.5509 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000273/0.4401, allocations: 52.5 kB / 0.551 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.4401, allocations: 4.5 kB / 0.551 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.4401, allocations: 16.25 kB / 0.551 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.524e-06/0.4401, allocations: 7.344 kB / 0.551 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/0.4401, allocations: 7.094 kB / 0.551 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008718/0.441, allocations: 0.5789 MB / 0.5516 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.4412, allocations: 78.81 kB / 0.5516 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.165e-05/0.4412, allocations: 13.38 kB / 0.5516 GB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/0.4414, allocations: 15.67 kB / 0.5517 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.875e-05/0.4415, allocations: 36.27 kB / 0.5517 GB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.4416, allocations: 13.78 kB / 0.5517 GB, free: 6.887 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003449/0.4419, allocations: 237.5 kB / 0.5519 GB, free: 6.734 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4419, allocations: 0 / 0.5519 GB, free: 6.734 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005697/0.4425, allocations: 134.9 kB / 0.5521 GB, free: 6.691 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.001178/0.4436, allocations: 1.155 MB / 0.5532 GB, free: 5.723 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008061/0.4444, allocations: 347.6 kB / 0.5535 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.4445, allocations: 1.125 kB / 0.5535 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002628/0.4447, allocations: 157.6 kB / 0.5537 GB, free: 5.504 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007007/0.4454, allocations: 126.4 kB / 0.5538 GB, free: 5.434 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006154/0.4516, allocations: 3.97 MB / 0.5577 GB, free: 2.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005854/0.4522, allocations: 0.8665 MB / 0.5585 GB, free: 1.742 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002637/0.4524, allocations: 63.06 kB / 0.5586 GB, free: 1.711 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002829/0.4527, allocations: 202 kB / 0.5588 GB, free: 1.543 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4527, allocations: 0 / 0.5588 GB, free: 1.543 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03988/0.4926, allocations: 9.003 MB / 0.5676 GB, free: 8.852 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12.04, allocations: 14.75 kB / 0.5676 GB, free: 8.84 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: 15.084179257995856] Failed to read output from testmodel.py, exit status != 0: 12.144440110001597 12.16075849 11.73437026 Calling exit ...