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.001111/0.001111, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.338/1.338, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.3114/0.3114, allocations: 31.13 MB / 321.5 MB, free: 4.348 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001416, allocations: 63.89 kB / 388.9 MB, free: 2.469 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.282, allocations: 56.35 MB / 445.2 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006282/0.2883, allocations: 7.235 MB / 452.5 MB, free: 29.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001843/0.2902, allocations: 1.101 MB / 453.6 MB, free: 28.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003225/0.2905, allocations: 19.97 kB / 453.6 MB, free: 28.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003134/0.2909, allocations: 134.6 kB / 453.7 MB, free: 28.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002016/0.2911, allocations: 83.11 kB / 453.8 MB, free: 28.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005812/0.2917, allocations: 304.4 kB / 454.1 MB, free: 28.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004549/0.2922, allocations: 0.7202 MB / 454.8 MB, free: 27.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004972/0.2927, allocations: 478.2 kB / 455.3 MB, free: 27.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.2929, allocations: 290.6 kB / 455.6 MB, free: 27.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002073/0.2931, allocations: 310.7 kB / 455.9 MB, free: 27.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.589e-05/0.2932, allocations: 82.38 kB / 456 MB, free: 27.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.2933, allocations: 88.94 kB / 456.1 MB, free: 27.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.2934, allocations: 178.3 kB / 456.2 MB, free: 27.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001807/0.2936, allocations: 343.5 kB / 456.6 MB, free: 26.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004614/0.2941, allocations: 0.7668 MB / 457.3 MB, free: 26.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2941, allocations: 0 / 457.3 MB, free: 26.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2941, allocations: 6.75 kB / 457.3 MB, free: 26.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.2941, allocations: 4 kB / 457.3 MB, free: 26.51 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.001083/0.2952, allocations: 0.8932 MB / 458.2 MB, free: 25.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.094e-05/0.2952, allocations: 9.062 kB / 458.2 MB, free: 25.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003077/0.2956, allocations: 95.86 kB / 458.3 MB, free: 25.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004609/0.296, allocations: 429.8 kB / 458.8 MB, free: 25.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.366e-05/0.2961, allocations: 61.12 kB / 458.8 MB, free: 25.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.359e-05/0.2962, allocations: 73.5 kB / 458.9 MB, free: 25.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000846/0.297, allocations: 0.6551 MB / 459.5 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.297, allocations: 0 / 459.5 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.239e-05/0.2971, allocations: 30.97 kB / 459.6 MB, free: 25.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.2971, allocations: 17.84 kB / 459.6 MB, free: 25.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000562/0.2977, allocations: 379.3 kB / 460 MB, free: 24.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002437/0.3001, allocations: 2.284 MB / 462.2 MB, free: 23.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005175/0.3007, allocations: 324.9 kB / 462.6 MB, free: 23.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003725/0.301, allocations: 233.7 kB / 462.8 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.3011, allocations: 4.062 kB / 462.8 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.956e-05/0.3011, allocations: 42.83 kB / 462.8 MB, free: 23.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 2.445e-06/0.3011, allocations: 0 / 462.8 MB, free: 23.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0006719/0.3018, allocations: 404.7 kB / 463.2 MB, free: 22.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.713e-05/0.3018, allocations: 215.8 kB / 463.4 MB, free: 22.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003641/0.3022, allocations: 364.3 kB / 463.8 MB, free: 22.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.084e-05/0.3023, allocations: 41.17 kB / 463.8 MB, free: 22.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.3025, allocations: 320.8 kB / 464.1 MB, free: 22.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.224e-05/0.3025, allocations: 116.5 kB / 464.3 MB, free: 22.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.3027, allocations: 124.9 kB / 464.4 MB, free: 22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.636e-05/0.3028, allocations: 350.9 kB / 464.7 MB, free: 21.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002995/0.3031, allocations: 153.7 kB / 464.9 MB, free: 21.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003677/0.3035, allocations: 302.3 kB / 465.2 MB, free: 21.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005179/0.304, allocations: 405.8 kB / 465.6 MB, free: 21.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3041, allocations: 1.25 kB / 465.6 MB, free: 21.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008802/0.3049, allocations: 0.5087 MB / 466.1 MB, free: 20.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.305, allocations: 10.78 kB / 466.1 MB, free: 20.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.305, allocations: 3.641 kB / 466.1 MB, free: 20.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.305, allocations: 6.594 kB / 466.1 MB, free: 20.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003067/0.3053, allocations: 84.16 kB / 466.2 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.3053, allocations: 11.31 kB / 466.2 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002992/0.3056, allocations: 60.23 kB / 466.2 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-05/0.3057, allocations: 21.83 kB / 466.3 MB, free: 20.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,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.0002416/0.3059, allocations: 227.4 kB / 466.5 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.873e-05/0.306, allocations: 43.47 kB / 466.5 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.577e-05/0.3061, allocations: 45.5 kB / 466.6 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.3061, allocations: 4.344 kB / 466.6 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.3062, allocations: 2.141 kB / 466.6 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.3062, allocations: 6.484 kB / 466.6 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/0.3076, allocations: 1.238 MB / 467.8 MB, free: 19.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.3076, allocations: 1.344 kB / 467.8 MB, free: 19.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002299/0.3079, allocations: 47.14 kB / 467.9 MB, free: 19.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.3079, allocations: 3.75 kB / 467.9 MB, free: 19.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.607e-05/0.3079, allocations: 17.83 kB / 467.9 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.3079, allocations: 5.094 kB / 467.9 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3079, allocations: 6.094 kB / 467.9 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006319/0.3086, allocations: 0.5836 MB / 468.5 MB, free: 19.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.3087, allocations: 149.8 kB / 468.6 MB, free: 19.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.367e-05/0.3088, allocations: 19.05 kB / 468.7 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.309, allocations: 12.78 kB / 468.7 MB, free: 19.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.77e-05/0.3091, allocations: 38.2 kB / 468.7 MB, free: 19.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.051e-05/0.3091, allocations: 13.69 kB / 468.7 MB, free: 19.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000262/0.3094, allocations: 237 kB / 469 MB, free: 19.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3094, allocations: 5 kB / 469 MB, free: 19.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004905/0.3099, allocations: 137.7 kB / 469.1 MB, free: 18.98 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.0001129/0.31, allocations: 114.6 kB / 469.2 MB, free: 18.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000721/0.3107, allocations: 401.4 kB / 469.6 MB, free: 18.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3107, allocations: 5.469 kB / 469.6 MB, free: 18.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002253/0.311, allocations: 165.4 kB / 469.8 MB, free: 18.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006327/0.3116, allocations: 118.5 kB / 469.9 MB, free: 18.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.313, allocations: 0.9611 MB / 470.8 MB, free: 18.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.3133, allocations: 0.8651 MB / 471.7 MB, free: 17.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002491/0.3136, allocations: 69.14 kB / 471.8 MB, free: 17.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.897e-05/0.3137, allocations: 40.47 kB / 471.8 MB, free: 17.3 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.3137, allocations: 0 / 471.8 MB, free: 17.3 MB / 350.1 MB Notification: Performance of Templates: time 0.01025/0.3239, allocations: 5.048 MB / 476.9 MB, free: 16.39 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)