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


Performing analysis on: 4FGL_J1419.4-0838_daily_bin958
RA = 214.86, Dec = -8.6417
tmin = 487641601, tmax = 487900801
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='335767', job_status='RUN', time_executed='2021-09-09 09:09:39.200256', time_epoch_executed='1631203779.2' WHERE source_name='4FGL J1419.4-0838' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335767

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335767/ft1_4FGL_J1419.4-0838_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335767/ft2_4FGL_J1419.4-0838_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335767/ft1_4FGL_J1419.4-0838_daily_bin958.fits outfile=/scratch/kocevski/335767/ft1_filteredMKT_4FGL_J1419.4-0838_daily_bin958.fits ra=214.86 dec=-8.6417 rad=12.0 tmin=487641601.0 tmax=487900801.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 5.13
user 4.88
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/335767/ft2_4FGL_J1419.4-0838_daily_bin958.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335767/ft2_4FGL_J1419.4-0838_daily_bin958.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/335767/ft1_filteredMKT_4FGL_J1419.4-0838_daily_bin958.fits evtable="EVENTS" outfile="/scratch/kocevski/335767/ft1_filtered_4FGL_J1419.4-0838_daily_bin958.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335767/ft1_filtered_4FGL_J1419.4-0838_daily_bin958.fits" evtable="EVENTS" scfile=/scratch/kocevski/335767/ft2_4FGL_J1419.4-0838_daily_bin958.fits sctable="SC_DATA" outfile=/scratch/kocevski/335767/ltcube_487641601_487900801_4FGL_J1419.4-0838_daily_bin958.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/335767/ft2_4FGL_J1419.4-0838_daily_bin958.fits
.....................!
real 11.81
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335767/ft1_filtered_4FGL_J1419.4-0838_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/335767/ft2_4FGL_J1419.4-0838_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/335767/ltcube_487641601_487900801_4FGL_J1419.4-0838_daily_bin958.fits outfile=/scratch/kocevski/335767/expmap_487641601_487900801_4FGL_J1419.4-0838_daily_bin958.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/335767/ltcube_487641601_487900801_4FGL_J1419.4-0838_daily_bin958.fits
.....................!
real 189.56
user 185.19
sys 4.03

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J1419.4-0838 @ 214.86 -8.6417

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/335767/ft1_filtered_4FGL_J1419.4-0838_daily_bin958.fits scfile=/scratch/kocevski/335767/ft2_4FGL_J1419.4-0838_daily_bin958.fits outfile=/scratch/kocevski/335767/cmap_487641601_487900801_4FGL_J1419.4-0838_daily_bin958.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=214.86 yref=-8.6417 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335767/ft1_filtered_4FGL_J1419.4-0838_daily_bin958.fits scfile=/scratch/kocevski/335767/ft2_4FGL_J1419.4-0838_daily_bin958.fits outfile=/scratch/kocevski/335767/cmap_HighResolution_487641601_487900801_4FGL_J1419.4-0838_daily_bin958.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=214.86 yref=-8.6417 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335767/ft1_filtered_4FGL_J1419.4-0838_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/335767/ft2_4FGL_J1419.4-0838_daily_bin958.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335767/Model_4FGL_J1419.4-0838_daily_bin958.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/335767/ft1_filtered_4FGL_J1419.4-0838_daily_bin958.fits.....................!
real 71.70
user 70.37
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/335767/ft1_filtered_4FGL_J1419.4-0838_daily_bin958.fits', '/scratch/kocevski/335767/ft2_4FGL_J1419.4-0838_daily_bin958.fits', expMap='/scratch/kocevski/335767/expmap_487641601_487900801_4FGL_J1419.4-0838_daily_bin958.fits', expCube='/scratch/kocevski/335767/ltcube_487641601_487900801_4FGL_J1419.4-0838_daily_bin958.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/335767/Model_4FGL_J1419.4-0838_daily_bin958.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1419.4-0838'

4FGL J1419.4-0838
   Spectrum: LogParabola
