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.001123/0.001123, allocations: 109.8 kB / 16.41 MB, free: 6.465 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.001248/0.001248, allocations: 189.4 kB / 17.35 MB, free: 5.711 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.332/1.332, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1654/0.1654, allocations: 31.13 MB / 322.3 MB, free: 40 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 63.89 kB / 447.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1224, allocations: 56.35 MB / 0.4919 GB, free: 9.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007981/0.1304, allocations: 7.25 MB / 0.499 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002235/0.1327, allocations: 1.095 MB / 0.5001 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003682/0.1331, allocations: 23.88 kB / 0.5001 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003794/0.1335, allocations: 138.7 kB / 0.5003 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002403/0.1338, allocations: 91.17 kB / 0.5003 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006783/0.1344, allocations: 295.4 kB / 0.5006 GB, free: 384 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2531/0.3875, allocations: 0.7197 MB / 0.5013 GB, free: 6.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008637/0.3884, allocations: 470.7 kB / 0.5018 GB, free: 6.188 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004081/0.3889, allocations: 303.4 kB / 0.5021 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003221/0.3892, allocations: 307.1 kB / 0.5024 GB, free: 6.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.3893, allocations: 84.22 kB / 0.5024 GB, free: 6.109 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001722/0.3895, allocations: 87.88 kB / 0.5025 GB, free: 6.109 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.3897, allocations: 179.6 kB / 0.5027 GB, free: 6.082 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002361/0.3899, allocations: 341.7 kB / 0.503 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008203/0.3907, allocations: 0.7945 MB / 0.5038 GB, free: 5.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.3907, allocations: 2 kB / 0.5038 GB, free: 5.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3908, allocations: 1.125 kB / 0.5038 GB, free: 5.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.3908, allocations: 0 / 0.5038 GB, free: 5.859 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.001415/0.3922, allocations: 0.9242 MB / 0.5047 GB, free: 5.301 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.3923, allocations: 9.469 kB / 0.5047 GB, free: 5.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003612/0.3926, allocations: 101.1 kB / 0.5048 GB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000561/0.3932, allocations: 447.5 kB / 0.5052 GB, free: 5.012 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.283e-05/0.3933, allocations: 64.97 kB / 0.5053 GB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.3934, allocations: 80.12 kB / 0.5054 GB, free: 5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.3944, allocations: 0.6452 MB / 0.506 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.3944, allocations: 3.906 kB / 0.506 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.102e-05/0.3945, allocations: 31.06 kB / 0.506 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.077e-05/0.3945, allocations: 16.62 kB / 0.506 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006814/0.3952, allocations: 380.5 kB / 0.5064 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003033/0.3982, allocations: 2.261 MB / 0.5086 GB, free: 3.918 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005713/0.3988, allocations: 326 kB / 0.5089 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004092/0.3992, allocations: 228.2 kB / 0.5091 GB, free: 3.816 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.3993, allocations: 8.031 kB / 0.5092 GB, free: 3.816 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.3993, allocations: 43.58 kB / 0.5092 GB, free: 3.777 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.014e-06/0.3993, allocations: 0 / 0.5092 GB, free: 3.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007527/0.4001, allocations: 402.8 kB / 0.5096 GB, free: 3.707 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.057e-05/0.4001, allocations: 211 kB / 0.5098 GB, free: 3.457 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004013/0.4006, allocations: 363.6 kB / 0.5101 GB, free: 3.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.145e-05/0.4006, allocations: 42.72 kB / 0.5102 GB, free: 3.309 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.4008, allocations: 323.1 kB / 0.5105 GB, free: 3.121 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.013e-05/0.4009, allocations: 126.1 kB / 0.5106 GB, free: 3.043 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/0.401, allocations: 119 kB / 0.5107 GB, free: 3.027 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.212e-05/0.4011, allocations: 349.1 kB / 0.511 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002981/0.4014, allocations: 158.5 kB / 0.5112 GB, free: 2.711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003733/0.4018, allocations: 310.7 kB / 0.5115 GB, free: 2.547 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005005/0.4023, allocations: 406.1 kB / 0.5119 GB, free: 2.402 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.4023, allocations: 1.5 kB / 0.5119 GB, free: 2.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008704/0.4032, allocations: 0.5061 MB / 0.5124 GB, free: 2.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.4032, allocations: 10.47 kB / 0.5124 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.4033, allocations: 5.688 kB / 0.5124 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.4033, allocations: 6.531 kB / 0.5124 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003357/0.4036, allocations: 86.94 kB / 0.5125 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/0.4037, allocations: 7.875 kB / 0.5125 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003138/0.404, allocations: 61.89 kB / 0.5125 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.603e-05/0.404, allocations: 22.42 kB / 0.5126 GB, free: 2.297 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.0002455/0.4043, allocations: 233.1 kB / 0.5128 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.4044, allocations: 45.59 kB / 0.5128 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.4045, allocations: 45.62 kB / 0.5129 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.4045, allocations: 7.203 kB / 0.5129 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-06/0.4045, allocations: 1.875 kB / 0.5129 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.4047, allocations: 144.9 kB / 0.513 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.641e-05/0.4047, allocations: 9.953 kB / 0.513 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.405, allocations: 14.44 kB / 0.513 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.4051, allocations: 28.41 kB / 0.5131 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008204/0.4059, allocations: 0.569 MB / 0.5136 GB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007494/0.4067, allocations: 0.7815 MB / 0.5144 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002217/0.4069, allocations: 148.6 kB / 0.5145 GB, free: 1.348 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002632/0.4072, allocations: 236.5 kB / 0.5148 GB, free: 1.262 MB / 382.1 MB Notification: Performance of Backend: time 1.012e-06/0.4072, allocations: 0 / 0.5148 GB, free: 1.262 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000992/0.4082, allocations: 366.2 kB / 0.5151 GB, free: 1.195 MB / 382.1 MB Notification: Performance of SimCode: time 0.001638/0.4098, allocations: 1.369 MB / 0.5164 GB, free: 16.25 MB / 398.1 MB Notification: Performance of Templates: time 0.01282/0.4227, allocations: 5.815 MB / 0.5221 GB, free: 15.78 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)