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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin389
RA = 212.236, Dec = -7.8575
tmin = 340156801, tmax = 340416001
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='223802', job_status='RUN', time_executed='2021-09-09 03:08:23.687016', time_epoch_executed='1631182103.69' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223802/ft1_4FGL_J1408.9-0751_daily_bin389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223802/ft2_4FGL_J1408.9-0751_daily_bin389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223802/ft1_4FGL_J1408.9-0751_daily_bin389.fits outfile=/scratch/kocevski/223802/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin389.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=340156801.0 tmax=340416001.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.33
user 3.10
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223802/ft1_filtered_4FGL_J1408.9-0751_daily_bin389.fits" evtable="EVENTS" scfile=/scratch/kocevski/223802/ft2_4FGL_J1408.9-0751_daily_bin389.fits sctable="SC_DATA" outfile=/scratch/kocevski/223802/ltcube_340156801_340416001_4FGL_J1408.9-0751_daily_bin389.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/223802/ft2_4FGL_J1408.9-0751_daily_bin389.fits
.....................!
real 11.84
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223802/ft1_filtered_4FGL_J1408.9-0751_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/223802/ft2_4FGL_J1408.9-0751_daily_bin389.fits sctable="SC_DATA" expcube=/scratch/kocevski/223802/ltcube_340156801_340416001_4FGL_J1408.9-0751_daily_bin389.fits outfile=/scratch/kocevski/223802/expmap_340156801_340416001_4FGL_J1408.9-0751_daily_bin389.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/223802/ltcube_340156801_340416001_4FGL_J1408.9-0751_daily_bin389.fits
.....................!
real 189.35
user 184.75
sys 4.24

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/223802/ft1_filtered_4FGL_J1408.9-0751_daily_bin389.fits scfile=/scratch/kocevski/223802/ft2_4FGL_J1408.9-0751_daily_bin389.fits outfile=/scratch/kocevski/223802/cmap_340156801_340416001_4FGL_J1408.9-0751_daily_bin389.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223802/ft1_filtered_4FGL_J1408.9-0751_daily_bin389.fits scfile=/scratch/kocevski/223802/ft2_4FGL_J1408.9-0751_daily_bin389.fits outfile=/scratch/kocevski/223802/cmap_HighResolution_340156801_340416001_4FGL_J1408.9-0751_daily_bin389.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/223802/ft1_filtered_4FGL_J1408.9-0751_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/223802/ft2_4FGL_J1408.9-0751_daily_bin389.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/223802/Model_4FGL_J1408.9-0751_daily_bin389.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/223802/ft1_filtered_4FGL_J1408.9-0751_daily_bin389.fits.....................!
real 61.75
user 60.36
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.850       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.606       1.0000         .10000E-03   10000.    
     3 'norm      '    3.3173       1.0000         .10000E-03   10000.    
     4 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11468E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.479       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.222       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8720       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.292       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0530       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9856       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .62740       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.252       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .45723E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    244.06       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0203       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1342       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=   7433.593     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2969 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.830        14.484        .27124E-05    .56493E-03
   2  Prefactor     12.560        19.304       -.16693E-05   -.49829E-04
   3  norm          3.3170        2.0874       -.13177E-06   -.98097E-04
   4  norm          .10000E-03    2.8071       -.16616E-06** at limit **
   5  norm          .10000E-03    10.448        .13652E-06** at limit **
   6  norm          .10000E-03    15.570       -.57469E-06** at limit **
   7  norm          14.479        7.8240       -.97075E-07    .20942E-04
   8  Prefactor     20.214        7.8673       -.23456E-06    .39371E-04
   9  Prefactor     1.8939        64.910        .10377E-04    .53536E-04
  10  Prefactor     .10000E-03    63.585       -.26879E-05** at limit **
  11  norm          .10000E-03    4.5327        .65344E-07** at limit **
  12  Prefactor     39.280        20.537       -.15707E-05   -.24989E-03
  13  norm          2.0524        2.4153        .89132E-07    .22419E-03
  14  Prefactor     9.9835        26.452        .11555E-06   -.17386E-04
  15  norm          .10000E-03    4.5488        .11109E-07** at limit **
  16  norm          .10000E-03    4.5730       -.75398E-07** at limit **
  17  Prefactor     .67448        15.544       -.40951E-05    .55877E-03
  18  Prefactor     .10000E-03    15.556       -.50347E-06** at limit **
  19  norm          13.253        13.592        .27013E-06    .34192E-06
  20  Prefactor     .10018E-03    6.4204       -.70986E-06** at limit **
  21  Prefactor     244.02        97.026        .57838E-05   -.26081E-03
  22  Normalizat    1.0210        .26620       -.93371E-06    .22379E-03
  23  Prefactor     1.1338        .13305        .11945E-05    .26647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.8299
  Prefactor  = 12.5603
  norm       = 3.317
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.4787
  Prefactor  = 20.2142
  Prefactor  = 1.89391
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.28
  norm       = 2.05243
  Prefactor  = 9.98352
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.674482
  Prefactor  = 0.0001
  norm       = 13.2529
  Prefactor  = 0.000100178
  Prefactor  = 244.018
  Normalizat = 1.02101
  Prefactor  = 1.13377
 **********
 **   18 **HESSE 
 **********

 FCN=   7433.593     FROM HESSE     STATUS=OK           370 CALLS     3339 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.830        14.581        .77313E-04   -1.4672    
   2  Prefactor     12.560        19.138        .11282E-03   -1.4999    
   3  norm          3.3170        2.0933        .92144E-04   -1.5344    
   4  norm          .10000E-03    2.8146        .13987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.479        7.8247        .10526E-03   -1.4947    
   8  Prefactor     20.214        7.8725        .89069E-04   -1.4808    
   9  Prefactor     1.8939        64.534        .30439E-03   -1.5433    
  10  Prefactor     .10000E-03    63.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.5485        .17909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     39.280        20.632        .63944E-04   -1.4454    
  13  norm          2.0524        2.3965        .13854E-03   -1.5421    
  14  Prefactor     9.9835        26.442        .12681E-03   -1.5076    
  15  norm          .10000E-03    4.5529        .17959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.6099        .17997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .67448        93.883        .61155E-02   -1.5544    
  18  Prefactor     .10000E-03    15.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.253        13.598        .11003E-03   -1.4980    
  20  Prefactor     .10018E-03    25.026        .38692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     244.02        99.839        .12961E-03   -1.2571    
  22  Normalizat    1.0210        .30180        .39012E-03   -.92330    
  23  Prefactor     1.1338        .15197        .19954E-03   -.88395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10396e-08
