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.001232/0.001232, allocations: 114.4 kB / 16.42 MB, free: 6.012 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.001166/0.001166, allocations: 182.3 kB / 17.35 MB, free: 5.629 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.378/1.378, allocations: 222.9 MB / 241.1 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.1649/0.1649, allocations: 31.13 MB / 322.3 MB, free: 68 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 67.89 kB / 447.4 MB, free: 1.602 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1202, allocations: 56.36 MB / 0.492 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.01019/0.1304, allocations: 7.244 MB / 0.499 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002708/0.1332, allocations: 1.095 MB / 0.5001 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007782/0.134, allocations: 19.88 kB / 0.5001 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007084/0.1347, allocations: 142.7 kB / 0.5003 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004793/0.1352, allocations: 91.12 kB / 0.5003 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.1363, allocations: 298.2 kB / 0.5006 GB, free: 360 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2068/0.3431, allocations: 0.7198 MB / 0.5013 GB, free: 6.211 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.3442, allocations: 479.7 kB / 0.5018 GB, free: 6.141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005662/0.3448, allocations: 299.2 kB / 0.5021 GB, free: 6.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004753/0.3453, allocations: 303.5 kB / 0.5024 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002049/0.3455, allocations: 83.53 kB / 0.5024 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002131/0.3458, allocations: 94.56 kB / 0.5025 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001729/0.3459, allocations: 179.8 kB / 0.5027 GB, free: 6.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000362/0.3463, allocations: 345.5 kB / 0.503 GB, free: 5.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001071/0.3474, allocations: 0.788 MB / 0.5038 GB, free: 5.828 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3474, allocations: 1.25 kB / 0.5038 GB, free: 5.828 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.739e-06/0.3474, allocations: 1.031 kB / 0.5038 GB, free: 5.828 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.029e-05/0.3475, allocations: 0 / 0.5038 GB, free: 5.828 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.001908/0.3494, allocations: 0.905 MB / 0.5047 GB, free: 5.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.3495, allocations: 8.75 kB / 0.5047 GB, free: 5.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003975/0.3499, allocations: 92.39 kB / 0.5048 GB, free: 5.258 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006095/0.3505, allocations: 459.9 kB / 0.5052 GB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.802e-05/0.3505, allocations: 59.72 kB / 0.5053 GB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.3507, allocations: 79.03 kB / 0.5054 GB, free: 5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.3517, allocations: 0.6455 MB / 0.506 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.3518, allocations: 0 / 0.506 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.002e-05/0.3518, allocations: 31.12 kB / 0.506 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.3518, allocations: 16.81 kB / 0.506 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006862/0.3525, allocations: 379.2 kB / 0.5064 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002844/0.3554, allocations: 2.247 MB / 0.5086 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005593/0.3559, allocations: 326.4 kB / 0.5089 GB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003937/0.3564, allocations: 231.2 kB / 0.5091 GB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.3564, allocations: 6.344 kB / 0.5091 GB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.3564, allocations: 40.73 kB / 0.5092 GB, free: 3.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.465e-06/0.3564, allocations: 4 kB / 0.5092 GB, free: 3.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007007/0.3571, allocations: 404.6 kB / 0.5095 GB, free: 3.719 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.3572, allocations: 213.8 kB / 0.5098 GB, free: 3.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003787/0.3576, allocations: 360.8 kB / 0.5101 GB, free: 3.355 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.251e-05/0.3576, allocations: 42.8 kB / 0.5101 GB, free: 3.324 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.3578, allocations: 311.5 kB / 0.5104 GB, free: 3.145 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.795e-05/0.3579, allocations: 120.9 kB / 0.5106 GB, free: 3.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/0.3581, allocations: 124.4 kB / 0.5107 GB, free: 3.051 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.095e-05/0.3581, allocations: 351.8 kB / 0.511 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002886/0.3584, allocations: 152.4 kB / 0.5111 GB, free: 2.738 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003548/0.3588, allocations: 305.6 kB / 0.5114 GB, free: 2.582 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004825/0.3593, allocations: 407 kB / 0.5118 GB, free: 2.438 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.3593, allocations: 2.062 kB / 0.5118 GB, free: 2.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.000803/0.3601, allocations: 0.5046 MB / 0.5123 GB, free: 2.363 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.3601, allocations: 11.92 kB / 0.5123 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.3602, allocations: 3.469 kB / 0.5123 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.3602, allocations: 7.438 kB / 0.5123 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003098/0.3605, allocations: 88.28 kB / 0.5124 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.804e-05/0.3605, allocations: 8.281 kB / 0.5124 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.3608, allocations: 60.69 kB / 0.5125 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.559e-05/0.3609, allocations: 25.11 kB / 0.5125 GB, free: 2.324 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.0002089/0.3611, allocations: 229.8 kB / 0.5127 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.729e-05/0.3612, allocations: 39.48 kB / 0.5128 GB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.252e-05/0.3613, allocations: 48.97 kB / 0.5128 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3613, allocations: 6.141 kB / 0.5128 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3613, allocations: 2.391 kB / 0.5128 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.3614, allocations: 142.6 kB / 0.513 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.363e-05/0.3615, allocations: 10.94 kB / 0.513 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000258/0.3618, allocations: 16.69 kB / 0.513 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.582e-05/0.3619, allocations: 29.03 kB / 0.513 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007628/0.3626, allocations: 0.5615 MB / 0.5136 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006762/0.3633, allocations: 0.7847 MB / 0.5143 GB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001857/0.3635, allocations: 146 kB / 0.5145 GB, free: 1.383 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002442/0.3638, allocations: 236.9 kB / 0.5147 GB, free: 1.297 MB / 382.1 MB Notification: Performance of Backend: time 7.21e-07/0.3638, allocations: 0 / 0.5147 GB, free: 1.297 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009367/0.3647, allocations: 367.3 kB / 0.5151 GB, free: 1.23 MB / 382.1 MB Notification: Performance of SimCode: time 0.001518/0.3662, allocations: 1.343 MB / 0.5164 GB, free: 16.3 MB / 398.1 MB Notification: Performance of Templates: time 0.01262/0.3789, allocations: 5.819 MB / 0.522 GB, free: 15.81 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)