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.0009142/0.0009142, allocations: 72.45 kB / 19.17 MB, free: 0.7344 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.001098/0.001098, allocations: 173.9 kB / 22.46 MB, free: 2.09 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.9141/0.9141, allocations: 177.1 MB / 202.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.1035/0.1035, allocations: 24.13 MB / 283.3 MB, free: 5.473 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.995e-06/2.995e-06, allocations: 0 / 420.1 MB, free: 8.492 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.477e-05/3.776e-05, allocations: 2.281 kB / 420.1 MB, free: 8.488 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006904/0.006941, allocations: 6.724 MB / 426.8 MB, free: 1.73 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.002344/0.009286, allocations: 1.095 MB / 427.9 MB, free: 0.6328 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007092/0.009995, allocations: 23.81 kB / 427.9 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004716/0.01047, allocations: 142.7 kB / 428.1 MB, free: 480 kB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002884/0.01075, allocations: 103 kB / 428.2 MB, free: 376 kB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007684/0.01152, allocations: 299.3 kB / 428.5 MB, free: 76 kB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007787/0.0123, allocations: 0.7303 MB / 429.2 MB, free: 15.34 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005248/0.01283, allocations: 299.1 kB / 429.5 MB, free: 15.03 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005809/0.01341, allocations: 471 kB / 429.9 MB, free: 14.57 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002728/0.01368, allocations: 207.2 kB / 430.1 MB, free: 14.36 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001256/0.01381, allocations: 84 kB / 430.2 MB, free: 14.28 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.01393, allocations: 92 kB / 430.3 MB, free: 14.19 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.01407, allocations: 179.4 kB / 430.5 MB, free: 14.02 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001962/0.01427, allocations: 223.5 kB / 430.7 MB, free: 13.8 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00093/0.0152, allocations: 0.8216 MB / 431.5 MB, free: 12.97 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.0152, allocations: 0 / 431.5 MB, free: 12.97 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.0152, allocations: 3.938 kB / 431.5 MB, free: 12.97 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.233e-05/0.01522, allocations: 0 / 431.5 MB, free: 12.97 MB / 410.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.001715/0.01694, allocations: 0.8294 MB / 432.4 MB, free: 12.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.017, allocations: 12.73 kB / 432.4 MB, free: 12.1 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.01711, allocations: 114.7 kB / 432.5 MB, free: 11.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002863/0.01739, allocations: 96.44 kB / 432.6 MB, free: 11.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005861/0.01798, allocations: 387.9 kB / 433 MB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.231e-05/0.01803, allocations: 62.38 kB / 433 MB, free: 11.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.742e-05/0.01811, allocations: 75.94 kB / 433.1 MB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008854/0.019, allocations: 0.7755 MB / 433.9 MB, free: 10.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.01901, allocations: 0 / 433.9 MB, free: 10.51 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.205e-05/0.01905, allocations: 32 kB / 433.9 MB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.01907, allocations: 16 kB / 433.9 MB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007547/0.01982, allocations: 381 kB / 434.3 MB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002498/0.02232, allocations: 1.927 MB / 436.2 MB, free: 8.094 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005615/0.02288, allocations: 306.9 kB / 436.5 MB, free: 7.773 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003485/0.02323, allocations: 219 kB / 436.7 MB, free: 7.551 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.02325, allocations: 4.281 kB / 436.7 MB, free: 7.547 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.02329, allocations: 38.84 kB / 436.8 MB, free: 7.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=38): time 3.477e-06/0.02329, allocations: 0 / 436.8 MB, free: 7.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=38): time 0.0006314/0.02392, allocations: 402.7 kB / 437.2 MB, free: 7.102 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.192e-05/0.02402, allocations: 217.8 kB / 437.4 MB, free: 6.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006096/0.02462, allocations: 377.4 kB / 437.8 MB, free: 6.461 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.991e-05/0.02466, allocations: 41.7 kB / 437.8 MB, free: 6.414 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.02484, allocations: 320.9 kB / 438.1 MB, free: 6.098 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.37e-05/0.02491, allocations: 119 kB / 438.2 MB, free: 5.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.02504, allocations: 126.3 kB / 438.3 MB, free: 5.848 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.02515, allocations: 346.8 kB / 438.7 MB, free: 5.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000214/0.02537, allocations: 157.2 kB / 438.8 MB, free: 5.348 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003415/0.02571, allocations: 402.1 kB / 439.2 MB, free: 4.871 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004556/0.02617, allocations: 417.1 kB / 439.6 MB, free: 4.414 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.02617, allocations: 0 / 439.6 MB, free: 4.414 MB / 410.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0006409/0.02681, allocations: 0.5014 MB / 440.1 MB, free: 3.906 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.02684, allocations: 8 kB / 440.1 MB, free: 3.898 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.02685, allocations: 4.031 kB / 440.2 MB, free: 3.895 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.02687, allocations: 11.94 kB / 440.2 MB, free: 3.883 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.02707, allocations: 91.77 kB / 440.3 MB, free: 3.793 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.02708, allocations: 11.94 kB / 440.3 MB, free: 3.781 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001822/0.02726, allocations: 71.48 kB / 440.3 MB, free: 3.711 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.544e-05/0.02729, allocations: 20 kB / 440.4 MB, free: 3.691 MB / 410.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.0002129/0.0275, allocations: 217.8 kB / 440.6 MB, free: 3.469 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.504e-05/0.02757, allocations: 39.77 kB / 440.6 MB, free: 3.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.479e-05/0.02764, allocations: 48.14 kB / 440.7 MB, free: 3.383 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.02765, allocations: 11.92 kB / 440.7 MB, free: 3.371 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.02766, allocations: 0 / 440.7 MB, free: 3.371 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.02766, allocations: 4 kB / 440.7 MB, free: 3.367 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001234/0.0289, allocations: 1.155 MB / 441.8 MB, free: 2.133 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.0289, allocations: 0 / 441.8 MB, free: 2.133 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.02907, allocations: 56.16 kB / 441.9 MB, free: 2.078 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.64e-06/0.02908, allocations: 4 kB / 441.9 MB, free: 2.074 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.652e-05/0.0291, allocations: 15.98 kB / 441.9 MB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.02911, allocations: 4 kB / 441.9 MB, free: 2.055 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.02911, allocations: 7.875 kB / 441.9 MB, free: 2.047 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006201/0.02973, allocations: 0.5767 MB / 442.5 MB, free: 1.43 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.02985, allocations: 79.61 kB / 442.6 MB, free: 1.352 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.02989, allocations: 19.98 kB / 442.6 MB, free: 1.332 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.03, allocations: 12 kB / 442.6 MB, free: 1.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.753e-05/0.03008, allocations: 43.88 kB / 442.6 MB, free: 1.277 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.03009, allocations: 12 kB / 442.6 MB, free: 1.266 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001845/0.03027, allocations: 235.2 kB / 442.9 MB, free: 1.039 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03027, allocations: 0 / 442.9 MB, free: 1.039 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004203/0.03069, allocations: 135.6 kB / 443 MB, free: 0.9062 MB / 410.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.1729/0.2036, allocations: 1.144 MB / 444.2 MB, free: 63.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000536/0.2041, allocations: 355.3 kB / 444.5 MB, free: 63.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.2041, allocations: 3.375 kB / 444.5 MB, free: 63.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.2042, allocations: 150.3 kB / 444.7 MB, free: 63.47 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004796/0.2047, allocations: 113.8 kB / 444.8 MB, free: 63.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003436/0.2082, allocations: 3.945 MB / 448.7 MB, free: 61.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001611/0.2083, allocations: 265.7 kB / 449 MB, free: 61.01 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001814/0.2085, allocations: 68.94 kB / 449 MB, free: 61 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002182/0.2087, allocations: 200.1 kB / 449.2 MB, free: 60.86 MB / 410.7 MB Notification: Performance of SimCode: time 1.012e-06/0.2087, allocations: 0 / 449.2 MB, free: 60.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02187/0.2306, allocations: 9.782 MB / 459 MB, free: 59.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.088/7.318, allocations: 0 / 459 MB, free: 59.25 MB / 410.7 MB " [Timeout remaining time 653] (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: 9.320101915858686] Failed to read output from testmodel.py, exit status != 0: 7.404021319933236 7.410077046 7.393346893 Calling exit ...