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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin932
RA = 212.236, Dec = -7.8575
tmin = 480902401, tmax = 481161601
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='227070', job_status='RUN', time_executed='2021-09-09 03:17:59.086803', time_epoch_executed='1631182679.09' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227070

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227070/ft1_4FGL_J1408.9-0751_daily_bin932.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227070/ft2_4FGL_J1408.9-0751_daily_bin932.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227070/ft1_4FGL_J1408.9-0751_daily_bin932.fits outfile=/scratch/kocevski/227070/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin932.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=480902401.0 tmax=481161601.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.66
user 3.42
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227070/ft1_filtered_4FGL_J1408.9-0751_daily_bin932.fits" evtable="EVENTS" scfile=/scratch/kocevski/227070/ft2_4FGL_J1408.9-0751_daily_bin932.fits sctable="SC_DATA" outfile=/scratch/kocevski/227070/ltcube_480902401_481161601_4FGL_J1408.9-0751_daily_bin932.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/227070/ft2_4FGL_J1408.9-0751_daily_bin932.fits
.....................!
real 12.27
user 11.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227070/ft1_filtered_4FGL_J1408.9-0751_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/227070/ft2_4FGL_J1408.9-0751_daily_bin932.fits sctable="SC_DATA" expcube=/scratch/kocevski/227070/ltcube_480902401_481161601_4FGL_J1408.9-0751_daily_bin932.fits outfile=/scratch/kocevski/227070/expmap_480902401_481161601_4FGL_J1408.9-0751_daily_bin932.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/227070/ltcube_480902401_481161601_4FGL_J1408.9-0751_daily_bin932.fits
.....................!
real 190.77
user 185.34
sys 5.04

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/227070/ft1_filtered_4FGL_J1408.9-0751_daily_bin932.fits scfile=/scratch/kocevski/227070/ft2_4FGL_J1408.9-0751_daily_bin932.fits outfile=/scratch/kocevski/227070/cmap_480902401_481161601_4FGL_J1408.9-0751_daily_bin932.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227070/ft1_filtered_4FGL_J1408.9-0751_daily_bin932.fits scfile=/scratch/kocevski/227070/ft2_4FGL_J1408.9-0751_daily_bin932.fits outfile=/scratch/kocevski/227070/cmap_HighResolution_480902401_481161601_4FGL_J1408.9-0751_daily_bin932.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9219       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.257       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7598       1.0000         .10000E-03   10000.    
     4 'norm      '    16.912       1.0000         .10000E-03   10000.    
     5 'norm      '    .53544       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4674       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .95692       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.741       1.0000         .10000E-03   10000.    
    15 'norm      '    10.532       1.0000         .10000E-03   10000.    
    16 'norm      '    .10881E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.577       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6998       1.0000         .10000E-03   10000.    
    21 'Prefactor '    76.035       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2008       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75716       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=   8738.933     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2600 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9225        7.3898        .86332E-05   -.57893E-03
   2  Prefactor     13.253        25.145       -.15582E-05   -.15784E-03
   3  norm          1.7599        1.0433        .38333E-07   -.26210E-03
   4  norm          16.913        6.1035       -.25784E-06   -.55756E-03
   5  norm          .53549        4.5840        .38052E-05   -.18627E-03
   6  norm          .10000E-03    8.7208       -.71008E-09** at limit **
   7  norm          .10000E-03    1.1938       -.16692E-07** at limit **
   8  Prefactor     8.4666        4.7435        .15121E-06   -.21543E-03
   9  Prefactor     .10000E-03    3.9127       -.18909E-07** at limit **
  10  Prefactor     .10000E-03    59.242        .41717E-05** at limit **
  11  norm          .10000E-03    10.629        .19436E-06** at limit **
  12  Prefactor     .10000E-03    13.312       -.21166E-07** at limit **
  13  norm          .95720        1.2255        .55918E-07    .24317E-03
  14  Prefactor     11.742        18.233        .74094E-06   -.17774E-04
  15  norm          10.531        9.9916        .15325E-06   -.12941E-04
  16  norm          .10000E-03    3.1540       -.33049E-07** at limit **
  17  Prefactor     .10000E-03    33.108       -.61852E-06** at limit **
  18  Prefactor     .10000E-03    72.548       -.46089E-05** at limit **
  19  norm          15.576        13.429       -.45651E-06    .76303E-04
  20  Prefactor     5.6884        7.0511       -.26814E-05    .57431E-04
  21  Prefactor     76.192        88.437        .14207E-04    .38599E-03
  22  Normalizat    1.2007        .17943       -.27651E-05    .32185E-04
  23  Prefactor     .75725        .92048E-01    .44994E-06   -.27414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.9225
  Prefactor  = 13.2527
  norm       = 1.75989
  norm       = 16.9129
  norm       = 0.535488
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.4666
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.9572
  Prefactor  = 11.7421
  norm       = 10.5314
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 15.5759
  Prefactor  = 5.68841
  Prefactor  = 76.1917
  Normalizat = 1.20067
  Prefactor  = 0.757251
 **********
 **   18 **HESSE 
 **********

 FCN=   8738.933     FROM HESSE     STATUS=OK           374 CALLS     2974 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9225        7.4707        .10186E-02   -1.5312    
   2  Prefactor     13.253        25.355        .11001E-03   -1.4980    
   3  norm          1.7599        1.0445        .15794E-03   -1.5443    
   4  norm          16.913        6.1255        .90160E-04   -1.4885    
   5  norm          .53549        4.4886        .37197E-03   -1.5562    
   6  norm          .10000E-03    8.7242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2029        .99737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4666        4.7269        .13776E-03   -1.5126    
   9  Prefactor     .10000E-03    3.9158        .18059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    60.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.941        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .95720        1.0451        .11298E-02   -1.5512    
  14  Prefactor     11.742        18.276        .11691E-03   -1.5022    
  15  norm          10.531        9.9927        .12346E-03   -1.5059    
  16  norm          .10000E-03    3.2995        .32413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    74.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.576        13.402        .10148E-03   -1.4918    
  20  Prefactor     5.6884        7.2262        .16825E-03   -1.5231    
  21  Prefactor     76.192        92.772        .23025E-03   -1.3960    
  22  Normalizat    1.2007        .20910        .28758E-03   -.86582    
  23  Prefactor     .75725        .10783        .18952E-03   -1.0132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39805e-09
