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.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-main/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 108 kB / 15.61 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.001749/0.001748, allocations: 196.2 kB / 16.53 MB, free: 6.656 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.412/1.412, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.286/0.286, allocations: 31.17 MB / 321.6 MB, free: 4.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002009/0.002009, allocations: 63.91 kB / 389 MB, free: 2.469 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2842, allocations: 56.35 MB / 445.4 MB, free: 34.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006573/0.2909, allocations: 7.237 MB / 452.6 MB, free: 29.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.2932, allocations: 1.093 MB / 453.7 MB, free: 28.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005007/0.2937, allocations: 22.16 kB / 453.8 MB, free: 28.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003851/0.2941, allocations: 136 kB / 453.9 MB, free: 28.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002361/0.2944, allocations: 82.58 kB / 454 MB, free: 28.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006694/0.2951, allocations: 301.8 kB / 454.3 MB, free: 28.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005507/0.2956, allocations: 0.7128 MB / 455 MB, free: 27.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005367/0.2962, allocations: 485.1 kB / 455.5 MB, free: 27.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002525/0.2964, allocations: 288.3 kB / 455.7 MB, free: 27.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002732/0.2967, allocations: 314.2 kB / 456 MB, free: 27.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.2968, allocations: 88.16 kB / 456.1 MB, free: 27.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.297, allocations: 87.72 kB / 456.2 MB, free: 27.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.2971, allocations: 174.5 kB / 456.4 MB, free: 27.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002254/0.2974, allocations: 347.9 kB / 456.7 MB, free: 26.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006171/0.298, allocations: 0.765 MB / 457.5 MB, free: 26.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.298, allocations: 2.594 kB / 457.5 MB, free: 26.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.298, allocations: 0 / 457.5 MB, free: 26.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.779e-05/0.298, allocations: 0 / 457.5 MB, free: 26.43 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.001328/0.2994, allocations: 0.8997 MB / 458.4 MB, free: 25.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.2994, allocations: 9.531 kB / 458.4 MB, free: 25.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.2995, allocations: 109 kB / 458.5 MB, free: 25.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003502/0.2999, allocations: 92.83 kB / 458.6 MB, free: 25.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005114/0.3004, allocations: 438.2 kB / 459 MB, free: 25.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.108e-05/0.3005, allocations: 57.31 kB / 459.1 MB, free: 25.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-05/0.3006, allocations: 78.53 kB / 459.2 MB, free: 25.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009173/0.3015, allocations: 0.6443 MB / 459.8 MB, free: 24.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.3015, allocations: 1.656 kB / 459.8 MB, free: 24.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.559e-05/0.3016, allocations: 26.16 kB / 459.8 MB, free: 24.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.3016, allocations: 21.3 kB / 459.8 MB, free: 24.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006257/0.3022, allocations: 385.1 kB / 460.2 MB, free: 24.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002667/0.3049, allocations: 2.279 MB / 462.5 MB, free: 23.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005578/0.3055, allocations: 324.6 kB / 462.8 MB, free: 23.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003968/0.3059, allocations: 227.6 kB / 463 MB, free: 22.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.3059, allocations: 5.062 kB / 463 MB, free: 22.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.306, allocations: 43.66 kB / 463.1 MB, free: 22.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 2.685e-06/0.306, allocations: 12.2 kB / 463.1 MB, free: 22.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007324/0.3067, allocations: 399.5 kB / 463.5 MB, free: 22.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.171e-05/0.3068, allocations: 214.8 kB / 463.7 MB, free: 22.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003903/0.3072, allocations: 357.6 kB / 464.1 MB, free: 22.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.175e-05/0.3072, allocations: 44.86 kB / 464.1 MB, free: 22.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.3074, allocations: 316.7 kB / 464.4 MB, free: 22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.145e-05/0.3075, allocations: 116.1 kB / 464.5 MB, free: 21.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/0.3077, allocations: 125.8 kB / 464.6 MB, free: 21.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.086e-05/0.3078, allocations: 353.8 kB / 465 MB, free: 21.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002923/0.3081, allocations: 157.4 kB / 465.1 MB, free: 21.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003602/0.3084, allocations: 307.5 kB / 465.4 MB, free: 21.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005246/0.309, allocations: 400.7 kB / 465.8 MB, free: 20.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.309, allocations: 2.594 kB / 465.8 MB, free: 20.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0007756/0.3098, allocations: 0.5128 MB / 466.3 MB, free: 20.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.3098, allocations: 9.406 kB / 466.4 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.3098, allocations: 4.25 kB / 466.4 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.3098, allocations: 7.25 kB / 466.4 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002897/0.3101, allocations: 79.89 kB / 466.4 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.3102, allocations: 6.438 kB / 466.5 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002783/0.3104, allocations: 64.89 kB / 466.5 MB, free: 20.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.662e-05/0.3105, allocations: 26.56 kB / 466.5 MB, free: 20.65 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.0002231/0.3107, allocations: 219.8 kB / 466.8 MB, free: 20.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.3108, allocations: 46.16 kB / 466.8 MB, free: 20.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.769e-05/0.3109, allocations: 46.66 kB / 466.8 MB, free: 20.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.311, allocations: 5.406 kB / 466.9 MB, free: 20.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.311, allocations: 5.156 kB / 466.9 MB, free: 20.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.311, allocations: 2.203 kB / 466.9 MB, free: 20.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001592/0.3126, allocations: 1.23 MB / 468.1 MB, free: 19.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.3126, allocations: 10.84 kB / 468.1 MB, free: 19.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00025/0.3129, allocations: 55.23 kB / 468.2 MB, free: 19.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.3129, allocations: 3.594 kB / 468.2 MB, free: 19.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.617e-05/0.3129, allocations: 13.41 kB / 468.2 MB, free: 19.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.3129, allocations: 4.219 kB / 468.2 MB, free: 19.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.3129, allocations: 2.922 kB / 468.2 MB, free: 19.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006487/0.3136, allocations: 0.5878 MB / 468.8 MB, free: 19.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.3137, allocations: 144.4 kB / 468.9 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.385e-05/0.3138, allocations: 15.19 kB / 468.9 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.314, allocations: 17.58 kB / 468.9 MB, free: 19.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.987e-05/0.3141, allocations: 37.75 kB / 469 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.3141, allocations: 14.77 kB / 469 MB, free: 18.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000241/0.3144, allocations: 236.6 kB / 469.2 MB, free: 18.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.42e-07/0.3144, allocations: 1 kB / 469.2 MB, free: 18.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004579/0.3148, allocations: 138.6 kB / 469.4 MB, free: 18.82 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.0007928/0.3156, allocations: 1.136 MB / 470.5 MB, free: 17.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007037/0.3163, allocations: 400.2 kB / 470.9 MB, free: 17.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3163, allocations: 1.094 kB / 470.9 MB, free: 17.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002339/0.3166, allocations: 167.5 kB / 471 MB, free: 17.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006707/0.3173, allocations: 126.5 kB / 471.2 MB, free: 17.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00434/0.3216, allocations: 4.002 MB / 475.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.322, allocations: 0.864 MB / 476 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002664/0.3223, allocations: 65.61 kB / 476.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002164/0.3225, allocations: 197.8 kB / 476.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3225, allocations: 0 / 476.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02756/0.3501, allocations: 8.445 MB / 484.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.425/7.775, allocations: 13.06 kB / 484.8 MB, free: 11.44 MB / 350.1 MB (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)