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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 192.1 kB / 16.53 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 240.2 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2612/0.2612, allocations: 31.12 MB / 321.5 MB, free: 4.301 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 63.91 kB / 389 MB, free: 2.359 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2344, allocations: 56.34 MB / 445.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005708/0.2402, allocations: 7.239 MB / 452.6 MB, free: 29.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001658/0.2419, allocations: 1.092 MB / 453.7 MB, free: 28.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003236/0.2422, allocations: 17.06 kB / 453.7 MB, free: 28.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003082/0.2425, allocations: 144.1 kB / 453.8 MB, free: 28.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002107/0.2428, allocations: 77.66 kB / 453.9 MB, free: 28.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005955/0.2434, allocations: 297.6 kB / 454.2 MB, free: 28.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004965/0.2439, allocations: 0.7157 MB / 454.9 MB, free: 27.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005239/0.2444, allocations: 487.9 kB / 455.4 MB, free: 27.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002214/0.2446, allocations: 295 kB / 455.7 MB, free: 27.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.2449, allocations: 307.5 kB / 456 MB, free: 27.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.65e-05/0.245, allocations: 83.34 kB / 456.1 MB, free: 27.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.2451, allocations: 93.94 kB / 456.2 MB, free: 27.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.2452, allocations: 175.5 kB / 456.3 MB, free: 26.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.2454, allocations: 346.1 kB / 456.7 MB, free: 26.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005212/0.2459, allocations: 0.7677 MB / 457.4 MB, free: 26.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2459, allocations: 4 kB / 457.4 MB, free: 26.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2459, allocations: 1.438 kB / 457.4 MB, free: 26.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.246, allocations: 0 / 457.4 MB, free: 26.31 MB / 350.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.001134/0.2471, allocations: 0.8971 MB / 458.3 MB, free: 25.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.2471, allocations: 13.69 kB / 458.3 MB, free: 25.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001133/0.2473, allocations: 112.9 kB / 458.5 MB, free: 25.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003316/0.2476, allocations: 94.7 kB / 458.6 MB, free: 25.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004259/0.248, allocations: 430.6 kB / 459 MB, free: 25.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.683e-05/0.2481, allocations: 59.12 kB / 459 MB, free: 25.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.253e-05/0.2482, allocations: 74.25 kB / 459.1 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008944/0.2491, allocations: 0.6482 MB / 459.8 MB, free: 24.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.2491, allocations: 3.938 kB / 459.8 MB, free: 24.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.609e-05/0.2492, allocations: 26.81 kB / 459.8 MB, free: 24.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.2492, allocations: 17.12 kB / 459.8 MB, free: 24.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006323/0.2498, allocations: 377.8 kB / 460.2 MB, free: 24.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002528/0.2523, allocations: 2.279 MB / 462.4 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005374/0.2529, allocations: 331.4 kB / 462.8 MB, free: 22.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003789/0.2533, allocations: 233 kB / 463 MB, free: 22.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.2533, allocations: 4 kB / 463 MB, free: 22.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.2534, allocations: 48.11 kB / 463 MB, free: 22.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 2.765e-06/0.2534, allocations: 3.984 kB / 463.1 MB, free: 22.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007107/0.2541, allocations: 394.9 kB / 463.4 MB, free: 22.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.2541, allocations: 216.8 kB / 463.6 MB, free: 22.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000373/0.2545, allocations: 364.4 kB / 464 MB, free: 22.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.189e-05/0.2546, allocations: 43.97 kB / 464 MB, free: 22.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.2547, allocations: 314 kB / 464.4 MB, free: 21.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.752e-05/0.2548, allocations: 120 kB / 464.5 MB, free: 21.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.255, allocations: 121 kB / 464.6 MB, free: 21.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.6e-05/0.2551, allocations: 349.9 kB / 464.9 MB, free: 21.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003048/0.2554, allocations: 152.6 kB / 465.1 MB, free: 21.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003543/0.2557, allocations: 302.9 kB / 465.4 MB, free: 21.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004846/0.2562, allocations: 411.3 kB / 465.8 MB, free: 20.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.2563, allocations: 4 kB / 465.8 MB, free: 20.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008549/0.2571, allocations: 0.5047 MB / 466.3 MB, free: 20.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.2571, allocations: 11.44 kB / 466.3 MB, free: 20.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.2572, allocations: 4.031 kB / 466.3 MB, free: 20.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.614e-05/0.2572, allocations: 10.78 kB / 466.3 MB, free: 20.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003231/0.2575, allocations: 83.52 kB / 466.4 MB, free: 20.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.2575, allocations: 10.89 kB / 466.4 MB, free: 20.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003863/0.2579, allocations: 61.16 kB / 466.5 MB, free: 20.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-05/0.258, allocations: 21.5 kB / 466.5 MB, free: 20.54 MB / 350.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.0002494/0.2582, allocations: 221.1 kB / 466.7 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.2584, allocations: 47.08 kB / 466.7 MB, free: 20.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.358e-05/0.2585, allocations: 53.64 kB / 466.8 MB, free: 20.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.2585, allocations: 4.438 kB / 466.8 MB, free: 20.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.2585, allocations: 2.031 kB / 466.8 MB, free: 20.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.2585, allocations: 3.516 kB / 466.8 MB, free: 20.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.2601, allocations: 1.233 MB / 468 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.2601, allocations: 6.312 kB / 468 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002417/0.2603, allocations: 51.94 kB / 468.1 MB, free: 19.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.2604, allocations: 2.531 kB / 468.1 MB, free: 19.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/0.2604, allocations: 14.97 kB / 468.1 MB, free: 19.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.2604, allocations: 8.141 kB / 468.1 MB, free: 19.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.2604, allocations: 10.09 kB / 468.1 MB, free: 19.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006361/0.2611, allocations: 0.5755 MB / 468.7 MB, free: 19.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.2612, allocations: 149.4 kB / 468.9 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.287e-05/0.2612, allocations: 18.8 kB / 468.9 MB, free: 18.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001965/0.2614, allocations: 13.95 kB / 468.9 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.225e-05/0.2615, allocations: 38.94 kB / 468.9 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.2616, allocations: 12.78 kB / 468.9 MB, free: 18.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002601/0.2618, allocations: 237.8 kB / 469.2 MB, free: 18.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2618, allocations: 0 / 469.2 MB, free: 18.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005294/0.2624, allocations: 138.9 kB / 469.3 MB, free: 18.71 MB / 350.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.000891/0.2633, allocations: 1.137 MB / 470.4 MB, free: 17.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007752/0.2641, allocations: 396.2 kB / 470.8 MB, free: 17.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.2641, allocations: 5.062 kB / 470.8 MB, free: 17.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000251/0.2643, allocations: 161.3 kB / 471 MB, free: 17.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007226/0.2651, allocations: 131.6 kB / 471.1 MB, free: 17.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004944/0.27, allocations: 4.004 MB / 475.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.2704, allocations: 0.8638 MB / 476 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003214/0.2708, allocations: 66.45 kB / 476.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002414/0.271, allocations: 197.1 kB / 476.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.271, allocations: 0 / 476.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02591/0.2969, allocations: 8.448 MB / 484.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.599/7.896, allocations: 10.8 kB / 484.7 MB, free: 11.34 MB / 350.1 MB (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)