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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 114.5 kB / 18.88 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 192.2 kB / 22.17 MB, free: 5.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 225.6 MB / 250.9 MB, free: 13.27 MB / 206.1 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.1732/0.1732, allocations: 31.57 MB / 337.7 MB, free: 9.621 MB / 270.1 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001959/0.001959, allocations: 63.89 kB / 472.6 MB, free: 6.098 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3284, allocations: 59.5 MB / 0.5196 GB, free: 8.941 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007971/0.3364, allocations: 7.31 MB / 0.5268 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002637/0.339, allocations: 1.11 MB / 0.5279 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000524/0.3395, allocations: 22.09 kB / 0.5279 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004292/0.34, allocations: 140.6 kB / 0.528 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002626/0.3402, allocations: 86.89 kB / 0.5281 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008178/0.341, allocations: 314.9 kB / 0.5284 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007448/0.3418, allocations: 0.7216 MB / 0.5291 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005365/0.3423, allocations: 324.2 kB / 0.5294 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003131/0.3426, allocations: 303 kB / 0.5297 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002981/0.3429, allocations: 306.2 kB / 0.53 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.807e-05/0.343, allocations: 82.28 kB / 0.5301 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001548/0.3432, allocations: 94.36 kB / 0.5302 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.3433, allocations: 174.3 kB / 0.5303 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002162/0.3435, allocations: 342.5 kB / 0.5306 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008525/0.3444, allocations: 0.8005 MB / 0.5314 GB, free: 0.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3444, allocations: 0 / 0.5314 GB, free: 0.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3444, allocations: 0 / 0.5314 GB, free: 0.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.3444, allocations: 1.375 kB / 0.5314 GB, free: 0.918 MB / 382.1 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.001359/0.3458, allocations: 0.917 MB / 0.5323 GB, free: 240 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.3458, allocations: 9 kB / 0.5323 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003982/0.3462, allocations: 98.44 kB / 0.5324 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006648/0.3469, allocations: 460 kB / 0.5329 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.602e-05/0.3469, allocations: 56.34 kB / 0.5329 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.347, allocations: 78.62 kB / 0.533 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.3482, allocations: 0.6482 MB / 0.5336 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.03e-05/0.3482, allocations: 4.562 kB / 0.5336 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.953e-05/0.3483, allocations: 31.38 kB / 0.5337 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.465e-05/0.3483, allocations: 17.03 kB / 0.5337 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009182/0.3492, allocations: 378.2 kB / 0.534 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003578/0.3528, allocations: 2.261 MB / 0.5362 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006399/0.3534, allocations: 304.6 kB / 0.5365 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004287/0.3539, allocations: 216 kB / 0.5367 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.3539, allocations: 8.75 kB / 0.5368 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/0.3539, allocations: 42.86 kB / 0.5368 GB, free: 13.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.944e-06/0.3539, allocations: 0 / 0.5368 GB, free: 13.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008197/0.3547, allocations: 396.3 kB / 0.5372 GB, free: 13.3 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000182/0.3549, allocations: 219.5 kB / 0.5374 GB, free: 13.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005209/0.3554, allocations: 365.7 kB / 0.5377 GB, free: 12.85 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.887e-05/0.3555, allocations: 44.69 kB / 0.5378 GB, free: 12.81 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000271/0.3558, allocations: 322.4 kB / 0.5381 GB, free: 12.55 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.3559, allocations: 125.1 kB / 0.5382 GB, free: 12.46 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001905/0.3561, allocations: 116.8 kB / 0.5383 GB, free: 12.4 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.3563, allocations: 354.1 kB / 0.5386 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003146/0.3566, allocations: 153.5 kB / 0.5388 GB, free: 12.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.3571, allocations: 302.9 kB / 0.5391 GB, free: 11.78 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006145/0.3577, allocations: 405 kB / 0.5395 GB, free: 11.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3577, allocations: 1.188 kB / 0.5395 GB, free: 11.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009253/0.3586, allocations: 0.5089 MB / 0.54 GB, free: 11.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.3586, allocations: 11.06 kB / 0.54 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.3586, allocations: 4.125 kB / 0.54 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.849e-05/0.3587, allocations: 7.422 kB / 0.54 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000321/0.359, allocations: 83.34 kB / 0.5401 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.879e-05/0.359, allocations: 12.56 kB / 0.5401 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/0.3593, allocations: 67.89 kB / 0.5401 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.105e-05/0.3594, allocations: 21.89 kB / 0.5402 GB, free: 11.2 MB / 398.1 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.0002872/0.3597, allocations: 226.9 kB / 0.5404 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.3598, allocations: 46.59 kB / 0.5404 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.873e-05/0.3599, allocations: 50.34 kB / 0.5405 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3599, allocations: 12.28 kB / 0.5405 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.3599, allocations: 1.734 kB / 0.5405 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.3599, allocations: 3.078 kB / 0.5405 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001931/0.3618, allocations: 1.236 MB / 0.5417 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.3618, allocations: 2.422 kB / 0.5417 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002516/0.3621, allocations: 52.92 kB / 0.5417 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.323e-06/0.3621, allocations: 3.281 kB / 0.5418 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.374e-05/0.3621, allocations: 13.58 kB / 0.5418 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.3621, allocations: 4.219 kB / 0.5418 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.325e-06/0.3621, allocations: 7.078 kB / 0.5418 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008438/0.363, allocations: 0.5844 MB / 0.5423 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001962/0.3632, allocations: 150.3 kB / 0.5425 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.33e-05/0.3632, allocations: 18.75 kB / 0.5425 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.3634, allocations: 14.41 kB / 0.5425 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.3635, allocations: 36.28 kB / 0.5426 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.1e-05/0.3636, allocations: 11.42 kB / 0.5426 GB, free: 9.531 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000306/0.3639, allocations: 236.2 kB / 0.5428 GB, free: 9.402 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3639, allocations: 5.125 kB / 0.5428 GB, free: 9.398 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005245/0.3644, allocations: 142.7 kB / 0.5429 GB, free: 9.348 MB / 398.1 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.000145/0.3645, allocations: 117.5 kB / 0.543 GB, free: 9.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007203/0.3653, allocations: 353.6 kB / 0.5434 GB, free: 9.133 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.3653, allocations: 5.625 kB / 0.5434 GB, free: 9.129 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002433/0.3655, allocations: 153.5 kB / 0.5435 GB, free: 9.074 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006894/0.3662, allocations: 130.2 kB / 0.5437 GB, free: 9.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.368, allocations: 0.9636 MB / 0.5446 GB, free: 8.406 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005898/0.3686, allocations: 0.8594 MB / 0.5454 GB, free: 7.703 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002842/0.3688, allocations: 70.44 kB / 0.5455 GB, free: 7.684 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.3689, allocations: 38.48 kB / 0.5455 GB, free: 7.68 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3689, allocations: 0 / 0.5455 GB, free: 7.68 MB / 398.1 MB Notification: Performance of Templates: time 0.01113/0.3801, allocations: 5.246 MB / 0.5507 GB, free: 5.188 MB / 398.1 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 -s cvode -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.82102836901322] Failed to read output from testmodel.py, exit status != 0: 0.3884382960386574 0.40405045 0.056610477000000006 Calling exit ...