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.0008771/0.0008771, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005111/0.005111, allocations: 169.8 kB / 16.27 MB, free: 6.656 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.474/1.474, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3497/0.3497, allocations: 31.2 MB / 322.6 MB, free: 4.934 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005526/0.0005528, allocations: 8 kB / 390.8 MB, free: 2.082 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2965, allocations: 57.4 MB / 448.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005814/0.3024, allocations: 7.274 MB / 455.4 MB, free: 28.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002395/0.3048, allocations: 1.168 MB / 456.6 MB, free: 27.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005762/0.3054, allocations: 24.12 kB / 456.6 MB, free: 27.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002986/0.3057, allocations: 116.7 kB / 456.8 MB, free: 27.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00022/0.306, allocations: 48.64 kB / 456.8 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005963/0.3066, allocations: 249.7 kB / 457 MB, free: 27.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004988/0.3071, allocations: 0.6751 MB / 457.7 MB, free: 27.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004908/0.3076, allocations: 449.1 kB / 458.2 MB, free: 27.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001764/0.3078, allocations: 201.3 kB / 458.4 MB, free: 27.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.308, allocations: 221.5 kB / 458.6 MB, free: 26.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.449e-05/0.308, allocations: 26.25 kB / 458.6 MB, free: 26.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.1e-05/0.3081, allocations: 35.14 kB / 458.6 MB, free: 26.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.416e-05/0.3082, allocations: 108.4 kB / 458.7 MB, free: 26.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.3084, allocations: 287.2 kB / 459 MB, free: 26.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004265/0.3088, allocations: 0.7119 MB / 459.7 MB, free: 26.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3088, allocations: 0 / 459.7 MB, free: 26.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3088, allocations: 0 / 459.7 MB, free: 26.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.876e-06/0.3088, allocations: 0 / 459.7 MB, free: 26.38 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.001033/0.3099, allocations: 0.7574 MB / 460.5 MB, free: 25.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.3099, allocations: 10.38 kB / 460.5 MB, free: 25.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000337/0.3102, allocations: 91.95 kB / 460.6 MB, free: 25.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004665/0.3107, allocations: 436.8 kB / 461 MB, free: 25.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.5e-05/0.3108, allocations: 57.41 kB / 461.1 MB, free: 25.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-05/0.3109, allocations: 73.48 kB / 461.1 MB, free: 25.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009067/0.3118, allocations: 0.6503 MB / 461.8 MB, free: 25.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.3118, allocations: 1.438 kB / 461.8 MB, free: 25.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.752e-05/0.3119, allocations: 30.19 kB / 461.8 MB, free: 25.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.3119, allocations: 16.47 kB / 461.8 MB, free: 25.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006154/0.3125, allocations: 380.8 kB / 462.2 MB, free: 24.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002567/0.3151, allocations: 2.284 MB / 464.5 MB, free: 23.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005385/0.3156, allocations: 323.6 kB / 464.8 MB, free: 23.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003791/0.316, allocations: 228 kB / 465 MB, free: 23.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.3161, allocations: 5.25 kB / 465 MB, free: 23.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.3161, allocations: 42.83 kB / 465.1 MB, free: 23.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.793e-06/0.3161, allocations: 0 / 465.1 MB, free: 23.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0006887/0.3168, allocations: 401.6 kB / 465.5 MB, free: 22.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.3168, allocations: 214.7 kB / 465.7 MB, free: 22.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003817/0.3172, allocations: 365.3 kB / 466 MB, free: 22.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.235e-05/0.3173, allocations: 45.67 kB / 466.1 MB, free: 22.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.3174, allocations: 312.7 kB / 466.4 MB, free: 22.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.234e-05/0.3175, allocations: 115.3 kB / 466.5 MB, free: 22.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.587e-05/0.3176, allocations: 70.27 kB / 466.6 MB, free: 22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.454e-05/0.3177, allocations: 353.6 kB / 466.9 MB, free: 21.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002799/0.318, allocations: 157.5 kB / 467.1 MB, free: 21.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003663/0.3183, allocations: 299.5 kB / 467.4 MB, free: 21.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004754/0.3188, allocations: 408.8 kB / 467.8 MB, free: 21.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3188, allocations: 1.031 kB / 467.8 MB, free: 21.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0007706/0.3196, allocations: 0.5061 MB / 468.3 MB, free: 20.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.3196, allocations: 10.91 kB / 468.3 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3197, allocations: 7.438 kB / 468.3 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.3197, allocations: 7.672 kB / 468.3 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002993/0.32, allocations: 82.84 kB / 468.4 MB, free: 20.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.32, allocations: 11.25 kB / 468.4 MB, free: 20.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002844/0.3203, allocations: 69.11 kB / 468.5 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.633e-05/0.3203, allocations: 22.03 kB / 468.5 MB, free: 20.79 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,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.0002181/0.3206, allocations: 221.2 kB / 468.7 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.101e-05/0.3207, allocations: 46.94 kB / 468.7 MB, free: 20.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.799e-05/0.3208, allocations: 46.27 kB / 468.8 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.3208, allocations: 4.531 kB / 468.8 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.238e-06/0.3208, allocations: 2.234 kB / 468.8 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.3208, allocations: 2.953 kB / 468.8 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001464/0.3223, allocations: 1.245 MB / 470 MB, free: 19.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3223, allocations: 2.094 kB / 470 MB, free: 19.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002341/0.3225, allocations: 47.12 kB / 470.1 MB, free: 19.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/0.3226, allocations: 4.062 kB / 470.1 MB, free: 19.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/0.3226, allocations: 22.12 kB / 470.1 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.3226, allocations: 4.016 kB / 470.1 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3226, allocations: 2.562 kB / 470.1 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006535/0.3233, allocations: 0.5834 MB / 470.7 MB, free: 19.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/0.3234, allocations: 145.6 kB / 470.8 MB, free: 19.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.828e-05/0.3234, allocations: 14.78 kB / 470.9 MB, free: 19.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.3236, allocations: 18.08 kB / 470.9 MB, free: 19.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.25e-05/0.3237, allocations: 42.7 kB / 470.9 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.143e-05/0.3238, allocations: 13.59 kB / 470.9 MB, free: 19.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002486/0.324, allocations: 237.8 kB / 471.2 MB, free: 19.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.324, allocations: 0 / 471.2 MB, free: 19.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004968/0.3245, allocations: 134.8 kB / 471.3 MB, free: 18.96 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 (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.0001101/0.3247, allocations: 121.8 kB / 471.4 MB, free: 18.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006227/0.3253, allocations: 373.6 kB / 471.8 MB, free: 18.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3253, allocations: 5.156 kB / 471.8 MB, free: 18.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002361/0.3255, allocations: 168 kB / 471.9 MB, free: 18.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007795/0.3263, allocations: 143.5 kB / 472.1 MB, free: 18.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.3279, allocations: 1.228 MB / 473.3 MB, free: 17.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.3282, allocations: 0.863 MB / 474.2 MB, free: 17.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000289/0.3285, allocations: 67.09 kB / 474.2 MB, free: 17.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.3286, allocations: 39.72 kB / 474.3 MB, free: 17.03 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3286, allocations: 0 / 474.3 MB, free: 17.03 MB / 350.1 MB Notification: Performance of Templates: time 0.01123/0.3399, allocations: 4.845 MB / 479.1 MB, free: 16.15 MB / 350.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)