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.001011/0.001011, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.001056/0.001056, allocations: 169 kB / 23.27 MB, free: 1.223 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.9277/0.9277, allocations: 177.2 MB / 203.7 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] 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.1108/0.1108, allocations: 24.15 MB / 284.4 MB, free: 5.125 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.753e-06/1.753e-06, allocations: 0 / 361.7 MB, free: 2.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.875e-05/3.051e-05, allocations: 9.266 kB / 361.7 MB, free: 2.527 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007239/0.007269, allocations: 6.836 MB / 368.5 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00206/0.009329, allocations: 1.106 MB / 369.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004763/0.009805, allocations: 27.81 kB / 369.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003756/0.01018, allocations: 138.7 kB / 369.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002623/0.01044, allocations: 95.09 kB / 369.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006562/0.0111, allocations: 315.1 kB / 370.2 MB, free: 9.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005405/0.01164, allocations: 0.7304 MB / 370.9 MB, free: 9.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003707/0.01201, allocations: 299.1 kB / 371.2 MB, free: 8.938 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003696/0.01238, allocations: 474.9 kB / 371.7 MB, free: 8.473 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002306/0.01261, allocations: 215.2 kB / 371.9 MB, free: 8.262 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.966e-05/0.01268, allocations: 84 kB / 372 MB, free: 8.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.555e-05/0.01278, allocations: 88 kB / 372.1 MB, free: 8.094 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001124/0.01289, allocations: 171.5 kB / 372.2 MB, free: 7.926 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.01302, allocations: 215.4 kB / 372.4 MB, free: 7.715 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004018/0.01342, allocations: 482.2 kB / 372.9 MB, free: 7.242 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.01342, allocations: 3.938 kB / 372.9 MB, free: 7.238 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.01343, allocations: 4 kB / 372.9 MB, free: 7.234 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.01344, allocations: 0 / 372.9 MB, free: 7.234 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.0007766/0.01421, allocations: 0.9291 MB / 373.8 MB, free: 6.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.01425, allocations: 12.69 kB / 373.9 MB, free: 6.258 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002252/0.01448, allocations: 148.4 kB / 374 MB, free: 6.113 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/0.01487, allocations: 421.4 kB / 374.4 MB, free: 5.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.631e-05/0.01491, allocations: 58.38 kB / 374.5 MB, free: 5.621 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.64e-05/0.01498, allocations: 76.12 kB / 374.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004638/0.01544, allocations: 0.5391 MB / 375.1 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.01546, allocations: 0 / 375.1 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.01549, allocations: 28 kB / 375.1 MB, free: 4.934 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.0155, allocations: 16 kB / 375.1 MB, free: 4.918 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.01569, allocations: 177 kB / 375.3 MB, free: 4.746 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.01724, allocations: 2.083 MB / 377.4 MB, free: 2.582 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002397/0.01748, allocations: 213.7 kB / 377.6 MB, free: 2.336 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001449/0.01762, allocations: 134.2 kB / 377.7 MB, free: 2.195 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.01764, allocations: 16 kB / 377.7 MB, free: 2.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.01766, allocations: 37.38 kB / 377.8 MB, free: 2.133 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 1.382e-06/0.01766, allocations: 8 kB / 377.8 MB, free: 2.125 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.0002992/0.01796, allocations: 241.3 kB / 378 MB, free: 1.883 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.01801, allocations: 136.5 kB / 378.2 MB, free: 1.719 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.01822, allocations: 377.8 kB / 378.5 MB, free: 1.332 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.01825, allocations: 41.7 kB / 378.6 MB, free: 1.285 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001639/0.01841, allocations: 387 kB / 378.9 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.794e-05/0.01847, allocations: 111 kB / 379.1 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.01858, allocations: 131.9 kB / 379.2 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.01871, allocations: 0.5234 MB / 379.7 MB, free: 120 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.356e-05/0.01879, allocations: 65.5 kB / 379.8 MB, free: 52 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.01897, allocations: 306.3 kB / 380.1 MB, free: 15.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002412/0.01921, allocations: 346.6 kB / 380.4 MB, free: 15.24 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.01921, allocations: 4 kB / 380.4 MB, free: 15.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0003504/0.01956, allocations: 384.9 kB / 380.8 MB, free: 14.85 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.01958, allocations: 9.844 kB / 380.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.01958, allocations: 4 kB / 380.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.0196, allocations: 15.98 kB / 380.8 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.01975, allocations: 87.78 kB / 380.9 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.01976, allocations: 15.92 kB / 380.9 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.01986, allocations: 55.62 kB / 381 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.01988, allocations: 16 kB / 381 MB, free: 14.65 MB / 314.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.0001349/0.02002, allocations: 212.4 kB / 381.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.707e-05/0.02007, allocations: 51.75 kB / 381.2 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.02012, allocations: 43.95 kB / 381.3 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.02012, allocations: 8 kB / 381.3 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.02013, allocations: 7.938 kB / 381.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.02013, allocations: 0 / 381.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007411/0.02087, allocations: 1.01 MB / 382.3 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.02088, allocations: 3.984 kB / 382.3 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.02098, allocations: 43.92 kB / 382.4 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.02098, allocations: 4.281 kB / 382.4 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.021, allocations: 12 kB / 382.4 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.021, allocations: 4 kB / 382.4 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.021, allocations: 4 kB / 382.4 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003214/0.02132, allocations: 493.1 kB / 382.9 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.445e-05/0.02139, allocations: 63.67 kB / 382.9 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.387e-05/0.02141, allocations: 12.06 kB / 382.9 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.241e-05/0.02148, allocations: 15.92 kB / 383 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.842e-05/0.02153, allocations: 35.83 kB / 383 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.02154, allocations: 16 kB / 383 MB, free: 12.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.495e-05/0.02164, allocations: 214.9 kB / 383.2 MB, free: 12.29 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02164, allocations: 0 / 383.2 MB, free: 12.29 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002682/0.02191, allocations: 131.5 kB / 383.3 MB, free: 12.16 MB / 314.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.533e-05/0.022, allocations: 119.2 kB / 383.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002534/0.02226, allocations: 256.1 kB / 383.7 MB, free: 11.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.02226, allocations: 0 / 383.7 MB, free: 11.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.276e-05/0.02234, allocations: 96.11 kB / 383.8 MB, free: 11.69 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.02267, allocations: 94.08 kB / 383.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008868/0.02356, allocations: 0.9093 MB / 384.8 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.482e-05/0.02364, allocations: 122 kB / 384.9 MB, free: 10.48 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001216/0.02376, allocations: 60.14 kB / 385 MB, free: 10.42 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/0.02392, allocations: 162.2 kB / 385.1 MB, free: 10.26 MB / 314.7 MB Notification: Performance of SimCode: time 5.01e-07/0.02392, allocations: 0 / 385.1 MB, free: 10.26 MB / 314.7 MB Notification: Performance of Templates: time 0.007165/0.03109, allocations: 4.672 MB / 389.8 MB, free: 5.707 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=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.87736096419394]