/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 158 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 = 7685
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1408.9-0751_daily_bin52
RA = 212.236, Dec = -7.8575
tmin = 252806401, tmax = 253065601
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='220860', job_status='RUN', time_executed='2021-09-09 02:58:06.584457', time_epoch_executed='1631181486.58' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220860

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220860/ft1_4FGL_J1408.9-0751_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220860/ft2_4FGL_J1408.9-0751_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220860/ft1_4FGL_J1408.9-0751_daily_bin52.fits outfile=/scratch/kocevski/220860/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin52.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=252806401.0 tmax=253065601.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 1.42
user 1.23
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/220860/ft1_filtered_4FGL_J1408.9-0751_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/220860/ft2_4FGL_J1408.9-0751_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/220860/ltcube_252806401_253065601_4FGL_J1408.9-0751_daily_bin52.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/220860/ft2_4FGL_J1408.9-0751_daily_bin52.fits
.....................!
real 12.75
user 12.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220860/ft1_filtered_4FGL_J1408.9-0751_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/220860/ft2_4FGL_J1408.9-0751_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/220860/ltcube_252806401_253065601_4FGL_J1408.9-0751_daily_bin52.fits outfile=/scratch/kocevski/220860/expmap_252806401_253065601_4FGL_J1408.9-0751_daily_bin52.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/220860/ltcube_252806401_253065601_4FGL_J1408.9-0751_daily_bin52.fits
.....................!
real 190.40
user 184.45
sys 5.57

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/220860/ft1_filtered_4FGL_J1408.9-0751_daily_bin52.fits scfile=/scratch/kocevski/220860/ft2_4FGL_J1408.9-0751_daily_bin52.fits outfile=/scratch/kocevski/220860/cmap_252806401_253065601_4FGL_J1408.9-0751_daily_bin52.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/220860/ft1_filtered_4FGL_J1408.9-0751_daily_bin52.fits scfile=/scratch/kocevski/220860/ft2_4FGL_J1408.9-0751_daily_bin52.fits outfile=/scratch/kocevski/220860/cmap_HighResolution_252806401_253065601_4FGL_J1408.9-0751_daily_bin52.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/220860/ft1_filtered_4FGL_J1408.9-0751_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/220860/ft2_4FGL_J1408.9-0751_daily_bin52.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/220860/Model_4FGL_J1408.9-0751_daily_bin52.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/220860/ft1_filtered_4FGL_J1408.9-0751_daily_bin52.fits.....................!
real 70.29
user 68.52
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4877       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.6795       1.0000         .10000E-03   10000.    
     4 'norm      '    10.421       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1921       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.8298       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1580       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9210       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.639       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5581       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.719       1.0000         .10000E-03   10000.    
    13 'norm      '    7.4983       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.782       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0177       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0094       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0165       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=   9172.062     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2525 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4886        8.4317        .54127E-02    .40258E-03
   2  Prefactor     .10000E-03    9.0964        .90712E-02** at limit **
   3  norm          3.6796        1.3176        .52640E-02    .72326E-03
   4  norm          10.422        4.7324        .31029E-02    .80640E-03
   5  norm          3.1912        5.7942        .56699E-02    .15022E-02
   6  norm          .10000E-03    30.255        .90712E-02** at limit **
   7  norm          6.8294        4.4822        .38381E-02    .41331E-03
   8  Prefactor     9.1584        5.7023        .33109E-02   -.79968E-03
   9  Prefactor     5.9205        13.663        .41257E-02    .94725E-04
  10  Prefactor     17.636        28.938        .23841E-02    .10396E-02
  11  norm          6.5578        8.4615        .39177E-02   -.28901E-03
  12  Prefactor     10.720        11.605        .30594E-02    .14859E-03
  13  norm          7.4985        2.7287        .36615E-02    .44036E-03
  14  Prefactor     .10000E-03    4.7187        .90712E-02** at limit **
  15  norm          13.782        9.0413        .26973E-02   -.34684E-03
  16  norm          .10000E-03    5.4060        .90712E-02** at limit **
  17  Prefactor     .10001E-03    25.266        .90712E-02** at limit **
  18  Prefactor     5.0065        16.905        .44880E-02    .26605E-03
  19  norm          .10000E-03    2.9161        .90712E-02** at limit **
  20  Prefactor     .10000E-03    2.2375        .90712E-02** at limit **
  21  Prefactor     .10001E-03    51.254        .90712E-02** at limit **
  22  Normalizat    1.0092        .20024        .78828E-01    .35600E-03
  23  Prefactor     1.0166        .10545        .42506E-01    .62862E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.48857
  Prefactor  = 0.000100001
  norm       = 3.67957
  norm       = 10.4225
  norm       = 3.19124
  norm       = 0.000100002
  norm       = 6.82937
  Prefactor  = 9.15839
  Prefactor  = 5.92048
  Prefactor  = 17.6362
  norm       = 6.55775
  Prefactor  = 10.7201
  norm       = 7.49846
  Prefactor  = 0.0001
  norm       = 13.7817
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 5.00651
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  Normalizat = 1.00918
  Prefactor  = 1.01663
 **********
 **   18 **HESSE 
 **********

 FCN=   9172.062     FROM HESSE     STATUS=OK           372 CALLS     2897 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4886        8.4308        .21651E-03   -1.5334    
   2  Prefactor     .10000E-03    9.1057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6796        1.3184        .63316E-04   -1.5324    
   4  norm          10.422        4.6962        .11663E-03   -1.5062    
   5  norm          3.1912        5.7439        .22680E-03   -1.5351    
   6  norm          .10000E-03    30.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.8294        4.4827        .15353E-03   -1.5185    
   8  Prefactor     9.1584        5.6820        .13244E-03   -1.5103    
   9  Prefactor     5.9205        13.652        .16503E-03   -1.5221    
  10  Prefactor     17.636        28.944        .95364E-04   -1.4868    
  11  norm          6.5578        8.4164        .15671E-03   -1.5196    
  12  Prefactor     10.720        11.626        .12238E-03   -1.5053    
  13  norm          7.4985        2.7327        .90792E-04   -1.5160    
  14  Prefactor     .10000E-03    4.7226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.782        9.0420        .53947E-03   -1.4965    
  16  norm          .10000E-03    5.5205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    25.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0065        16.946        .17952E-03   -1.5260    
  19  norm          .10000E-03    2.9171        .15972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2592        .13987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    51.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0092        .23272        .34888E-03   -.92723    
  23  Prefactor     1.0166        .12293        .18991E-03   -.92177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86856e-09