Minuit parameter uncertainties:
  1  7.47243
  2  25.3756
  3  1.0445
  4  6.1257
  5  3.10074
  6  3.62619e-06
  7  1.14087e-06
  8  4.72712
  9  2.93124e-06
  10  0.000964989
  11  7.71316e-06
  12  5.40204e-05
  13  1.04511
  14  18.2848
  15  9.99424
  16  9.4031e-06
  17  3.95162e-05
  18  0.000427231
  19  13.4046
  20  7.22734
  21  92.9491
  22  0.209243
  23  0.107856
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  9.572e-01  1.045e+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:  7.573e-01  1.079e-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.201e+00  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 212.236 -7.857
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.54e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 5.73e-06 +/- 6.26e-06

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

Saving results to:
/scratch/kocevski/227070/likelihoodResults_480902401_481161601_4FGL_J1408.9-0751_daily_bin932.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) = 8737.5513431
delta logL = 1.38209877706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8737.47851007
delta logL = 1.45493180457

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55002       1.0000         .10000E-03   10000.    
     2 'alpha     '    .87231       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75347       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=   8737.479     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54814        .56531        .11473E-01   -.73367E-03
   2  alpha         .87188        .49481        .50000       -.48067E-04
   3  Normalizat    1.2147        .16892        .64666E-01    .15179E-04
   4  Prefactor     .75376        .91006E-01    .43109E-01    .13292E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.548142
  alpha      = 0.87188
  Normalizat = 1.2147
  Prefactor  = 0.753765
 **********
 **   18 **HESSE 
 **********

 FCN=   8737.479     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54814        .90783        .65805E-03   -1.5560    
   2  alpha         .87188        .74088        .22737E-02   -.70923    
   3  Normalizat    1.2147        .19657        .28605E-03   -.86150    
   4  Prefactor     .75376        .10598        .18988E-03   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22773e-12
Minuit parameter uncertainties:
  1  0.907855
  2  0.761134
  3  0.196686
  4  0.106006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227070': 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) = 8737.47850107
delta logL = 1.45494080936

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  5.481e-01  9.079e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  8.719e-01  7.611e-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:  7.538e-01  1.060e-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.215e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.85
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 0.87 +/- 0.76
Photon Flux (Free Index): 3.40e-09 +/- 3.99e-09
Energy Flux (Free Index): 3.71e-05 +/- 5.80e-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/227070/cmap_HighResolution_480902401_481161601_4FGL_J1408.9-0751_daily_bin932.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-05', comment='SUCCESS', photon_flux='1.54e-08', energy_flux2='3.71e-05', photon_flux_error='1.68e-08', dlogl='1.45e+00', energy_flux='5.73e-06', photon_flux2='3.40e-09', job_status='DONE', time_completed='2021-09-09 03:30:30.668901', photon_index_error2='0.76', photon_index2='0.87', ts='1.95', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='6.42e-08', energy_flux_error2='5.80e-05', EG='1.20', time_epoch_completed='1631183430.67', return_code='0', job_id='227070', GAL2='0.75', EG2='1.21', return_code2='0', energy_flux_error='6.26e-06', photon_flux_error2='3.99e-09', ts2='4.85', photon_index='2.33' WHERE bin_id='932' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:30:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 227070: <4FGL_J1408.9-0751_daily_bin932> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin932> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 03:15:50 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:15:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 03:15:51 2021
Terminated at Thu Sep  9 03:30:31 2021
Results reported at Thu Sep  9 03:30:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin932 212.236 -7.8575 480902401 481161601 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 :                                   746.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

