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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin6
RA = 182.226, Dec = 54.6995
tmin = 240883201, tmax = 241142401
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='351173', job_status='RUN', time_executed='2021-09-05 01:06:58.355473', time_epoch_executed='1630829218.36' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351173

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351173/ft1_4FGL_J1208.9+5441_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351173/ft2_4FGL_J1208.9+5441_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351173/ft1_4FGL_J1208.9+5441_daily_bin6.fits outfile=/scratch/kocevski/351173/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin6.fits ra=182.226 dec=54.6995 rad=12.0 tmin=240883201.0 tmax=241142401.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.49
user 1.31
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351173/ft2_4FGL_J1208.9+5441_daily_bin6.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/351173/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin6.fits evtable="EVENTS" outfile="/scratch/kocevski/351173/ft1_filtered_4FGL_J1208.9+5441_daily_bin6.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351173/ft1_filtered_4FGL_J1208.9+5441_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/351173/ft2_4FGL_J1208.9+5441_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/351173/ltcube_240883201_241142401_4FGL_J1208.9+5441_daily_bin6.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/351173/ft2_4FGL_J1208.9+5441_daily_bin6.fits
.....................!
real 12.85
user 12.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351173/ft1_filtered_4FGL_J1208.9+5441_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/351173/ft2_4FGL_J1208.9+5441_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/351173/ltcube_240883201_241142401_4FGL_J1208.9+5441_daily_bin6.fits outfile=/scratch/kocevski/351173/expmap_240883201_241142401_4FGL_J1208.9+5441_daily_bin6.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/351173/ltcube_240883201_241142401_4FGL_J1208.9+5441_daily_bin6.fits
.....................!
real 189.34
user 184.76
sys 4.20

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/351173/ft1_filtered_4FGL_J1208.9+5441_daily_bin6.fits scfile=/scratch/kocevski/351173/ft2_4FGL_J1208.9+5441_daily_bin6.fits outfile=/scratch/kocevski/351173/cmap_240883201_241142401_4FGL_J1208.9+5441_daily_bin6.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.53
user 0.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351173/ft1_filtered_4FGL_J1208.9+5441_daily_bin6.fits scfile=/scratch/kocevski/351173/ft2_4FGL_J1208.9+5441_daily_bin6.fits outfile=/scratch/kocevski/351173/cmap_HighResolution_240883201_241142401_4FGL_J1208.9+5441_daily_bin6.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5857       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3124       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4802       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1869       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .48511       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7251       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.471       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18200E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7058       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12622E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.8207       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.0149       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.8726       1.0000         .10000E-03   10000.    
    23 'norm      '    1.7099       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.155       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0964       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93055       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=   5764.681     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3469 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.778       -.56121E-06** at limit **
   2  norm          3.5857        2.2194       -.11106E-06   -.10755E-03
   3  Prefactor     2.1733        450.71       -.29180E-04   -.27100E-04
   4  Prefactor     .10000E-03    20.210       -.25084E-06** at limit **
   5  Prefactor     .10000E-03    92.910       -.48859E-06** at limit **
   6  norm          .10000E-03    17.190       -.60677E-07** at limit **
   7  Prefactor     5.4796        6.6613       -.35924E-06   -.33300E-04
   8  Prefactor     6.1947        39.173        .11404E-06    .30609E-05
   9  norm          .10000E-03    3.5629       -.65146E-08** at limit **
  10  Prefactor     .48450        3.3674        .29782E-05    .13407E-03
  11  norm          3.7256        5.5079        .45761E-06    .19501E-04
  12  Prefactor     .10000E-03    12.830       -.10495E-06** at limit **
  13  Prefactor     15.485        10.518       -.39551E-06   -.88761E-04
  14  Prefactor     .10000E-03    106.08       -.26412E-06** at limit **
  15  norm          4.7060        2.5894       -.15272E-06   -.17686E-03
  16  Prefactor     .10000E-03    5.4404        .13420E-06** at limit **
  17  Prefactor     .10000E-03    41.571        .27135E-06** at limit **
  18  norm          6.8207        5.3970       -.16608E-06   -.94248E-04
  19  Prefactor     .10000E-03    25.382        .72238E-06** at limit **
  20  Prefactor     .10000E-03    3.7520        .44433E-06** at limit **
  21  norm          4.0149        2.0278        .52712E-08   -.70930E-04
  22  Prefactor     9.8634        23.858        .18578E-06   -.14563E-04
  23  norm          1.7098        1.6206        .64776E-07   -.59704E-05
  24  Prefactor     10.153        25.007        .71137E-06   -.60031E-05
  25  Prefactor     .10000E-03    3.3444        .25707E-06** at limit **
  26  norm          .10000E-03    1.9169        .19265E-06** at limit **
  27  Normalizat    1.0966        .19322        .39661E-05   -.54140E-03
  28  Prefactor     .93043        .22837       -.75687E-05   -.10820E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.58567
  Prefactor  = 2.17327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.47955
  Prefactor  = 6.19465
  norm       = 0.0001
  Prefactor  = 0.484503
  norm       = 3.72564
  Prefactor  = 0.0001
  Prefactor  = 15.485
  Prefactor  = 0.000100001
  norm       = 4.70599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.82067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.01492
  Prefactor  = 9.86343
  norm       = 1.70979
  Prefactor  = 10.153
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.09656
  Prefactor  = 0.930428
 **********
 **   18 **HESSE 
 **********

 FCN=   5764.681     FROM HESSE     STATUS=OK           521 CALLS     3990 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5857        2.2179        .86386E-04   -1.5329    
   3  Prefactor     2.1733        474.08        .26980E-02   -1.5413    
   4  Prefactor     .10000E-03    20.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    93.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4796        6.6302        .17164E-03   -1.5240    
   8  Prefactor     6.1947        38.820        .16140E-03   -1.5210    
   9  norm          .10000E-03    3.5631        .13997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .48450        3.6102        .26849E-02   -1.5569    
  11  norm          3.7256        5.4773        .19007E-03   -1.5322    
  12  Prefactor     .10000E-03    12.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.485        10.413        .10183E-03   -1.4921    
  14  Prefactor     .10000E-03    108.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7060        2.5944        .85462E-04   -1.5274    
  16  Prefactor     .10000E-03    5.4440        .17297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.8207        5.3942        .15164E-03   -1.5186    
  19  Prefactor     .10000E-03    25.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9036        .28728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.0149        2.0288        .74632E-04   -1.5307    
  22  Prefactor     9.8634        23.897        .12753E-03   -1.5080    
  23  norm          1.7098        1.6309        .91253E-04   -1.5446    
  24  Prefactor     10.153        25.008        .12574E-03   -1.5071    
  25  Prefactor     .10000E-03    3.3538        .13564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.9287        .10267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0966        .20931        .21861E-03   -.89862    
  28  Prefactor     .93043        .24290        .29300E-03   -.95086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08407e-09
