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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin431
RA = 212.236, Dec = -7.8575
tmin = 351043201, tmax = 351302401
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='223862', job_status='RUN', time_executed='2021-09-09 03:05:46.533838', time_epoch_executed='1631181946.53' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223862

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223862/ft1_4FGL_J1408.9-0751_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223862/ft2_4FGL_J1408.9-0751_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223862/ft1_4FGL_J1408.9-0751_daily_bin431.fits outfile=/scratch/kocevski/223862/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin431.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=351043201.0 tmax=351302401.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.43
user 3.18
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223862/ft1_filtered_4FGL_J1408.9-0751_daily_bin431.fits" evtable="EVENTS" scfile=/scratch/kocevski/223862/ft2_4FGL_J1408.9-0751_daily_bin431.fits sctable="SC_DATA" outfile=/scratch/kocevski/223862/ltcube_351043201_351302401_4FGL_J1408.9-0751_daily_bin431.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/223862/ft2_4FGL_J1408.9-0751_daily_bin431.fits
.....................!
real 11.68
user 11.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223862/ft1_filtered_4FGL_J1408.9-0751_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/223862/ft2_4FGL_J1408.9-0751_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/223862/ltcube_351043201_351302401_4FGL_J1408.9-0751_daily_bin431.fits outfile=/scratch/kocevski/223862/expmap_351043201_351302401_4FGL_J1408.9-0751_daily_bin431.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/223862/ltcube_351043201_351302401_4FGL_J1408.9-0751_daily_bin431.fits
.....................!
real 191.36
user 185.28
sys 5.76

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/223862/ft1_filtered_4FGL_J1408.9-0751_daily_bin431.fits scfile=/scratch/kocevski/223862/ft2_4FGL_J1408.9-0751_daily_bin431.fits outfile=/scratch/kocevski/223862/cmap_351043201_351302401_4FGL_J1408.9-0751_daily_bin431.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223862/ft1_filtered_4FGL_J1408.9-0751_daily_bin431.fits scfile=/scratch/kocevski/223862/ft2_4FGL_J1408.9-0751_daily_bin431.fits outfile=/scratch/kocevski/223862/cmap_HighResolution_351043201_351302401_4FGL_J1408.9-0751_daily_bin431.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/223862/ft1_filtered_4FGL_J1408.9-0751_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/223862/ft2_4FGL_J1408.9-0751_daily_bin431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/223862/Model_4FGL_J1408.9-0751_daily_bin431.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/223862/ft1_filtered_4FGL_J1408.9-0751_daily_bin431.fits.....................!
real 57.79
user 56.50
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.7259       1.0000         .10000E-03   10000.    
     6 'norm      '    .11421E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.3215       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.725       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.7378       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.817       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8756       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.617       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.1137       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5724       1.0000         .10000E-03   10000.    
    21 'Prefactor '    156.57       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1624       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92901       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=   7164.178     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2187 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10212E-03    8.0737        .22888E-05** at limit **
   2  Prefactor     .10000E-03    6.5200        .32035E-07** at limit **
   3  norm          .10000E-03    .41847        .31806E-07** at limit **
   4  norm          .10000E-03    1.7337        .38762E-07** at limit **
   5  norm          7.7270        8.2118        .43194E-07   -.14523E-03
   6  norm          .10000E-03    107.02        .46095E-06** at limit **
   7  norm          4.3217        3.8672        .89807E-07   -.34058E-04
   8  Prefactor     11.727        6.3413       -.16019E-06   -.73448E-04
   9  Prefactor     .10000E-03    21.777       -.24276E-08** at limit **
  10  Prefactor     .10000E-03    19.877        .18006E-06** at limit **
  11  norm          .10000E-03    3.2593        .91650E-07** at limit **
  12  Prefactor     .10000E-03    11.785       -.77902E-07** at limit **
  13  norm          5.7380        3.1761       -.55583E-07   -.15083E-04
  14  Prefactor     13.819        16.577        .21309E-06   -.72836E-05
  15  norm          .10000E-03    3.9434        .54269E-08** at limit **
  16  norm          2.8770        6.8449        .26641E-05    .11527E-03
  17  Prefactor     34.615        22.220       -.26150E-06    .13386E-04
  18  Prefactor     .10000E-03    22.127       -.18450E-06** at limit **
  19  norm          7.1124        13.157       -.43660E-07    .28893E-04
  20  Prefactor     1.5774        6.3383       -.36909E-05   -.27775E-03
  21  Prefactor     156.47        97.871        .81402E-05    .39520E-05
  22  Normalizat    1.1624        .21740       -.51369E-06   -.11145E-03
  23  Prefactor     .92905        .11455        .47749E-07   -.89509E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010212
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.727
  norm       = 0.0001
  norm       = 4.32167
  Prefactor  = 11.7266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.73796
  Prefactor  = 13.819
  norm       = 0.0001
  norm       = 2.87697
  Prefactor  = 34.6152
  Prefactor  = 0.0001
  norm       = 7.11241
  Prefactor  = 1.57742
  Prefactor  = 156.471
  Normalizat = 1.16236
  Prefactor  = 0.929052
 **********
 **   18 **HESSE 
 **********

 FCN=   7164.178     FROM HESSE     STATUS=OK           376 CALLS     2563 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10212E-03    113.10        .41225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .61440        .10637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7414        .10854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.7270        8.1488        .14427E-03   -1.5152    
   6  norm          .10000E-03    108.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3217        3.8673        .15318E-03   -1.5292    
   8  Prefactor     11.727        6.3308        .11699E-03   -1.5023    
   9  Prefactor     .10000E-03    21.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.2694        .14912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.7380        3.1823        .10503E-03   -1.5229    
  14  Prefactor     13.819        16.591        .10776E-03   -1.4964    
  15  norm          .10000E-03    3.9557        .16415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8770        6.8821        .11984E-02   -1.5369    
  17  Prefactor     34.615        22.225        .68110E-04   -1.4531    
  18  Prefactor     .10000E-03    22.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.1124        13.143        .15040E-03   -1.5175    
  20  Prefactor     1.5774        6.3921        .33896E-03   -1.5457    
  21  Prefactor     156.47        98.190        .16110E-03   -1.3200    
  22  Normalizat    1.1624        .25097        .32331E-03   -.87774    
  23  Prefactor     .92905        .13385        .19322E-03   -.95133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74519e-08