286         norm:  7.071e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  8.011e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  7.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/335767/ft1_filtered_4FGL_J1419.4-0838_daily_bin958.fits
Spacecraft file(s): /scratch/kocevski/335767/ft2_4FGL_J1419.4-0838_daily_bin958.fits
Exposure map: /scratch/kocevski/335767/expmap_487641601_487900801_4FGL_J1419.4-0838_daily_bin958.fits
Exposure cube: /scratch/kocevski/335767/ltcube_487641601_487900801_4FGL_J1419.4-0838_daily_bin958.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/335767/Model_4FGL_J1419.4-0838_daily_bin958.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) = 9238.30574842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4147       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2432       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .48712E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.5361       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.446       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9660       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10909E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.183       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.8615       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77361       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9238.292     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     1901 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4149        5.3209       -.12638E-05   -.70271E-03
   2  Prefactor     2.2440        2.3445        .71294E-06   -.13221E-02
   3  Prefactor     .10000E-03    7.4359       -.37081E-07** at limit **
   4  Prefactor     .10000E-03    8.4701        .17959E-06** at limit **
   5  norm          4.6871        6.0514       -.32815E-06   -.19783E-03
   6  Prefactor     .10000E-03    5.3144        .79133E-08** at limit **
   7  norm          .10000E-03    .84085       -.82379E-07** at limit **
   8  Prefactor     .10000E-03    9.2483       -.43300E-06** at limit **
   9  norm          .10000E-03    5.3504       -.20016E-08** at limit **
  10  norm          4.5376        4.5345       -.38631E-08   -.31788E-04
  11  Prefactor     13.458        15.309        .52151E-07    .11782E-04
  12  Prefactor     .10000E-03    9.7771        .37847E-06** at limit **
  13  norm          .10000E-03    3.4931        .80684E-09** at limit **
  14  Prefactor     9.5571        253.61       -.42571E-06   -.12008E-05
  15  Prefactor     .10000E-03    2.7342        .65437E-08** at limit **
  16  Prefactor     .10000E-03    19.489        .55127E-08** at limit **
  17  Prefactor     28.213        31.297       -.78899E-07   -.62956E-05
  18  Normalizat    1.8615        .21033        .37299E-07    .15192E-04
  19  Prefactor     .77364        .99687E-01    .31210E-07    .15386E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.41494
  Prefactor  = 2.24402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.68714
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.53763
  Prefactor  = 13.4577
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.55706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.213
  Normalizat = 1.86152
  Prefactor  = 0.773643
 **********
 **   18 **HESSE 
 **********

 FCN=   9238.292     FROM HESSE     STATUS=OK           276 CALLS     2177 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4149        5.7145        .17269E-03   -1.5243    
   2  Prefactor     2.2440        2.8248        .87411E-03   -1.5408    
   3  Prefactor     .10000E-03    7.4395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6871        6.0442        .18590E-03   -1.5275    
   6  Prefactor     .10000E-03    5.3193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2443        .33172E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.3685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.5376        4.5318        .18902E-03   -1.5282    
  11  Prefactor     13.458        15.319        .10923E-03   -1.4974    
  12  Prefactor     .10000E-03    9.8106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.5049        .17543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.5571        254.55        .12693E-03   -1.5090    
  15  Prefactor     .10000E-03    2.7787        .15502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.213        31.298        .75466E-04   -1.4645    
  18  Normalizat    1.8615        .24668        .30014E-03   -.68069    
  19  Prefactor     .77364        .11663        .20884E-03   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06747e-10
Minuit parameter uncertainties:
  1  5.71503
  2  2.82497
  3  3.53757e-06
  4  1.76001e-05
  5  6.04502
  6  1.94487e-07
  7  0.00014588
  8  4.20927e-05
  9  7.39008e-07
  10  4.5321
  11  15.3233
  12  3.56103e-05
  13  4.95609e-07
  14  99.1172
  15  1.95916e-07
  16  1.62522e-07
  17  31.3161
  18  0.246845
  19  0.116665
Done.

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

Extracting fit parameters...

4FGL J1419.4-0838
   Spectrum: LogParabola
286         norm:  4.538e+00  4.532e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  8.011e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  7.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.736e-01  1.167e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.862e+00  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.32
Ra Dec: 214.860 -8.642
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.22e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 9.78e-06 +/- 9.77e-06

TS (Fixed Index): 2.32
Ra Dec: 214.860 -8.642
Photon Flux Upper Limit: 8.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335767/likelihoodResults_487641601_487900801_4FGL_J1419.4-0838_daily_bin958.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) = 9238.14463001
delta logL = 0.147100660433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9238.14389771
delta logL = 0.147832955201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5376       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7433       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77124       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9238.144     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      197 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5128        4.7880        .47247E-02    .85834E-04
   2  alpha         1.7411        .60308        .43832       -.29146E-04
   3  Normalizat    1.8699        .20734        .67739E-01    .58193E-04
   4  Prefactor     .77122        .99207E-01    .43342E-01    .17052E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.51276
  alpha      = 1.74109
  Normalizat = 1.8699
  Prefactor  = 0.771216
 **********
 **   18 **HESSE 
 **********

 FCN=   9238.144     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5128        4.4781        .18899E-03   -1.5283    
   2  alpha         1.7411        .67347        .21735E-01   -.30843    
   3  Normalizat    1.8699        .24235        .29961E-03   -.67853    
   4  Prefactor     .77122        .11603        .20912E-03   -1.0080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46381e-09
Minuit parameter uncertainties:
  1  4.47848
  2  0.68278
  3  0.24251
  4  0.116067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335767': 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) = 9238.14388119
delta logL = 0.147849473755

Extracting fit parameters...

4FGL J1419.4-0838
   Spectrum: LogParabola
286         norm:  4.513e+00  4.478e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  1.741e+00  6.828e-01  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  8.011e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  7.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.712e-01  1.161e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.870e+00  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 214.860 -8.642
Photon Index (Free Index): 1.74 +/- 0.68
Photon Flux (Free Index): 1.56e-08 +/- 1.86e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.81e-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/335767/cmap_HighResolution_487641601_487900801_4FGL_J1419.4-0838_daily_bin958.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-05', comment='SUCCESS', photon_flux='2.22e-08', energy_flux2='1.43e-05', photon_flux_error='2.22e-08', dlogl='1.48e-01', energy_flux='9.78e-06', photon_flux2='1.56e-08', job_status='DONE', time_completed='2021-09-09 09:20:45.361868', photon_index_error2='0.68', photon_index2='1.74', ts='2.32', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='8.22e-08', energy_flux_error2='1.81e-05', EG='1.86', time_epoch_completed='1631204445.36', return_code='0', job_id='335767', GAL2='0.77', EG2='1.87', return_code2='0', energy_flux_error='9.77e-06', photon_flux_error2='1.86e-08', ts2='2.61', photon_index='2.14' WHERE bin_id='958' AND source_name='4FGL J1419.4-0838' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:20:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 335767: <4FGL_J1419.4-0838_daily_bin958> in cluster <slac> Done

Job <4FGL_J1419.4-0838_daily_bin958> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 09:05:35 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:05:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 09:05:36 2021
Terminated at Thu Sep  9 09:20:46 2021
Results reported at Thu Sep  9 09:20:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.4-0838_daily_bin958 214.86 -8.6417 487641601 487900801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1419.4-0838 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   664.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

