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.001553/0.001553, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001976/0.001976, allocations: 193.2 kB / 16.14 MB, free: 6.645 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.367/1.367, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2675/0.2675, allocations: 31.17 MB / 321.1 MB, free: 4.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 67.84 kB / 388.3 MB, free: 3.152 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3023/0.3035, allocations: 56.36 MB / 444.6 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006807/0.3104, allocations: 7.753 MB / 452.4 MB, free: 29.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002315/0.3127, allocations: 1.181 MB / 453.6 MB, free: 28.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005576/0.3133, allocations: 25.44 kB / 453.6 MB, free: 28.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003784/0.3137, allocations: 109.4 kB / 453.7 MB, free: 28.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.314, allocations: 58.72 kB / 453.7 MB, free: 28.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006214/0.3146, allocations: 252.3 kB / 454 MB, free: 27.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005226/0.3151, allocations: 0.6748 MB / 454.7 MB, free: 27.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005199/0.3157, allocations: 452.5 kB / 455.1 MB, free: 27.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/0.3159, allocations: 257.2 kB / 455.4 MB, free: 27.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.3161, allocations: 283.7 kB / 455.6 MB, free: 27.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.716e-05/0.3162, allocations: 50.5 kB / 455.7 MB, free: 27.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.836e-05/0.3163, allocations: 58.56 kB / 455.7 MB, free: 27.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.55e-05/0.3164, allocations: 145.6 kB / 455.9 MB, free: 26.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.3165, allocations: 308.6 kB / 456.2 MB, free: 26.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004648/0.317, allocations: 0.7426 MB / 456.9 MB, free: 26.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.317, allocations: 0 / 456.9 MB, free: 26.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.317, allocations: 0 / 456.9 MB, free: 26.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.3171, allocations: 2.25 kB / 456.9 MB, free: 26.4 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.001192/0.3183, allocations: 0.8957 MB / 457.8 MB, free: 25.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.3183, allocations: 9.812 kB / 457.8 MB, free: 25.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003229/0.3186, allocations: 92.44 kB / 457.9 MB, free: 25.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004369/0.3191, allocations: 440.9 kB / 458.4 MB, free: 25.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.651e-05/0.3191, allocations: 61.16 kB / 458.4 MB, free: 25.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-05/0.3192, allocations: 74.19 kB / 458.5 MB, free: 25.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009079/0.3201, allocations: 0.6461 MB / 459.1 MB, free: 24.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.3202, allocations: 0 / 459.1 MB, free: 24.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.51e-05/0.3202, allocations: 30.91 kB / 459.2 MB, free: 24.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.3202, allocations: 16.78 kB / 459.2 MB, free: 24.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006451/0.3209, allocations: 382.2 kB / 459.6 MB, free: 24.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002483/0.3234, allocations: 2.283 MB / 461.8 MB, free: 23.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005349/0.3239, allocations: 319.6 kB / 462.1 MB, free: 23.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003682/0.3243, allocations: 226.9 kB / 462.4 MB, free: 23.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.3243, allocations: 8.172 kB / 462.4 MB, free: 23.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.3244, allocations: 43.97 kB / 462.4 MB, free: 22.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.733e-06/0.3244, allocations: 0 / 462.4 MB, free: 22.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0006907/0.3251, allocations: 403.4 kB / 462.8 MB, free: 22.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.3251, allocations: 216.5 kB / 463 MB, free: 22.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003737/0.3255, allocations: 360.9 kB / 463.4 MB, free: 22.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.877e-05/0.3256, allocations: 45.16 kB / 463.4 MB, free: 22.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.3257, allocations: 317 kB / 463.7 MB, free: 22.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.111e-05/0.3258, allocations: 116.1 kB / 463.8 MB, free: 21.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.326, allocations: 122.1 kB / 464 MB, free: 21.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.3261, allocations: 353.5 kB / 464.3 MB, free: 21.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003027/0.3264, allocations: 152.2 kB / 464.5 MB, free: 21.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000363/0.3268, allocations: 303.7 kB / 464.8 MB, free: 21.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004775/0.3272, allocations: 401.3 kB / 465.1 MB, free: 21.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3273, allocations: 1.062 kB / 465.1 MB, free: 21.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008031/0.3281, allocations: 0.5135 MB / 465.7 MB, free: 20.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.3281, allocations: 14.47 kB / 465.7 MB, free: 20.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.3281, allocations: 3.953 kB / 465.7 MB, free: 20.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-05/0.3281, allocations: 6.469 kB / 465.7 MB, free: 20.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003081/0.3284, allocations: 80.06 kB / 465.8 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/0.3285, allocations: 11.14 kB / 465.8 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002819/0.3288, allocations: 72.92 kB / 465.8 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.839e-05/0.3288, allocations: 21.19 kB / 465.9 MB, free: 20.7 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.0002225/0.329, allocations: 222.3 kB / 466.1 MB, free: 20.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.615e-05/0.3291, allocations: 47.22 kB / 466.1 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.984e-05/0.3292, allocations: 45.89 kB / 466.2 MB, free: 20.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.3292, allocations: 9.125 kB / 466.2 MB, free: 20.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.3292, allocations: 1.312 kB / 466.2 MB, free: 20.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.3293, allocations: 3.531 kB / 466.2 MB, free: 20.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/0.3307, allocations: 1.234 MB / 467.4 MB, free: 19.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.3308, allocations: 2.219 kB / 467.4 MB, free: 19.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002436/0.331, allocations: 54.78 kB / 467.5 MB, free: 19.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.331, allocations: 4.531 kB / 467.5 MB, free: 19.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.3311, allocations: 13.69 kB / 467.5 MB, free: 19.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.94e-06/0.3311, allocations: 3.156 kB / 467.5 MB, free: 19.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.3311, allocations: 3.938 kB / 467.5 MB, free: 19.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007075/0.3318, allocations: 0.5789 MB / 468.1 MB, free: 19.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.3319, allocations: 149.6 kB / 468.2 MB, free: 19.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.281e-05/0.332, allocations: 18.58 kB / 468.2 MB, free: 19.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.3322, allocations: 14.47 kB / 468.3 MB, free: 19.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.48e-05/0.3323, allocations: 38.47 kB / 468.3 MB, free: 19.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.3323, allocations: 9.75 kB / 468.3 MB, free: 19.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002329/0.3325, allocations: 236.6 kB / 468.5 MB, free: 18.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3326, allocations: 5.25 kB / 468.5 MB, free: 18.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004466/0.333, allocations: 137.3 kB / 468.7 MB, free: 18.88 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 9.693e-05/0.3331, allocations: 123.2 kB / 468.8 MB, free: 18.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006239/0.3337, allocations: 370.2 kB / 469.2 MB, free: 18.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3338, allocations: 2.062 kB / 469.2 MB, free: 18.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002569/0.334, allocations: 171 kB / 469.3 MB, free: 18.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00071/0.3347, allocations: 121.9 kB / 469.4 MB, free: 18.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00161/0.3364, allocations: 1.218 MB / 470.7 MB, free: 17.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.3367, allocations: 0.8633 MB / 471.5 MB, free: 16.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002687/0.337, allocations: 71.08 kB / 471.6 MB, free: 16.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.3371, allocations: 38.58 kB / 471.6 MB, free: 16.94 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3371, allocations: 0 / 471.6 MB, free: 16.94 MB / 350.1 MB Notification: Performance of Templates: time 0.01031/0.3474, allocations: 4.701 MB / 476.3 MB, free: 16.35 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)