Minuit parameter uncertainties:
  1  0.0310247
  2  2.44347e-06
  3  1.6934e-06
  4  9.83821e-07
  5  8.14992
  6  5.12825e-05
  7  3.86756
  8  6.33115
  9  2.91587e-06
  10  5.67878e-06
  11  4.90561e-06
  12  1.295e-06
  13  3.18235
  14  16.5968
  15  9.90112e-08
  16  6.88403
  17  22.2305
  18  3.10024e-06
  19  13.1481
  20  6.35171
  21  98.2924
  22  0.251229
  23  0.133896
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  5.738e+00  3.182e+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.291e-01  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:  1.162e+00  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.44
Ra Dec: 212.236 -7.857
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 9.22e-08 +/- 5.11e-08
Energy Flux (Fixed Index): 3.44e-05 +/- 1.91e-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) = 7163.59764091
delta logL = 0.580648735853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7163.58213694
delta logL = 0.596152708767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9791       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0996       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97019       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=   7163.582     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      248 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9786        15.661        .58806E-02    .37435E-03
   2  alpha         3.1001        3.7390        .19492        .10287E-03
   3  Normalizat    1.0414        .99063E-01    .76461E-01    .19634E-04
   4  Prefactor     .97022        .44538E-01    .45893E-01    .34637E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.97863
  alpha      = 3.10014
  Normalizat = 1.04142
  Prefactor  = 0.97022
 **********
 **   18 **HESSE 
 **********

 FCN=   7163.582     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9786        4.9801        .56806E-04   -1.5363    
   2  alpha         3.1001        1.0779        .77925E-02    .24242    
   3  Normalizat    1.0414        .28548        .33840E-03   -.91656    
   4  Prefactor     .97022        .14445        .18945E-03   -.93729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41652e-11
Minuit parameter uncertainties:
  1  4.98076
  2  1.11697
  3  0.285902
  4  0.144512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223862': 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) = 7163.58213412
delta logL = 0.596155524791

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  2.979e+00  4.981e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.100e+00  1.117e+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:  9.702e-01  1.445e-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.041e+00  2.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.02
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 3.10 +/- 1.12
Photon Flux (Free Index): 1.83e-07 +/- 1.16e-07
Energy Flux (Free Index): 3.74e-05 +/- 1.58e-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/223862/cmap_HighResolution_351043201_351302401_4FGL_J1408.9-0751_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.22e-08', energy_flux2='3.74e-05', photon_flux_error='5.11e-08', dlogl='5.96e-01', energy_flux='3.44e-05', photon_flux2='1.83e-07', job_status='DONE', time_completed='2021-09-09 03:15:21.861603', photon_index_error2='1.12', photon_index2='3.10', ts='8.44', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='1.16', time_epoch_completed='1631182521.86', return_code='0', job_id='223862', GAL2='0.97', EG2='1.04', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='1.16e-07', ts2='10.02', photon_index='2.33' WHERE bin_id='431' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:15:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 223862: <4FGL_J1408.9-0751_daily_bin431> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin431> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  9 03:05:29 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:05: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:05:31 2021
Terminated at Thu Sep  9 03:15:22 2021
Results reported at Thu Sep  9 03:15:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin431 212.236 -7.8575 351043201 351302401 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 :                                   572.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            593 sec.

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