Minuit parameter uncertainties:
  1  2.41618e-05
  2  2.21791
  3  64.7209
  4  6.57805e-05
  5  0.000342942
  6  1.847e-05
  7  6.63106
  8  31.0441
  9  3.41605e-07
  10  2.64505
  11  5.47804
  12  5.60266e-05
  13  10.4141
  14  0.0004768
  15  2.5945
  16  4.89064e-06
  17  4.85432e-05
  18  5.39461
  19  1.76236e-05
  20  1.39818e-05
  21  2.02882
  22  23.9206
  23  1.63095
  24  25.0339
  25  8.27432e-06
  26  3.50441e-06
  27  0.209467
  28  0.243188
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  4.706e+00  2.594e+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:  9.304e-01  2.432e-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.097e+00  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.27
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 7.37e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.07e-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) = 5763.55031978
delta logL = 1.13033271458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5763.53875246
delta logL = 1.14190003732

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7652       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5609       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99701       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=   5763.539     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      267 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7651        2.5270        .57302E-04    .18749E-02
   2  alpha         3.5609        .77419        .15157E-02    .63950E-04
   3  Normalizat    1.0177        .19949        .22528E-03   -.10648E-04
   4  Prefactor     .99700        .24400        .28392E-03   -.45849E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.76513
  alpha      = 3.56094
  Normalizat = 1.01766
  Prefactor  = 0.997003
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.539     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7651        2.5008        .22921E-05   -1.5320    
   2  alpha         3.5609        .76647        .60628E-04    .43827    
   3  Normalizat    1.0177        .19970        .90113E-05   -.92441    
   4  Prefactor     .99700        .24423        .11357E-04   -.92829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37301e-10
Minuit parameter uncertainties:
  1  2.50086
  2  0.781931
  3  0.199847
  4  0.244499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351173': 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) = 5763.53875246
delta logL = 1.14190004101

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  3.765e+00  2.501e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  3.561e+00  7.819e-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:  9.970e-01  2.445e-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.018e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.83
Ra Dec: 182.226 54.700
Photon Index (Free Index): 3.56 +/- 0.78
Photon Flux (Free Index): 1.33e-07 +/- 5.95e-08
Energy Flux (Free Index): 2.19e-05 +/- 9.13e-06

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/351173/cmap_HighResolution_240883201_241142401_4FGL_J1208.9+5441_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.37e-08', energy_flux2='2.19e-05', photon_flux_error='4.06e-08', dlogl='1.14e+00', energy_flux='1.95e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-05 01:19:24.277188', photon_index_error2='0.78', photon_index2='3.56', ts='7.27', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='9.13e-06', EG='1.10', time_epoch_completed='1630829964.28', return_code='0', job_id='351173', GAL2='1.00', EG2='1.02', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='5.95e-08', ts2='9.83', photon_index='2.51' WHERE bin_id='6' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:19:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 351173: <4FGL_J1208.9+5441_daily_bin6> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin6 182.226 54.6995 240883201 241142401 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 :                                   745.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             316.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

