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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin757
RA = 212.236, Dec = -7.8575
tmin = 435542401, tmax = 435801601
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='226801', job_status='RUN', time_executed='2021-09-09 03:15:47.709616', time_epoch_executed='1631182547.71' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226801

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226801/ft1_4FGL_J1408.9-0751_daily_bin757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226801/ft2_4FGL_J1408.9-0751_daily_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226801/ft1_4FGL_J1408.9-0751_daily_bin757.fits outfile=/scratch/kocevski/226801/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin757.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=435542401.0 tmax=435801601.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 5.62
user 5.26
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226801/ft2_4FGL_J1408.9-0751_daily_bin757.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/226801/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin757.fits evtable="EVENTS" outfile="/scratch/kocevski/226801/ft1_filtered_4FGL_J1408.9-0751_daily_bin757.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/226801/ft1_filtered_4FGL_J1408.9-0751_daily_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/226801/ft2_4FGL_J1408.9-0751_daily_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/226801/ltcube_435542401_435801601_4FGL_J1408.9-0751_daily_bin757.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/226801/ft2_4FGL_J1408.9-0751_daily_bin757.fits
.....................!
real 11.85
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226801/ft1_filtered_4FGL_J1408.9-0751_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/226801/ft2_4FGL_J1408.9-0751_daily_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/226801/ltcube_435542401_435801601_4FGL_J1408.9-0751_daily_bin757.fits outfile=/scratch/kocevski/226801/expmap_435542401_435801601_4FGL_J1408.9-0751_daily_bin757.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/226801/ltcube_435542401_435801601_4FGL_J1408.9-0751_daily_bin757.fits
.....................!
real 189.98
user 185.10
sys 4.49

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/226801/ft1_filtered_4FGL_J1408.9-0751_daily_bin757.fits scfile=/scratch/kocevski/226801/ft2_4FGL_J1408.9-0751_daily_bin757.fits outfile=/scratch/kocevski/226801/cmap_435542401_435801601_4FGL_J1408.9-0751_daily_bin757.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226801/ft1_filtered_4FGL_J1408.9-0751_daily_bin757.fits scfile=/scratch/kocevski/226801/ft2_4FGL_J1408.9-0751_daily_bin757.fits outfile=/scratch/kocevski/226801/cmap_HighResolution_435542401_435801601_4FGL_J1408.9-0751_daily_bin757.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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/226801/ft1_filtered_4FGL_J1408.9-0751_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/226801/ft2_4FGL_J1408.9-0751_daily_bin757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226801/Model_4FGL_J1408.9-0751_daily_bin757.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/226801/ft1_filtered_4FGL_J1408.9-0751_daily_bin757.fits.....................!
real 79.83
user 78.50
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    89.079       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2859       1.0000         .10000E-03   10000.    
     4 'norm      '    11.785       1.0000         .10000E-03   10000.    
     5 'norm      '    25.321       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.820       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    24.360       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2287       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.583       1.0000         .10000E-03   10000.    
    16 'norm      '    48.792       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8247       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11428       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .76589       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2810       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=   10133.26     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2143 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     89.078        19.803        .10643E-02    .34567E-03
   2  Prefactor     .10000E-03    7.8700        .90712E-02** at limit **
   3  norm          1.2859        1.1093        .97731E-03    .83108E-03
   4  norm          11.784        5.0899        .29173E-02   -.30883E-03
   5  norm          25.320        10.989        .19902E-02    .14400E-03
   6  norm          .10000E-03    9.8399        .90712E-02** at limit **
   7  norm          .10000E-03    1.9605        .90712E-02** at limit **
   8  Prefactor     16.819        9.0142        .24414E-02    .18425E-02
   9  Prefactor     .10001E-03    8.8982        .90712E-02** at limit **
  10  Prefactor     .10024E-03    59.046        .90712E-02** at limit **
  11  norm          24.360        11.160        .20290E-02   -.11401E-03
  12  Prefactor     .10000E-03    5.4729        .90712E-02** at limit **
  13  norm          3.2286        2.8452        .56360E-02    .91059E-03
  14  Prefactor     .10000E-03    9.7434        .90712E-02** at limit **
  15  norm          12.583        10.665        .28231E-02    .79839E-04
  16  norm          48.797        11.526        .14352E-02   -.22775E-03
  17  Prefactor     .10000E-03    30.335        .90712E-02** at limit **
  18  Prefactor     1.8245        22.044        .77265E-02    .19740E-03
  19  norm          .10000E-03    3.1244        .90712E-02** at limit **
  20  Prefactor     .11947        2.4533        .50513E-01   -.19742E-03
  21  Prefactor     .10021E-03    56.383        .90712E-02** at limit **
  22  Normalizat    .76595        .22957        .10337        .37037E-04
  23  Prefactor     1.2810        .12142        .32949E-01   -.57177E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 89.0777
  Prefactor  = 0.000100001
  norm       = 1.28594
  norm       = 11.7838
  norm       = 25.3196
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 16.8194
  Prefactor  = 0.000100009
  Prefactor  = 0.000100239
  norm       = 24.3601
  Prefactor  = 0.0001
  norm       = 3.22862
  Prefactor  = 0.000100001
  norm       = 12.5827
  norm       = 48.797
  Prefactor  = 0.000100001
  Prefactor  = 1.8245
  norm       = 0.0001
  Prefactor  = 0.119468
  Prefactor  = 0.000100213
  Normalizat = 0.765947
  Prefactor  = 1.28098
 **********
 **   18 **HESSE 
 **********

 FCN=   10133.26     FROM HESSE     STATUS=OK           368 CALLS     2511 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     89.078        19.800        .42572E-04   -1.3818    
   2  Prefactor     .10000E-03    7.8800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2859        1.1095        .39092E-04   -1.5481    
   4  norm          11.784        5.0909        .11669E-03   -1.5021    
   5  norm          25.320        10.993        .79608E-04   -1.4701    
   6  norm          .10000E-03    9.8408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9799        .13764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.819        9.0050        .48829E-03   -1.4888    
   9  Prefactor     .10001E-03    8.9321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10024E-03    59.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          24.360        11.155        .81161E-04   -1.4720    
  12  Prefactor     .10000E-03    5.4881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2286        2.8311        .14934E-03   -1.5349    
  14  Prefactor     .10000E-03    9.7663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.583        10.665        .56463E-03   -1.4998    
  16  norm          48.797        11.508        .57408E-04   -1.4310    
  17  Prefactor     .10000E-03    30.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8245        22.149        .30906E-03   -1.5438    
  19  norm          .10000E-03    3.1274        .17377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11947        18.874        .30440E-02   -1.5639    
  21  Prefactor     .10021E-03    56.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .76595        .24931        .45822E-03   -1.0134    
  23  Prefactor     1.2810        .13382        .19646E-03   -.83874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5589e-08
