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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin584
RA = 212.236, Dec = -7.8575
tmin = 390700801, tmax = 390960001
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='225405', job_status='RUN', time_executed='2021-09-09 03:13:12.634394', time_epoch_executed='1631182392.63' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='584'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225405

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225405/ft1_4FGL_J1408.9-0751_daily_bin584.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225405/ft2_4FGL_J1408.9-0751_daily_bin584.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225405/ft1_4FGL_J1408.9-0751_daily_bin584.fits outfile=/scratch/kocevski/225405/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin584.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=390700801.0 tmax=390960001.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 7.17
user 6.88
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225405/ft1_filtered_4FGL_J1408.9-0751_daily_bin584.fits" evtable="EVENTS" scfile=/scratch/kocevski/225405/ft2_4FGL_J1408.9-0751_daily_bin584.fits sctable="SC_DATA" outfile=/scratch/kocevski/225405/ltcube_390700801_390960001_4FGL_J1408.9-0751_daily_bin584.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/225405/ft2_4FGL_J1408.9-0751_daily_bin584.fits
.....................!
real 11.10
user 10.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225405/ft1_filtered_4FGL_J1408.9-0751_daily_bin584.fits evtable="EVENTS" scfile=/scratch/kocevski/225405/ft2_4FGL_J1408.9-0751_daily_bin584.fits sctable="SC_DATA" expcube=/scratch/kocevski/225405/ltcube_390700801_390960001_4FGL_J1408.9-0751_daily_bin584.fits outfile=/scratch/kocevski/225405/expmap_390700801_390960001_4FGL_J1408.9-0751_daily_bin584.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/225405/ltcube_390700801_390960001_4FGL_J1408.9-0751_daily_bin584.fits
.....................!
real 191.54
user 186.69
sys 4.51

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/225405/ft1_filtered_4FGL_J1408.9-0751_daily_bin584.fits scfile=/scratch/kocevski/225405/ft2_4FGL_J1408.9-0751_daily_bin584.fits outfile=/scratch/kocevski/225405/cmap_390700801_390960001_4FGL_J1408.9-0751_daily_bin584.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225405/ft1_filtered_4FGL_J1408.9-0751_daily_bin584.fits scfile=/scratch/kocevski/225405/ft2_4FGL_J1408.9-0751_daily_bin584.fits outfile=/scratch/kocevski/225405/cmap_HighResolution_390700801_390960001_4FGL_J1408.9-0751_daily_bin584.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/225405/ft1_filtered_4FGL_J1408.9-0751_daily_bin584.fits evtable="EVENTS" scfile=/scratch/kocevski/225405/ft2_4FGL_J1408.9-0751_daily_bin584.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/225405/Model_4FGL_J1408.9-0751_daily_bin584.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/225405/ft1_filtered_4FGL_J1408.9-0751_daily_bin584.fits.....................!
real 53.28
user 51.99
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0758       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0686       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2099       1.0000         .10000E-03   10000.    
     5 'norm      '    17.913       1.0000         .10000E-03   10000.    
     6 'norm      '    22.599       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4787       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.997       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5833       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .52299E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .23743       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.969       1.0000         .10000E-03   10000.    
    15 'norm      '    10.025       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.076       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9757       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12278E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1642       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91222       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=   6711.740     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2554 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0763        2.1366        .80733E-07   -.33562E-03
   2  Prefactor     .10000E-03    12.187       -.29566E-06** at limit **
   3  norm          1.0689        1.4599       -.13053E-07   -.47237E-04
   4  norm          3.2089        3.4838       -.14480E-06   -.49626E-05
   5  norm          17.913        10.051        .56011E-06    .11621E-04
   6  norm          22.599        29.177        .98850E-08   -.17314E-05
   7  norm          .10000E-03    2.3175        .83990E-07** at limit **
   8  Prefactor     7.4785        7.9307       -.14207E-05   -.60370E-04
   9  Prefactor     .10000E-03    13.445        .24440E-06** at limit **
  10  Prefactor     35.998        32.687        .78379E-07   -.11882E-06
  11  norm          3.5849        9.6795        .27267E-05    .36519E-04
  12  Prefactor     .10000E-03    10.117        .84049E-06** at limit **
  13  norm          .23831        1.5434       -.30175E-06    .96274E-04
  14  Prefactor     12.962        18.699       -.37181E-05   -.44383E-04
  15  norm          10.025        13.149       -.31365E-07   -.23778E-05
  16  norm          .10000E-03    6.7422       -.19703E-06** at limit **
  17  Prefactor     25.077        17.522        .13968E-05    .13993E-04
  18  Prefactor     .10000E-03    6.4043        .45856E-07** at limit **
  19  norm          .10000E-03    11.014        .22910E-06** at limit **
  20  Prefactor     5.9642        5.5981       -.12889E-06    .54236E-05
  21  Prefactor     .10000E-03    188.82       -.14191E-05** at limit **
  22  Normalizat    1.1640        .22563        .46280E-06   -.56119E-04
  23  Prefactor     .91225        .11621       -.19121E-06   -.12487E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.07631
  Prefactor  = 0.0001
  norm       = 1.06889
  norm       = 3.20893
  norm       = 17.9126
  norm       = 22.5987
  norm       = 0.0001
  Prefactor  = 7.47848
  Prefactor  = 0.0001
  Prefactor  = 35.9981
  norm       = 3.58486
  Prefactor  = 0.000100004
  norm       = 0.238314
  Prefactor  = 12.9623
  norm       = 10.0248
  norm       = 0.0001
  Prefactor  = 25.0774
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.96418
  Prefactor  = 0.0001
  Normalizat = 1.16402
  Prefactor  = 0.912254
 **********
 **   18 **HESSE 
 **********

 FCN=   6711.740     FROM HESSE     STATUS=OK           380 CALLS     2934 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0763        10.766        .14334E-02   -1.5420    
   2  Prefactor     .10000E-03    12.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0689        1.4212        .10968E-03   -1.5501    
   4  norm          3.2089        3.4637        .14442E-03   -1.5350    
   5  norm          17.913        10.017        .94631E-04   -1.4861    
   6  norm          22.599        29.180        .84259E-04   -1.4757    
   7  norm          .10000E-03    2.3480        .12178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4785        7.8563        .14665E-03   -1.5161    
   9  Prefactor     .10000E-03    13.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.998        32.691        .66796E-04   -1.4507    
  11  norm          3.5849        9.5970        .21348E-03   -1.5329    
  12  Prefactor     .10000E-03    96.436        .49352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .23831        3.3251        .19358E-02   -1.5610    
  14  Prefactor     12.962        18.632        .11123E-03   -1.4988    
  15  norm          10.025        13.158        .12656E-03   -1.5075    
  16  norm          .10000E-03    6.9111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.077        17.512        .79996E-04   -1.4706    
  18  Prefactor     .10000E-03    6.4060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9642        5.5776        .16426E-03   -1.5219    
  21  Prefactor     .10000E-03    189.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1640        .26167        .32138E-03   -.87722    
  23  Prefactor     .91225        .13619        .19196E-03   -.95714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16998e-10
