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


Performing analysis on: 4FGL_J1419.8+5423_daily_bin73
RA = 214.955, Dec = 54.3937
tmin = 258249601, tmax = 258508801
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='346543', job_status='RUN', time_executed='2021-09-09 09:44:05.118889', time_epoch_executed='1631205845.12' WHERE source_name='4FGL J1419.8+5423' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346543

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346543/ft1_4FGL_J1419.8+5423_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346543/ft2_4FGL_J1419.8+5423_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346543/ft1_4FGL_J1419.8+5423_daily_bin73.fits outfile=/scratch/kocevski/346543/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin73.fits ra=214.955 dec=54.3937 rad=12.0 tmin=258249601.0 tmax=258508801.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.17
user 0.99
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346543/ft1_filtered_4FGL_J1419.8+5423_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/346543/ft2_4FGL_J1419.8+5423_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/346543/ltcube_258249601_258508801_4FGL_J1419.8+5423_daily_bin73.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/346543/ft2_4FGL_J1419.8+5423_daily_bin73.fits
.....................!
real 9.47
user 9.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346543/ft1_filtered_4FGL_J1419.8+5423_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/346543/ft2_4FGL_J1419.8+5423_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/346543/ltcube_258249601_258508801_4FGL_J1419.8+5423_daily_bin73.fits outfile=/scratch/kocevski/346543/expmap_258249601_258508801_4FGL_J1419.8+5423_daily_bin73.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/346543/ltcube_258249601_258508801_4FGL_J1419.8+5423_daily_bin73.fits
.....................!
real 190.10
user 185.13
sys 4.42

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/346543/ft1_filtered_4FGL_J1419.8+5423_daily_bin73.fits scfile=/scratch/kocevski/346543/ft2_4FGL_J1419.8+5423_daily_bin73.fits outfile=/scratch/kocevski/346543/cmap_258249601_258508801_4FGL_J1419.8+5423_daily_bin73.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346543/ft1_filtered_4FGL_J1419.8+5423_daily_bin73.fits scfile=/scratch/kocevski/346543/ft2_4FGL_J1419.8+5423_daily_bin73.fits outfile=/scratch/kocevski/346543/cmap_HighResolution_258249601_258508801_4FGL_J1419.8+5423_daily_bin73.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.57
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/346543/ft1_filtered_4FGL_J1419.8+5423_daily_bin73.fits', '/scratch/kocevski/346543/ft2_4FGL_J1419.8+5423_daily_bin73.fits', expMap='/scratch/kocevski/346543/expmap_258249601_258508801_4FGL_J1419.8+5423_daily_bin73.fits', expCube='/scratch/kocevski/346543/ltcube_258249601_258508801_4FGL_J1419.8+5423_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/346543/Model_4FGL_J1419.8+5423_daily_bin73.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/346543/ft1_filtered_4FGL_J1419.8+5423_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/346543/ft2_4FGL_J1419.8+5423_daily_bin73.fits
Exposure map: /scratch/kocevski/346543/expmap_258249601_258508801_4FGL_J1419.8+5423_daily_bin73.fits
Exposure cube: /scratch/kocevski/346543/ltcube_258249601_258508801_4FGL_J1419.8+5423_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/346543/Model_4FGL_J1419.8+5423_daily_bin73.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) = 3260.83963148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.969       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .40415E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.582       1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.6425       1.0000         .10000E-03   10000.    
    12 'Prefactor '    98.527       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12798E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.961       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.929       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35775       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    92.657       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.492       1.0000         .10000E-03   10000.    
    26 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.364       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .77811       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1610       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=   3260.811     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4176 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.649       -.39961E-07** at limit **
   2  norm          .10000E-03    2.9093       -.20946E-07** at limit **
   3  Prefactor     .10000E-03    32.509        .14739E-05** at limit **
   4  Prefactor     16.896        27.305       -.16023E-06   -.88712E-04
   5  Prefactor     .10019E-03    703.73        .34179E-04** at limit **
   6  norm          .10000E-03    10.174       -.22343E-05** at limit **
   7  Prefactor     .10000E-03    28.599        .10556E-05** at limit **
   8  Prefactor     .10000E-03    19.848        .30793E-06** at limit **
   9  norm          11.582        3.8134        .24161E-06   -.30595E-03
  10  norm          .10000E-03    115.33        .45866E-06** at limit **
  11  norm          6.6441        7.3117        .29274E-05   -.95609E-04
  12  Prefactor     98.518        82.218       -.74650E-06   -.31534E-04
  13  Prefactor     .10000E-03    266.44        .12013E-05** at limit **
  14  Prefactor     .10000E-03    30.010       -.20261E-05** at limit **
  15  Prefactor     .10000E-03    66.799        .72637E-06** at limit **
  16  Prefactor     .10000E-03    9.3417        .15281E-06** at limit **
  17  Prefactor     27.957        40.860        .16531E-06    .17024E-04
  18  Prefactor     10.936        5.3653       -.20056E-06    .46874E-03
  19  Prefactor     .12108E-03    68.749       -.42388E-05** at limit **
  20  Prefactor     .10000E-03    22.173       -.49554E-07** at limit **
  21  Prefactor     92.680        111.19        .54685E-06    .41947E-04
  22  Prefactor     .10000E-03    31.874       -.60350E-06** at limit **
  23  Prefactor     .10000E-03    61.049       -.51407E-06** at limit **
  24  Prefactor     .10000E-03    19.826       -.30915E-06** at limit **
  25  Prefactor     24.480        25.223       -.37796E-06   -.14934E-04
  26  norm          .10000E-03    1.6545       -.32583E-07** at limit **
  27  Prefactor     17.369        13.498        .20104E-07    .13555E-03
  28  Prefactor     .10000E-03    2.4557        .11929E-08** at limit **
  29  Prefactor     .10000E-03    3.2528        .27063E-07** at limit **
  30  Normalizat    .77813        .25037        .98182E-06    .11022E-03
  31  Prefactor     1.1612        .26242       -.82206E-06    .12323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.8959
  Prefactor  = 0.000100187
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5815
  norm       = 0.0001
  norm       = 6.64415
  Prefactor  = 98.5185
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.9569
  Prefactor  = 10.9357
  Prefactor  = 0.000121079
  Prefactor  = 0.0001
  Prefactor  = 92.6799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4795
  norm       = 0.0001
  Prefactor  = 17.3694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.778129
  Prefactor  = 1.16118
 **********
 **   18 **HESSE 
 **********

 FCN=   3260.811     FROM HESSE     STATUS=OK           612 CALLS     4788 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.9106        .95125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.896        27.345        .97228E-04   -1.4886    
   5  Prefactor     .10019E-03    758.43        .38963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.402        .35154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.582        3.8080        .60668E-04   -1.5027    
  10  norm          .10000E-03    115.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.6441        7.4790        .77849E-03   -1.5192    
  12  Prefactor     98.518        82.342        .20249E-03   -1.3720    
  13  Prefactor     .10000E-03    266.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    66.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.4003        .17017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.957        41.295        .75764E-04   -1.4650    
  18  Prefactor     10.936        5.3612        .85788E-04   -1.5046    
  19  Prefactor     .12108E-03    84.022        .11026       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     92.680        111.10        .41749E-04   -1.3780    
  22  Prefactor     .10000E-03    31.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    61.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     24.480        24.724        .80942E-04   -1.4718    
  26  norm          .10000E-03    2.6475        .13911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.369        13.504        .96116E-04   -1.4874    
  28  Prefactor     .10000E-03    2.4579        .87388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.2563        .10057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .77813        .29299        .26772E-03   -1.0089    
  31  Prefactor     1.1612        .30573        .25991E-03   -.87534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81991e-10
