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.001382/0.001382, allocations: 108.4 kB / 16.45 MB, free: 6.453 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.00167/0.00167, allocations: 215.2 kB / 19.43 MB, free: 3.625 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.5/1.5, allocations: 230.6 MB / 252.8 MB, free: 8.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1784/0.1784, allocations: 31.59 MB / 340.4 MB, free: 5.27 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-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.002066/0.002066, allocations: 67.89 kB / 475.7 MB, free: 2.172 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4826/0.4846, allocations: 60.67 MB / 0.5238 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008085/0.4927, allocations: 7.342 MB / 0.531 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002985/0.4957, allocations: 1.103 MB / 0.5321 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006601/0.4964, allocations: 26.47 kB / 0.5321 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004856/0.4968, allocations: 136.5 kB / 0.5322 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002956/0.4971, allocations: 89.94 kB / 0.5323 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008708/0.498, allocations: 302.5 kB / 0.5326 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008172/0.4988, allocations: 0.723 MB / 0.5333 GB, free: 200 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005955/0.4994, allocations: 321.4 kB / 0.5336 GB, free: 0 / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004646/0.4999, allocations: 302.3 kB / 0.5339 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004147/0.5003, allocations: 309.9 kB / 0.5342 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001421/0.5004, allocations: 83.16 kB / 0.5343 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.5006, allocations: 90 kB / 0.5344 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002081/0.5008, allocations: 178.4 kB / 0.5345 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003793/0.5012, allocations: 343.7 kB / 0.5349 GB, free: 15.28 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.5024, allocations: 0.8005 MB / 0.5356 GB, free: 14.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.5024, allocations: 0 / 0.5356 GB, free: 14.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.5024, allocations: 0 / 0.5356 GB, free: 14.89 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.5024, allocations: 1.625 kB / 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.001794/0.5042, allocations: 0.9126 MB / 0.5365 GB, free: 14.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.113e-05/0.5043, allocations: 14.39 kB / 0.5365 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001657/0.5045, allocations: 112.3 kB / 0.5367 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003967/0.5049, allocations: 101.6 kB / 0.5368 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007015/0.5056, allocations: 459.4 kB / 0.5372 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.059e-05/0.5056, allocations: 56.47 kB / 0.5372 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/0.5058, allocations: 78.23 kB / 0.5373 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.5071, allocations: 0.6492 MB / 0.538 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.5071, allocations: 0 / 0.538 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.6e-05/0.5072, allocations: 27.22 kB / 0.538 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.569e-05/0.5072, allocations: 16.41 kB / 0.538 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009292/0.5082, allocations: 388.2 kB / 0.5384 GB, free: 13.03 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004372/0.5125, allocations: 2.258 MB / 0.5406 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007868/0.5133, allocations: 307.9 kB / 0.5409 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005192/0.5138, allocations: 210.8 kB / 0.5411 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.369e-05/0.5139, allocations: 9.125 kB / 0.5411 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.647e-05/0.5139, allocations: 46.22 kB / 0.5411 GB, free: 10.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 4.558e-06/0.5139, allocations: 0 / 0.5411 GB, free: 10.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.000832/0.5148, allocations: 400.3 kB / 0.5415 GB, free: 10.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000172/0.5149, allocations: 218.7 kB / 0.5417 GB, free: 10.33 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004604/0.5154, allocations: 354.9 kB / 0.542 GB, free: 10.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.182e-05/0.5155, allocations: 43.2 kB / 0.5421 GB, free: 10.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002674/0.5157, allocations: 324.4 kB / 0.5424 GB, free: 9.766 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.5159, allocations: 123.5 kB / 0.5425 GB, free: 9.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/0.5161, allocations: 124.1 kB / 0.5426 GB, free: 9.582 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.5163, allocations: 360.8 kB / 0.543 GB, free: 9.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003327/0.5166, allocations: 153.8 kB / 0.5431 GB, free: 9.156 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005414/0.5171, allocations: 300.2 kB / 0.5434 GB, free: 8.902 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000743/0.5179, allocations: 400.3 kB / 0.5438 GB, free: 8.613 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.5179, allocations: 1.375 kB / 0.5438 GB, free: 8.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001123/0.519, allocations: 0.513 MB / 0.5443 GB, free: 8.344 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.628e-05/0.519, allocations: 10.72 kB / 0.5443 GB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/0.5191, allocations: 2.906 kB / 0.5443 GB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.684e-05/0.5191, allocations: 6.625 kB / 0.5443 GB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004036/0.5195, allocations: 81.45 kB / 0.5444 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.418e-05/0.5195, allocations: 5.562 kB / 0.5444 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003688/0.5199, allocations: 67.06 kB / 0.5445 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.391e-05/0.52, allocations: 25.27 kB / 0.5445 GB, free: 8.262 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.0004243/0.5204, allocations: 225.1 kB / 0.5447 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.5205, allocations: 42.89 kB / 0.5447 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001261/0.5207, allocations: 49.11 kB / 0.5448 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.5207, allocations: 9.625 kB / 0.5448 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.5207, allocations: 0 / 0.5448 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.5207, allocations: 5.047 kB / 0.5448 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002186/0.5229, allocations: 1.251 MB / 0.546 GB, free: 6.996 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.5229, allocations: 6.016 kB / 0.546 GB, free: 6.992 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002693/0.5231, allocations: 47.8 kB / 0.5461 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.406e-06/0.5232, allocations: 3.75 kB / 0.5461 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.036e-05/0.5232, allocations: 21.7 kB / 0.5461 GB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.715e-06/0.5232, allocations: 3.312 kB / 0.5461 GB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.5232, allocations: 2.656 kB / 0.5461 GB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.5243, allocations: 0.5714 MB / 0.5467 GB, free: 6.562 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001965/0.5245, allocations: 151.4 kB / 0.5468 GB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.856e-05/0.5245, allocations: 17.62 kB / 0.5468 GB, free: 6.402 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001996/0.5247, allocations: 14.2 kB / 0.5468 GB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.5248, allocations: 40.41 kB / 0.5469 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.5249, allocations: 8.844 kB / 0.5469 GB, free: 6.371 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003468/0.5252, allocations: 237.6 kB / 0.5471 GB, free: 6.219 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5252, allocations: 0 / 0.5471 GB, free: 6.219 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006274/0.5258, allocations: 146.9 kB / 0.5472 GB, free: 6.164 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.00137/0.5272, allocations: 1.15 MB / 0.5484 GB, free: 5.199 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007974/0.528, allocations: 342.5 kB / 0.5487 GB, free: 5.059 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.528, allocations: 1.188 kB / 0.5487 GB, free: 5.059 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002694/0.5283, allocations: 158.1 kB / 0.5489 GB, free: 4.988 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007018/0.529, allocations: 125.9 kB / 0.549 GB, free: 4.926 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006175/0.5351, allocations: 3.975 MB / 0.5529 GB, free: 1.992 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000655/0.5358, allocations: 0.8707 MB / 0.5537 GB, free: 1.211 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002993/0.5361, allocations: 59.61 kB / 0.5538 GB, free: 1.184 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003068/0.5364, allocations: 198.5 kB / 0.5539 GB, free: 1.02 MB / 398.1 MB Notification: Performance of SimCode: time 1.813e-06/0.5364, allocations: 0 / 0.5539 GB, free: 1.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03844/0.5749, allocations: 8.587 MB / 0.5623 GB, free: 10.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.573/9.148, allocations: 3.938 kB / 0.5623 GB, free: 10.16 MB / 414.1 MB " [Timeout remaining time 651] (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: 12.04469026112929] Failed to read output from testmodel.py, exit status != 0: 9.223893575835973 9.240488567 8.735093005 Calling exit ...