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.001369/0.001369, allocations: 110.7 kB / 16.42 MB, free: 6.516 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.001634/0.001634, allocations: 189.5 kB / 17.35 MB, free: 5.738 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.375/1.375, 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.1703/0.1703, allocations: 31.18 MB / 322.4 MB, free: 188 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 63.91 kB / 447.4 MB, free: 1.742 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08642/0.08763, allocations: 56.36 MB / 0.492 GB, free: 9.336 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.00751/0.09517, allocations: 7.247 MB / 0.4991 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002149/0.09735, allocations: 1.091 MB / 0.5001 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004843/0.09785, allocations: 19.94 kB / 0.5002 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003991/0.09825, allocations: 134.7 kB / 0.5003 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002905/0.09856, allocations: 91.17 kB / 0.5004 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007267/0.09931, allocations: 303.3 kB / 0.5007 GB, free: 436 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1793/0.2787, allocations: 0.7196 MB / 0.5014 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007653/0.2795, allocations: 477.2 kB / 0.5018 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003313/0.2798, allocations: 299.9 kB / 0.5021 GB, free: 6.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002587/0.2801, allocations: 307.4 kB / 0.5024 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.2802, allocations: 84.41 kB / 0.5025 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.2803, allocations: 91.64 kB / 0.5026 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.2805, allocations: 174 kB / 0.5027 GB, free: 6.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002015/0.2807, allocations: 342.7 kB / 0.5031 GB, free: 5.965 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006484/0.2813, allocations: 0.8017 MB / 0.5038 GB, free: 5.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2813, allocations: 0 / 0.5038 GB, free: 5.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2813, allocations: 0 / 0.5038 GB, free: 5.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.2814, allocations: 0.6562 kB / 0.5038 GB, free: 5.863 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.001222/0.2826, allocations: 0.8964 MB / 0.5047 GB, free: 5.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.2826, allocations: 10.86 kB / 0.5047 GB, free: 5.328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003489/0.283, allocations: 93.11 kB / 0.5048 GB, free: 5.293 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005073/0.2835, allocations: 449.3 kB / 0.5052 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.736e-05/0.2836, allocations: 61.41 kB / 0.5053 GB, free: 5.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.151e-05/0.2837, allocations: 77.5 kB / 0.5054 GB, free: 5.035 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009557/0.2846, allocations: 0.6548 MB / 0.506 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.2846, allocations: 0.9688 kB / 0.506 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.805e-05/0.2847, allocations: 25.84 kB / 0.506 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.2847, allocations: 16.92 kB / 0.5061 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00066/0.2854, allocations: 388 kB / 0.5064 GB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002618/0.288, allocations: 2.243 MB / 0.5086 GB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00053/0.2886, allocations: 333.6 kB / 0.5089 GB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003741/0.2889, allocations: 226.5 kB / 0.5092 GB, free: 3.863 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.289, allocations: 5.234 kB / 0.5092 GB, free: 3.863 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/0.289, allocations: 45.41 kB / 0.5092 GB, free: 3.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 1.723e-06/0.289, allocations: 1.312 kB / 0.5092 GB, free: 3.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0006692/0.2897, allocations: 402.3 kB / 0.5096 GB, free: 3.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.2897, allocations: 214.7 kB / 0.5098 GB, free: 3.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003585/0.2901, allocations: 356.5 kB / 0.5101 GB, free: 3.387 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.2901, allocations: 45.09 kB / 0.5102 GB, free: 3.355 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.2903, allocations: 313.8 kB / 0.5105 GB, free: 3.176 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.297e-05/0.2904, allocations: 129.1 kB / 0.5106 GB, free: 3.098 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.2905, allocations: 121.4 kB / 0.5107 GB, free: 3.082 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.805e-05/0.2906, allocations: 353.7 kB / 0.5111 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002899/0.2909, allocations: 151.9 kB / 0.5112 GB, free: 2.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003482/0.2913, allocations: 297.1 kB / 0.5115 GB, free: 2.613 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004924/0.2918, allocations: 407.7 kB / 0.5119 GB, free: 2.469 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.2918, allocations: 2.672 kB / 0.5119 GB, free: 2.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0007919/0.2926, allocations: 0.5093 MB / 0.5124 GB, free: 2.395 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.2926, allocations: 13.03 kB / 0.5124 GB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.2926, allocations: 3.562 kB / 0.5124 GB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.2926, allocations: 7.5 kB / 0.5124 GB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003079/0.293, allocations: 90.25 kB / 0.5125 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.573e-05/0.293, allocations: 10.92 kB / 0.5125 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002811/0.2933, allocations: 64.61 kB / 0.5125 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.591e-05/0.2933, allocations: 23.56 kB / 0.5126 GB, free: 2.352 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.0002027/0.2935, allocations: 220.5 kB / 0.5128 GB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.632e-05/0.2936, allocations: 39.31 kB / 0.5128 GB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.206e-05/0.2937, allocations: 49.22 kB / 0.5129 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.2937, allocations: 6.531 kB / 0.5129 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.2937, allocations: 2.266 kB / 0.5129 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.2939, allocations: 145.2 kB / 0.513 GB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.389e-05/0.2939, allocations: 9.75 kB / 0.513 GB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002601/0.2942, allocations: 17.75 kB / 0.513 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.033e-05/0.2943, allocations: 29.83 kB / 0.5131 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007598/0.2951, allocations: 0.5623 MB / 0.5136 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006508/0.2957, allocations: 0.7735 MB / 0.5144 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001874/0.2959, allocations: 153.4 kB / 0.5145 GB, free: 1.414 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002162/0.2961, allocations: 239 kB / 0.5147 GB, free: 1.328 MB / 382.1 MB Notification: Performance of Backend: time 3.3e-07/0.2961, allocations: 4.062 kB / 0.5148 GB, free: 1.324 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009106/0.2971, allocations: 363 kB / 0.5151 GB, free: 1.262 MB / 382.1 MB Notification: Performance of SimCode: time 0.001355/0.2984, allocations: 1.34 MB / 0.5164 GB, free: 16.33 MB / 398.1 MB Notification: Performance of Templates: time 0.01066/0.3091, allocations: 5.818 MB / 0.5221 GB, free: 15.86 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)