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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin72
RA = 182.226, Dec = 54.6995
tmin = 257990401, tmax = 258249601
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='351339', job_status='RUN', time_executed='2021-09-05 01:08:57.212402', time_epoch_executed='1630829337.21' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351339

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351339/ft1_4FGL_J1208.9+5441_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351339/ft2_4FGL_J1208.9+5441_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351339/ft1_4FGL_J1208.9+5441_daily_bin72.fits outfile=/scratch/kocevski/351339/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin72.fits ra=182.226 dec=54.6995 rad=12.0 tmin=257990401.0 tmax=258249601.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.40
user 1.23
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351339/ft2_4FGL_J1208.9+5441_daily_bin72.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/351339/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/351339/ft1_filtered_4FGL_J1208.9+5441_daily_bin72.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351339/ft1_filtered_4FGL_J1208.9+5441_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/351339/ft2_4FGL_J1208.9+5441_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/351339/ltcube_257990401_258249601_4FGL_J1208.9+5441_daily_bin72.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/351339/ft2_4FGL_J1208.9+5441_daily_bin72.fits
.....................!
real 13.30
user 12.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351339/ft1_filtered_4FGL_J1208.9+5441_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/351339/ft2_4FGL_J1208.9+5441_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/351339/ltcube_257990401_258249601_4FGL_J1208.9+5441_daily_bin72.fits outfile=/scratch/kocevski/351339/expmap_257990401_258249601_4FGL_J1208.9+5441_daily_bin72.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/351339/ltcube_257990401_258249601_4FGL_J1208.9+5441_daily_bin72.fits
.....................!
real 189.95
user 185.15
sys 4.43

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/351339/ft1_filtered_4FGL_J1208.9+5441_daily_bin72.fits scfile=/scratch/kocevski/351339/ft2_4FGL_J1208.9+5441_daily_bin72.fits outfile=/scratch/kocevski/351339/cmap_257990401_258249601_4FGL_J1208.9+5441_daily_bin72.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/351339/ft1_filtered_4FGL_J1208.9+5441_daily_bin72.fits scfile=/scratch/kocevski/351339/ft2_4FGL_J1208.9+5441_daily_bin72.fits outfile=/scratch/kocevski/351339/cmap_HighResolution_257990401_258249601_4FGL_J1208.9+5441_daily_bin72.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.1742       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4119       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2558       1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8051       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.028       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.4463       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.349       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.5773       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7775       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.3711       1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.138       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.0494       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4831       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .51378       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=   5164.350     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3456 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    84.357       -.12262E-04** at limit **
   2  norm          3.1741        2.0831        .20024E-08    .43814E-04
   3  Prefactor     .10000E-03    59.734        .19260E-04** at limit **
   4  Prefactor     .10000E-03    10.467       -.23902E-05** at limit **
   5  Prefactor     .10000E-03    48.477       -.81092E-05** at limit **
   6  norm          .10000E-03    25.897        .22273E-05** at limit **
   7  Prefactor     2.4097        2.6280        .40267E-06   -.12635E-02
   8  Prefactor     3.2541        42.166       -.12438E-05   -.57390E-05
   9  norm          .10000E-03    8.4364        .40165E-05** at limit **
  10  Prefactor     1.8073        4.4339        .51696E-07   -.45426E-04
  11  norm          .10000E-03    2.4757        .13670E-07** at limit **
  12  Prefactor     .10000E-03    26.199       -.21199E-05** at limit **
  13  Prefactor     15.027        9.4967       -.15566E-09    .20982E-04
  14  Prefactor     .10000E-03    8.1110       -.35457E-05** at limit **
  15  norm          3.4465        2.7072       -.24431E-07   -.22429E-04
  16  Prefactor     31.348        28.516       -.38452E-06    .65696E-05
  17  Prefactor     .10000E-03    50.404       -.16336E-05** at limit **
  18  norm          5.5782        6.6490       -.73837E-07   -.21418E-04
  19  Prefactor     .10000E-03    11.601        .15344E-05** at limit **
  20  Prefactor     .10000E-03    2.5179        .18155E-07** at limit **
  21  norm          1.7775        2.2122        .25718E-07   -.34644E-04
  22  Prefactor     .10000E-03    7.3638        .42506E-06** at limit **
  23  norm          2.3711        2.0499       -.38233E-08    .34073E-05
  24  Prefactor     21.138        39.584       -.61211E-06   -.26540E-06
  25  Prefactor     9.0498        9.7253       -.93313E-07   -.14309E-05
  26  norm          .10000E-03    1.2724        .22050E-07** at limit **
  27  Normalizat    1.4830        .19288        .15932E-06   -.27917E-04
  28  Prefactor     .51392        .22348       -.18652E-06   -.16429E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.17413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.40971
  Prefactor  = 3.25407
  norm       = 0.0001
  Prefactor  = 1.80734
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0272
  Prefactor  = 0.0001
  norm       = 3.44654
  Prefactor  = 31.3483
  Prefactor  = 0.0001
  norm       = 5.57818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.77747
  Prefactor  = 0.0001
  norm       = 2.3711
  Prefactor  = 21.1375
  Prefactor  = 9.0498
  norm       = 0.0001
  Normalizat = 1.48298
  Prefactor  = 0.513923
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.350     FROM HESSE     STATUS=OK           519 CALLS     3975 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.1741        2.0858        .81637E-04   -1.5352    
   3  Prefactor     .10000E-03    59.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    25.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4097        7.6709        .13180E-02   -1.5397    
   8  Prefactor     3.2541        43.272        .22445E-03   -1.5347    
   9  norm          .10000E-03    8.4807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8073        4.4515        .21837E-03   -1.5439    
  11  norm          .10000E-03    2.4877        .11031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.027        9.4966        .10332E-03   -1.4932    
  14  Prefactor     .10000E-03    8.1146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.4465        2.7029        .99314E-04   -1.5337    
  16  Prefactor     31.348        28.564        .71562E-04   -1.4588    
  17  Prefactor     .10000E-03    50.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.5782        6.6452        .17011E-03   -1.5236    
  19  Prefactor     .10000E-03    11.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5224        .11134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7775        2.1923        .11464E-03   -1.5441    
  22  Prefactor     .10000E-03    7.3683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.3711        2.0561        .92815E-04   -1.5400    
  24  Prefactor     21.138        39.580        .87118E-04   -1.4788    
  25  Prefactor     9.0498        9.7359        .13323E-03   -1.5106    
  26  norm          .10000E-03    1.2733        .79166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4830        .22303        .19925E-03   -.78258    
  28  Prefactor     .51392        .24985        .38419E-03   -1.1134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77564e-09