Minuit parameter uncertainties:
  1  19.8012
  2  0.000176672
  3  1.1095
  4  5.09106
  5  10.9936
  6  0.000247825
  7  3.01309e-06
  8  9.00572
  9  0.000564511
  10  0.00753805
  11  11.1561
  12  2.30799e-05
  13  2.83122
  14  0.000226056
  15  10.667
  16  11.5084
  17  0.000349448
  18  12.7194
  19  3.57486e-06
  20  3.0029
  21  0.00695162
  22  0.24968
  23  0.133854
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  3.229e+00  2.831e+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.281e+00  1.339e-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:  7.659e-01  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 212.236 -7.857
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 5.19e-08 +/- 4.55e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.70e-05

TS (Fixed Index): 1.78
Ra Dec: 212.236 -7.857
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226801/likelihoodResults_435542401_435801601_4FGL_J1408.9-0751_daily_bin757.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) = 10133.153978
delta logL = 0.101337594491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10133.1487455
delta logL = 0.106570099009

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3360       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7038       1.0000          .0000       5.0000    
     3 'Normalizat'    .74483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2882       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=   10133.15     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      271 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3356        36.860        .67071E-02    .18093E-02
   2  alpha         2.7041        3.8507        .29504        .13975E-03
   3  Normalizat    .74442        .73474E-01    .10470        .34407E-03
   4  Prefactor     1.2884        .35406E-01    .32819E-01   -.19172E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33556
  alpha      = 2.70405
  Normalizat = 0.744422
  Prefactor  = 1.28844
 **********
 **   18 **HESSE 
 **********

 FCN=   10133.15     FROM HESSE     STATUS=OK            31 CALLS      302 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3356        3.7661        .11762E-03   -1.5402    
   2  alpha         2.7041        1.0233        .15521E-01    .81711E-01
   3  Normalizat    .74442        .24960        .46412E-03   -1.0216    
   4  Prefactor     1.2884        .13312        .19595E-03   -.83652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15714e-09
Minuit parameter uncertainties:
  1  3.76646
  2  1.05449
  3  0.249979
  4  0.13315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226801': 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) = 10133.1487435
delta logL = 0.106572126875

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  2.336e+00  3.766e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.704e+00  1.054e+00  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.288e+00  1.332e-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:  7.444e-01  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 2.70 +/- 1.05
Photon Flux (Free Index): 6.98e-08 +/- 6.44e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.59e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/226801/cmap_HighResolution_435542401_435801601_4FGL_J1408.9-0751_daily_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.38e-05', comment='SUCCESS', photon_flux='5.19e-08', energy_flux2='1.80e-05', photon_flux_error='4.55e-08', dlogl='1.07e-01', energy_flux='1.93e-05', photon_flux2='6.98e-08', job_status='DONE', time_completed='2021-09-09 03:28:47.322766', photon_index_error2='1.05', photon_index2='2.70', ts='1.78', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.59e-05', EG='0.77', time_epoch_completed='1631183327.32', return_code='0', job_id='226801', GAL2='1.29', EG2='0.74', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='6.44e-08', ts2='2.04', photon_index='2.33' WHERE bin_id='757' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:28:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 226801: <4FGL_J1408.9-0751_daily_bin757> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin757> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 03:15:30 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:15:31 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:15:31 2021
Terminated at Thu Sep  9 03:28:47 2021
Results reported at Thu Sep  9 03:28:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin757 212.236 -7.8575 435542401 435801601 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 :                                   776.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             293.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            797 sec.

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

