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


Performing analysis on: 4FGL_J1419.8+5423_daily_bin66
RA = 214.955, Dec = 54.3937
tmin = 256435201, tmax = 256694401
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='346536', job_status='RUN', time_executed='2021-09-09 09:41:17.091344', time_epoch_executed='1631205677.09' WHERE source_name='4FGL J1419.8+5423' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346536

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346536/ft1_4FGL_J1419.8+5423_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346536/ft2_4FGL_J1419.8+5423_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346536/ft1_4FGL_J1419.8+5423_daily_bin66.fits outfile=/scratch/kocevski/346536/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin66.fits ra=214.955 dec=54.3937 rad=12.0 tmin=256435201.0 tmax=256694401.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.44
user 1.25
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/346536/ft2_4FGL_J1419.8+5423_daily_bin66.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346536/ft2_4FGL_J1419.8+5423_daily_bin66.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/346536/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin66.fits evtable="EVENTS" outfile="/scratch/kocevski/346536/ft1_filtered_4FGL_J1419.8+5423_daily_bin66.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346536/ft1_filtered_4FGL_J1419.8+5423_daily_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/346536/ft2_4FGL_J1419.8+5423_daily_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/346536/ltcube_256435201_256694401_4FGL_J1419.8+5423_daily_bin66.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/346536/ft2_4FGL_J1419.8+5423_daily_bin66.fits
.....................!
real 12.64
user 12.26
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346536/ft1_filtered_4FGL_J1419.8+5423_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/346536/ft2_4FGL_J1419.8+5423_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/346536/ltcube_256435201_256694401_4FGL_J1419.8+5423_daily_bin66.fits outfile=/scratch/kocevski/346536/expmap_256435201_256694401_4FGL_J1419.8+5423_daily_bin66.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/346536/ltcube_256435201_256694401_4FGL_J1419.8+5423_daily_bin66.fits
.....................!
real 191.21
user 184.90
sys 5.90

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

