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.001156/0.001156, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001084/0.001084, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9571/0.9571, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.1003/0.1003, allocations: 24.12 MB / 283.3 MB, free: 5.492 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0.6562 kB / 420.1 MB, free: 5.48 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.22e-05/1.379e-05, allocations: 3.969 kB / 420.1 MB, free: 5.477 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005442/0.005456, allocations: 6.709 MB / 426.8 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.007367, allocations: 1.098 MB / 427.9 MB, free: 168 kB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003595/0.007727, allocations: 26.53 kB / 427.9 MB, free: 156 kB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003139/0.00804, allocations: 140.6 kB / 428.1 MB, free: 72 kB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.008245, allocations: 86.36 kB / 428.1 MB, free: 4 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000692/0.008937, allocations: 310.7 kB / 428.4 MB, free: 15.81 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006624/0.0096, allocations: 0.7321 MB / 429.2 MB, free: 15.43 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005245/0.01012, allocations: 305.1 kB / 429.5 MB, free: 15.25 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005393/0.01066, allocations: 458.6 kB / 429.9 MB, free: 15.01 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002951/0.01096, allocations: 208.3 kB / 430.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.752e-05/0.01105, allocations: 84.19 kB / 430.2 MB, free: 14.92 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.01116, allocations: 93.17 kB / 430.3 MB, free: 14.92 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001313/0.01129, allocations: 180.7 kB / 430.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.01146, allocations: 227.8 kB / 430.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007254/0.01218, allocations: 0.8105 MB / 431.5 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.01218, allocations: 0 / 431.5 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01218, allocations: 4 kB / 431.5 MB, free: 14.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.0122, allocations: 1.969 kB / 431.5 MB, free: 14.28 MB / 346.7 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.001154/0.01336, allocations: 0.8353 MB / 432.4 MB, free: 13.69 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.0134, allocations: 10.16 kB / 432.4 MB, free: 13.69 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001077/0.0135, allocations: 118 kB / 432.5 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002438/0.01375, allocations: 96.62 kB / 432.6 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005323/0.01428, allocations: 387.9 kB / 433 MB, free: 13.28 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.596e-05/0.01433, allocations: 62.59 kB / 433 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.324e-05/0.0144, allocations: 80.2 kB / 433.1 MB, free: 13.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008121/0.01521, allocations: 0.7754 MB / 433.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.01523, allocations: 1.031 kB / 433.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.715e-05/0.01526, allocations: 26.59 kB / 433.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.01528, allocations: 21.27 kB / 433.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005363/0.01581, allocations: 377.1 kB / 434.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002187/0.018, allocations: 1.927 MB / 436.2 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004291/0.01843, allocations: 306.1 kB / 436.5 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002916/0.01872, allocations: 217.9 kB / 436.7 MB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.01874, allocations: 4.688 kB / 436.7 MB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.01876, allocations: 39.19 kB / 436.8 MB, free: 10.81 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 2.104e-06/0.01877, allocations: 0 / 436.8 MB, free: 10.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.0006948/0.01946, allocations: 406.9 kB / 437.2 MB, free: 10.6 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.491e-05/0.01954, allocations: 210.9 kB / 437.4 MB, free: 10.35 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003119/0.01985, allocations: 368.7 kB / 437.7 MB, free: 10.11 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.698e-05/0.01988, allocations: 44.09 kB / 437.8 MB, free: 10.06 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.02005, allocations: 320.7 kB / 438.1 MB, free: 9.777 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.096e-05/0.02012, allocations: 122.9 kB / 438.2 MB, free: 9.672 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.02025, allocations: 123.5 kB / 438.3 MB, free: 9.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.574e-05/0.02035, allocations: 351.9 kB / 438.7 MB, free: 9.246 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002137/0.02056, allocations: 151.2 kB / 438.8 MB, free: 9.176 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003084/0.02087, allocations: 410.5 kB / 439.2 MB, free: 8.793 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004048/0.02127, allocations: 397.9 kB / 439.6 MB, free: 8.508 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.02128, allocations: 5.156 kB / 439.6 MB, free: 8.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0006018/0.02188, allocations: 0.5067 MB / 440.1 MB, free: 8.242 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.0219, allocations: 7.719 kB / 440.1 MB, free: 8.242 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.0219, allocations: 3.219 kB / 440.1 MB, free: 8.242 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.02192, allocations: 11.25 kB / 440.1 MB, free: 8.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.0221, allocations: 93.14 kB / 440.2 MB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.02211, allocations: 6.562 kB / 440.2 MB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.02228, allocations: 61.97 kB / 440.3 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.02231, allocations: 25.27 kB / 440.3 MB, free: 8.152 MB / 346.7 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.0001853/0.02249, allocations: 220.8 kB / 440.5 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.843e-05/0.02256, allocations: 39.95 kB / 440.6 MB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.906e-05/0.02262, allocations: 44.77 kB / 440.6 MB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.02262, allocations: 8.656 kB / 440.6 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.02263, allocations: 1.531 kB / 440.6 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.02264, allocations: 7.984 kB / 440.6 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001268/0.02391, allocations: 1.168 MB / 441.8 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.02391, allocations: 2.938 kB / 441.8 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001509/0.02406, allocations: 47.56 kB / 441.9 MB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.02407, allocations: 4.25 kB / 441.9 MB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.22e-05/0.02409, allocations: 12.62 kB / 441.9 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.533e-06/0.0241, allocations: 12.16 kB / 441.9 MB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.02411, allocations: 10.52 kB / 441.9 MB, free: 6.949 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009346/0.02504, allocations: 0.5784 MB / 442.5 MB, free: 6.543 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.02515, allocations: 71.14 kB / 442.5 MB, free: 6.492 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.373e-05/0.02518, allocations: 13.94 kB / 442.6 MB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.02529, allocations: 14.98 kB / 442.6 MB, free: 6.477 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.357e-05/0.02536, allocations: 48.5 kB / 442.6 MB, free: 6.441 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.02538, allocations: 13.06 kB / 442.6 MB, free: 6.438 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001974/0.02558, allocations: 238.8 kB / 442.9 MB, free: 6.285 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02558, allocations: 0 / 442.9 MB, free: 6.285 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003506/0.02593, allocations: 142.5 kB / 443 MB, free: 6.234 MB / 346.7 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.000744/0.02667, allocations: 1.132 MB / 444.1 MB, free: 5.293 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004959/0.02717, allocations: 353.2 kB / 444.5 MB, free: 5.141 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.02717, allocations: 4.062 kB / 444.5 MB, free: 5.137 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00019/0.02736, allocations: 157.3 kB / 444.6 MB, free: 5.066 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004661/0.02783, allocations: 113.2 kB / 444.7 MB, free: 5.012 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004009/0.03183, allocations: 3.959 MB / 448.7 MB, free: 1.934 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002015/0.03204, allocations: 275.2 kB / 449 MB, free: 1.637 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001813/0.03222, allocations: 68.33 kB / 449 MB, free: 1.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002023/0.03242, allocations: 196.4 kB / 449.2 MB, free: 1.379 MB / 346.7 MB Notification: Performance of SimCode: time 1.332e-06/0.03242, allocations: 0 / 449.2 MB, free: 1.379 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02445/0.05687, allocations: 9.785 MB / 459 MB, free: 7.809 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.956/7.012, allocations: 0 / 459 MB, free: 7.809 MB / 362.7 MB " [Timeout remaining time 653] (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: 9.099026437848806] Failed to read output from testmodel.py, exit status != 0: 7.098962852731347 7.109161914 7.095161113 Calling exit ...