/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 18 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 = 7558
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1208.9+5441_daily_bin9
RA = 182.226, Dec = 54.6995
tmin = 241660801, tmax = 241920001
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='351178', job_status='RUN', time_executed='2021-09-05 01:06:25.285051', time_epoch_executed='1630829185.29' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='9'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351178

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351178/ft1_4FGL_J1208.9+5441_daily_bin9.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351178/ft2_4FGL_J1208.9+5441_daily_bin9.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351178/ft1_4FGL_J1208.9+5441_daily_bin9.fits outfile=/scratch/kocevski/351178/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin9.fits ra=182.226 dec=54.6995 rad=12.0 tmin=241660801.0 tmax=241920001.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.48
user 1.29
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351178/ft2_4FGL_J1208.9+5441_daily_bin9.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/351178/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin9.fits evtable="EVENTS" outfile="/scratch/kocevski/351178/ft1_filtered_4FGL_J1208.9+5441_daily_bin9.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351178/ft1_filtered_4FGL_J1208.9+5441_daily_bin9.fits" evtable="EVENTS" scfile=/scratch/kocevski/351178/ft2_4FGL_J1208.9+5441_daily_bin9.fits sctable="SC_DATA" outfile=/scratch/kocevski/351178/ltcube_241660801_241920001_4FGL_J1208.9+5441_daily_bin9.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/351178/ft2_4FGL_J1208.9+5441_daily_bin9.fits
.....................!
real 13.04
user 12.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351178/ft1_filtered_4FGL_J1208.9+5441_daily_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/351178/ft2_4FGL_J1208.9+5441_daily_bin9.fits sctable="SC_DATA" expcube=/scratch/kocevski/351178/ltcube_241660801_241920001_4FGL_J1208.9+5441_daily_bin9.fits outfile=/scratch/kocevski/351178/expmap_241660801_241920001_4FGL_J1208.9+5441_daily_bin9.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/351178/ltcube_241660801_241920001_4FGL_J1208.9+5441_daily_bin9.fits
.....................!
real 189.74
user 184.95
sys 4.46

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/351178/ft1_filtered_4FGL_J1208.9+5441_daily_bin9.fits scfile=/scratch/kocevski/351178/ft2_4FGL_J1208.9+5441_daily_bin9.fits outfile=/scratch/kocevski/351178/cmap_241660801_241920001_4FGL_J1208.9+5441_daily_bin9.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351178/ft1_filtered_4FGL_J1208.9+5441_daily_bin9.fits scfile=/scratch/kocevski/351178/ft2_4FGL_J1208.9+5441_daily_bin9.fits outfile=/scratch/kocevski/351178/cmap_HighResolution_241660801_241920001_4FGL_J1208.9+5441_daily_bin9.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351178/ft1_filtered_4FGL_J1208.9+5441_daily_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/351178/ft2_4FGL_J1208.9+5441_daily_bin9.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351178/Model_4FGL_J1208.9+5441_daily_bin9.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/351178/ft1_filtered_4FGL_J1208.9+5441_daily_bin9.fits....................!
real 59.24
user 57.94
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351178/ft1_filtered_4FGL_J1208.9+5441_daily_bin9.fits', '/scratch/kocevski/351178/ft2_4FGL_J1208.9+5441_daily_bin9.fits', expMap='/scratch/kocevski/351178/expmap_241660801_241920001_4FGL_J1208.9+5441_daily_bin9.fits', expCube='/scratch/kocevski/351178/ltcube_241660801_241920001_4FGL_J1208.9+5441_daily_bin9.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351178/Model_4FGL_J1208.9+5441_daily_bin9.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/351178/ft1_filtered_4FGL_J1208.9+5441_daily_bin9.fits
Spacecraft file(s): /scratch/kocevski/351178/ft2_4FGL_J1208.9+5441_daily_bin9.fits
Exposure map: /scratch/kocevski/351178/expmap_241660801_241920001_4FGL_J1208.9+5441_daily_bin9.fits
Exposure cube: /scratch/kocevski/351178/ltcube_241660801_241920001_4FGL_J1208.9+5441_daily_bin9.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351178/Model_4FGL_J1208.9+5441_daily_bin9.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) = 6792.02275012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    133.80       1.0000         .10000E-03   10000.    
     2 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .62047E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    144.73       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10598E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4804       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12446E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.755       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5381       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.964       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.895       1.0000         .10000E-03   10000.    
    18 'norm      '    10.216       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.1334       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.345       1.0000         .10000E-03   10000.    
    23 'norm      '    2.6392       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.7347       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0919       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86205       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6792.018     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     3443 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     133.66        28.231       -.11568E-05   -.40605E-03
   2  norm          .10005E-03    8.2232        .42657E-06** at limit **
   3  Prefactor     .20232E-03    6209.7       -.48217E-04** at limit **
   4  Prefactor     .10000E-03    24.880        .93116E-06** at limit **
   5  Prefactor     144.69        6.8349       -.27260E-06   -.10287E-02
   6  norm          .10004E-03    7.9864        .13512E-06** at limit **
   7  Prefactor     .10000E-03    5.8493       -.25634E-07** at limit **
   8  Prefactor     .10000E-03    13.303        .11673E-06** at limit **
   9  norm          .10000E-03    4.2898       -.25933E-06** at limit **
  10  Prefactor     3.4770        3.1674        .15531E-06   -.21073E-04
  11  norm          .10000E-03    3.0509       -.24302E-06** at limit **
  12  Prefactor     .10003E-03    36.188        .40401E-06** at limit **
  13  Prefactor     .10000E-03    4.5230       -.51667E-07** at limit **
  14  Prefactor     16.747        4.1070       -.33127E-06   -.17228E-02
  15  norm          4.5388        2.0795        .81952E-07   -.30633E-04
  16  Prefactor     34.971        18.668        .58155E-06    .44369E-03
  17  Prefactor     33.943        11.621        .97823E-06    .83612E-02
  18  norm          10.217        6.9011        .31141E-06    .22106E-03
  19  Prefactor     .10000E-03    18.509       -.65379E-06** at limit **
  20  Prefactor     .10000E-03    2.2004        .23698E-06** at limit **
  21  norm          6.1341        2.2494        .17836E-07   -.25707E-04
  22  Prefactor     18.350        9.2225        .29580E-06   -.56519E-02
  23  norm          2.6400        2.1100        .63091E-07   -.15709E-04
  24  Prefactor     .10004E-03    31.204        .17401E-06** at limit **
  25  Prefactor     .10000E-03    2.2937        .20894E-06** at limit **
  26  norm          2.7354        2.9645        .70061E-07    .17255E-04
  27  Normalizat    1.0916        .18463       -.22647E-05   -.18325E-03
  28  Prefactor     .86211        .22794        .89661E-06   -.10559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 133.665
  norm       = 0.000100045
  Prefactor  = 0.000202317
  Prefactor  = 0.000100003
  Prefactor  = 144.694
  norm       = 0.000100043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.47703
  norm       = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 16.7474
  norm       = 4.53882
  Prefactor  = 34.9714
  Prefactor  = 33.9425
  norm       = 10.2174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.13414
  Prefactor  = 18.3495
  norm       = 2.64004
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  norm       = 2.7354
  Normalizat = 1.09158
  Prefactor  = 0.862107
 **********
 **   18 **HESSE 
 **********

 FCN=   6792.018     FROM HESSE     STATUS=OK           589 CALLS     4032 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     133.66        113.09        .87037E-03   -1.3391    
   2  norm          .10005E-03    1.0007        .52991E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .20232E-03    59.812        .14549       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.716        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     144.69        101.83        .83733E-03   -1.3296    
   6  norm          .10004E-03    15.700        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.2880        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4770        3.1849        .54187E-02   -1.5335    
  11  norm          .10000E-03    2.9953        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    35.870        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.4995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.747        19.464        .24461E-02   -1.4889    
  15  norm          4.5388        2.0800        .47244E-02   -1.5282    
  16  Prefactor     34.971        21.978        .16943E-02   -1.4525    
  17  Prefactor     33.943        47.878        .17207E-02   -1.4542    
  18  norm          10.217        6.9289        .31341E-02   -1.5069    
  19  Prefactor     .10000E-03    18.538        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1829        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.1341        2.2521        .40527E-02   -1.5213    
  22  Prefactor     18.350        17.518        .23378E-02   -1.4851    
  23  norm          2.6400        2.1218        .62745E-02   -1.5383    
  24  Prefactor     .10004E-03    31.501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.2908        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.7354        2.9688        .61555E-02   -1.5377    
  27  Normalizat    1.0916        .15912        .38339E-01   -.90023    
  28  Prefactor     .86211        .19517        .68563E-01   -.97478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64834e-07
