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.000932/0.0009322, allocations: 98.88 kB / 16.02 MB, free: 76 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.001015/0.001015, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.318/1.318, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2636/0.2636, allocations: 31.16 MB / 323.2 MB, free: 4.82 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000316/0.0003162, allocations: 8.281 kB / 391.4 MB, free: 2.027 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.232, allocations: 57.39 MB / 448.8 MB, free: 34.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005165/0.2372, allocations: 7.276 MB / 456.1 MB, free: 28.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.2388, allocations: 1.173 MB / 457.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003004/0.2392, allocations: 27.84 kB / 457.3 MB, free: 27.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002367/0.2394, allocations: 105 kB / 457.4 MB, free: 27.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001928/0.2396, allocations: 57.03 kB / 457.4 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004917/0.2401, allocations: 250 kB / 457.7 MB, free: 27.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004962/0.2406, allocations: 0.6706 MB / 458.3 MB, free: 27.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004704/0.2411, allocations: 448 kB / 458.8 MB, free: 27.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.2413, allocations: 200.4 kB / 459 MB, free: 27.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.2415, allocations: 220 kB / 459.2 MB, free: 26.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.584e-05/0.2416, allocations: 25.31 kB / 459.2 MB, free: 26.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.468e-05/0.2416, allocations: 37.41 kB / 459.2 MB, free: 26.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.603e-05/0.2417, allocations: 114.6 kB / 459.4 MB, free: 26.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.2419, allocations: 288.3 kB / 459.6 MB, free: 26.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003777/0.2423, allocations: 0.5797 MB / 460.2 MB, free: 26.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.2423, allocations: 0 / 460.2 MB, free: 26.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2423, allocations: 1.375 kB / 460.2 MB, free: 26.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.2423, allocations: 0 / 460.2 MB, free: 26.47 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.001074/0.2434, allocations: 0.7542 MB / 461 MB, free: 25.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.2434, allocations: 9 kB / 461 MB, free: 25.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003219/0.2437, allocations: 92.39 kB / 461.1 MB, free: 25.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004786/0.2442, allocations: 439.6 kB / 461.5 MB, free: 25.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.327e-05/0.2443, allocations: 56.34 kB / 461.6 MB, free: 25.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.053e-05/0.2444, allocations: 73.94 kB / 461.6 MB, free: 25.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009506/0.2453, allocations: 0.6501 MB / 462.3 MB, free: 25.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.2453, allocations: 3.938 kB / 462.3 MB, free: 25.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.666e-05/0.2454, allocations: 27.31 kB / 462.3 MB, free: 25.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.2454, allocations: 16.31 kB / 462.3 MB, free: 25.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006558/0.2461, allocations: 386.3 kB / 462.7 MB, free: 24.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002624/0.2487, allocations: 2.288 MB / 465 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005426/0.2493, allocations: 320.6 kB / 465.3 MB, free: 23.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004201/0.2497, allocations: 227.8 kB / 465.5 MB, free: 23.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.2497, allocations: 6.047 kB / 465.5 MB, free: 23.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.2498, allocations: 42.31 kB / 465.6 MB, free: 23.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.653e-06/0.2498, allocations: 0 / 465.6 MB, free: 23.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007069/0.2505, allocations: 404.3 kB / 466 MB, free: 22.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.2505, allocations: 216.2 kB / 466.2 MB, free: 22.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003539/0.2509, allocations: 365.3 kB / 466.5 MB, free: 22.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.208e-05/0.2509, allocations: 44.69 kB / 466.6 MB, free: 22.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.2511, allocations: 313.4 kB / 466.9 MB, free: 22.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.238e-05/0.2512, allocations: 116 kB / 467 MB, free: 22.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.2513, allocations: 69.48 kB / 467.1 MB, free: 22.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.937e-05/0.2514, allocations: 350.2 kB / 467.4 MB, free: 21.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002969/0.2517, allocations: 157.4 kB / 467.6 MB, free: 21.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003951/0.2521, allocations: 299.7 kB / 467.9 MB, free: 21.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004827/0.2526, allocations: 405.7 kB / 468.2 MB, free: 21.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2526, allocations: 5.125 kB / 468.3 MB, free: 21.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008428/0.2534, allocations: 0.5049 MB / 468.8 MB, free: 20.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.2535, allocations: 10.83 kB / 468.8 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.2535, allocations: 4.688 kB / 468.8 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.2535, allocations: 11.75 kB / 468.8 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003256/0.2538, allocations: 78.12 kB / 468.9 MB, free: 20.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.2539, allocations: 15.86 kB / 468.9 MB, free: 20.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002758/0.2541, allocations: 63.98 kB / 468.9 MB, free: 20.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.556e-05/0.2542, allocations: 22.69 kB / 469 MB, free: 20.89 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.0002055/0.2544, allocations: 225.8 kB / 469.2 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.607e-05/0.2545, allocations: 43.23 kB / 469.2 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/0.2546, allocations: 49.97 kB / 469.3 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.2546, allocations: 4.344 kB / 469.3 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2547, allocations: 5.156 kB / 469.3 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.2547, allocations: 2.703 kB / 469.3 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001436/0.2561, allocations: 1.243 MB / 470.5 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.2561, allocations: 2.125 kB / 470.5 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002675/0.2564, allocations: 47.16 kB / 470.6 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.2564, allocations: 3.562 kB / 470.6 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.624e-05/0.2564, allocations: 16.89 kB / 470.6 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.2565, allocations: 9.156 kB / 470.6 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.2565, allocations: 2.984 kB / 470.6 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006531/0.2571, allocations: 0.5797 MB / 471.2 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.2572, allocations: 145 kB / 471.3 MB, free: 19.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.097e-05/0.2573, allocations: 15.19 kB / 471.3 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.2576, allocations: 18.38 kB / 471.4 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.16e-05/0.2576, allocations: 38.06 kB / 471.4 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.2577, allocations: 17.91 kB / 471.4 MB, free: 19.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002272/0.2579, allocations: 237.3 kB / 471.6 MB, free: 19.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2579, allocations: 0 / 471.6 MB, free: 19.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004496/0.2584, allocations: 134.7 kB / 471.8 MB, free: 19.06 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.536e-05/0.2585, allocations: 130.6 kB / 471.9 MB, free: 18.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006305/0.2591, allocations: 377.5 kB / 472.3 MB, free: 18.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2591, allocations: 1.594 kB / 472.3 MB, free: 18.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002239/0.2594, allocations: 159.6 kB / 472.4 MB, free: 18.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008075/0.2602, allocations: 136.9 kB / 472.6 MB, free: 18.72 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0014/0.2616, allocations: 1.259 MB / 473.8 MB, free: 17.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003355/0.2619, allocations: 0.8643 MB / 474.7 MB, free: 17.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.2621, allocations: 46.77 kB / 474.7 MB, free: 17.11 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2621, allocations: 1.219 kB / 474.7 MB, free: 17.11 MB / 350.1 MB Notification: Performance of Templates: time 0.008604/0.2707, allocations: 6.062 MB / 480.8 MB, free: 15.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)