Minuit parameter uncertainties:
  1  0.000166236
  2  2.08582
  3  0.000175099
  4  1.02237e-05
  5  8.36673e-05
  6  1.56329e-05
  7  7.67405
  8  23.7534
  9  1.0184e-05
  10  4.45233
  11  2.14079e-07
  12  1.67075e-05
  13  9.49758
  14  1.38006e-05
  15  2.70303
  16  28.5766
  17  9.86864e-06
  18  6.6461
  19  6.84481e-06
  20  1.27781e-08
  21  2.19239
  22  1.13067e-06
  23  2.05621
  24  39.629
  25  9.73761
  26  2.03212e-08
  27  0.223181
  28  0.250383
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  3.447e+00  2.703e+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:  5.139e-01  2.504e-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.483e+00  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.48
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 5.39e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.12e-05

TS (Fixed Index): 2.48
Ra Dec: 182.226 54.700
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351339/likelihoodResults_257990401_258249601_4FGL_J1208.9+5441_daily_bin72.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) = 5164.02964601
delta logL = 0.320835868351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5164.0211027
delta logL = 0.329379171378

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1266       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8786       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48313       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=   5164.021     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      211 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1266        2.3063        .57322E-02   -.23567E-02
   2  alpha         1.8786        .44584        .36189       -.83662E-04
   3  Normalizat    1.5138        .18669        .44686E-01   -.10289E-04
   4  Prefactor     .48314        .22405        .89156E-01    .41565E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.12658
  alpha      = 1.87857
  Normalizat = 1.51384
  Prefactor  = 0.483139
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.021     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1266        2.6721        .90218E-04   -1.5354    
   2  alpha         1.8786        .63916        .12947E-01   -.25120    
   3  Normalizat    1.5138        .20794        .19752E-03   -.77390    
   4  Prefactor     .48314        .24723        .39507E-03   -1.1276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17858e-09
Minuit parameter uncertainties:
  1  2.6722
  2  0.646829
  3  0.208056
  4  0.247778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351339': 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) = 5164.0211027
delta logL = 0.329379172758

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  3.127e+00  2.672e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  1.879e+00  6.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:  4.831e-01  2.478e-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.514e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.15
Ra Dec: 182.226 54.700
Photon Index (Free Index): 1.88 +/- 0.65
Photon Flux (Free Index): 3.66e-08 +/- 3.46e-08
Energy Flux (Free Index): 2.13e-05 +/- 2.00e-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/351339/cmap_HighResolution_257990401_258249601_4FGL_J1208.9+5441_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-05', comment='SUCCESS', photon_flux='5.39e-08', energy_flux2='2.13e-05', photon_flux_error='4.23e-08', dlogl='3.29e-01', energy_flux='1.43e-05', photon_flux2='3.66e-08', job_status='DONE', time_completed='2021-09-05 01:22:09.070973', photon_index_error2='0.65', photon_index2='1.88', ts='2.48', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='2.00e-05', EG='1.48', time_epoch_completed='1630830129.07', return_code='0', job_id='351339', GAL2='0.48', EG2='1.51', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.46e-08', ts2='3.15', photon_index='2.51' WHERE bin_id='72' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:22:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 351339: <4FGL_J1208.9+5441_daily_bin72> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin72> 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) <bullet0074>, 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_bin72 182.226 54.6995 257990401 258249601 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 :                                   791.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             280.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

