/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 201 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 = 7471
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1408.9-0751_daily_bin625
RA = 212.236, Dec = -7.8575
tmin = 401328001, tmax = 401587201
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='225470', job_status='RUN', time_executed='2021-09-09 03:14:12.698278', time_epoch_executed='1631182452.7' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225470/ft1_4FGL_J1408.9-0751_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225470/ft2_4FGL_J1408.9-0751_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225470/ft1_4FGL_J1408.9-0751_daily_bin625.fits outfile=/scratch/kocevski/225470/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin625.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=401328001.0 tmax=401587201.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.42
user 3.20
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/225470/ft2_4FGL_J1408.9-0751_daily_bin625.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/225470/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin625.fits evtable="EVENTS" outfile="/scratch/kocevski/225470/ft1_filtered_4FGL_J1408.9-0751_daily_bin625.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225470/ft1_filtered_4FGL_J1408.9-0751_daily_bin625.fits" evtable="EVENTS" scfile=/scratch/kocevski/225470/ft2_4FGL_J1408.9-0751_daily_bin625.fits sctable="SC_DATA" outfile=/scratch/kocevski/225470/ltcube_401328001_401587201_4FGL_J1408.9-0751_daily_bin625.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/225470/ft2_4FGL_J1408.9-0751_daily_bin625.fits
.....................!
real 11.98
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225470/ft1_filtered_4FGL_J1408.9-0751_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/225470/ft2_4FGL_J1408.9-0751_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/225470/ltcube_401328001_401587201_4FGL_J1408.9-0751_daily_bin625.fits outfile=/scratch/kocevski/225470/expmap_401328001_401587201_4FGL_J1408.9-0751_daily_bin625.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/225470/ltcube_401328001_401587201_4FGL_J1408.9-0751_daily_bin625.fits
.....................!
real 191.63
user 184.54
sys 6.66

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/225470/ft1_filtered_4FGL_J1408.9-0751_daily_bin625.fits scfile=/scratch/kocevski/225470/ft2_4FGL_J1408.9-0751_daily_bin625.fits outfile=/scratch/kocevski/225470/cmap_401328001_401587201_4FGL_J1408.9-0751_daily_bin625.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225470/ft1_filtered_4FGL_J1408.9-0751_daily_bin625.fits scfile=/scratch/kocevski/225470/ft2_4FGL_J1408.9-0751_daily_bin625.fits outfile=/scratch/kocevski/225470/cmap_HighResolution_401328001_401587201_4FGL_J1408.9-0751_daily_bin625.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/225470/ft1_filtered_4FGL_J1408.9-0751_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/225470/ft2_4FGL_J1408.9-0751_daily_bin625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/225470/Model_4FGL_J1408.9-0751_daily_bin625.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/225470/ft1_filtered_4FGL_J1408.9-0751_daily_bin625.fits.....................!
real 53.32
user 51.90
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/225470/ft1_filtered_4FGL_J1408.9-0751_daily_bin625.fits', '/scratch/kocevski/225470/ft2_4FGL_J1408.9-0751_daily_bin625.fits', expMap='/scratch/kocevski/225470/expmap_401328001_401587201_4FGL_J1408.9-0751_daily_bin625.fits', expCube='/scratch/kocevski/225470/ltcube_401328001_401587201_4FGL_J1408.9-0751_daily_bin625.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/225470/Model_4FGL_J1408.9-0751_daily_bin625.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/225470/ft1_filtered_4FGL_J1408.9-0751_daily_bin625.fits
Spacecraft file(s): /scratch/kocevski/225470/ft2_4FGL_J1408.9-0751_daily_bin625.fits
Exposure map: /scratch/kocevski/225470/expmap_401328001_401587201_4FGL_J1408.9-0751_daily_bin625.fits
Exposure cube: /scratch/kocevski/225470/ltcube_401328001_401587201_4FGL_J1408.9-0751_daily_bin625.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/225470/Model_4FGL_J1408.9-0751_daily_bin625.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) = 6098.27871023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.091       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9181       1.0000         .10000E-03   10000.    
     4 'norm      '    .10865E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.4738       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.3805       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2021       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.860       1.0000         .10000E-03   10000.    
    11 'norm      '    6.6371       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2797       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.734       1.0000         .10000E-03   10000.    
    16 'norm      '    7.2125       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.303       1.0000         .10000E-03   10000.    
    19 'norm      '    27.423       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    211.41       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.9323       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .58996       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=   6098.245     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2565 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.092        9.6848        .80507E-07    .13885E-04
   2  Prefactor     .10000E-03    47.334       -.39309E-05** at limit **
   3  norm          1.9181        1.5345        .31699E-07   -.40806E-04
   4  norm          .10000E-03    2.8291       -.37348E-06** at limit **
   5  norm          6.4815        7.4984       -.36627E-06   -.24619E-03
   6  norm          .10000E-03    11.917       -.35506E-07** at limit **
   7  norm          4.3804        4.7897        .25452E-05   -.14835E-02
   8  Prefactor     4.2021        5.7479        .96639E-07   -.78455E-04
   9  Prefactor     .10000E-03    5.7350       -.11471E-07** at limit **
  10  Prefactor     19.863        30.954        .35321E-06    .72440E-04
  11  norm          6.6371        6.6382        .41900E-06    .25841E-03
  12  Prefactor     6.2798        12.465        .59087E-07    .90090E-05
  13  norm          .10000E-03    1.1352        .13385E-07** at limit **
  14  Prefactor     .10001E-03    24.102       -.54191E-05** at limit **
  15  norm          18.735        14.258        .18840E-07    .51188E-05
  16  norm          7.2126        7.2405        .32689E-06    .33480E-04
  17  Prefactor     .10002E-03    26.312        .79589E-05** at limit **
  18  Prefactor     13.302        35.233       -.31660E-07   -.28474E-04
  19  norm          27.418        25.679       -.78546E-06   -.14127E-03
  20  Prefactor     .10000E-03    4.4568        .39249E-07** at limit **
  21  Prefactor     211.42        104.55        .11354E-05    .57804E-04
  22  Normalizat    1.9323        .25470       -.12111E-06    .34188E-04
  23  Prefactor     .58997        .13227       -.19341E-06    .15285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0923
  Prefactor  = 0.000100002
  norm       = 1.91809
  norm       = 0.000100002
  norm       = 6.48152
  norm       = 0.0001
  norm       = 4.38044
  Prefactor  = 4.20213
  Prefactor  = 0.0001
  Prefactor  = 19.8632
  norm       = 6.63714
  Prefactor  = 6.27975
  norm       = 0.0001
  Prefactor  = 0.00010001
  norm       = 18.7345
  norm       = 7.2126
  Prefactor  = 0.00010002
  Prefactor  = 13.3018
  norm       = 27.4181
  Prefactor  = 0.0001
  Prefactor  = 211.417
  Normalizat = 1.93234
  Prefactor  = 0.589966
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.245     FROM HESSE     STATUS=OK           368 CALLS     2933 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.092        9.6888        .12614E-03   -1.5072    
   2  Prefactor     .10000E-03    48.527        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9181        1.5338        .83118E-04   -1.5431    
   4  norm          .10000E-03    4.7997        .23848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.4815        7.0609        .15774E-03   -1.5199    
   6  norm          .10000E-03    11.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3804        5.2339        .94243E-03   -1.5289    
   8  Prefactor     4.2021        5.7300        .19659E-03   -1.5298    
   9  Prefactor     .10000E-03    5.7382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.863        31.066        .89875E-04   -1.4816    
  11  norm          6.6371        6.6375        .15576E-03   -1.5193    
  12  Prefactor     6.2798        12.477        .16018E-03   -1.5207    
  13  norm          .10000E-03    1.1530        .81202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    25.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.735        14.259        .92534E-04   -1.4842    
  16  norm          7.2126        7.2314        .14936E-03   -1.5171    
  17  Prefactor     .10002E-03    28.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.302        35.246        .10982E-03   -1.4978    
  19  norm          27.418        25.741        .76502E-04   -1.4660    
  20  Prefactor     .10000E-03    4.4677        .16073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     211.42        104.52        .13903E-03   -1.2790    
  22  Normalizat    1.9323        .29811        .28002E-03   -.66257    
  23  Prefactor     .58997        .15411        .24151E-03   -1.0801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11172e-09