Minuit parameter uncertainties:
  1  9.45849
  2  5.26652e-06
  3  1.42126
  4  3.46391
  5  10.0184
  6  29.1983
  7  4.54783e-07
  8  7.85735
  9  1.19473e-07
  10  32.7072
  11  9.60108
  12  0.00120917
  13  1.78011
  14  18.6407
  15  13.1615
  16  6.27247e-06
  17  17.5154
  18  1.9425e-07
  19  6.05314e-07
  20  5.57805
  21  0.000147531
  22  0.261963
  23  0.136242
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  2.383e-01  1.780e+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:  9.123e-01  1.362e-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.164e+00  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/225405/likelihoodResults_390700801_390960001_4FGL_J1408.9-0751_daily_bin584.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) = 6711.72328628
delta logL = 0.0165639549114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6711.7221843
delta logL = 0.0176659349672

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17202       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1202       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91478       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=   6711.722     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      241 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16798        6.8841        .21099E-01    .28245E-02
   2  alpha         3.1398        3.6522        .42879        .39659E-04
   3  Normalizat    1.1552        .22612E-01    .72869E-01    .72090E-04
   4  Prefactor     .91486        .12160E-01    .45193E-01    .41417E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.167981
  alpha      = 3.13982
  Normalizat = 1.1552
  Prefactor  = 0.914855
 **********
 **   18 **HESSE 
 **********

 FCN=   6711.722     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      276 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16798        131.37        .10829E-02   -1.5626    
   2  alpha         3.1398        3.7286        .55129E-01    .25881    
   3  Normalizat    1.1552        .14100        .32246E-03   -.87999    
   4  Prefactor     .91486        .63890E-01    .19172E-03   -.95624    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.01595e-09
Minuit parameter uncertainties:
  1  9.41308
  2  36.6206
  3  0.141043
  4  0.0638956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225405': 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): 102
logL (Free Index) = 6711.72218149
delta logL = 0.0176687461917

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.680e-01  9.413e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.140e+00  3.662e+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:  9.149e-01  6.390e-02  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.155e+00  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/225405/cmap_HighResolution_390700801_390960001_4FGL_J1408.9-0751_daily_bin584.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', job_status='DONE', photon_flux_upper_limit='8.37e-08', time_completed='2021-09-09 03:23:54.584265', job_id='225405', GAL2='0.91', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631183034.58', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.77e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='584' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:23:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 225405: <4FGL_J1408.9-0751_daily_bin584> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin584> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 03:10:34 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:10:35 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:35 2021
Terminated at Thu Sep  9 03:23:55 2021
Results reported at Thu Sep  9 03:23:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin584 212.236 -7.8575 390700801 390960001 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 :                                   639.00 sec.
    Max Memory :                                 1194 MB
    Average Memory :                             317.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

