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: translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 100.8 kB / 16.4 MB, free: 6.461 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.001657/0.001657, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.413/1.413, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1627/0.1627, allocations: 31.17 MB / 322.4 MB, free: 204 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 63.89 kB / 447.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1104, allocations: 56.37 MB / 0.492 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008939/0.1193, allocations: 7.244 MB / 0.4991 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00269/0.1221, allocations: 1.087 MB / 0.5001 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008153/0.1229, allocations: 19.94 kB / 0.5002 GB, free: 0.957 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006182/0.1236, allocations: 146.6 kB / 0.5003 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004915/0.1241, allocations: 87.17 kB / 0.5004 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.1251, allocations: 291.4 kB / 0.5007 GB, free: 452 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2115/0.3367, allocations: 0.724 MB / 0.5014 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001083/0.3378, allocations: 475.1 kB / 0.5018 GB, free: 6.203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005425/0.3384, allocations: 304.9 kB / 0.5021 GB, free: 6.199 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004717/0.3388, allocations: 302.7 kB / 0.5024 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000218/0.3391, allocations: 83.56 kB / 0.5025 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002643/0.3393, allocations: 93.02 kB / 0.5026 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000176/0.3395, allocations: 175.3 kB / 0.5027 GB, free: 6.098 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003613/0.3399, allocations: 350 kB / 0.5031 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.3411, allocations: 0.7876 MB / 0.5038 GB, free: 5.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3411, allocations: 0.6875 kB / 0.5038 GB, free: 5.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3411, allocations: 0 / 0.5038 GB, free: 5.875 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.01e-05/0.3412, allocations: 1.719 kB / 0.5038 GB, free: 5.875 MB / 382.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.001524/0.3427, allocations: 0.9203 MB / 0.5047 GB, free: 5.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3427, allocations: 14.34 kB / 0.5047 GB, free: 5.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003485/0.3431, allocations: 101.9 kB / 0.5048 GB, free: 5.277 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005647/0.3437, allocations: 449.4 kB / 0.5053 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.161e-05/0.3437, allocations: 56.31 kB / 0.5053 GB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.3438, allocations: 80 kB / 0.5054 GB, free: 5.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009864/0.3448, allocations: 0.6487 MB / 0.506 GB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.3449, allocations: 5.75 kB / 0.506 GB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.768e-05/0.3449, allocations: 25.06 kB / 0.5061 GB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.94e-05/0.3449, allocations: 18.17 kB / 0.5061 GB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007044/0.3456, allocations: 380.9 kB / 0.5064 GB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002904/0.3486, allocations: 2.263 MB / 0.5087 GB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005755/0.3492, allocations: 319.8 kB / 0.509 GB, free: 3.863 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003971/0.3496, allocations: 234 kB / 0.5092 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.3496, allocations: 5.406 kB / 0.5092 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/0.3496, allocations: 44.31 kB / 0.5092 GB, free: 3.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.564e-06/0.3496, allocations: 0 / 0.5092 GB, free: 3.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007432/0.3504, allocations: 399.9 kB / 0.5096 GB, free: 3.727 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.887e-05/0.3505, allocations: 215 kB / 0.5098 GB, free: 3.477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003916/0.3509, allocations: 362.8 kB / 0.5102 GB, free: 3.359 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.118e-05/0.3509, allocations: 50.14 kB / 0.5102 GB, free: 3.324 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.3511, allocations: 316.5 kB / 0.5105 GB, free: 3.137 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.901e-05/0.3512, allocations: 129.6 kB / 0.5106 GB, free: 3.059 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/0.3514, allocations: 118.3 kB / 0.5108 GB, free: 3.043 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.257e-05/0.3514, allocations: 352.7 kB / 0.5111 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002888/0.3517, allocations: 150.6 kB / 0.5112 GB, free: 2.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003549/0.3521, allocations: 313.1 kB / 0.5115 GB, free: 2.566 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005097/0.3526, allocations: 405.4 kB / 0.5119 GB, free: 2.422 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.3526, allocations: 1.781 kB / 0.5119 GB, free: 2.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.000811/0.3535, allocations: 0.5109 MB / 0.5124 GB, free: 2.348 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.3535, allocations: 6.75 kB / 0.5124 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.3535, allocations: 7.766 kB / 0.5124 GB, free: 2.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.3535, allocations: 11.81 kB / 0.5124 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003238/0.3539, allocations: 86.05 kB / 0.5125 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.3539, allocations: 13.62 kB / 0.5125 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002945/0.3542, allocations: 60.94 kB / 0.5126 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.718e-05/0.3542, allocations: 20.69 kB / 0.5126 GB, free: 2.309 MB / 382.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.0002293/0.3545, allocations: 227.6 kB / 0.5128 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.773e-05/0.3546, allocations: 44.34 kB / 0.5129 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.879e-05/0.3547, allocations: 47.45 kB / 0.5129 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.842e-06/0.3547, allocations: 8.438 kB / 0.5129 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.3547, allocations: 5.656 kB / 0.5129 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.3547, allocations: 2.734 kB / 0.5129 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001469/0.3562, allocations: 1.231 MB / 0.5141 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3562, allocations: 2.312 kB / 0.5141 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002501/0.3564, allocations: 58.62 kB / 0.5142 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.3565, allocations: 3.375 kB / 0.5142 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.848e-05/0.3565, allocations: 11.16 kB / 0.5142 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.3565, allocations: 4.281 kB / 0.5142 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3565, allocations: 8.688 kB / 0.5142 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000656/0.3572, allocations: 0.5849 MB / 0.5148 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001437/0.3573, allocations: 155.6 kB / 0.5149 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.327e-05/0.3574, allocations: 9.672 kB / 0.515 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002026/0.3576, allocations: 21.02 kB / 0.515 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.994e-05/0.3577, allocations: 44.53 kB / 0.515 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/0.3577, allocations: 13.06 kB / 0.515 GB, free: 1.223 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002489/0.358, allocations: 234.8 kB / 0.5153 GB, free: 1.137 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.358, allocations: 0 / 0.5153 GB, free: 1.137 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004973/0.3585, allocations: 146.4 kB / 0.5154 GB, free: 1.098 MB / 382.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.0001228/0.3586, allocations: 117.4 kB / 0.5155 GB, free: 1.012 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006922/0.3593, allocations: 378.2 kB / 0.5159 GB, free: 1.012 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3593, allocations: 3.062 kB / 0.5159 GB, free: 1.012 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002389/0.3596, allocations: 160.5 kB / 0.516 GB, free: 1.008 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008371/0.3604, allocations: 114.2 kB / 0.5161 GB, free: 1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/0.3621, allocations: 0.9927 MB / 0.5171 GB, free: 460 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.3625, allocations: 0.8712 MB / 0.5179 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.3627, allocations: 39.69 kB / 0.518 GB, free: 15.73 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3627, allocations: 0 / 0.518 GB, free: 15.73 MB / 398.1 MB Notification: Performance of Templates: time 0.01137/0.374, allocations: 6.246 MB / 0.5241 GB, free: 14.67 MB / 398.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SIR.makefile (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 & ./BusinessSimulation_dev_BusinessSimulation.Examples.SIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1)