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.001403/0.001403, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001624/0.001624, allocations: 214.5 kB / 23.01 MB, free: 4.566 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.41/1.41, allocations: 230.6 MB / 256.8 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] 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.1734/0.1734, allocations: 31.55 MB / 344.7 MB, free: 3.957 MB / 270.1 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: 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.002241/0.002241, allocations: 67.88 kB / 482.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3505, allocations: 60.71 MB / 0.5301 GB, free: 7.707 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008132/0.3586, allocations: 7.381 MB / 0.5373 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002534/0.3611, allocations: 1.105 MB / 0.5384 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000605/0.3617, allocations: 30.22 kB / 0.5384 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004656/0.3622, allocations: 136 kB / 0.5386 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002834/0.3625, allocations: 85.73 kB / 0.5386 GB, free: 1.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008926/0.3634, allocations: 318.5 kB / 0.5389 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008196/0.3642, allocations: 0.7211 MB / 0.5396 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005707/0.3648, allocations: 322.4 kB / 0.5399 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003473/0.3651, allocations: 304.8 kB / 0.5402 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003043/0.3654, allocations: 307.7 kB / 0.5405 GB, free: 272 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.3655, allocations: 84.19 kB / 0.5406 GB, free: 272 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.3657, allocations: 91.39 kB / 0.5407 GB, free: 268 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001218/0.3658, allocations: 181.3 kB / 0.5409 GB, free: 112 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003046/0.3661, allocations: 346.1 kB / 0.5412 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009884/0.3671, allocations: 0.7974 MB / 0.542 GB, free: 15.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3671, allocations: 0 / 0.542 GB, free: 15.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3671, allocations: 0 / 0.542 GB, free: 15.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.3671, allocations: 0 / 0.542 GB, free: 15.21 MB / 398.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.001673/0.3688, allocations: 0.8445 MB / 0.5428 GB, free: 14.54 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.3688, allocations: 10.34 kB / 0.5428 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000364/0.3692, allocations: 103.1 kB / 0.5429 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006712/0.3699, allocations: 381.6 kB / 0.5433 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.86e-05/0.3699, allocations: 56.25 kB / 0.5433 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.831e-05/0.37, allocations: 77.5 kB / 0.5434 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.3711, allocations: 0.6497 MB / 0.544 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.3711, allocations: 1.312 kB / 0.544 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.41e-05/0.3712, allocations: 30.78 kB / 0.5441 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.102e-05/0.3712, allocations: 19.92 kB / 0.5441 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007087/0.3719, allocations: 387.3 kB / 0.5445 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003343/0.3752, allocations: 2.201 MB / 0.5466 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006756/0.3759, allocations: 306.7 kB / 0.5469 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004313/0.3763, allocations: 207.7 kB / 0.5471 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.3764, allocations: 5 kB / 0.5471 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.3764, allocations: 45.3 kB / 0.5471 GB, free: 11.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.705e-06/0.3764, allocations: 0.7812 kB / 0.5471 GB, free: 11.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008535/0.3773, allocations: 407.1 kB / 0.5475 GB, free: 11.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001694/0.3774, allocations: 209.7 kB / 0.5477 GB, free: 10.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005136/0.3779, allocations: 367.4 kB / 0.5481 GB, free: 10.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.799e-05/0.378, allocations: 44.92 kB / 0.5481 GB, free: 10.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000284/0.3783, allocations: 317.2 kB / 0.5484 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.3784, allocations: 130 kB / 0.5486 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001979/0.3786, allocations: 119.9 kB / 0.5487 GB, free: 10.08 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002053/0.3788, allocations: 352.4 kB / 0.549 GB, free: 9.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000329/0.3792, allocations: 154.3 kB / 0.5492 GB, free: 9.664 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000487/0.3796, allocations: 312.6 kB / 0.5495 GB, free: 9.398 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006479/0.3803, allocations: 399 kB / 0.5498 GB, free: 9.105 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.3803, allocations: 1.406 kB / 0.5498 GB, free: 9.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009745/0.3813, allocations: 0.5022 MB / 0.5503 GB, free: 8.852 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.3813, allocations: 11.28 kB / 0.5503 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.3813, allocations: 3.062 kB / 0.5503 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.3813, allocations: 7.344 kB / 0.5503 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.3817, allocations: 89.42 kB / 0.5504 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.791e-05/0.3817, allocations: 14.3 kB / 0.5504 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003079/0.382, allocations: 66.72 kB / 0.5505 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.191e-05/0.382, allocations: 20.62 kB / 0.5505 GB, free: 8.758 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.0003017/0.3823, allocations: 216.5 kB / 0.5507 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.3824, allocations: 47.53 kB / 0.5508 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.932e-05/0.3825, allocations: 46.02 kB / 0.5508 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3825, allocations: 8.188 kB / 0.5508 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.3825, allocations: 5.062 kB / 0.5508 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3826, allocations: 0 / 0.5508 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001812/0.3844, allocations: 1.225 MB / 0.552 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3844, allocations: 2.219 kB / 0.552 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002416/0.3846, allocations: 52.69 kB / 0.5521 GB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-06/0.3846, allocations: 3.406 kB / 0.5521 GB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.538e-05/0.3847, allocations: 17.62 kB / 0.5521 GB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.574e-06/0.3847, allocations: 6.625 kB / 0.5521 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.3847, allocations: 2.188 kB / 0.5521 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008992/0.3856, allocations: 0.5838 MB / 0.5527 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.3857, allocations: 74.83 kB / 0.5528 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.816e-05/0.3858, allocations: 14 kB / 0.5528 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.386, allocations: 14.23 kB / 0.5528 GB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.873e-05/0.3861, allocations: 37.28 kB / 0.5528 GB, free: 6.992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.67e-05/0.3861, allocations: 13.03 kB / 0.5528 GB, free: 6.988 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003223/0.3864, allocations: 238.5 kB / 0.5531 GB, free: 6.836 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3864, allocations: 0 / 0.5531 GB, free: 6.836 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005614/0.387, allocations: 138 kB / 0.5532 GB, free: 6.789 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.0001513/0.3871, allocations: 129 kB / 0.5533 GB, free: 6.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006913/0.3878, allocations: 350.1 kB / 0.5536 GB, free: 6.527 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.3878, allocations: 2.219 kB / 0.5536 GB, free: 6.527 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002494/0.3881, allocations: 153.5 kB / 0.5538 GB, free: 6.457 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006819/0.3888, allocations: 121.4 kB / 0.5539 GB, free: 6.391 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001915/0.3907, allocations: 1.021 MB / 0.5549 GB, free: 5.656 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005884/0.3913, allocations: 0.8624 MB / 0.5557 GB, free: 4.879 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.3914, allocations: 41.81 kB / 0.5558 GB, free: 4.875 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3914, allocations: 0 / 0.5558 GB, free: 4.875 MB / 398.1 MB Notification: Performance of Templates: time 0.01108/0.4025, allocations: 6.239 MB / 0.5619 GB, free: 15.81 MB / 414.1 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=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.748547791969031] Failed to read output from testmodel.py, exit status != 0: 0.41170962783508 0.425898824 0.055656732 Calling exit ...