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.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.001815/0.001815, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.002284/0.002284, allocations: 157.6 kB / 22.75 MB, free: 1.684 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.521/1.521, allocations: 177.1 MB / 203.1 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1747/0.1747, allocations: 24.12 MB / 283.7 MB, free: 5.289 MB / 266.7 MB " [Timeout remaining time 180] 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.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_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SIR") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 360.5 MB, free: 3.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.352e-05/3.507e-05, allocations: 6.031 kB / 360.5 MB, free: 3.156 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.009918/0.009953, allocations: 6.723 MB / 367.2 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002653/0.01261, allocations: 1.106 MB / 368.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000591/0.0132, allocations: 27.81 kB / 368.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004882/0.01369, allocations: 138.7 kB / 368.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003841/0.01407, allocations: 91.11 kB / 368.6 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008627/0.01493, allocations: 299.3 kB / 368.9 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001034/0.01597, allocations: 0.7381 MB / 369.6 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005768/0.01654, allocations: 303.1 kB / 369.9 MB, free: 9.695 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005676/0.01711, allocations: 459 kB / 370.4 MB, free: 9.246 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003111/0.01742, allocations: 207.2 kB / 370.6 MB, free: 9.043 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.01753, allocations: 84 kB / 370.6 MB, free: 8.961 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.01769, allocations: 99.88 kB / 370.7 MB, free: 8.863 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000189/0.01788, allocations: 183.4 kB / 370.9 MB, free: 8.684 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002505/0.01813, allocations: 227.4 kB / 371.1 MB, free: 8.461 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009966/0.01913, allocations: 0.81 MB / 371.9 MB, free: 7.648 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.01913, allocations: 0 / 371.9 MB, free: 7.648 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.01913, allocations: 4 kB / 371.9 MB, free: 7.645 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.01914, allocations: 0 / 371.9 MB, free: 7.645 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.00154/0.02068, allocations: 0.8332 MB / 372.8 MB, free: 6.781 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.02072, allocations: 12.75 kB / 372.8 MB, free: 6.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004291/0.02115, allocations: 148.4 kB / 372.9 MB, free: 6.625 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006922/0.02184, allocations: 411.9 kB / 373.3 MB, free: 6.199 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.918e-05/0.02191, allocations: 58.38 kB / 373.4 MB, free: 6.141 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.02203, allocations: 80.12 kB / 373.5 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.02328, allocations: 0.7755 MB / 374.3 MB, free: 5.223 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.02329, allocations: 0 / 374.3 MB, free: 5.223 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.063e-05/0.02335, allocations: 28 kB / 374.3 MB, free: 5.195 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/0.02337, allocations: 16 kB / 374.3 MB, free: 5.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007675/0.02414, allocations: 385 kB / 374.7 MB, free: 4.805 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003229/0.02737, allocations: 1.854 MB / 376.5 MB, free: 2.895 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006519/0.02802, allocations: 292.6 kB / 376.8 MB, free: 2.582 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000448/0.02847, allocations: 217 kB / 377 MB, free: 2.363 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.02849, allocations: 8.281 kB / 377 MB, free: 2.355 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.201e-05/0.02854, allocations: 43.16 kB / 377.1 MB, free: 2.305 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 1.844e-06/0.02854, allocations: 0 / 377.1 MB, free: 2.305 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.0008281/0.02937, allocations: 406.8 kB / 377.5 MB, free: 1.902 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001634/0.02953, allocations: 213.6 kB / 377.7 MB, free: 1.645 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004267/0.02996, allocations: 320.3 kB / 378 MB, free: 1.328 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.933e-05/0.03002, allocations: 41.7 kB / 378 MB, free: 1.281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002918/0.03031, allocations: 324.7 kB / 378.3 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.03044, allocations: 123.2 kB / 378.5 MB, free: 0.832 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/0.03064, allocations: 130.3 kB / 378.6 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002089/0.03085, allocations: 346.8 kB / 378.9 MB, free: 356 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000333/0.03118, allocations: 153.2 kB / 379.1 MB, free: 204 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005774/0.03176, allocations: 406 kB / 379.5 MB, free: 15.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006795/0.03244, allocations: 405.5 kB / 379.9 MB, free: 15.27 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.03244, allocations: 0 / 379.9 MB, free: 15.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00103/0.03347, allocations: 0.5321 MB / 380.4 MB, free: 14.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.03349, allocations: 4 kB / 380.4 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.03349, allocations: 4 kB / 380.4 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.03352, allocations: 8 kB / 380.4 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.03385, allocations: 84.23 kB / 380.5 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/0.03387, allocations: 15.88 kB / 380.5 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003036/0.03417, allocations: 67.59 kB / 380.6 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.774e-05/0.03422, allocations: 24 kB / 380.6 MB, free: 14.53 MB / 314.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.000304/0.03452, allocations: 213.8 kB / 380.8 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.03464, allocations: 47.81 kB / 380.9 MB, free: 14.26 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.03474, allocations: 43.86 kB / 380.9 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.03475, allocations: 4 kB / 380.9 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.03476, allocations: 0 / 380.9 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.03477, allocations: 7.922 kB / 380.9 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/0.03655, allocations: 1.086 MB / 382 MB, free: 13.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.03655, allocations: 0 / 382 MB, free: 13.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002537/0.03681, allocations: 47.92 kB / 382.1 MB, free: 13.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.087e-05/0.03682, allocations: 7.984 kB / 382.1 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.03685, allocations: 12 kB / 382.1 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.343e-06/0.03686, allocations: 7.938 kB / 382.1 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.03686, allocations: 4.25 kB / 382.1 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009389/0.0378, allocations: 0.592 MB / 382.7 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001507/0.03795, allocations: 71.67 kB / 382.7 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.201e-05/0.038, allocations: 11.98 kB / 382.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.03822, allocations: 16 kB / 382.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.03834, allocations: 35.88 kB / 382.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/0.03837, allocations: 12 kB / 382.8 MB, free: 12.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002756/0.03864, allocations: 203.1 kB / 383 MB, free: 12.01 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03864, allocations: 0 / 383 MB, free: 12.01 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000539/0.03918, allocations: 151.5 kB / 383.2 MB, free: 11.86 MB / 314.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.0002145/0.0394, allocations: 119.2 kB / 383.3 MB, free: 11.74 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008821/0.04028, allocations: 350.6 kB / 383.6 MB, free: 11.4 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.04028, allocations: 4.938 kB / 383.6 MB, free: 11.39 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002779/0.04056, allocations: 156.1 kB / 383.8 MB, free: 11.24 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006884/0.04125, allocations: 111.2 kB / 383.9 MB, free: 11.14 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.04294, allocations: 0.9565 MB / 384.8 MB, free: 10.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.04327, allocations: 263.3 kB / 385.1 MB, free: 9.836 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002268/0.0435, allocations: 64.12 kB / 385.2 MB, free: 9.773 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.04361, allocations: 48.42 kB / 385.2 MB, free: 9.727 MB / 314.7 MB Notification: Performance of SimCode: time 6.11e-07/0.04361, allocations: 0 / 385.2 MB, free: 9.727 MB / 314.7 MB Notification: Performance of Templates: time 0.01162/0.05523, allocations: 5.141 MB / 390.4 MB, free: 4.711 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SIR.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.678986330982298]