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.000914/0.000914, allocations: 93.06 kB / 19.65 MB, free: 276 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.0009784/0.0009784, allocations: 169 kB / 23.02 MB, free: 1.547 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.9437/0.9437, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.1006/0.1006, allocations: 24.13 MB / 284.1 MB, free: 5.25 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.934e-06/1.934e-06, allocations: 0 / 361.2 MB, free: 2.785 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.393e-05/3.587e-05, allocations: 2.312 kB / 361.2 MB, free: 2.781 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006601/0.006637, allocations: 6.941 MB / 368.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002266/0.008903, allocations: 1.094 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004756/0.009379, allocations: 31.78 kB / 369.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003478/0.009726, allocations: 142.7 kB / 369.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002312/0.009958, allocations: 95.06 kB / 369.5 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006459/0.0106, allocations: 303.3 kB / 369.8 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006621/0.01127, allocations: 0.7304 MB / 370.5 MB, free: 9.414 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000418/0.01168, allocations: 311 kB / 370.9 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004163/0.0121, allocations: 475 kB / 371.3 MB, free: 8.625 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002341/0.01233, allocations: 211.3 kB / 371.5 MB, free: 8.418 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.977e-05/0.0124, allocations: 80 kB / 371.6 MB, free: 8.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.868e-05/0.0125, allocations: 84 kB / 371.7 MB, free: 8.258 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.01261, allocations: 175.4 kB / 371.9 MB, free: 8.086 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.01275, allocations: 231.4 kB / 372.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004657/0.01321, allocations: 474.1 kB / 372.5 MB, free: 7.395 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.01322, allocations: 0 / 372.5 MB, free: 7.395 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.01322, allocations: 0 / 372.5 MB, free: 7.395 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.01322, allocations: 0 / 372.5 MB, free: 7.395 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.0009062/0.01413, allocations: 0.9292 MB / 373.5 MB, free: 6.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.01417, allocations: 12.69 kB / 373.5 MB, free: 6.418 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000247/0.01441, allocations: 152.4 kB / 373.6 MB, free: 6.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004314/0.01484, allocations: 421.4 kB / 374 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.658e-05/0.01489, allocations: 58.38 kB / 374.1 MB, free: 5.777 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.628e-05/0.01496, allocations: 80.06 kB / 374.2 MB, free: 5.699 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006091/0.01557, allocations: 0.5666 MB / 374.7 MB, free: 5.086 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.01558, allocations: 4 kB / 374.8 MB, free: 5.082 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.23e-05/0.01561, allocations: 32 kB / 374.8 MB, free: 5.051 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.01563, allocations: 16 kB / 374.8 MB, free: 5.035 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003189/0.01595, allocations: 223.6 kB / 375 MB, free: 4.816 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.01775, allocations: 2.149 MB / 377.2 MB, free: 2.578 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003287/0.01808, allocations: 233.2 kB / 377.4 MB, free: 2.312 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002046/0.01828, allocations: 151.9 kB / 377.5 MB, free: 2.152 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.0183, allocations: 8 kB / 377.5 MB, free: 2.145 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/0.01832, allocations: 45.7 kB / 377.6 MB, free: 2.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 1.473e-06/0.01832, allocations: 0 / 377.6 MB, free: 2.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.0004037/0.01873, allocations: 269.5 kB / 377.9 MB, free: 1.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.01878, allocations: 136.5 kB / 378 MB, free: 1.656 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.01904, allocations: 374 kB / 378.4 MB, free: 1.277 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.901e-05/0.01908, allocations: 45.7 kB / 378.4 MB, free: 1.227 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/0.0193, allocations: 383.1 kB / 378.8 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.361e-05/0.01936, allocations: 107.1 kB / 378.9 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.01948, allocations: 127.9 kB / 379 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.01961, allocations: 0.5195 MB / 379.5 MB, free: 72 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.01977, allocations: 85.25 kB / 379.6 MB, free: 15.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.02, allocations: 310.4 kB / 379.9 MB, free: 15.59 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003222/0.02033, allocations: 374.6 kB / 380.3 MB, free: 15.14 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.227e-06/0.02033, allocations: 0 / 380.3 MB, free: 15.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0004543/0.02078, allocations: 440.8 kB / 380.7 MB, free: 14.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.0208, allocations: 11.94 kB / 380.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.02081, allocations: 7.984 kB / 380.7 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.02083, allocations: 11.94 kB / 380.7 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.021, allocations: 80.44 kB / 380.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.02101, allocations: 11.98 kB / 380.8 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.02113, allocations: 59.5 kB / 380.9 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.561e-05/0.02116, allocations: 27.98 kB / 380.9 MB, free: 14.5 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,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 (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.0001454/0.02131, allocations: 220.4 kB / 381.1 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.171e-05/0.02137, allocations: 47.77 kB / 381.2 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.379e-05/0.02142, allocations: 43.95 kB / 381.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.02143, allocations: 7.938 kB / 381.2 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.02143, allocations: 0 / 381.2 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.02144, allocations: 7.984 kB / 381.2 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000882/0.02232, allocations: 1.095 MB / 382.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.02232, allocations: 0 / 382.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.02244, allocations: 43.91 kB / 382.4 MB, free: 12.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.02245, allocations: 4 kB / 382.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.02247, allocations: 8 kB / 382.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.02247, allocations: 4 kB / 382.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.02247, allocations: 8.219 kB / 382.4 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004119/0.02288, allocations: 0.5128 MB / 382.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.155e-05/0.02296, allocations: 63.61 kB / 383 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.848e-05/0.02298, allocations: 8 kB / 383 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.75e-05/0.02306, allocations: 12 kB / 383 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.309e-05/0.02313, allocations: 35.88 kB / 383 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.02314, allocations: 15.98 kB / 383 MB, free: 12.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001358/0.02327, allocations: 227 kB / 383.3 MB, free: 12 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02327, allocations: 0 / 383.3 MB, free: 12 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000294/0.02357, allocations: 135.5 kB / 383.4 MB, free: 11.87 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 0.0001054/0.02367, allocations: 115.2 kB / 383.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000365/0.02404, allocations: 277 kB / 383.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.02404, allocations: 0 / 383.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.02415, allocations: 107.9 kB / 383.9 MB, free: 11.37 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.02451, allocations: 102.4 kB / 384 MB, free: 11.28 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009966/0.02551, allocations: 0.9258 MB / 384.9 MB, free: 10.28 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.909e-05/0.02559, allocations: 122 kB / 385 MB, free: 10.14 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000137/0.02572, allocations: 56.14 kB / 385.1 MB, free: 10.09 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.794e-05/0.0258, allocations: 40.5 kB / 385.1 MB, free: 10.05 MB / 314.7 MB Notification: Performance of SimCode: time 9.11e-07/0.0258, allocations: 0 / 385.1 MB, free: 10.05 MB / 314.7 MB Notification: Performance of Templates: time 0.006889/0.03269, allocations: 4.481 MB / 389.6 MB, free: 5.68 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: 2.8730243677273393]