Minuit parameter uncertainties:
  1  9.69026
  2  0.000615885
  3  1.53381
  4  0.000188952
  5  7.06185
  6  4.93104e-06
  7  5.2344
  8  5.73077
  9  8.3203e-07
  10  31.0918
  11  6.63821
  12  12.4817
  13  1.31295e-06
  14  0.00101753
  15  14.2614
  16  7.2323
  17  0.00152321
  18  35.3014
  19  25.7517
  20  6.74296e-06
  21  104.608
  22  0.298394
  23  0.154225
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.000e-04  1.313e-06  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:  5.900e-01  1.542e-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.932e+00  2.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 212.236 -7.857
Photon Flux Upper Limit: 7.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225470/likelihoodResults_401328001_401587201_4FGL_J1408.9-0751_daily_bin625.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): 102
logL (Free Index) = 6098.2488057
delta logL = -0.00405243012028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6098.24475299
delta logL = 2.79131199932e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6098.245     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      238 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    72.544        .82334E-02** at limit **
   2  alpha         1.8698        3.5413        .16519        .83136E-07
   3  Normalizat    1.9323        .49877E-01    .28002E-03    .24677E-03
   4  Prefactor     .58997        .25734E-01    .24151E-03    .30904E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.86985
  Normalizat = 1.93234
  Prefactor  = 0.589967
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.245     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3909        .89531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8698        2.6444        .66077E-02   -.25481    
   3  Normalizat    1.9323        .28846        .56003E-04   -.66257    
   4  Prefactor     .58997        .14886        .96603E-05   -1.0801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16646e-10
Minuit parameter uncertainties:
  1  4.53548e-06
  2  121.321
  3  0.288722
  4  0.148961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225470': 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) = 6098.24474591
delta logL = 7.3672099461e-06

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.000e-04  4.535e-06  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.870e+00  1.213e+02  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:  5.900e-01  1.490e-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.932e+00  2.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 212.236 -7.857

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/225470/cmap_HighResolution_401328001_401587201_4FGL_J1408.9-0751_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', job_status='DONE', photon_flux_upper_limit='7.74e-08', time_completed='2021-09-09 03:24:16.579643', job_id='225470', GAL2='0.59', fit_tolerance='1e-08', EG2='1.93', EG='1.93', time_epoch_completed='1631183056.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='7.37e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='625' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:24:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 225470: <4FGL_J1408.9-0751_daily_bin625> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin625> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 03:10:40 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:10:42 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:10:42 2021
Terminated at Thu Sep  9 03:24:17 2021
Results reported at Thu Sep  9 03:24:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin625 212.236 -7.8575 401328001 401587201 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 :                                   604.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            817 sec.

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