Minuit parameter uncertainties:
  1  113.275
  2  0.000424856
  3  0.156614
  4  0.000544437
  5  101.951
  6  0.00164135
  7  4.40357e-06
  8  8.07005e-05
  9  3.42257e-06
  10  3.18506
  11  3.88174e-06
  12  0.00215101
  13  6.57377e-07
  14  19.4711
  15  2.08007
  16  21.9829
  17  47.9323
  18  6.92946
  19  5.10225e-05
  20  2.91134e-06
  21  2.25213
  22  17.5228
  23  2.12186
  24  0.00210511
  25  2.32676e-06
  26  2.96893
  27  0.159191
  28  0.19533
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  4.539e+00  2.080e+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

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  8.621e-01  1.953e-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.092e+00  1.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.84
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 7.10e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 8.60e-06

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) = 6791.89050985
delta logL = 0.127963807446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6791.88887424
delta logL = 0.129599411674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5097       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2801       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85310       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.

 FCN=   6791.889     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      201 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5097        2.2958        .47397E-02    .34928E-03
   2  alpha         2.2801        .44077        .32050       -.82810E-05
   3  Normalizat    1.1026        .15510        .37897E-01    .52410E-05
   4  Prefactor     .85310        .19358        .68888E-01    .21110E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.50972
  alpha      = 2.28011
  Normalizat = 1.10257
  Prefactor  = 0.853104
 **********
 **   18 **HESSE 
 **********

 FCN=   6791.889     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5097        2.1458        .79228E-04   -1.5283    
   2  alpha         2.2801        .44440        .13130E-01   -.88069E-01
   3  Normalizat    1.1026        .18290        .21761E-03   -.89669    
   4  Prefactor     .85310        .22705        .30478E-03   -.97800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27772e-12
