/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 65 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 = 7432
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1208.9+5441_daily_bin1013
RA = 182.226, Dec = 54.6995
tmin = 501897601, tmax = 502156801
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='359361', job_status='RUN', time_executed='2021-09-05 01:32:56.405738', time_epoch_executed='1630830776.41' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359361

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359361/ft1_4FGL_J1208.9+5441_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359361/ft2_4FGL_J1208.9+5441_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359361/ft1_4FGL_J1208.9+5441_daily_bin1013.fits outfile=/scratch/kocevski/359361/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin1013.fits ra=182.226 dec=54.6995 rad=12.0 tmin=501897601.0 tmax=502156801.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 3.86
user 3.25
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359361/ft1_filtered_4FGL_J1208.9+5441_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/359361/ft2_4FGL_J1208.9+5441_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/359361/ltcube_501897601_502156801_4FGL_J1208.9+5441_daily_bin1013.fits outfile=/scratch/kocevski/359361/expmap_501897601_502156801_4FGL_J1208.9+5441_daily_bin1013.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/359361/ltcube_501897601_502156801_4FGL_J1208.9+5441_daily_bin1013.fits
.....................!
real 192.09
user 186.04
sys 4.25

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/359361/ft1_filtered_4FGL_J1208.9+5441_daily_bin1013.fits scfile=/scratch/kocevski/359361/ft2_4FGL_J1208.9+5441_daily_bin1013.fits outfile=/scratch/kocevski/359361/cmap_501897601_502156801_4FGL_J1208.9+5441_daily_bin1013.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359361/ft1_filtered_4FGL_J1208.9+5441_daily_bin1013.fits scfile=/scratch/kocevski/359361/ft2_4FGL_J1208.9+5441_daily_bin1013.fits outfile=/scratch/kocevski/359361/cmap_HighResolution_501897601_502156801_4FGL_J1208.9+5441_daily_bin1013.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7867       1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.286       1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.505       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.6218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.590       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0256       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .63110E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.3784       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.738       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.3805       1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.339       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .28335       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.4768       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .65961       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1968       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=   5266.887     FROM MIGRAD    STATUS=CONVERGED   1244 CALLS     4044 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.658        .18142E-02** at limit **
   2  norm          1.7892        2.4018        .11985E-03   -.36047E-04
   3  Prefactor     52.229        52.136        .27733E-03    .39886E-04
   4  Prefactor     39.483        27.554        .63772E-04   -.74517E-04
   5  Prefactor     .10000E-03    24.378        .18142E-02** at limit **
   6  norm          .10000E-03    13.469        .18142E-02** at limit **
   7  Prefactor     .10000E-03    3.4068        .13024E-02** at limit **
   8  Prefactor     .10000E-03    10.363        .18142E-02** at limit **
   9  norm          5.6222        7.3314        .16943E-03   -.10803E-04
  10  Prefactor     .10000E-03    8.5910        .19308E-02** at limit **
  11  norm          .10000E-03    1.6770        .91491E-03** at limit **
  12  Prefactor     20.566        17.812        .88268E-04    .36965E-04
  13  Prefactor     5.0288        5.6148        .17597E-03   -.16998E-03
  14  Prefactor     .10000E-03    87.709        .55783E-02** at limit **
  15  norm          9.3780        2.8803        .65043E-04   -.83549E-04
  16  Prefactor     .10000E-03    6.5980        .18142E-02** at limit **
  17  Prefactor     .10000E-03    76.970        .18142E-02** at limit **
  18  norm          11.738        8.2876        .11693E-03   -.37627E-04
  19  Prefactor     .10000E-03    39.116        .18142E-02** at limit **
  20  Prefactor     .10000E-03    2.3895        .10940E-02** at limit **
  21  norm          6.3808        3.0242        .80628E-04    .49210E-04
  22  Prefactor     32.345        27.626        .70461E-04   -.62925E-05
  23  norm          .10000E-03    1.0560        .72410E-03** at limit **
  24  Prefactor     .21297        43.789        .14243        .71822E-04
  25  Prefactor     4.4755        13.634        .19030E-03    .24494E-05
  26  norm          .10000E-03    1.5941        .89404E-03** at limit **
  27  Normalizat    .65968        .19581        .25308E-03   -.76861E-04
  28  Prefactor     1.1967        .23992        .25016E-03   -.36901E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.78918
  Prefactor  = 52.2288
  Prefactor  = 39.4827
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.62216
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.5657
  Prefactor  = 5.02879
  Prefactor  = 0.0001
  norm       = 9.37802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7381
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 6.38077
  Prefactor  = 32.345
  norm       = 0.0001
  Prefactor  = 0.212972
  Prefactor  = 4.47553
  norm       = 0.0001
  Normalizat = 0.659676
  Prefactor  = 1.19665
 **********
 **   18 **HESSE 
 **********

 FCN=   5266.887     FROM HESSE     STATUS=OK           501 CALLS     4545 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7892        2.4015        .47939E-05   -1.5440    
   3  Prefactor     52.229        52.135        .11093E-04   -1.4261    
   4  Prefactor     39.483        27.547        .25509E-05   -1.4450    
   5  Prefactor     .10000E-03    24.378        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    13.469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4073        .26048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.364        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.6222        7.3313        .67771E-05   -1.5234    
  10  Prefactor     .10000E-03    8.6233        .38615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6770        .18298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.566        17.805        .35307E-05   -1.4801    
  13  Prefactor     5.0288        5.6089        .70387E-05   -1.5259    
  14  Prefactor     .10000E-03    89.207        .11157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.3780        2.8803        .26017E-05   -1.5095    
  16  Prefactor     .10000E-03    6.5982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    76.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.738        8.2867        .46771E-05   -1.5023    
  19  Prefactor     .10000E-03    39.131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3895        .21880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.3808        3.0238        .32251E-05   -1.5203    
  22  Prefactor     32.345        27.628        .28184E-05   -1.4570    
  23  norm          .10000E-03    1.0561        .14482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .21297        43.157        .14401       -1.5616    
  25  Prefactor     4.4755        13.630        .76120E-05   -1.5285    
  26  norm          .10000E-03    1.5941        .17881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .65968        .19595        .10123E-04   -1.0551    
  28  Prefactor     1.1967        .24014        .10007E-04   -.86434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68569e-10
