/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 161 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 = 7387
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1408.9-0751_daily_bin356
RA = 212.236, Dec = -7.8575
tmin = 331603201, tmax = 331862401
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='223748', job_status='RUN', time_executed='2021-09-09 03:08:13.082602', time_epoch_executed='1631182093.08' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223748/ft1_4FGL_J1408.9-0751_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223748/ft2_4FGL_J1408.9-0751_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223748/ft1_4FGL_J1408.9-0751_daily_bin356.fits outfile=/scratch/kocevski/223748/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin356.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=331603201.0 tmax=331862401.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.35
user 3.12
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/223748/ft2_4FGL_J1408.9-0751_daily_bin356.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/223748/ft2_4FGL_J1408.9-0751_daily_bin356.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/223748/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin356.fits evtable="EVENTS" outfile="/scratch/kocevski/223748/ft1_filtered_4FGL_J1408.9-0751_daily_bin356.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223748/ft1_filtered_4FGL_J1408.9-0751_daily_bin356.fits" evtable="EVENTS" scfile=/scratch/kocevski/223748/ft2_4FGL_J1408.9-0751_daily_bin356.fits sctable="SC_DATA" outfile=/scratch/kocevski/223748/ltcube_331603201_331862401_4FGL_J1408.9-0751_daily_bin356.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/223748/ft2_4FGL_J1408.9-0751_daily_bin356.fits
.....................!
real 12.17
user 11.82
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223748/ft1_filtered_4FGL_J1408.9-0751_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/223748/ft2_4FGL_J1408.9-0751_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/223748/ltcube_331603201_331862401_4FGL_J1408.9-0751_daily_bin356.fits outfile=/scratch/kocevski/223748/expmap_331603201_331862401_4FGL_J1408.9-0751_daily_bin356.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/223748/ltcube_331603201_331862401_4FGL_J1408.9-0751_daily_bin356.fits
.....................!
real 190.63
user 185.44
sys 4.78

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J1408.9-0751 @ 212.236 -7.8575

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/223748/ft1_filtered_4FGL_J1408.9-0751_daily_bin356.fits scfile=/scratch/kocevski/223748/ft2_4FGL_J1408.9-0751_daily_bin356.fits outfile=/scratch/kocevski/223748/cmap_331603201_331862401_4FGL_J1408.9-0751_daily_bin356.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=212.236 yref=-7.8575 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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223748/ft1_filtered_4FGL_J1408.9-0751_daily_bin356.fits scfile=/scratch/kocevski/223748/ft2_4FGL_J1408.9-0751_daily_bin356.fits outfile=/scratch/kocevski/223748/cmap_HighResolution_331603201_331862401_4FGL_J1408.9-0751_daily_bin356.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=212.236 yref=-7.8575 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/223748/ft1_filtered_4FGL_J1408.9-0751_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/223748/ft2_4FGL_J1408.9-0751_daily_bin356.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/223748/Model_4FGL_J1408.9-0751_daily_bin356.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/223748/ft1_filtered_4FGL_J1408.9-0751_daily_bin356.fits.....................!
real 48.82
user 47.44
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/223748/ft1_filtered_4FGL_J1408.9-0751_daily_bin356.fits', '/scratch/kocevski/223748/ft2_4FGL_J1408.9-0751_daily_bin356.fits', expMap='/scratch/kocevski/223748/expmap_331603201_331862401_4FGL_J1408.9-0751_daily_bin356.fits', expCube='/scratch/kocevski/223748/ltcube_331603201_331862401_4FGL_J1408.9-0751_daily_bin356.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/223748/Model_4FGL_J1408.9-0751_daily_bin356.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1408.9-0751'

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.948e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.331e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  7.373e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.104e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/223748/ft1_filtered_4FGL_J1408.9-0751_daily_bin356.fits
Spacecraft file(s): /scratch/kocevski/223748/ft2_4FGL_J1408.9-0751_daily_bin356.fits
Exposure map: /scratch/kocevski/223748/expmap_331603201_331862401_4FGL_J1408.9-0751_daily_bin356.fits
Exposure cube: /scratch/kocevski/223748/ltcube_331603201_331862401_4FGL_J1408.9-0751_daily_bin356.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/223748/Model_4FGL_J1408.9-0751_daily_bin356.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) = 5749.41724552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11241E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.0018       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3897       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8889       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24936E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9876       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.115       1.0000         .10000E-03   10000.    
    13 'norm      '    4.3115       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.1534       1.0000         .10000E-03   10000.    
    16 'norm      '    21.942       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.798       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    35.635       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99808       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0219       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5749.371     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2578 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5229        .23408E-07** at limit **
   2  Prefactor     .10000E-03    6.1848       -.31157E-06** at limit **
   3  norm          .10000E-03    .77592       -.65833E-08** at limit **
   4  norm          2.0013        2.5059       -.11945E-07   -.21228E-04
   5  norm          .10000E-03    2.2005       -.28818E-07** at limit **
   6  norm          .10000E-03    8.6728        .11097E-06** at limit **
   7  norm          3.3882        7.4669       -.33542E-06   -.72289E-04
   8  Prefactor     1.8885        4.7383       -.29896E-06   -.14730E-03
   9  Prefactor     .10000E-03    64.607        .16127E-04** at limit **
  10  Prefactor     .10000E-03    17.264        .24792E-05** at limit **
  11  norm          1.9877        6.6765       -.15319E-06   -.11554E-03
  12  Prefactor     26.121        16.464       -.55111E-06   -.21800E-03
  13  norm          4.3117        2.8633       -.34224E-07   -.24992E-04
  14  Prefactor     .10000E-03    6.3139       -.12954E-06** at limit **
  15  norm          2.1503        4.5511        .15194E-05   -.12160E-02
  16  norm          21.943        10.913        .13285E-06    .17680E-04
  17  Prefactor     30.797        23.288       -.28950E-06   -.47485E-05
  18  Prefactor     .10000E-03    17.046       -.24889E-05** at limit **
  19  norm          35.622        25.811       -.60802E-05   -.16410E-03
  20  Prefactor     .10000E-03    3.9919        .98055E-07** at limit **
  21  Prefactor     .10000E-03    61.121       -.11290E-05** at limit **
  22  Normalizat    .99781        .24174       -.35079E-06   -.63476E-04
  23  Prefactor     1.0221        .13031        .80487E-06   -.15416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.00135
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.38822
  Prefactor  = 1.88854
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.98767
  Prefactor  = 26.1207
  norm       = 4.31166
  Prefactor  = 0.0001
  norm       = 2.15027
  norm       = 21.9427
  Prefactor  = 30.797
  Prefactor  = 0.0001
  norm       = 35.6223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.997805
  Prefactor  = 1.02206
 **********
 **   18 **HESSE 
 **********

 FCN=   5749.371     FROM HESSE     STATUS=OK           366 CALLS     2944 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5261        .13899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.1883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.9677        .12734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0013        2.4907        .13037E-03   -1.5425    
   5  norm          .10000E-03    2.2043        .10982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.6730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3882        7.4910        .21976E-03   -1.5340    
   8  Prefactor     1.8885        4.6463        .23807E-03   -1.5433    
   9  Prefactor     .10000E-03    65.737        .42932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9877        6.5690        .29391E-03   -1.5426    
  12  Prefactor     26.121        16.565        .78390E-04   -1.4685    
  13  norm          4.3117        2.8609        .99837E-04   -1.5293    
  14  Prefactor     .10000E-03    6.3194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1503        10.146        .14038E-02   -1.5415    
  16  norm          21.943        10.904        .85508E-04   -1.4771    
  17  Prefactor     30.797        23.282        .72198E-04   -1.4597    
  18  Prefactor     .10000E-03    17.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          35.622        25.949        .67133E-04   -1.4514    
  20  Prefactor     .10000E-03    4.0145        .14796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    61.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .99781        .27463        .34289E-03   -.93104    
  23  Prefactor     1.0221        .15111        .18597E-03   -.91998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12161e-09