Minuit parameter uncertainties:
  1  8.43367
  2  0.000216218
  3  1.31837
  4  4.69636
  5  5.74487
  6  0.000455117
  7  4.48289
  8  5.68229
  9  13.6597
  10  28.9669
  11  8.41793
  12  11.6287
  13  2.73271
  14  3.28354e-05
  15  9.04289
  16  8.65971e-05
  17  0.000935048
  18  16.9621
  19  9.13135e-06
  20  0.000108807
  21  0.00117992
  22  0.232951
  23  0.122965
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  7.498e+00  2.733e+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.017e+00  1.230e-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.009e+00  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.00
Ra Dec: 212.236 -7.857
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 4.39e-08
Energy Flux (Fixed Index): 4.49e-05 +/- 1.64e-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) = 9172.01634074
delta logL = 0.0459738889094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9172.00536828
delta logL = 0.056946349212

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0257       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2064       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0118       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=   9172.005     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      230 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0257        44.105        .35382E-02    .24796E-02
   2  alpha         2.2065        3.6017        .27362        .18299E-03
   3  Normalizat    1.0260        .17669        .78259E-01    .66423E-03
   4  Prefactor     1.0118        .51653E-01    .43079E-01    .87444E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.02569
  alpha      = 2.20646
  Normalizat = 1.02597
  Prefactor  = 1.01178
 **********
 **   18 **HESSE 
 **********

 FCN=   9172.005     FROM HESSE     STATUS=OK            27 CALLS      257 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0257        3.3364        .97148E-04   -1.5141    
   2  alpha         2.2065        .37657        .10074E-01   -.11769    
   3  Normalizat    1.0260        .22460        .34639E-03   -.92166    
   4  Prefactor     1.0118        .12033        .19034E-03   -.92338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01013e-09
Minuit parameter uncertainties:
  1  3.33644
  2  0.378031
  3  0.224811
  4  0.12036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220860': 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) = 9172.00536828
delta logL = 0.0569463556039

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.012e+00  1.204e-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.026e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.01
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 2.21 +/- 0.38
Photon Flux (Free Index): 1.06e-07 +/- 5.69e-08
Energy Flux (Free Index): 4.71e-05 +/- 1.95e-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/220860/cmap_HighResolution_252806401_253065601_4FGL_J1408.9-0751_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='4.71e-05', photon_flux_error='4.39e-08', dlogl='5.69e-02', energy_flux='4.49e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-09 03:09:12.817182', photon_index_error2='0.38', photon_index2='2.21', ts='27.00', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='1.01', time_epoch_completed='1631182152.82', return_code='0', job_id='220860', GAL2='1.01', EG2='1.03', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='5.69e-08', ts2='27.01', photon_index='2.33' WHERE bin_id='52' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:09:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 220860: <4FGL_J1408.9-0751_daily_bin52> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin52> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 02:55:18 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 02:55:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 02:55:20 2021
Terminated at Thu Sep  9 03:09:13 2021
Results reported at Thu Sep  9 03:09:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin52 212.236 -7.8575 252806401 253065601 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 :                                   666.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            835 sec.

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