Setting source of interest to:
4FGL J1419.8+5423 @ 214.955 54.3937

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/346536/ft1_filtered_4FGL_J1419.8+5423_daily_bin66.fits scfile=/scratch/kocevski/346536/ft2_4FGL_J1419.8+5423_daily_bin66.fits outfile=/scratch/kocevski/346536/cmap_256435201_256694401_4FGL_J1419.8+5423_daily_bin66.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.955 yref=54.3937 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346536/ft1_filtered_4FGL_J1419.8+5423_daily_bin66.fits scfile=/scratch/kocevski/346536/ft2_4FGL_J1419.8+5423_daily_bin66.fits outfile=/scratch/kocevski/346536/cmap_HighResolution_256435201_256694401_4FGL_J1419.8+5423_daily_bin66.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.955 yref=54.3937 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/346536/ft1_filtered_4FGL_J1419.8+5423_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/346536/ft2_4FGL_J1419.8+5423_daily_bin66.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/346536/Model_4FGL_J1419.8+5423_daily_bin66.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/346536/ft1_filtered_4FGL_J1419.8+5423_daily_bin66.fits.....................!
real 55.94
user 54.55
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/346536/ft1_filtered_4FGL_J1419.8+5423_daily_bin66.fits', '/scratch/kocevski/346536/ft2_4FGL_J1419.8+5423_daily_bin66.fits', expMap='/scratch/kocevski/346536/expmap_256435201_256694401_4FGL_J1419.8+5423_daily_bin66.fits', expCube='/scratch/kocevski/346536/ltcube_256435201_256694401_4FGL_J1419.8+5423_daily_bin66.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/346536/Model_4FGL_J1419.8+5423_daily_bin66.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1419.8+5423'

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  2.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  2.365e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  8.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/346536/ft1_filtered_4FGL_J1419.8+5423_daily_bin66.fits
Spacecraft file(s): /scratch/kocevski/346536/ft2_4FGL_J1419.8+5423_daily_bin66.fits
Exposure map: /scratch/kocevski/346536/expmap_256435201_256694401_4FGL_J1419.8+5423_daily_bin66.fits
Exposure cube: /scratch/kocevski/346536/ltcube_256435201_256694401_4FGL_J1419.8+5423_daily_bin66.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/346536/Model_4FGL_J1419.8+5423_daily_bin66.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) = 6716.70419863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2081       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4346       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.6668       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.481       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6299       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8364       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.151       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.615       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.6141       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.209       1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.517       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0934       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .88859       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6716.651     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     3476 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5264        .30252E-07** at limit **
   2  norm          1.2075        7.5008        .10873E-05   -.95242E-04
   3  Prefactor     .10000E-03    11.918        .38912E-06** at limit **
   4  Prefactor     8.4366        16.692        .33108E-06   -.40200E-04
   5  Prefactor     .10000E-03    9.9895       -.27501E-06** at limit **
   6  norm          1.6663        4.4159       -.19667E-06   -.33674E-03
   7  Prefactor     .10000E-03    23.420        .87942E-06** at limit **
   8  Prefactor     .10000E-03    20.490        .19075E-06** at limit **
   9  norm          .10000E-03    .52640       -.14487E-07** at limit **
  10  norm          .10000E-03    29.500       -.96213E-06** at limit **
  11  norm          .10000E-03    1.5019       -.76636E-08** at limit **
  12  Prefactor     .10000E-03    16.282       -.89617E-06** at limit **
  13  Prefactor     .10000E-03    147.61        .62397E-06** at limit **
  14  Prefactor     .10000E-03    13.853       -.12214E-06** at limit **
  15  Prefactor     30.476        27.430       -.22208E-06   -.35041E-04
  16  Prefactor     .10000E-03    1.8403        .25746E-07** at limit **
  17  Prefactor     1.6308        30.662        .13104E-04   -.16896E-04
  18  Prefactor     2.8358        2.3106        .41097E-07   -.15018E-03
  19  Prefactor     .10000E-03    6.6052        .29189E-06** at limit **
  20  Prefactor     17.149        19.499       -.45931E-08   -.55566E-04
  21  Prefactor     44.618        41.659       -.56470E-06   -.78555E-04
  22  Prefactor     .10000E-03    6.7520       -.23684E-06** at limit **
  23  Prefactor     .10000E-03    7.3538        .43184E-06** at limit **
  24  Prefactor     .10000E-03    8.3671       -.21123E-06** at limit **
  25  Prefactor     .10000E-03    20.237        .24211E-06** at limit **
  26  norm          .10000E-03    .59807        .54276E-08** at limit **
  27  Prefactor     4.6139        6.2616        .77393E-07   -.16767E-04
  28  Prefactor     10.208        6.4064       -.33626E-07   -.20492E-03
  29  Prefactor     13.517        7.1762        .93705E-07   -.35301E-04
  30  Normalizat    1.0935        .15887       -.11756E-05   -.24368E-03
  31  Prefactor     .88853        .17833        .22502E-06   -.21420E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.20752
  Prefactor  = 0.0001
  Prefactor  = 8.43661
  Prefactor  = 0.0001
  norm       = 1.66628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.4763
  Prefactor  = 0.0001
  Prefactor  = 1.63083
  Prefactor  = 2.83584
  Prefactor  = 0.0001
  Prefactor  = 17.1492
  Prefactor  = 44.6182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.61388
  Prefactor  = 10.2083
  Prefactor  = 13.5169
  Normalizat = 1.0935
  Prefactor  = 0.888526
 **********
 **   18 **HESSE 
 **********

 FCN=   6716.651     FROM HESSE     STATUS=OK           612 CALLS     4088 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2075        7.5640        .41197E-03   -1.5488    
   3  Prefactor     .10000E-03    11.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4366        16.128        .13803E-03   -1.5127    
   5  Prefactor     .10000E-03    10.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6663        4.2594        .22030E-03   -1.5450    
   7  Prefactor     .10000E-03    23.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .55016        .11604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    29.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5140        .98047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    147.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.476        27.430        .72572E-04   -1.4603    
  16  Prefactor     .10000E-03    1.8580        .10855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6308        30.706        .16562E-02   -1.5453    
  18  Prefactor     2.8358        2.3069        .10337E-03   -1.5371    
  19  Prefactor     .10000E-03    6.6103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.149        19.470        .96712E-04   -1.4879    
  21  Prefactor     44.618        41.709        .60023E-04   -1.4371    
  22  Prefactor     .10000E-03    6.7522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.3922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.3838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .61907        .12369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.6139        6.2478        .18738E-03   -1.5278    
  28  Prefactor     10.208        6.4018        .12540E-03   -1.5069    
  29  Prefactor     13.517        7.1863        .10894E-03   -1.4972    
  30  Normalizat    1.0935        .18478        .21329E-03   -.89961    
  31  Prefactor     .88853        .20756        .27344E-03   -.96543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03062e-10