Minuit parameter uncertainties:
  1  5.49291e-07
  2  4.57346e-06
  3  8.31033e-05
  4  2.49079
  5  5.00002e-07
  6  1.25222e-06
  7  7.49308
  8  4.64716
  9  0.000448076
  10  5.71832e-05
  11  6.57136
  12  16.5683
  13  2.86099
  14  2.9425e-06
  15  9.34408
  16  10.905
  17  23.2888
  18  1.23548e-05
  19  25.9576
  20  2.32888e-05
  21  5.5554e-05
  22  0.275021
  23  0.151172
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  4.312e+00  2.861e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.331e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  7.373e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.104e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.022e+00  1.512e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  9.978e-01  2.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.68
Ra Dec: 212.236 -7.857
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 6.93e-08 +/- 4.59e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.71e-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) = 5748.71663119
delta logL = 0.654702260654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5748.6913399
delta logL = 0.679993550319

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5748.691     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1437        4.6460        .44310E-02   -.58332E-04
   2  alpha         1.6391        .57781        .38156       -.18112E-04
   3  Normalizat    1.0368        .23244        .76209E-01    .25316E-04
   4  Prefactor     1.0107        .12704        .43236E-01    .16640E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.14368
  alpha      = 1.63906
  Normalizat = 1.03683
  Prefactor  = 1.01069
 **********
 **   18 **HESSE 
 **********

 FCN=   5748.691     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1437        3.8085        .11793E-03   -1.5254    
   2  alpha         1.6391        .55981        .14162E-01   -.35157    
   3  Normalizat    1.0368        .26643        .33728E-03   -.91807    
   4  Prefactor     1.0107        .14657        .18693E-03   -.92374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58623e-12
Minuit parameter uncertainties:
  1  3.80871
  2  0.565263
  3  0.266776
  4  0.146627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223748': 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) = 5748.69133966
delta logL = 0.679993791803

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  5.144e+00  3.809e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.639e+00  5.653e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  7.373e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.104e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.011e+00  1.466e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.037e+00  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.04
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 1.64 +/- 0.57
Photon Flux (Free Index): 3.39e-08 +/- 3.45e-08
Energy Flux (Free Index): 4.80e-05 +/- 4.85e-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/223748/cmap_HighResolution_331603201_331862401_4FGL_J1408.9-0751_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.93e-08', energy_flux2='4.80e-05', photon_flux_error='4.59e-08', dlogl='6.80e-01', energy_flux='2.58e-05', photon_flux2='3.39e-08', job_status='DONE', time_completed='2021-09-09 03:17:12.958496', photon_index_error2='0.57', photon_index2='1.64', ts='8.68', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.85e-05', EG='1.00', time_epoch_completed='1631182632.96', return_code='0', job_id='223748', GAL2='1.01', EG2='1.04', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='3.45e-08', ts2='10.04', photon_index='2.33' WHERE bin_id='356' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:17:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 223748: <4FGL_J1408.9-0751_daily_bin356> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin356> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  9 03:05:20 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:05:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 03:05:22 2021
Terminated at Thu Sep  9 03:17:13 2021
Results reported at Thu Sep  9 03:17:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin356 212.236 -7.8575 331603201 331862401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1408.9-0751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   537.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             240.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            713 sec.

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

