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.001308/0.001308, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 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.001507/0.001507, allocations: 221 kB / 22.99 MB, free: 4.914 MB / 14.72 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 1.48/1.48, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.1759/0.1759, allocations: 31.54 MB / 344.7 MB, free: 3.789 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.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: BusinessSimulation requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002137/0.002137, allocations: 71.89 kB / 482 MB, free: 15.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3536, allocations: 60.71 MB / 0.53 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007974/0.3615, allocations: 6.704 MB / 0.5366 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002506/0.364, allocations: 1.105 MB / 0.5376 GB, free: 2.512 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004836/0.3645, allocations: 26.44 kB / 0.5377 GB, free: 2.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004441/0.365, allocations: 145.1 kB / 0.5378 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002595/0.3652, allocations: 86.19 kB / 0.5379 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007767/0.366, allocations: 294.8 kB / 0.5382 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007012/0.3667, allocations: 0.7217 MB / 0.5389 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004835/0.3672, allocations: 307.2 kB / 0.5392 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002711/0.3675, allocations: 312.4 kB / 0.5395 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002581/0.3677, allocations: 255.9 kB / 0.5397 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.3678, allocations: 82.84 kB / 0.5398 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.368, allocations: 96.39 kB / 0.5399 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.3681, allocations: 175.6 kB / 0.5401 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.3683, allocations: 275.3 kB / 0.5403 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006654/0.369, allocations: 0.8041 MB / 0.5411 GB, free: 180 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.369, allocations: 0 / 0.5411 GB, free: 180 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.369, allocations: 1.375 kB / 0.5411 GB, free: 180 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.369, allocations: 0 / 0.5411 GB, free: 180 kB / 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.001433/0.3704, allocations: 0.8405 MB / 0.5419 GB, free: 15.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.3704, allocations: 10.34 kB / 0.5419 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003455/0.3708, allocations: 103.1 kB / 0.542 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006957/0.3715, allocations: 389.5 kB / 0.5424 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.607e-05/0.3716, allocations: 61.62 kB / 0.5425 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.3717, allocations: 76.19 kB / 0.5425 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/0.3729, allocations: 0.7781 MB / 0.5433 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/0.3729, allocations: 0 / 0.5433 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.278e-05/0.3729, allocations: 35.5 kB / 0.5433 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.945e-05/0.373, allocations: 16.25 kB / 0.5433 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007362/0.3737, allocations: 374.8 kB / 0.5437 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003079/0.3768, allocations: 1.831 MB / 0.5455 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006283/0.3774, allocations: 304.3 kB / 0.5458 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004222/0.3778, allocations: 211 kB / 0.546 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.3778, allocations: 5.844 kB / 0.546 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.201e-05/0.3779, allocations: 42.98 kB / 0.546 GB, free: 12.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.833e-06/0.3779, allocations: 3.938 kB / 0.546 GB, free: 12.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007944/0.3787, allocations: 408.5 kB / 0.5464 GB, free: 12.26 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001571/0.3788, allocations: 211.1 kB / 0.5466 GB, free: 12.01 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003916/0.3792, allocations: 317.3 kB / 0.5469 GB, free: 11.79 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.3793, allocations: 44.42 kB / 0.547 GB, free: 11.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002787/0.3796, allocations: 329.2 kB / 0.5473 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.3797, allocations: 119 kB / 0.5474 GB, free: 11.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/0.3799, allocations: 123.7 kB / 0.5475 GB, free: 11.28 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.3801, allocations: 348.7 kB / 0.5478 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003142/0.3804, allocations: 150.6 kB / 0.548 GB, free: 10.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005213/0.3809, allocations: 413.8 kB / 0.5484 GB, free: 10.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006229/0.3815, allocations: 402.2 kB / 0.5488 GB, free: 10.19 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.3815, allocations: 1.375 kB / 0.5488 GB, free: 10.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009092/0.3824, allocations: 0.506 MB / 0.5493 GB, free: 9.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.3824, allocations: 6.656 kB / 0.5493 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.3825, allocations: 3.312 kB / 0.5493 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.639e-05/0.3825, allocations: 10.53 kB / 0.5493 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003104/0.3828, allocations: 81.02 kB / 0.5494 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.3828, allocations: 7 kB / 0.5494 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003059/0.3831, allocations: 56.86 kB / 0.5494 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.698e-05/0.3832, allocations: 25.67 kB / 0.5494 GB, free: 9.855 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.0003096/0.3835, allocations: 228.9 kB / 0.5497 GB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.3836, allocations: 37.42 kB / 0.5497 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.3837, allocations: 46.61 kB / 0.5497 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.3837, allocations: 5.719 kB / 0.5497 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.3837, allocations: 0 / 0.5497 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.3837, allocations: 8.922 kB / 0.5498 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001718/0.3854, allocations: 1.072 MB / 0.5508 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/0.3854, allocations: 2.469 kB / 0.5508 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002461/0.3857, allocations: 52.25 kB / 0.5509 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.3857, allocations: 7.094 kB / 0.5509 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.985e-05/0.3857, allocations: 9.406 kB / 0.5509 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.957e-06/0.3857, allocations: 7.266 kB / 0.5509 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.3857, allocations: 7.281 kB / 0.5509 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000827/0.3866, allocations: 0.5772 MB / 0.5514 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.3867, allocations: 65.61 kB / 0.5515 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.422e-05/0.3868, allocations: 17.91 kB / 0.5515 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.3869, allocations: 15.23 kB / 0.5515 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.185e-05/0.387, allocations: 40.92 kB / 0.5516 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.921e-05/0.3871, allocations: 13.5 kB / 0.5516 GB, free: 8.211 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002301/0.3873, allocations: 197.6 kB / 0.5518 GB, free: 8.082 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3873, allocations: 3.938 kB / 0.5518 GB, free: 8.078 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004961/0.3878, allocations: 147.1 kB / 0.5519 GB, free: 8.023 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.0001673/0.388, allocations: 136.1 kB / 0.5521 GB, free: 7.902 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006723/0.3886, allocations: 347.7 kB / 0.5524 GB, free: 7.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.3886, allocations: 1.125 kB / 0.5524 GB, free: 7.754 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002361/0.3889, allocations: 146.8 kB / 0.5525 GB, free: 7.691 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006866/0.3896, allocations: 115.8 kB / 0.5526 GB, free: 7.633 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.3914, allocations: 1.004 MB / 0.5536 GB, free: 6.914 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3917, allocations: 272.4 kB / 0.5539 GB, free: 6.738 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.3918, allocations: 39.62 kB / 0.5539 GB, free: 6.73 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3918, allocations: 3.938 kB / 0.5539 GB, free: 6.727 MB / 398.1 MB Notification: Performance of Templates: time 0.01116/0.4029, allocations: 6.26 MB / 0.56 GB, free: 1.52 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 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.7355489088222384] Failed to read output from testmodel.py, exit status != 0: 0.412078486289829 0.426727826 0.05458580099999994 Calling exit ...