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.001038/0.001038, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.001157/0.001157, allocations: 177.9 kB / 23.21 MB, free: 1.352 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.8358/0.8358, allocations: 177.1 MB / 203.5 MB, free: 5.402 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.0961/0.0961, allocations: 24.13 MB / 284.1 MB, free: 5.344 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.313e-06/1.313e-06, allocations: 0 / 421.3 MB, free: 7.965 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.07e-05/2.201e-05, allocations: 6.219 kB / 421.3 MB, free: 7.957 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005582/0.005604, allocations: 6.719 MB / 428.1 MB, free: 1.203 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.007443, allocations: 1.099 MB / 429.2 MB, free: 104 kB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003707/0.007814, allocations: 23.88 kB / 429.2 MB, free: 80 kB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003069/0.008121, allocations: 146.7 kB / 429.3 MB, free: 15.93 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001986/0.00832, allocations: 87.05 kB / 429.4 MB, free: 15.85 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005576/0.008877, allocations: 299.3 kB / 429.7 MB, free: 15.55 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004881/0.009365, allocations: 0.7343 MB / 430.4 MB, free: 14.82 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003799/0.009745, allocations: 315 kB / 430.8 MB, free: 14.49 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005622/0.01031, allocations: 447.1 kB / 431.2 MB, free: 14.05 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001959/0.0105, allocations: 211.2 kB / 431.4 MB, free: 13.84 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.235e-05/0.01058, allocations: 84 kB / 431.5 MB, free: 13.76 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.623e-05/0.01066, allocations: 91.98 kB / 431.6 MB, free: 13.67 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.01077, allocations: 183.4 kB / 431.7 MB, free: 13.49 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.01089, allocations: 227.4 kB / 432 MB, free: 13.27 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005573/0.01144, allocations: 0.8216 MB / 432.8 MB, free: 12.45 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.01145, allocations: 0 / 432.8 MB, free: 12.45 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01145, allocations: 0 / 432.8 MB, free: 12.45 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.01145, allocations: 0 / 432.8 MB, free: 12.45 MB / 410.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.0008762/0.01233, allocations: 0.8293 MB / 433.6 MB, free: 11.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.01237, allocations: 16.75 kB / 433.6 MB, free: 11.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002115/0.01258, allocations: 96.42 kB / 433.7 MB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004194/0.013, allocations: 384.1 kB / 434.1 MB, free: 11.08 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.807e-05/0.01303, allocations: 62.36 kB / 434.2 MB, free: 11.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.554e-05/0.0131, allocations: 80.08 kB / 434.2 MB, free: 10.94 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006863/0.01379, allocations: 0.7755 MB / 435 MB, free: 10.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.0138, allocations: 0 / 435 MB, free: 10.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.095e-05/0.01383, allocations: 28 kB / 435 MB, free: 10.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.01384, allocations: 16 kB / 435.1 MB, free: 10.06 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000435/0.01428, allocations: 389 kB / 435.4 MB, free: 9.68 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.01595, allocations: 1.818 MB / 437.3 MB, free: 7.805 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003825/0.01633, allocations: 303 kB / 437.6 MB, free: 7.484 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002543/0.01658, allocations: 215 kB / 437.8 MB, free: 7.266 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.0166, allocations: 8.641 kB / 437.8 MB, free: 7.258 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.01662, allocations: 42.78 kB / 437.8 MB, free: 7.207 MB / 410.7 MB Notification: Performance of pre-optimization done (n=38): time 1.593e-06/0.01662, allocations: 3.938 kB / 437.8 MB, free: 7.203 MB / 410.7 MB Notification: Performance of matching and sorting (n=38): time 0.0007071/0.01733, allocations: 394.8 kB / 438.2 MB, free: 6.812 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/0.0174, allocations: 209.6 kB / 438.4 MB, free: 6.559 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.01765, allocations: 328.2 kB / 438.7 MB, free: 6.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.067e-05/0.01768, allocations: 41.95 kB / 438.8 MB, free: 6.184 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.01782, allocations: 332.7 kB / 439.1 MB, free: 5.852 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.482e-05/0.01789, allocations: 123 kB / 439.2 MB, free: 5.73 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.018, allocations: 130.3 kB / 439.3 MB, free: 5.598 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.637e-05/0.01809, allocations: 346.8 kB / 439.7 MB, free: 5.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001857/0.01827, allocations: 153.2 kB / 439.8 MB, free: 5.102 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.01855, allocations: 402.1 kB / 440.2 MB, free: 4.625 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003545/0.0189, allocations: 405.2 kB / 440.6 MB, free: 4.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.0189, allocations: 4 kB / 440.6 MB, free: 4.176 MB / 410.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0005638/0.01947, allocations: 0.5087 MB / 441.1 MB, free: 3.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.01948, allocations: 8 kB / 441.1 MB, free: 3.652 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.01949, allocations: 0 / 441.1 MB, free: 3.652 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.0195, allocations: 8.469 kB / 441.2 MB, free: 3.645 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.01966, allocations: 83.83 kB / 441.2 MB, free: 3.562 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.01967, allocations: 15.88 kB / 441.2 MB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.0198, allocations: 55.66 kB / 441.3 MB, free: 3.492 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.908e-05/0.01983, allocations: 23.98 kB / 441.3 MB, free: 3.469 MB / 410.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.0002157/0.02004, allocations: 221.7 kB / 441.5 MB, free: 3.242 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.053e-05/0.02012, allocations: 35.77 kB / 441.6 MB, free: 3.207 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.42e-05/0.02019, allocations: 43.86 kB / 441.6 MB, free: 3.164 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.02019, allocations: 4 kB / 441.6 MB, free: 3.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.0202, allocations: 4 kB / 441.6 MB, free: 3.156 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.02021, allocations: 11.92 kB / 441.6 MB, free: 3.145 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001256/0.02146, allocations: 1.077 MB / 442.7 MB, free: 2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.02147, allocations: 4 kB / 442.7 MB, free: 1.996 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.02165, allocations: 51.91 kB / 442.8 MB, free: 1.945 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.02165, allocations: 4 kB / 442.8 MB, free: 1.941 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.02168, allocations: 12.25 kB / 442.8 MB, free: 1.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.02168, allocations: 4 kB / 442.8 MB, free: 1.926 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.02168, allocations: 3.984 kB / 442.8 MB, free: 1.922 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007103/0.0224, allocations: 0.5804 MB / 443.4 MB, free: 1.301 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.02251, allocations: 63.73 kB / 443.4 MB, free: 1.238 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.572e-05/0.02255, allocations: 16 kB / 443.5 MB, free: 1.223 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/0.02277, allocations: 11.98 kB / 443.5 MB, free: 1.211 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.959e-05/0.02285, allocations: 47.81 kB / 443.5 MB, free: 1.164 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.02287, allocations: 8 kB / 443.5 MB, free: 1.156 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001719/0.02304, allocations: 203.1 kB / 443.7 MB, free: 0.957 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02304, allocations: 0 / 443.7 MB, free: 0.957 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004251/0.02346, allocations: 139.5 kB / 443.9 MB, free: 0.8203 MB / 410.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.0001113/0.02357, allocations: 135 kB / 444 MB, free: 0.6836 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005227/0.0241, allocations: 350.9 kB / 444.3 MB, free: 352 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.0241, allocations: 4.25 kB / 444.3 MB, free: 348 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002002/0.0243, allocations: 155.8 kB / 444.5 MB, free: 192 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006742/0.02497, allocations: 115.7 kB / 444.6 MB, free: 84 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1387/0.1637, allocations: 0.9565 MB / 445.6 MB, free: 63.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.1638, allocations: 267.5 kB / 445.8 MB, free: 63.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.1639, allocations: 43.62 kB / 445.9 MB, free: 63.6 MB / 410.7 MB Notification: Performance of SimCode: time 7.72e-07/0.1639, allocations: 0 / 445.9 MB, free: 63.6 MB / 410.7 MB Notification: Performance of Templates: time 0.004441/0.1684, allocations: 6.301 MB / 452.2 MB, free: 63 MB / 410.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 os._exit(0), Time elapsed: 7.490756120532751] Failed to read output from testmodel.py, exit status != 0: 0.17347143031656742 0.17917231900000002 0.1663853 Calling exit ...