Minuit parameter uncertainties:
  1  2.14589
  2  0.446797
  3  0.183009
  4  0.227296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351178': 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) = 6791.88887424
delta logL = 0.129599412471

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  4.510e+00  2.146e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.280e+00  4.468e-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.531e-01  2.273e-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.103e+00  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.07
Ra Dec: 182.226 54.700
Photon Index (Free Index): 2.28 +/- 0.45
Photon Flux (Free Index): 6.19e-08 +/- 3.46e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/351178/cmap_HighResolution_241660801_241920001_4FGL_J1208.9+5441_daily_bin9.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.10e-08', energy_flux2='2.03e-05', photon_flux_error='3.25e-08', dlogl='1.30e-01', energy_flux='1.88e-05', photon_flux2='6.19e-08', job_status='DONE', time_completed='2021-09-05 01:19:59.862032', photon_index_error2='0.45', photon_index2='2.28', ts='11.84', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.02e-05', EG='1.09', time_epoch_completed='1630829999.86', return_code='0', job_id='351178', GAL2='0.85', EG2='1.10', return_code2='0', energy_flux_error='8.60e-06', photon_flux_error2='3.46e-08', ts2='12.07', photon_index='2.51' WHERE bin_id='9' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:19:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 351178: <4FGL_J1208.9+5441_daily_bin9> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin9> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 01:05:45 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:05:47 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:47 2021
Terminated at Sun Sep  5 01:20:00 2021
Results reported at Sun Sep  5 01:20:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin9 182.226 54.6995 241660801 241920001 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 :                                   813.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             357.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

