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.001003/0.001003, allocations: 81.17 kB / 19.87 MB, free: 4.617 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.0009695/0.0009695, allocations: 173 kB / 23.28 MB, free: 1.219 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 0.9205/0.9205, allocations: 177.2 MB / 203.7 MB, free: 5.508 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.1037/0.1037, allocations: 24.13 MB / 284.4 MB, free: 5.094 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.613e-06/1.613e-06, allocations: 0 / 361.7 MB, free: 3.672 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.365e-05/2.527e-05, allocations: 2.312 kB / 361.7 MB, free: 3.668 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005997/0.006022, allocations: 6.836 MB / 368.5 MB, free: 12.8 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.008144, allocations: 1.114 MB / 369.6 MB, free: 11.68 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007491/0.008893, allocations: 27.81 kB / 369.7 MB, free: 11.65 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003948/0.009288, allocations: 142.6 kB / 369.8 MB, free: 11.51 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002879/0.009576, allocations: 91.11 kB / 369.9 MB, free: 11.42 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006867/0.01026, allocations: 315.1 kB / 370.2 MB, free: 11.11 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005803/0.01084, allocations: 0.7343 MB / 370.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004891/0.01133, allocations: 303.1 kB / 371.2 MB, free: 10.07 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005324/0.01186, allocations: 467 kB / 371.7 MB, free: 9.609 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002792/0.01214, allocations: 211.3 kB / 371.9 MB, free: 9.402 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.916e-05/0.01221, allocations: 84 kB / 372 MB, free: 9.32 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.01231, allocations: 91.98 kB / 372.1 MB, free: 9.23 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.01242, allocations: 171.5 kB / 372.2 MB, free: 9.062 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.01254, allocations: 219.4 kB / 372.4 MB, free: 8.848 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004933/0.01303, allocations: 482.1 kB / 372.9 MB, free: 8.375 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.01304, allocations: 4 kB / 372.9 MB, free: 8.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.01304, allocations: 0 / 372.9 MB, free: 8.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.01305, allocations: 0 / 372.9 MB, free: 8.371 MB / 346.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.0008868/0.01393, allocations: 0.9287 MB / 373.8 MB, free: 7.402 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.01397, allocations: 8.75 kB / 373.9 MB, free: 7.395 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002357/0.01421, allocations: 156.4 kB / 374 MB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004243/0.01463, allocations: 421.4 kB / 374.4 MB, free: 6.805 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.423e-05/0.01468, allocations: 58.38 kB / 374.5 MB, free: 6.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.298e-05/0.01474, allocations: 80.12 kB / 374.6 MB, free: 6.672 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004978/0.01524, allocations: 0.5352 MB / 375.1 MB, free: 6.086 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.01525, allocations: 0 / 375.1 MB, free: 6.086 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.285e-05/0.01528, allocations: 28 kB / 375.1 MB, free: 6.059 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.0153, allocations: 16 kB / 375.1 MB, free: 6.043 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001904/0.01549, allocations: 173 kB / 375.3 MB, free: 5.875 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.01732, allocations: 2.083 MB / 377.4 MB, free: 3.719 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002593/0.01758, allocations: 217.7 kB / 377.6 MB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.01773, allocations: 145.8 kB / 377.7 MB, free: 3.316 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.01775, allocations: 8 kB / 377.7 MB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.01777, allocations: 41.38 kB / 377.8 MB, free: 3.258 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 1.634e-06/0.01778, allocations: 8 kB / 377.8 MB, free: 3.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.0003311/0.01811, allocations: 233.3 kB / 378 MB, free: 3.016 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.01816, allocations: 144.4 kB / 378.2 MB, free: 2.844 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002208/0.01838, allocations: 365.9 kB / 378.5 MB, free: 2.473 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.01841, allocations: 37.7 kB / 378.6 MB, free: 2.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.01857, allocations: 391 kB / 378.9 MB, free: 2.043 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.684e-05/0.01864, allocations: 119 kB / 379.1 MB, free: 1.926 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.01876, allocations: 131.9 kB / 379.2 MB, free: 1.789 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.01895, allocations: 0.5237 MB / 379.7 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.01905, allocations: 65.25 kB / 379.8 MB, free: 1.188 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.01929, allocations: 298.4 kB / 380.1 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000271/0.01956, allocations: 350.5 kB / 380.4 MB, free: 388 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.01956, allocations: 4 kB / 380.4 MB, free: 384 kB / 346.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0003703/0.01993, allocations: 384.9 kB / 380.8 MB, free: 15.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.01995, allocations: 8.594 kB / 380.8 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.01996, allocations: 8 kB / 380.8 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.01997, allocations: 8 kB / 380.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.0202, allocations: 87.72 kB / 380.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.02021, allocations: 11.94 kB / 380.9 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.02033, allocations: 59.61 kB / 381 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.02035, allocations: 16 kB / 381 MB, free: 15.8 MB / 362.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.0001721/0.02052, allocations: 212.4 kB / 381.2 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.124e-05/0.02059, allocations: 47.77 kB / 381.2 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.156e-05/0.02064, allocations: 43.95 kB / 381.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.02064, allocations: 11.98 kB / 381.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.02065, allocations: 7.938 kB / 381.3 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.02065, allocations: 0 / 381.3 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008269/0.02148, allocations: 1.009 MB / 382.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.02148, allocations: 0 / 382.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.0216, allocations: 43.91 kB / 382.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.02161, allocations: 8.281 kB / 382.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.02162, allocations: 15.94 kB / 382.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/0.02163, allocations: 8 kB / 382.4 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.02163, allocations: 4 kB / 382.4 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005251/0.02216, allocations: 489.3 kB / 382.9 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.21e-05/0.02223, allocations: 59.67 kB / 382.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.839e-05/0.02226, allocations: 16 kB / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.956e-05/0.02234, allocations: 8 kB / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.009e-05/0.0224, allocations: 39.81 kB / 383 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.02241, allocations: 12 kB / 383 MB, free: 13.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001007/0.02251, allocations: 222.9 kB / 383.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02251, allocations: 0 / 383.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000339/0.02285, allocations: 135.5 kB / 383.3 MB, free: 13.29 MB / 362.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 0.0001175/0.02297, allocations: 119 kB / 383.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002752/0.02324, allocations: 260 kB / 383.7 MB, free: 12.92 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.02324, allocations: 0 / 383.7 MB, free: 12.92 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.075e-05/0.02333, allocations: 103.4 kB / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003707/0.02371, allocations: 98 kB / 383.9 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.02475, allocations: 0.9055 MB / 384.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.822e-05/0.02483, allocations: 125.9 kB / 384.9 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001403/0.02497, allocations: 64.12 kB / 385 MB, free: 11.53 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000169/0.02513, allocations: 154.2 kB / 385.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/0.02514, allocations: 4 kB / 385.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of Templates: time 0.007405/0.03254, allocations: 4.666 MB / 389.8 MB, free: 6.82 MB / 362.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 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.860267562791705]