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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 177.3 kB / 23.35 MB, free: 1.137 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.022/1.022, allocations: 177.1 MB / 203.8 MB, free: 5.457 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.1171/0.1171, allocations: 24.15 MB / 284.4 MB, free: 5.098 MB / 266.7 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 308.4 MB, free: 8.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.702e-05/1.886e-05, allocations: 5.406 kB / 308.4 MB, free: 8.883 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006266/0.006285, allocations: 6.92 MB / 315.4 MB, free: 1.965 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002248/0.008533, allocations: 1.165 MB / 316.5 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003584/0.008891, allocations: 23.81 kB / 316.6 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003119/0.009203, allocations: 142.6 kB / 316.7 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000206/0.009409, allocations: 87.12 kB / 316.8 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000596/0.01001, allocations: 299.3 kB / 317.1 MB, free: 264 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005915/0.0106, allocations: 0.7342 MB / 317.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003907/0.01099, allocations: 320.3 kB / 318.1 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003985/0.01139, allocations: 483 kB / 318.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000225/0.01161, allocations: 211.3 kB / 318.8 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.765e-05/0.01168, allocations: 80 kB / 318.9 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.01178, allocations: 91.98 kB / 319 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.01189, allocations: 171.4 kB / 319.1 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.01202, allocations: 219.4 kB / 319.3 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004219/0.01244, allocations: 482.2 kB / 319.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.01244, allocations: 0 / 319.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.01244, allocations: 0 / 319.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.01245, allocations: 0 / 319.8 MB, free: 13.48 MB / 298.7 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.0007805/0.01323, allocations: 0.8044 MB / 320.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.01326, allocations: 16.69 kB / 320.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002322/0.01349, allocations: 128.8 kB / 320.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004135/0.01391, allocations: 336 kB / 321.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.417e-05/0.01395, allocations: 58.38 kB / 321.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.384e-05/0.01401, allocations: 84.11 kB / 321.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000453/0.01447, allocations: 0.5264 MB / 321.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.01448, allocations: 3.984 kB / 321.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.035e-05/0.01451, allocations: 35.98 kB / 321.8 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.01453, allocations: 16 kB / 321.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001828/0.01471, allocations: 153 kB / 322 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/0.01622, allocations: 1.553 MB / 323.5 MB, free: 9.648 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.01645, allocations: 179.7 kB / 323.7 MB, free: 9.445 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.0166, allocations: 131.5 kB / 323.8 MB, free: 9.312 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.282e-05/0.01661, allocations: 4 kB / 323.8 MB, free: 9.309 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.01664, allocations: 42.5 kB / 323.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 1.603e-06/0.01664, allocations: 0 / 323.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.0002724/0.01691, allocations: 197.6 kB / 324.1 MB, free: 9.059 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.01696, allocations: 136.5 kB / 324.2 MB, free: 8.895 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000197/0.01715, allocations: 322.6 kB / 324.5 MB, free: 8.566 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.01718, allocations: 41.7 kB / 324.5 MB, free: 8.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.01732, allocations: 320.8 kB / 324.9 MB, free: 8.199 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.221e-05/0.01738, allocations: 119 kB / 325 MB, free: 8.082 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.01748, allocations: 114.2 kB / 325.1 MB, free: 7.965 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.982e-05/0.01757, allocations: 354.7 kB / 325.4 MB, free: 7.609 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.051e-05/0.01765, allocations: 57.28 kB / 325.5 MB, free: 7.555 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/0.0178, allocations: 242 kB / 325.7 MB, free: 7.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/0.01804, allocations: 294.6 kB / 326 MB, free: 6.898 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.01804, allocations: 0 / 326 MB, free: 6.898 MB / 298.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0003197/0.01836, allocations: 310.1 kB / 326.3 MB, free: 6.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.01838, allocations: 11.94 kB / 326.3 MB, free: 6.578 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.01838, allocations: 4 kB / 326.3 MB, free: 6.574 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.0184, allocations: 8.594 kB / 326.3 MB, free: 6.566 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.01863, allocations: 99.81 kB / 326.4 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.01864, allocations: 15.88 kB / 326.5 MB, free: 6.453 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.01877, allocations: 59.61 kB / 326.5 MB, free: 6.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.01879, allocations: 16 kB / 326.5 MB, free: 6.379 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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,susceptible.inflow.stopInflow,removed.inflow.stopInflow,removed.outflow.stopInflow,susceptible.outflow.stopInflow,infected.inflow.stopOutflow,infected.inflow.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * 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.0001495/0.01894, allocations: 164.5 kB / 326.7 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.208e-05/0.01901, allocations: 31.97 kB / 326.7 MB, free: 6.176 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.027e-05/0.01906, allocations: 43.95 kB / 326.8 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.01907, allocations: 4 kB / 326.8 MB, free: 6.129 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.01907, allocations: 3.938 kB / 326.8 MB, free: 6.125 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.01908, allocations: 15.97 kB / 326.8 MB, free: 6.109 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007015/0.01978, allocations: 0.7399 MB / 327.5 MB, free: 5.316 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.01979, allocations: 7.984 kB / 327.5 MB, free: 5.309 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.01991, allocations: 43.92 kB / 327.6 MB, free: 5.266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.01992, allocations: 4 kB / 327.6 MB, free: 5.262 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.01994, allocations: 16.28 kB / 327.6 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.01995, allocations: 11.92 kB / 327.6 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.01995, allocations: 4 kB / 327.6 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002934/0.02024, allocations: 375.4 kB / 328 MB, free: 4.824 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.756e-05/0.0203, allocations: 43.69 kB / 328 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.531e-05/0.02032, allocations: 12 kB / 328 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.546e-05/0.0204, allocations: 12 kB / 328 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.034e-05/0.02045, allocations: 27.89 kB / 328.1 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.02046, allocations: 12 kB / 328.1 MB, free: 4.719 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.561e-05/0.02054, allocations: 108.6 kB / 328.2 MB, free: 4.609 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02054, allocations: 0 / 328.2 MB, free: 4.609 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002633/0.0208, allocations: 131.5 kB / 328.3 MB, free: 4.48 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (34): * Single equations (assignments): 34 * 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.556e-05/0.0209, allocations: 105 kB / 328.4 MB, free: 4.375 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000255/0.02115, allocations: 230.3 kB / 328.6 MB, free: 4.148 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.657e-06/0.02116, allocations: 4 kB / 328.6 MB, free: 4.145 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.278e-05/0.02124, allocations: 96.78 kB / 328.7 MB, free: 4.047 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.02155, allocations: 99.33 kB / 328.8 MB, free: 3.957 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009389/0.02249, allocations: 0.895 MB / 329.7 MB, free: 3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.955e-05/0.02257, allocations: 122 kB / 329.9 MB, free: 2.859 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.02271, allocations: 60.09 kB / 329.9 MB, free: 2.801 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.02288, allocations: 135.3 kB / 330 MB, free: 2.668 MB / 298.7 MB Notification: Performance of SimCode: time 6.91e-07/0.02288, allocations: 0 / 330 MB, free: 2.668 MB / 298.7 MB Notification: Performance of Templates: time 0.007288/0.03017, allocations: 4.675 MB / 334.7 MB, free: 14.11 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SIR.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.850895807147026]