/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 131 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7467
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1208.9+5441_daily_bin71
RA = 182.226, Dec = 54.6995
tmin = 257731201, tmax = 257990401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='351338', job_status='RUN', time_executed='2021-09-05 01:08:15.045465', time_epoch_executed='1630829295.05' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351338

Creating custom pfile directory:
/scratch/kocevski/351338/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=257731201.0 && nMetStart<257990401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=257731201.0 && nMetStart<257990401.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351338/ft1_4FGL_J1208.9+5441_daily_bin71.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=257731201.0 && nMetStart<257990401.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351338/ft2_4FGL_J1208.9+5441_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351338/ft1_4FGL_J1208.9+5441_daily_bin71.fits outfile=/scratch/kocevski/351338/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin71.fits ra=182.226 dec=54.6995 rad=12.0 tmin=257731201.0 tmax=257990401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.44
user 1.23
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/351338/ft2_4FGL_J1208.9+5441_daily_bin71.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351338/ft2_4FGL_J1208.9+5441_daily_bin71.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/351338/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin71.fits evtable="EVENTS" outfile="/scratch/kocevski/351338/ft1_filtered_4FGL_J1208.9+5441_daily_bin71.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351338/ft1_filtered_4FGL_J1208.9+5441_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/351338/ft2_4FGL_J1208.9+5441_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/351338/ltcube_257731201_257990401_4FGL_J1208.9+5441_daily_bin71.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/351338/ft2_4FGL_J1208.9+5441_daily_bin71.fits
.....................!
real 12.60
user 12.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351338/ft1_filtered_4FGL_J1208.9+5441_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/351338/ft2_4FGL_J1208.9+5441_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/351338/ltcube_257731201_257990401_4FGL_J1208.9+5441_daily_bin71.fits outfile=/scratch/kocevski/351338/expmap_257731201_257990401_4FGL_J1208.9+5441_daily_bin71.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/351338/ltcube_257731201_257990401_4FGL_J1208.9+5441_daily_bin71.fits
.....................!
real 192.21
user 187.26
sys 4.53

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 221 point sources and 0 extended sources

Setting source of interest to:
4FGL J1208.9+5441 @ 182.226 54.6995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/351338/ft1_filtered_4FGL_J1208.9+5441_daily_bin71.fits scfile=/scratch/kocevski/351338/ft2_4FGL_J1208.9+5441_daily_bin71.fits outfile=/scratch/kocevski/351338/cmap_257731201_257990401_4FGL_J1208.9+5441_daily_bin71.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=182.226 yref=54.6995 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351338/ft1_filtered_4FGL_J1208.9+5441_daily_bin71.fits scfile=/scratch/kocevski/351338/ft2_4FGL_J1208.9+5441_daily_bin71.fits outfile=/scratch/kocevski/351338/cmap_HighResolution_257731201_257990401_4FGL_J1208.9+5441_daily_bin71.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=182.226 yref=54.6995 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351338/ft1_filtered_4FGL_J1208.9+5441_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/351338/ft2_4FGL_J1208.9+5441_daily_bin71.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351338/Model_4FGL_J1208.9+5441_daily_bin71.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/351338/ft1_filtered_4FGL_J1208.9+5441_daily_bin71.fits.....................!
real 50.71
user 49.43
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351338/ft1_filtered_4FGL_J1208.9+5441_daily_bin71.fits', '/scratch/kocevski/351338/ft2_4FGL_J1208.9+5441_daily_bin71.fits', expMap='/scratch/kocevski/351338/expmap_257731201_257990401_4FGL_J1208.9+5441_daily_bin71.fits', expCube='/scratch/kocevski/351338/ltcube_257731201_257990401_4FGL_J1208.9+5441_daily_bin71.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351338/Model_4FGL_J1208.9+5441_daily_bin71.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1208.9+5441'

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  2.729e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.511e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
378         beta:  7.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/351338/ft1_filtered_4FGL_J1208.9+5441_daily_bin71.fits
Spacecraft file(s): /scratch/kocevski/351338/ft2_4FGL_J1208.9+5441_daily_bin71.fits
Exposure map: /scratch/kocevski/351338/expmap_257731201_257990401_4FGL_J1208.9+5441_daily_bin71.fits
Exposure cube: /scratch/kocevski/351338/ltcube_257731201_257990401_4FGL_J1208.9+5441_daily_bin71.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351338/Model_4FGL_J1208.9+5441_daily_bin71.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5543.2358338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5543.22553284

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.724       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18872E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28043E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1292       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.862       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.343       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.980       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.7929       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.7855       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.1560       1.0000         .10000E-03   10000.    
    26 'norm      '    .42412E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1448       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .81508       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5543.225     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3518 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.134       -.26620E-06** at limit **
   2  norm          .10000E-03    .79756       -.85884E-06** at limit **
   3  Prefactor     .10000E-03    137.66       -.82312E-05** at limit **
   4  Prefactor     20.710        23.581        .15098E-05    .10514E-03
   5  Prefactor     .10000E-03    35.021       -.21901E-06** at limit **
   6  norm          .10000E-03    37.443       -.12394E-06** at limit **
   7  Prefactor     .10000E-03    2.8868       -.54932E-06** at limit **
   8  Prefactor     .10000E-03    222.41       -.17410E-04** at limit **
   9  norm          .10000E-03    5.5684        .19687E-06** at limit **
  10  Prefactor     .28173E-01    1.1622        .16954E-06   -.52488E-04
  11  norm          3.1260        5.4751       -.25611E-05   -.28127E-03
  12  Prefactor     18.863        14.666        .28601E-06   -.10098E-04
  13  Prefactor     .10000E-03    4.0167        .63829E-06** at limit **
  14  Prefactor     .10000E-03    9.4712        .23949E-06** at limit **
  15  norm          .10000E-03    .73656       -.18680E-07** at limit **
  16  Prefactor     .10000E-03    34.532       -.11151E-05** at limit **
  17  Prefactor     .10000E-03    27.531        .12719E-06** at limit **
  18  norm          14.343        8.3698       -.19585E-05   -.11427E-03
  19  Prefactor     18.978        24.301        .18891E-05   -.96715E-05
  20  Prefactor     .10000E-03    2.0450       -.20395E-07** at limit **
  21  norm          3.7930        2.2637        .69785E-07    .21513E-04
  22  Prefactor     .10000E-03    8.4088       -.62457E-07** at limit **
  23  norm          4.7855        2.3655        .32528E-07   -.21573E-04
  24  Prefactor     .10000E-03    13.890       -.40042E-07** at limit **
  25  Prefactor     7.1569        11.132       -.62893E-06   -.19726E-04
  26  norm          .10000E-03    4.0498        .34613E-06** at limit **
  27  Normalizat    1.1449        .17231       -.15369E-05   -.32602E-04
  28  Prefactor     .81484        .20595        .19833E-05   -.12525E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 20.7098
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0281731
  norm       = 3.12603
  Prefactor  = 18.8627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.3434
  Prefactor  = 18.9781
  Prefactor  = 0.0001
  norm       = 3.79303
  Prefactor  = 0.0001
  norm       = 4.78549
  Prefactor  = 0.0001
  Prefactor  = 7.15691
  norm       = 0.000100003
  Normalizat = 1.14486
  Prefactor  = 0.814839
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.225     FROM HESSE     STATUS=OK           521 CALLS     4039 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.1165        .12376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    138.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.710        23.156        .87984E-04   -1.4797    
   5  Prefactor     .10000E-03    35.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    37.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8971        .12341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    215.88        .75028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.5758        .17161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .28173E-01    16.298        .15467E-02   -1.5674    
  11  norm          3.1260        5.4669        .21606E-03   -1.5354    
  12  Prefactor     18.863        14.645        .92222E-04   -1.4839    
  13  Prefactor     .10000E-03    4.0616        .14604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.4905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .74617        .62357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    35.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.343        8.3746        .52880E-03   -1.4950    
  19  Prefactor     18.978        24.283        .91935E-04   -1.4836    
  20  Prefactor     .10000E-03    2.0534        .10394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.7930        2.2605        .82595E-04   -1.5318    
  22  Prefactor     .10000E-03    8.4172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.7855        2.3652        .78102E-04   -1.5270    
  24  Prefactor     .10000E-03    13.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.1569        11.125        .14995E-03   -1.5173    
  26  norm          .10000E-03    9.9981        .28797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1449        .19848        .20750E-03   -.88324    
  28  Prefactor     .81484        .23942        .30103E-03   -.99184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8809e-08
