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.0009364/0.0009364, allocations: 91.3 kB / 15.06 MB, free: 1.098 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.001161/0.001161, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.3254/0.3254, allocations: 31.16 MB / 322.2 MB, free: 4.945 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002844/0.0002845, allocations: 8 kB / 390.1 MB, free: 2.352 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3116, allocations: 57.41 MB / 447.5 MB, free: 34.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006566/0.3183, allocations: 6.911 MB / 454.4 MB, free: 29.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003899/0.3222, allocations: 1.139 MB / 455.6 MB, free: 28.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001643/0.3239, allocations: 23.88 kB / 455.6 MB, free: 28.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008363/0.3248, allocations: 112.9 kB / 455.7 MB, free: 28.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006957/0.3255, allocations: 87.53 kB / 455.8 MB, free: 28.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.3266, allocations: 210.3 kB / 456 MB, free: 28.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008893/0.3275, allocations: 0.6364 MB / 456.6 MB, free: 27.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006507/0.3282, allocations: 336.5 kB / 457 MB, free: 27.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003368/0.3285, allocations: 202.7 kB / 457.2 MB, free: 27.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002716/0.3288, allocations: 210.7 kB / 457.4 MB, free: 27.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.482e-05/0.3289, allocations: 26.22 kB / 457.4 MB, free: 27.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.329, allocations: 37.38 kB / 457.4 MB, free: 27.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001222/0.3291, allocations: 97.69 kB / 457.5 MB, free: 27.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.3293, allocations: 122.3 kB / 457.7 MB, free: 27.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006069/0.3299, allocations: 0.58 MB / 458.2 MB, free: 27.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.807e-06/0.3299, allocations: 0 / 458.2 MB, free: 27.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3299, allocations: 4 kB / 458.2 MB, free: 27.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.3299, allocations: 0 / 458.2 MB, free: 27.18 MB / 350.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.00119/0.3311, allocations: 0.7707 MB / 459 MB, free: 26.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3312, allocations: 10.84 kB / 459 MB, free: 26.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003146/0.3315, allocations: 98.75 kB / 459.1 MB, free: 26.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004824/0.332, allocations: 414.2 kB / 459.5 MB, free: 26.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.405e-05/0.332, allocations: 61.23 kB / 459.6 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.93e-05/0.3321, allocations: 76.84 kB / 459.7 MB, free: 26.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009475/0.3331, allocations: 0.644 MB / 460.3 MB, free: 25.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.3331, allocations: 1.562 kB / 460.3 MB, free: 25.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.988e-05/0.3332, allocations: 34.16 kB / 460.3 MB, free: 25.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.3332, allocations: 16.19 kB / 460.3 MB, free: 25.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007158/0.3339, allocations: 378.1 kB / 460.7 MB, free: 25.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00284/0.3368, allocations: 2.289 MB / 463 MB, free: 24.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005545/0.3373, allocations: 322.2 kB / 463.3 MB, free: 23.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003803/0.3377, allocations: 222.1 kB / 463.5 MB, free: 23.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.3378, allocations: 20.33 kB / 463.6 MB, free: 23.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.3378, allocations: 38.66 kB / 463.6 MB, free: 23.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 2.024e-06/0.3378, allocations: 0 / 463.6 MB, free: 23.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0006976/0.3385, allocations: 397 kB / 464 MB, free: 23.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.105e-05/0.3386, allocations: 211.9 kB / 464.2 MB, free: 23.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003983/0.339, allocations: 358.1 kB / 464.5 MB, free: 23.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.014e-05/0.339, allocations: 49.34 kB / 464.6 MB, free: 23.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.3392, allocations: 312.7 kB / 464.9 MB, free: 22.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.898e-05/0.3393, allocations: 120.2 kB / 465 MB, free: 22.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.362e-05/0.3393, allocations: 11.78 kB / 465 MB, free: 22.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.202e-05/0.3394, allocations: 357.4 kB / 465.4 MB, free: 22.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002846/0.3397, allocations: 150.4 kB / 465.5 MB, free: 22.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003543/0.3401, allocations: 296.4 kB / 465.8 MB, free: 22.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002998/0.3404, allocations: 173.9 kB / 466 MB, free: 22.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3404, allocations: 5.156 kB / 466 MB, free: 22.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0007931/0.3412, allocations: 0.5011 MB / 466.5 MB, free: 21.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.3412, allocations: 6.625 kB / 466.5 MB, free: 21.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.3412, allocations: 4.125 kB / 466.5 MB, free: 21.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.3413, allocations: 12.58 kB / 466.5 MB, free: 21.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002936/0.3416, allocations: 83.14 kB / 466.6 MB, free: 21.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.3416, allocations: 7.25 kB / 466.6 MB, free: 21.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002741/0.3419, allocations: 64.19 kB / 466.7 MB, free: 21.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.542e-05/0.3419, allocations: 21.52 kB / 466.7 MB, free: 21.82 MB / 350.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,$PRE.susceptible.inflow.stopOutflow,susceptible.inflow.stopOutflow,$PRE.susceptible.outflow.stopOutflow,susceptible.outflow.stopOutflow,$PRE.removed.inflow.stopOutflow,removed.inflow.stopOutflow,$PRE.removed.outflow.stopOutflow,removed.outflow.stopOutflow,becoming_infected.converting.portA.stopOutflow,becoming_infected.converting.portB.stopInflow,$PRE.becoming_infected.converting.useA_rate,becoming_infected.converting.useA_rate,$PRE.becoming_infected.converting.useB_rate,becoming_infected.converting.useB_rate,becoming_infected.adopting.flowing.portA.stopOutflow,becoming_infected.adopting.flowing.portB.stopInflow,$PRE.becoming_infected.adopting.flowing.useA_rate,becoming_infected.adopting.flowing.useA_rate,$PRE.becoming_infected.adopting.flowing.useB_rate,becoming_infected.adopting.flowing.useB_rate,becoming_infected.converting.portB.stopOutflow,becoming_infected.adopting.flowing.portB.stopOutflow,becoming_infected.converting.portA.stopInflow,becoming_infected.adopting.flowing.portA.stopInflow,susceptible.outflow.stopInflow,infected.inflow.stopOutflow,infected.inflow.stopInflow,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002263/0.3421, allocations: 218.4 kB / 466.9 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.566e-05/0.3422, allocations: 48.02 kB / 466.9 MB, free: 21.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.361e-05/0.3423, allocations: 49.36 kB / 467 MB, free: 21.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.3423, allocations: 4.531 kB / 467 MB, free: 21.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-06/0.3424, allocations: 1.25 kB / 467 MB, free: 21.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.3424, allocations: 3.281 kB / 467 MB, free: 21.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001457/0.3438, allocations: 1.244 MB / 468.2 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.3438, allocations: 1.5 kB / 468.2 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002286/0.3441, allocations: 47.28 kB / 468.3 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.533e-06/0.3441, allocations: 4.484 kB / 468.3 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.3441, allocations: 14.22 kB / 468.3 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.484e-06/0.3441, allocations: 16 kB / 468.3 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.3442, allocations: 6.312 kB / 468.3 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006555/0.3448, allocations: 0.5691 MB / 468.9 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.3449, allocations: 157 kB / 469.1 MB, free: 20.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.236e-05/0.345, allocations: 11.34 kB / 469.1 MB, free: 20.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/0.3452, allocations: 17.27 kB / 469.1 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.776e-05/0.3453, allocations: 40.38 kB / 469.1 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.3453, allocations: 13.59 kB / 469.1 MB, free: 20.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002473/0.3456, allocations: 234.4 kB / 469.4 MB, free: 20.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.212e-06/0.3456, allocations: 0 / 469.4 MB, free: 20.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004961/0.3461, allocations: 138.9 kB / 469.5 MB, free: 19.99 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001252/0.3462, allocations: 122.5 kB / 469.6 MB, free: 19.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006482/0.3469, allocations: 375.1 kB / 470 MB, free: 19.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3469, allocations: 0.9375 kB / 470 MB, free: 19.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002447/0.3471, allocations: 161.5 kB / 470.1 MB, free: 19.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006653/0.3478, allocations: 125.1 kB / 470.3 MB, free: 19.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.3494, allocations: 1.177 MB / 471.4 MB, free: 18.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004423/0.3499, allocations: 0.8632 MB / 472.3 MB, free: 18.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003009/0.3502, allocations: 70.97 kB / 472.4 MB, free: 18.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.3503, allocations: 42.27 kB / 472.4 MB, free: 18.13 MB / 350.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3503, allocations: 0 / 472.4 MB, free: 18.13 MB / 350.1 MB Notification: Performance of Templates: time 0.01064/0.3609, allocations: 4.48 MB / 476.9 MB, free: 17.58 MB / 350.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)