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.001142/0.001142, 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.001142/0.001142, allocations: 177 kB / 23.36 MB, free: 1.133 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.9895/0.9895, allocations: 177.1 MB / 203.8 MB, free: 5.492 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.103/0.103, allocations: 24.14 MB / 284.4 MB, free: 5.141 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.823e-06/1.823e-06, allocations: 0 / 308.4 MB, free: 8.805 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.628e-05/2.81e-05, allocations: 3.078 kB / 308.4 MB, free: 8.801 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008217/0.008245, allocations: 6.869 MB / 315.3 MB, free: 1.926 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002121/0.01037, allocations: 1.166 MB / 316.4 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004407/0.01081, allocations: 27.81 kB / 316.5 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003343/0.01114, allocations: 135.7 kB / 316.6 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002308/0.01137, allocations: 99.89 kB / 316.7 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006658/0.01204, allocations: 307.1 kB / 317 MB, free: 208 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006394/0.01268, allocations: 0.7265 MB / 317.7 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000403/0.01308, allocations: 321.5 kB / 318 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004505/0.01353, allocations: 475 kB / 318.5 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002368/0.01377, allocations: 211.3 kB / 318.7 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.342e-05/0.01384, allocations: 80 kB / 318.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.519e-05/0.01394, allocations: 87.98 kB / 318.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.01405, allocations: 179.5 kB / 319 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.01418, allocations: 219.4 kB / 319.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004936/0.01467, allocations: 486 kB / 319.7 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.01468, allocations: 0 / 319.7 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.01468, allocations: 0 / 319.7 MB, free: 13.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.01468, allocations: 0 / 319.7 MB, free: 13.44 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.0007839/0.01547, allocations: 0.8042 MB / 320.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.0155, allocations: 8.75 kB / 320.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002207/0.01572, allocations: 132.8 kB / 320.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000397/0.01612, allocations: 332.1 kB / 321 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.806e-05/0.01617, allocations: 62.38 kB / 321.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.816e-05/0.01624, allocations: 80.12 kB / 321.1 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004597/0.0167, allocations: 0.5303 MB / 321.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.01671, allocations: 0 / 321.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.788e-05/0.01674, allocations: 32 kB / 321.7 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.01675, allocations: 16 kB / 321.7 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.01692, allocations: 149 kB / 321.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.01835, allocations: 1.568 MB / 323.4 MB, free: 9.602 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.01858, allocations: 167.9 kB / 323.6 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001425/0.01872, allocations: 138.3 kB / 323.7 MB, free: 9.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.01874, allocations: 8 kB / 323.7 MB, free: 9.262 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.01876, allocations: 38.56 kB / 323.8 MB, free: 9.215 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 1.723e-06/0.01876, allocations: 0 / 323.8 MB, free: 9.215 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.0002533/0.01901, allocations: 193.5 kB / 324 MB, free: 9.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.01906, allocations: 148.3 kB / 324.1 MB, free: 8.844 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001895/0.01925, allocations: 318.6 kB / 324.4 MB, free: 8.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.01928, allocations: 41.7 kB / 324.5 MB, free: 8.473 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.01942, allocations: 320.8 kB / 324.8 MB, free: 8.152 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.413e-05/0.01947, allocations: 107.1 kB / 324.9 MB, free: 8.047 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.95e-05/0.01957, allocations: 126.5 kB / 325 MB, free: 7.918 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.775e-05/0.01966, allocations: 358.7 kB / 325.4 MB, free: 7.559 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.402e-05/0.01973, allocations: 53.28 kB / 325.4 MB, free: 7.508 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.01987, allocations: 233.8 kB / 325.6 MB, free: 7.211 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.02009, allocations: 298.6 kB / 325.9 MB, free: 6.855 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.0201, allocations: 4 kB / 325.9 MB, free: 6.852 MB / 298.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0002768/0.02037, allocations: 302.6 kB / 326.2 MB, free: 6.551 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.02039, allocations: 12.09 kB / 326.2 MB, free: 6.539 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.0204, allocations: 4 kB / 326.2 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.02041, allocations: 8 kB / 326.2 MB, free: 6.527 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.02057, allocations: 87.83 kB / 326.3 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.02058, allocations: 15.88 kB / 326.3 MB, free: 6.426 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.02069, allocations: 59.61 kB / 326.4 MB, free: 6.367 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.02071, allocations: 16 kB / 326.4 MB, free: 6.352 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.0001226/0.02083, allocations: 168.5 kB / 326.6 MB, free: 6.176 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.216e-05/0.02088, allocations: 31.97 kB / 326.6 MB, free: 6.145 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.279e-05/0.02092, allocations: 47.95 kB / 326.7 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.02093, allocations: 4 kB / 326.7 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.02093, allocations: 3.938 kB / 326.7 MB, free: 6.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.02094, allocations: 4 kB / 326.7 MB, free: 6.086 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006976/0.02163, allocations: 0.7451 MB / 327.4 MB, free: 5.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.02164, allocations: 4 kB / 327.4 MB, free: 5.285 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.02176, allocations: 52.12 kB / 327.5 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.02177, allocations: 4 kB / 327.5 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.02179, allocations: 8 kB / 327.5 MB, free: 5.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.02179, allocations: 4 kB / 327.5 MB, free: 5.219 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.02179, allocations: 4 kB / 327.5 MB, free: 5.215 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002961/0.02209, allocations: 375.4 kB / 327.9 MB, free: 4.809 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.103e-05/0.02215, allocations: 47.69 kB / 327.9 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.672e-05/0.02218, allocations: 12.06 kB / 327.9 MB, free: 4.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.66e-05/0.02225, allocations: 15.98 kB / 327.9 MB, free: 4.734 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.553e-05/0.02231, allocations: 39.77 kB / 328 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.02232, allocations: 12 kB / 328 MB, free: 4.684 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.833e-05/0.0224, allocations: 108.6 kB / 328.1 MB, free: 4.574 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0224, allocations: 0 / 328.1 MB, free: 4.574 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002658/0.02266, allocations: 131.5 kB / 328.2 MB, free: 4.445 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 0.0001052/0.02277, allocations: 100.3 kB / 328.3 MB, free: 4.344 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002358/0.023, allocations: 221 kB / 328.5 MB, free: 4.125 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/0.02301, allocations: 4 kB / 328.5 MB, free: 4.121 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.747e-05/0.02309, allocations: 101.2 kB / 328.6 MB, free: 4.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.02339, allocations: 100.8 kB / 328.7 MB, free: 3.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009546/0.02434, allocations: 0.8907 MB / 329.6 MB, free: 2.977 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.569e-05/0.02442, allocations: 122 kB / 329.7 MB, free: 2.836 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001287/0.02455, allocations: 60.14 kB / 329.8 MB, free: 2.777 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.0247, allocations: 131.3 kB / 329.9 MB, free: 2.648 MB / 298.7 MB Notification: Performance of SimCode: time 8.52e-07/0.0247, allocations: 0 / 329.9 MB, free: 2.648 MB / 298.7 MB Notification: Performance of Templates: time 0.007708/0.03241, allocations: 4.668 MB / 334.6 MB, free: 14.09 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 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.0356536200270057]