Minuit parameter uncertainties:
  1  0.000222343
  2  4.7519e-05
  3  0.00148896
  4  23.1661
  5  5.89749e-05
  6  2.62826e-06
  7  2.38887e-08
  8  0.00166386
  9  1.59226e-05
  10  1.35319
  11  5.4678
  12  14.6482
  13  4.93801e-05
  14  3.66472e-05
  15  2.77771e-06
  16  3.72717e-05
  17  7.70639e-05
  18  8.37527
  19  24.2957
  20  2.43381e-06
  21  2.26059
  22  1.12194e-07
  23  2.36525
  24  7.15328e-07
  25  11.1286
  26  0.000349035
  27  0.198613
  28  0.239726
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5543.2254723

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.000e-04  2.778e-06  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.511e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
378         beta:  7.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  8.148e-01  2.397e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.145e+00  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.226 54.700
Photon Flux Upper Limit: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351338/likelihoodResults_257731201_257990401_4FGL_J1208.9+5441_daily_bin71.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5543.2317344
delta logL = -0.00626209419988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5543.22547255
delta logL = -2.43900103669e-07

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5055       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81488       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5543.225     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      232 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.120        .62443E-03** at limit **
   2  alpha         2.2489        3.2197        .50000       -.38131E-06
   3  Normalizat    1.1449        .18904        .20750E-03    .39558E-04
   4  Prefactor     .81484        .23618        .30103E-03    .48416E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.2489
  Normalizat = 1.14486
  Prefactor  = 0.814841
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.225     FROM HESSE     STATUS=OK            29 CALLS      261 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .80161        .12489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2489        3.0261        .50000       -.10061    
   3  Normalizat    1.1449        .18924        .82998E-05   -.88324    
   4  Prefactor     .81484        .23642        .12041E-04   -.99184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09116e-10
Minuit parameter uncertainties:
  1  4.17224e-06
  2  94.8851
  3  0.189349
  4  0.236717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351338': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5543.22547017
delta logL = 2.13039584196e-06

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.000e-04  4.172e-06  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.249e+00  9.489e+01  0.000e+00  5.000e+00 ( 1.000e+00)
378         beta:  7.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  8.148e-01  2.367e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.145e+00  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.226 54.700

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/351338/cmap_HighResolution_257731201_257990401_4FGL_J1208.9+5441_daily_bin71.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/351338

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-05', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2021-09-05 01:22:07.605219', job_id='351338', GAL2='0.81', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630830127.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='71' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:22:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 351338: <4FGL_J1208.9+5441_daily_bin71> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin71> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 01:05:52 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:05:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 01:05:54 2021
Terminated at Sun Sep  5 01:22:09 2021
Results reported at Sun Sep  5 01:22:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin71 182.226 54.6995 257731201 257990401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1208.9+5441 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   832.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             305.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            977 sec.

The output (if any) is above this job summary.