Minuit parameter uncertainties:
  1  4.73751e-05
  2  6.04527
  3  6.05671e-05
  4  16.136
  5  1.81708e-05
  6  4.26022
  7  4.18281e-05
  8  1.04039e-05
  9  7.05595e-07
  10  1.25612e-05
  11  5.67508e-07
  12  1.45595e-05
  13  1.63276e-05
  14  3.91534e-06
  15  27.4412
  16  1.20349e-06
  17  14.1608
  18  2.30702
  19  4.98481e-08
  20  19.4776
  21  41.7366
  22  2.15767e-06
  23  9.39273e-06
  24  5.94076e-06
  25  4.9725e-06
  26  5.25726e-07
  27  6.24868
  28  6.40227
  29  7.18674
  30  0.184888
  31  0.207744
Done.

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

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  2.836e+00  2.307e+00  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  2.365e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  8.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  8.885e-01  2.077e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.093e+00  1.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.46
Ra Dec: 214.955 54.394
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 9.33e-06

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) = 6716.65069772
delta logL = 7.94309362391e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6716.65069046
delta logL = 8.66962109285e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8359       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3503       1.0000          .0000       10.000    
     3 'Normalizat'    1.0944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88789       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6716.651     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      188 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8363        43.781        .60369E-02    .53779E-04
   2  Index         2.3485        6.1215        .24100        .39456E-06
   3  Normalizat    1.0944        .62122E-01    .38233E-01   -.12520E-03
   4  Prefactor     .88793        .54408E-01    .44850E-01   -.27313E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.83626
  Index      = 2.34849
  Normalizat = 1.09441
  Prefactor  = 0.887925
 **********
 **   18 **HESSE 
 **********

 FCN=   6716.651     FROM HESSE     STATUS=OK            31 CALLS      219 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8363        2.2342        .10418E-03   -1.5371    
   2  Index         2.3485        1.2083        .95316E-02   -.55896    
   3  Normalizat    1.0944        .19010        .21322E-03   -.89932    
   4  Prefactor     .88793        .21131        .27353E-03   -.96564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64191e-11
Minuit parameter uncertainties:
  1  2.2343
  2  1.22531
  3  0.190218
  4  0.211505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346536': 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) = 6716.65068922
delta logL = 8.7932513452e-05

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  2.836e+00  2.234e+00  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  2.348e+00  1.225e+00  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  8.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  8.879e-01  2.115e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.094e+00  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.47
Ra Dec: 214.955 54.394
Photon Index (Free Index): 2.35 +/- 1.23
Photon Flux (Free Index): 3.26e-08 +/- 6.02e-08
Energy Flux (Free Index): 1.15e-05 +/- 9.09e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/346536/cmap_HighResolution_256435201_256694401_4FGL_J1419.8+5423_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='1.15e-05', photon_flux_error='2.71e-08', dlogl='8.79e-05', energy_flux='1.15e-05', photon_flux2='3.26e-08', job_status='DONE', time_completed='2021-09-09 09:54:50.343406', photon_index_error2='1.23', photon_index2='2.35', ts='5.46', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='9.09e-06', EG='1.09', time_epoch_completed='1631206490.34', return_code='0', job_id='346536', GAL2='0.89', EG2='1.09', return_code2='0', energy_flux_error='9.33e-06', photon_flux_error2='6.02e-08', ts2='5.47', photon_index='2.36' WHERE bin_id='66' AND source_name='4FGL J1419.8+5423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:54:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 346536: <4FGL_J1419.8+5423_daily_bin66> in cluster <slac> Done

Job <4FGL_J1419.8+5423_daily_bin66> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 09:41:01 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:41:02 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:41:02 2021
Terminated at Thu Sep  9 09:54:51 2021
Results reported at Thu Sep  9 09:54:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.8+5423_daily_bin66 214.955 54.3937 256435201 256694401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1419.8+5423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   809.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