Minuit parameter uncertainties:
  1  2.04067e-05
  2  1.45942e-06
  3  0.00029226
  4  27.3656
  5  0.0241512
  6  1.16525e-05
  7  0.000224595
  8  4.82897e-05
  9  3.8081
  10  0.000140212
  11  7.48009
  12  82.438
  13  0.000746852
  14  0.000431031
  15  0.000137631
  16  1.13412e-05
  17  41.3375
  18  5.36147
  19  0.084287
  20  1.13308e-05
  21  111.351
  22  0.000119943
  23  0.000202074
  24  5.43552e-05
  25  24.7341
  26  1.48433e-05
  27  13.5067
  28  2.12845e-07
  29  2.81827e-07
  30  0.293585
  31  0.306192
Done.

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

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  1.094e+01  5.361e+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:  1.161e+00  3.062e-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:  7.781e-01  2.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.31
Ra Dec: 214.955 54.394
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 6.30e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 2.17e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3260.43600531
delta logL = 0.375150237738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3260.35826067
delta logL = 0.452894880855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.281       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9652       1.0000          .0000       10.000    
     3 'Normalizat'    .81969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1294       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=   3260.358     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.286        8.1936        .27478E-02   -.81546E-05
   2  Index         1.9645        .46962        .11990        .32384E-05
   3  Normalizat    .82032        .22612        .43867E-01    .78550E-05
   4  Prefactor     1.1290        .26013        .59449E-01    .15732E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2856
  Index      = 1.96451
  Normalizat = 0.820319
  Prefactor  = 1.12901
 **********
 **   18 **HESSE 
 **********

 FCN=   3260.358     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.286        6.4537        .96670E-04   -1.4979    
   2  Index         1.9645        .38875        .50013E-02   -.65240    
   3  Normalizat    .82032        .25899        .26136E-03   -.99319    
   4  Prefactor     1.1290        .29941        .26290E-03   -.88545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85405e-12
Minuit parameter uncertainties:
  1  6.45399
  2  0.38937
  3  0.259385
  4  0.299856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346543': 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) = 3260.35825528
delta logL = 0.452900266269

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  1.329e+01  6.454e+00  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  1.965e+00  3.894e-01  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:  1.129e+00  2.999e-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:  8.203e-01  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.22
Ra Dec: 214.955 54.394
Photon Index (Free Index): 1.96 +/- 0.39
Photon Flux (Free Index): 9.35e-08 +/- 5.64e-08
Energy Flux (Free Index): 7.06e-05 +/- 5.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/346543/cmap_HighResolution_258249601_258508801_4FGL_J1419.8+5423_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='7.06e-05', photon_flux_error='6.30e-08', dlogl='4.53e-01', energy_flux='4.42e-05', photon_flux2='9.35e-08', job_status='DONE', time_completed='2021-09-09 09:53:55.059581', photon_index_error2='0.39', photon_index2='1.96', ts='12.31', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='5.62e-05', EG='0.78', time_epoch_completed='1631206435.06', return_code='0', job_id='346543', GAL2='1.13', EG2='0.82', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='5.64e-08', ts2='13.22', photon_index='2.36' WHERE bin_id='73' AND source_name='4FGL J1419.8+5423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:53:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 346543: <4FGL_J1419.8+5423_daily_bin73> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.8+5423_daily_bin73 214.955 54.3937 258249601 258508801 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 :                                   590.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            773 sec.

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