Minuit parameter uncertainties:
  1  0.000108674
  2  2.4016
  3  52.1807
  4  27.5562
  5  2.45649e-05
  6  2.7207e-06
  7  1.08225e-05
  8  2.97084e-06
  9  7.33244
  10  5.34631e-05
  11  2.39415e-06
  12  17.8098
  13  5.60949
  14  0.0003804
  15  2.88031
  16  2.13527e-06
  17  5.67276e-06
  18  8.28754
  19  0.000797623
  20  2.14481e-06
  21  3.0239
  22  27.6389
  23  1.24965e-06
  24  6.0664
  25  13.6394
  26  1.98676e-06
  27  0.196162
  28  0.240363
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  9.378e+00  2.880e+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:  1.197e+00  2.404e-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:  6.597e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.47
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 4.50e-08
Energy Flux (Fixed Index): 3.88e-05 +/- 1.19e-05

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) = 5265.23345036
delta logL = 1.65389673754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5265.20170475
delta logL = 1.68564234698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6907       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9111       1.0000          .0000       5.0000    
     3 'Normalizat'    .71625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1481       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=   5265.202     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6895        2.8509        .33993E-02    .77995E-04
   2  alpha         1.9109        .26973        .18082       -.55625E-04
   3  Normalizat    .71631        .15716        .42507E-01    .38970E-06
   4  Prefactor     1.1481        .20258        .57569E-01   -.24005E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.68949
  alpha      = 1.91095
  Normalizat = 0.716311
  Prefactor  = 1.14809
 **********
 **   18 **HESSE 
 **********

 FCN=   5265.202     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6895        3.1166        .66636E-04   -1.5118    
   2  alpha         1.9109        .30589        .77144E-02   -.23786    
   3  Normalizat    .71631        .18447        .24389E-03   -1.0325    
   4  Prefactor     1.1481        .23699        .25457E-03   -.87944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23587e-11
Minuit parameter uncertainties:
  1  3.11662
  2  0.306708
  3  0.184635
  4  0.23721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359361': 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) = 5265.20170452
delta logL = 1.68564257887

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  8.689e+00  3.117e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  1.911e+00  3.067e-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:  1.148e+00  2.372e-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:  7.163e-01  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.75
Ra Dec: 182.226 54.700
Photon Index (Free Index): 1.91 +/- 0.31
Photon Flux (Free Index): 1.03e-07 +/- 4.13e-08
Energy Flux (Free Index): 5.64e-05 +/- 2.48e-05

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/359361/cmap_HighResolution_501897601_502156801_4FGL_J1208.9+5441_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='5.64e-05', photon_flux_error='4.50e-08', dlogl='1.69e+00', energy_flux='3.88e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-05 01:45:48.707745', photon_index_error2='0.31', photon_index2='1.91', ts='30.47', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='2.48e-05', EG='0.66', time_epoch_completed='1630831548.71', return_code='0', job_id='359361', GAL2='1.15', EG2='0.72', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.13e-08', ts2='33.75', photon_index='2.51' WHERE bin_id='1013' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:45:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 359361: <4FGL_J1208.9+5441_daily_bin1013> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin1013> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 01:31:19 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:31:21 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:31:21 2021
Terminated at Sun Sep  5 01:45:49 2021
Results reported at Sun Sep  5 01:45:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin1013 182.226 54.6995 501897601 502156801 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 :                                   753.45 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             300.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

