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.001267/0.001267, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001383/0.001383, allocations: 173 kB / 23.49 MB, free: 1.059 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.9509/0.9509, allocations: 177.1 MB / 203.8 MB, free: 5.641 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.1216/0.1216, allocations: 24.14 MB / 284.4 MB, free: 5.32 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.242e-06/1.242e-06, allocations: 0 / 361.2 MB, free: 4.328 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.979e-05/2.103e-05, allocations: 6.25 kB / 361.2 MB, free: 4.32 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006475/0.006496, allocations: 6.902 MB / 368.2 MB, free: 13.38 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002229/0.008725, allocations: 1.11 MB / 369.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004667/0.009192, allocations: 27.81 kB / 369.3 MB, free: 12.24 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000355/0.009547, allocations: 142.7 kB / 369.4 MB, free: 12.1 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.009764, allocations: 91.11 kB / 369.5 MB, free: 12.01 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006478/0.01041, allocations: 307.2 kB / 369.8 MB, free: 11.71 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005369/0.01095, allocations: 0.7382 MB / 370.6 MB, free: 10.97 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004191/0.01137, allocations: 307.1 kB / 370.9 MB, free: 10.66 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003421/0.01171, allocations: 455.1 kB / 371.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002305/0.01194, allocations: 223.2 kB / 371.5 MB, free: 9.992 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.005e-05/0.01201, allocations: 84 kB / 371.6 MB, free: 9.91 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.01211, allocations: 88 kB / 371.7 MB, free: 9.824 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.01223, allocations: 183.4 kB / 371.9 MB, free: 9.645 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.01237, allocations: 227.4 kB / 372.1 MB, free: 9.422 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005234/0.0129, allocations: 498.1 kB / 372.6 MB, free: 8.934 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.0129, allocations: 0 / 372.6 MB, free: 8.934 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.0129, allocations: 0 / 372.6 MB, free: 8.934 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.01291, allocations: 0 / 372.6 MB, free: 8.934 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.000966/0.01388, allocations: 0.9289 MB / 373.5 MB, free: 7.965 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.01392, allocations: 16.69 kB / 373.5 MB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002686/0.01418, allocations: 156.4 kB / 373.7 MB, free: 7.797 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004473/0.01463, allocations: 398.9 kB / 374.1 MB, free: 7.379 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.881e-05/0.01468, allocations: 58.38 kB / 374.1 MB, free: 7.324 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.968e-05/0.01475, allocations: 80.12 kB / 374.2 MB, free: 7.246 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006564/0.01541, allocations: 0.6722 MB / 374.9 MB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.01542, allocations: 4 kB / 374.9 MB, free: 6.488 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/0.01546, allocations: 24 kB / 374.9 MB, free: 6.465 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.01547, allocations: 16 kB / 374.9 MB, free: 6.449 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003456/0.01582, allocations: 227.6 kB / 375.1 MB, free: 6.227 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/0.01773, allocations: 2.085 MB / 377.2 MB, free: 4.078 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003851/0.01811, allocations: 269.3 kB / 377.5 MB, free: 3.781 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002491/0.01836, allocations: 159.5 kB / 377.6 MB, free: 3.613 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.01838, allocations: 8.281 kB / 377.6 MB, free: 3.605 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.01841, allocations: 49.97 kB / 377.7 MB, free: 3.547 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 2.765e-06/0.01841, allocations: 3.938 kB / 377.7 MB, free: 3.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.0004751/0.01889, allocations: 286.9 kB / 378 MB, free: 3.258 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.859e-05/0.01897, allocations: 209.6 kB / 378.2 MB, free: 3.004 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002688/0.01924, allocations: 366 kB / 378.5 MB, free: 2.633 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.01927, allocations: 41.7 kB / 378.6 MB, free: 2.586 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.01944, allocations: 371.5 kB / 378.9 MB, free: 2.219 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.092e-05/0.01952, allocations: 131 kB / 379.1 MB, free: 2.09 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/0.01964, allocations: 120 kB / 379.2 MB, free: 1.961 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.01978, allocations: 0.5157 MB / 379.7 MB, free: 1.434 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.01993, allocations: 93.19 kB / 379.8 MB, free: 1.344 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002514/0.02018, allocations: 387.8 kB / 380.2 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003262/0.0205, allocations: 342.5 kB / 380.5 MB, free: 468 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.02051, allocations: 0 / 380.5 MB, free: 468 kB / 346.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0004428/0.02095, allocations: 413 kB / 380.9 MB, free: 48 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.02097, allocations: 6.812 kB / 380.9 MB, free: 44 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.02097, allocations: 4 kB / 380.9 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.02099, allocations: 8.469 kB / 380.9 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.02118, allocations: 83.83 kB / 381 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.0212, allocations: 15.88 kB / 381 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001323/0.02133, allocations: 55.61 kB / 381.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.02135, allocations: 23.98 kB / 381.1 MB, free: 15.86 MB / 362.7 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.0001603/0.02151, allocations: 224.4 kB / 381.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.511e-05/0.02158, allocations: 51.77 kB / 381.4 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.599e-05/0.02163, allocations: 47.86 kB / 381.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.02164, allocations: 4 kB / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.02164, allocations: 0 / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.02165, allocations: 7.938 kB / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009463/0.02259, allocations: 1.122 MB / 382.6 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.0226, allocations: 4 kB / 382.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.02274, allocations: 51.91 kB / 382.6 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.02275, allocations: 4 kB / 382.6 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/0.02277, allocations: 8.25 kB / 382.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.043e-06/0.02278, allocations: 11.94 kB / 382.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.02278, allocations: 0 / 382.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004755/0.02326, allocations: 0.5211 MB / 383.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.69e-05/0.02335, allocations: 67.67 kB / 383.2 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.665e-05/0.02342, allocations: 12 kB / 383.2 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.02356, allocations: 15.98 kB / 383.2 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.578e-05/0.02364, allocations: 35.88 kB / 383.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.02365, allocations: 12 kB / 383.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001326/0.02378, allocations: 227 kB / 383.5 MB, free: 13.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02378, allocations: 0 / 383.5 MB, free: 13.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003084/0.02409, allocations: 147.5 kB / 383.7 MB, free: 13.16 MB / 362.7 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.0001073/0.0242, allocations: 115.2 kB / 383.8 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003639/0.02456, allocations: 276 kB / 384 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.02457, allocations: 256 / 384 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.02469, allocations: 127.5 kB / 384.2 MB, free: 12.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000414/0.0251, allocations: 116.9 kB / 384.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.02626, allocations: 0.9185 MB / 385.2 MB, free: 11.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.437e-05/0.02634, allocations: 125.8 kB / 385.3 MB, free: 11.4 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001441/0.02649, allocations: 64.12 kB / 385.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.888e-05/0.02656, allocations: 44.48 kB / 385.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of SimCode: time 1.272e-06/0.02657, allocations: 0 / 385.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of Templates: time 0.007681/0.03425, allocations: 5.158 MB / 390.6 MB, free: 6.254 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: 3.153789119096473]