Minuit parameter uncertainties:
  1  14.5825
  2  19.147
  3  2.09339
  4  9.91638e-06
  5  3.72053e-05
  6  4.64992e-05
  7  7.82524
  8  7.87294
  9  22.1361
  10  0.000347521
  11  5.81743e-06
  12  20.6353
  13  2.39663
  14  26.4733
  15  1.36028e-06
  16  4.28194e-06
  17  15.9395
  18  4.33499e-05
  19  13.6008
  20  0.00422533
  21  99.9084
  22  0.302307
  23  0.152031
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  2.052e+00  2.397e+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.134e+00  1.520e-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.021e+00  3.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 212.236 -7.857
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 3.85e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/223802/likelihoodResults_340156801_340416001_4FGL_J1408.9-0751_daily_bin389.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) = 7433.42562202
delta logL = 0.167745627308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7433.4226459
delta logL = 0.170721750248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0581       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6560       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1270       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=   7433.423     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0773        3.0303        .72019E-02    .13152E-03
   2  alpha         1.6610        .88076        .44598        .39033E-04
   3  Normalizat    1.0456        .24417        .87149E-01    .23927E-04
   4  Prefactor     1.1271        .13036        .36642E-01   -.77069E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.07734
  alpha      = 1.66097
  Normalizat = 1.04556
  Prefactor  = 1.12712
 **********
 **   18 **HESSE 
 **********

 FCN=   7433.423     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0773        2.6831        .14296E-03   -1.5420    
   2  alpha         1.6610        .95744        .25733E-01   -.34225    
   3  Normalizat    1.0456        .27462        .38592E-03   -.91520    
   4  Prefactor     1.1271        .14788        .20002E-03   -.88604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16724e-10
Minuit parameter uncertainties:
  1  2.68326
  2  0.985998
  3  0.274995
  4  0.147935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223802': 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) = 7433.42261767
delta logL = 0.170749979096

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  2.077e+00  2.683e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.661e+00  9.860e-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.127e+00  1.479e-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.046e+00  2.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 1.66 +/- 0.99
Photon Flux (Free Index): 1.40e-08 +/- 2.60e-08
Energy Flux (Free Index): 1.87e-05 +/- 2.97e-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/223802/cmap_HighResolution_340156801_340416001_4FGL_J1408.9-0751_daily_bin389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-05', comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='1.87e-05', photon_flux_error='3.85e-08', dlogl='1.71e-01', energy_flux='1.23e-05', photon_flux2='1.40e-08', job_status='DONE', time_completed='2021-09-09 03:20:03.288570', photon_index_error2='0.99', photon_index2='1.66', ts='1.13', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='2.97e-05', EG='1.02', time_epoch_completed='1631182803.29', return_code='0', job_id='223802', GAL2='1.13', EG2='1.05', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='2.60e-08', ts2='1.46', photon_index='2.33' WHERE bin_id='389' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:20:03 PDT 2021


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

Job <4FGL_J1408.9-0751_daily_bin389> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  9 03:05:24 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:05:26 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:26 2021
Terminated at Thu Sep  9 03:20:04 2021
Results reported at Thu Sep  9 03:20:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin389 212.236 -7.8575 340156801 340416001 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 :                                   696.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

