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.000836/0.0008358, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004166/0.004166, allocations: 171.4 kB / 16.27 MB, free: 6.32 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.224/1.224, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 3.9/3.9, allocations: 31.15 MB / 322.6 MB, free: 4.852 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004173/0.0004172, allocations: 12 kB / 390.9 MB, free: 1.887 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3457, allocations: 57.39 MB / 448.2 MB, free: 34.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005942/0.3517, allocations: 7.28 MB / 455.5 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001789/0.3535, allocations: 1.167 MB / 456.7 MB, free: 28.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003282/0.3538, allocations: 26.25 kB / 456.7 MB, free: 28.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002641/0.3541, allocations: 103.9 kB / 456.8 MB, free: 28.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002292/0.3543, allocations: 57.88 kB / 456.9 MB, free: 28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005212/0.3549, allocations: 245.1 kB / 457.1 MB, free: 27.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004603/0.3553, allocations: 0.6773 MB / 457.8 MB, free: 27.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000457/0.3558, allocations: 438.3 kB / 458.2 MB, free: 27.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.356, allocations: 209.5 kB / 458.4 MB, free: 27.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.3562, allocations: 218.9 kB / 458.6 MB, free: 27.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.472e-05/0.3562, allocations: 22.75 kB / 458.7 MB, free: 27.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.192e-05/0.3563, allocations: 42.25 kB / 458.7 MB, free: 27.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.459e-05/0.3564, allocations: 108.4 kB / 458.8 MB, free: 26.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001477/0.3565, allocations: 284.8 kB / 459.1 MB, free: 26.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004382/0.357, allocations: 0.7091 MB / 459.8 MB, free: 26.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.357, allocations: 1.344 kB / 459.8 MB, free: 26.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.357, allocations: 0 / 459.8 MB, free: 26.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.357, allocations: 0 / 459.8 MB, free: 26.53 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.0009491/0.358, allocations: 0.7609 MB / 460.6 MB, free: 25.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.358, allocations: 9.312 kB / 460.6 MB, free: 25.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.36e-05/0.3581, allocations: 117.3 kB / 460.7 MB, free: 25.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003062/0.3584, allocations: 103.2 kB / 460.8 MB, free: 25.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004182/0.3588, allocations: 425.8 kB / 461.2 MB, free: 25.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.871e-05/0.3589, allocations: 57 kB / 461.2 MB, free: 25.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.555e-05/0.359, allocations: 81.69 kB / 461.3 MB, free: 25.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000838/0.3598, allocations: 0.6466 MB / 462 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.3599, allocations: 1.125 kB / 462 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.293e-05/0.3599, allocations: 30.28 kB / 462 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.3599, allocations: 17.28 kB / 462 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005626/0.3605, allocations: 385.6 kB / 462.4 MB, free: 24.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002406/0.3629, allocations: 2.277 MB / 464.7 MB, free: 23.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005042/0.3634, allocations: 322.2 kB / 465 MB, free: 23.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003587/0.3638, allocations: 223.6 kB / 465.2 MB, free: 23.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.3638, allocations: 5.25 kB / 465.2 MB, free: 23.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.907e-05/0.3638, allocations: 46.78 kB / 465.3 MB, free: 23.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 2.344e-06/0.3638, allocations: 3.984 kB / 465.3 MB, free: 23.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0006278/0.3645, allocations: 399.3 kB / 465.7 MB, free: 22.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/0.3645, allocations: 216.7 kB / 465.9 MB, free: 22.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003341/0.3649, allocations: 360.7 kB / 466.2 MB, free: 22.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.963e-05/0.3649, allocations: 44.8 kB / 466.3 MB, free: 22.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001515/0.3651, allocations: 317.1 kB / 466.6 MB, free: 22.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7e-05/0.3652, allocations: 116.5 kB / 466.7 MB, free: 22.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.73e-05/0.3652, allocations: 69.02 kB / 466.8 MB, free: 22.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.703e-05/0.3653, allocations: 359.2 kB / 467.1 MB, free: 21.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002789/0.3656, allocations: 160.8 kB / 467.3 MB, free: 21.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003329/0.3659, allocations: 298.3 kB / 467.6 MB, free: 21.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000476/0.3664, allocations: 401.7 kB / 467.9 MB, free: 21.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3664, allocations: 1.219 kB / 467.9 MB, free: 21.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0007967/0.3672, allocations: 0.511 MB / 468.5 MB, free: 20.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.887e-05/0.3673, allocations: 12.72 kB / 468.5 MB, free: 20.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.3673, allocations: 3.531 kB / 468.5 MB, free: 20.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.3673, allocations: 6.562 kB / 468.5 MB, free: 20.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002797/0.3676, allocations: 78.66 kB / 468.6 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.3676, allocations: 11.7 kB / 468.6 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.3679, allocations: 68.11 kB / 468.6 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.3679, allocations: 22.44 kB / 468.7 MB, free: 20.86 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.0001995/0.3681, allocations: 223.2 kB / 468.9 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.92e-05/0.3682, allocations: 47.06 kB / 468.9 MB, free: 20.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.097e-05/0.3683, allocations: 50.36 kB / 469 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.3683, allocations: 4.312 kB / 469 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.3683, allocations: 6.172 kB / 469 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.3684, allocations: 2.625 kB / 469 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.3697, allocations: 1.238 MB / 470.2 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3697, allocations: 2.188 kB / 470.2 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002274/0.37, allocations: 55.42 kB / 470.3 MB, free: 19.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.37, allocations: 3.469 kB / 470.3 MB, free: 19.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.556e-05/0.37, allocations: 13.33 kB / 470.3 MB, free: 19.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.37, allocations: 4.969 kB / 470.3 MB, free: 19.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.37, allocations: 2.125 kB / 470.3 MB, free: 19.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006647/0.3707, allocations: 0.585 MB / 470.9 MB, free: 19.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.3708, allocations: 143.6 kB / 471 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.551e-05/0.3709, allocations: 19.59 kB / 471 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.3711, allocations: 17.62 kB / 471.1 MB, free: 19.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.696e-05/0.3712, allocations: 43.42 kB / 471.1 MB, free: 19.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.3712, allocations: 9 kB / 471.1 MB, free: 19.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002161/0.3714, allocations: 237.6 kB / 471.3 MB, free: 19.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3714, allocations: 0 / 471.3 MB, free: 19.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004193/0.3718, allocations: 138.4 kB / 471.5 MB, free: 19.03 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.0007498/0.3726, allocations: 1.151 MB / 472.6 MB, free: 18.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000574/0.3732, allocations: 374.5 kB / 473 MB, free: 17.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3732, allocations: 1.969 kB / 473 MB, free: 17.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002183/0.3734, allocations: 167.3 kB / 473.2 MB, free: 17.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007228/0.3741, allocations: 132.1 kB / 473.3 MB, free: 17.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004342/0.3785, allocations: 4.248 MB / 477.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.3788, allocations: 0.8681 MB / 478.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002459/0.3791, allocations: 65.42 kB / 478.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002236/0.3793, allocations: 195.2 kB / 478.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3793, allocations: 4 kB / 478.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5476/0.9269, allocations: 8.325 MB / 487 MB, free: 11.22 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/0.9271, allocations: 184.6 kB / 487.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.046/2.974, allocations: 0 / 487.2 MB, free: 10.96 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SIR_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SIR.fmu > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1)