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: translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007279/0.007279, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.001365/0.001365, allocations: 194.8 kB / 16.68 MB, free: 5.969 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1625/0.1625, allocations: 31.13 MB / 321.7 MB, free: 20 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.001231, allocations: 75.88 kB / 446.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1103, allocations: 56.35 MB / 0.4913 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007645/0.118, allocations: 7.249 MB / 0.4984 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002402/0.1204, allocations: 1.095 MB / 0.4994 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003896/0.1208, allocations: 15.94 kB / 0.4994 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004223/0.1212, allocations: 142.7 kB / 0.4996 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002606/0.1215, allocations: 99.09 kB / 0.4997 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007053/0.1223, allocations: 299.3 kB / 0.5 GB, free: 328 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2199/0.3422, allocations: 0.7173 MB / 0.5007 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001055/0.3433, allocations: 470.5 kB / 0.5011 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004849/0.3438, allocations: 307.8 kB / 0.5014 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000344/0.3441, allocations: 299.1 kB / 0.5017 GB, free: 6.098 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001467/0.3443, allocations: 83 kB / 0.5018 GB, free: 6.098 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002025/0.3445, allocations: 96.03 kB / 0.5019 GB, free: 6.098 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.3447, allocations: 174.6 kB / 0.502 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00025/0.3449, allocations: 346.9 kB / 0.5024 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008794/0.3458, allocations: 0.7939 MB / 0.5031 GB, free: 5.848 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.3458, allocations: 0.5312 kB / 0.5031 GB, free: 5.848 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3458, allocations: 1.594 kB / 0.5031 GB, free: 5.848 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.3458, allocations: 0 / 0.5031 GB, free: 5.848 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.00134/0.3472, allocations: 0.9199 MB / 0.504 GB, free: 5.289 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3472, allocations: 10.47 kB / 0.504 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003439/0.3476, allocations: 98.92 kB / 0.5041 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005989/0.3482, allocations: 449.9 kB / 0.5046 GB, free: 5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.163e-05/0.3483, allocations: 67.06 kB / 0.5046 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.761e-05/0.3484, allocations: 82.39 kB / 0.5047 GB, free: 4.992 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.3494, allocations: 0.6428 MB / 0.5053 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.3495, allocations: 0 / 0.5053 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.4e-05/0.3495, allocations: 32.44 kB / 0.5054 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/0.3496, allocations: 16.06 kB / 0.5054 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006929/0.3503, allocations: 381.1 kB / 0.5057 GB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003281/0.3536, allocations: 2.263 MB / 0.508 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006696/0.3542, allocations: 320.4 kB / 0.5083 GB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004601/0.3547, allocations: 233.3 kB / 0.5085 GB, free: 3.809 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.3548, allocations: 5.328 kB / 0.5085 GB, free: 3.809 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/0.3548, allocations: 43.53 kB / 0.5085 GB, free: 3.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.775e-06/0.3548, allocations: 4 kB / 0.5085 GB, free: 3.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008074/0.3556, allocations: 398.3 kB / 0.5089 GB, free: 3.699 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.302e-05/0.3557, allocations: 216 kB / 0.5091 GB, free: 3.449 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004677/0.3562, allocations: 363.7 kB / 0.5095 GB, free: 3.332 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.842e-05/0.3563, allocations: 44.53 kB / 0.5095 GB, free: 3.301 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002708/0.3565, allocations: 319.9 kB / 0.5098 GB, free: 3.113 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.3566, allocations: 126.8 kB / 0.5099 GB, free: 3.035 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001808/0.3568, allocations: 119.2 kB / 0.5101 GB, free: 3.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.357, allocations: 359.7 kB / 0.5104 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/0.3573, allocations: 151.5 kB / 0.5105 GB, free: 2.699 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003768/0.3576, allocations: 308.1 kB / 0.5108 GB, free: 2.539 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005345/0.3582, allocations: 405.2 kB / 0.5112 GB, free: 2.395 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3582, allocations: 1 kB / 0.5112 GB, free: 2.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008235/0.359, allocations: 0.5143 MB / 0.5117 GB, free: 2.316 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.3591, allocations: 6.281 kB / 0.5117 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3591, allocations: 4.719 kB / 0.5117 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.523e-05/0.3591, allocations: 10.09 kB / 0.5117 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002964/0.3594, allocations: 79.22 kB / 0.5118 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.593e-05/0.3594, allocations: 12.08 kB / 0.5118 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002772/0.3597, allocations: 62.36 kB / 0.5119 GB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-05/0.3598, allocations: 25.48 kB / 0.5119 GB, free: 2.285 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.0002186/0.36, allocations: 219.3 kB / 0.5121 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.496e-05/0.3601, allocations: 44.17 kB / 0.5122 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.369e-05/0.3602, allocations: 47.36 kB / 0.5122 GB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.3602, allocations: 9.953 kB / 0.5122 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.3602, allocations: 4.281 kB / 0.5122 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3602, allocations: 4.625 kB / 0.5122 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001624/0.3618, allocations: 1.235 MB / 0.5134 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.3619, allocations: 2.156 kB / 0.5134 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002444/0.3621, allocations: 48.12 kB / 0.5135 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.3621, allocations: 11 kB / 0.5135 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.105e-05/0.3622, allocations: 14.12 kB / 0.5135 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.824e-06/0.3622, allocations: 11.06 kB / 0.5135 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.3622, allocations: 6.094 kB / 0.5135 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007219/0.3629, allocations: 0.5866 MB / 0.5141 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.3631, allocations: 146.2 kB / 0.5142 GB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.171e-05/0.3631, allocations: 15.42 kB / 0.5143 GB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.3633, allocations: 15.03 kB / 0.5143 GB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.541e-05/0.3634, allocations: 41.11 kB / 0.5143 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.3634, allocations: 15.88 kB / 0.5143 GB, free: 1.203 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002633/0.3637, allocations: 236.9 kB / 0.5145 GB, free: 1.117 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3637, allocations: 3.938 kB / 0.5145 GB, free: 1.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004807/0.3642, allocations: 142.8 kB / 0.5147 GB, free: 1.078 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.0001063/0.3643, allocations: 123.6 kB / 0.5148 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006542/0.365, allocations: 380.7 kB / 0.5152 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.365, allocations: 0 / 0.5152 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000243/0.3652, allocations: 161.3 kB / 0.5153 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006574/0.3659, allocations: 128.5 kB / 0.5154 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.3673, allocations: 0.9597 MB / 0.5164 GB, free: 460 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004137/0.3677, allocations: 0.8624 MB / 0.5172 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002093/0.368, allocations: 67.39 kB / 0.5173 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.409e-05/0.3681, allocations: 43.5 kB / 0.5173 GB, free: 15.73 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3681, allocations: 0 / 0.5173 GB, free: 15.73 MB / 398.1 MB Notification: Performance of Templates: time 0.01196/0.38, allocations: 5.114 MB / 0.5223 GB, free: 15.35 MB / 398.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SIR.makefile (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 & ./BusinessSimulation_BusinessSimulation.Examples.SIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1)