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


Performing analysis on: 4FGL_J1419.8+5423_daily_bin871
RA = 214.955, Dec = 54.3937
tmin = 465091201, tmax = 465350401
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='352729', job_status='RUN', time_executed='2021-09-09 10:00:53.366879', time_epoch_executed='1631206853.37' WHERE source_name='4FGL J1419.8+5423' and cadence='daily' and bin_id='871'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352729

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352729/ft1_4FGL_J1419.8+5423_daily_bin871.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352729/ft2_4FGL_J1419.8+5423_daily_bin871.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352729/ft1_4FGL_J1419.8+5423_daily_bin871.fits outfile=/scratch/kocevski/352729/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin871.fits ra=214.955 dec=54.3937 rad=12.0 tmin=465091201.0 tmax=465350401.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.40
user 3.18
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/352729/ft2_4FGL_J1419.8+5423_daily_bin871.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/352729/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin871.fits evtable="EVENTS" outfile="/scratch/kocevski/352729/ft1_filtered_4FGL_J1419.8+5423_daily_bin871.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/352729/ft1_filtered_4FGL_J1419.8+5423_daily_bin871.fits" evtable="EVENTS" scfile=/scratch/kocevski/352729/ft2_4FGL_J1419.8+5423_daily_bin871.fits sctable="SC_DATA" outfile=/scratch/kocevski/352729/ltcube_465091201_465350401_4FGL_J1419.8+5423_daily_bin871.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/352729/ft2_4FGL_J1419.8+5423_daily_bin871.fits
.....................!
real 12.10
user 11.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352729/ft1_filtered_4FGL_J1419.8+5423_daily_bin871.fits evtable="EVENTS" scfile=/scratch/kocevski/352729/ft2_4FGL_J1419.8+5423_daily_bin871.fits sctable="SC_DATA" expcube=/scratch/kocevski/352729/ltcube_465091201_465350401_4FGL_J1419.8+5423_daily_bin871.fits outfile=/scratch/kocevski/352729/expmap_465091201_465350401_4FGL_J1419.8+5423_daily_bin871.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/352729/ltcube_465091201_465350401_4FGL_J1419.8+5423_daily_bin871.fits
.....................!
real 192.84
user 188.11
sys 4.32

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/352729/ft1_filtered_4FGL_J1419.8+5423_daily_bin871.fits scfile=/scratch/kocevski/352729/ft2_4FGL_J1419.8+5423_daily_bin871.fits outfile=/scratch/kocevski/352729/cmap_465091201_465350401_4FGL_J1419.8+5423_daily_bin871.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352729/ft1_filtered_4FGL_J1419.8+5423_daily_bin871.fits scfile=/scratch/kocevski/352729/ft2_4FGL_J1419.8+5423_daily_bin871.fits outfile=/scratch/kocevski/352729/cmap_HighResolution_465091201_465350401_4FGL_J1419.8+5423_daily_bin871.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.541       1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.241       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.0084       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.879       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1162       1.0000         .10000E-03   10000.    
     9 'norm      '    7.1487       1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.846       1.0000         .10000E-03   10000.    
    13 'Prefactor '    121.00       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.200       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1082       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1736       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5303       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.475       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.107       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.024       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.9036       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.4587       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'    .98749       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .84233       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=   5457.228     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     4733 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.539        13.074        .26382E-06    .18094E-04
   2  norm          .10000E-03    10.540        .15554E-05** at limit **
   3  Prefactor     12.229        37.966       -.22425E-04   -.33914E-04
   4  Prefactor     .10000E-03    11.690        .11466E-05** at limit **
   5  Prefactor     .10000E-03    35.190        .61474E-05** at limit **
   6  norm          9.0080        4.7384        .56152E-06    .32851E-04
   7  Prefactor     11.862        50.924       -.38991E-04    .11672E-04
   8  Prefactor     9.1102        41.936       -.12022E-04    .24965E-04
   9  norm          7.1485        2.1601        .58767E-07    .50037E-04
  10  norm          .10000E-03    27.367       -.65404E-05** at limit **
  11  norm          .10000E-03    1.0707        .21290E-07** at limit **
  12  Prefactor     13.849        28.568        .35509E-05   -.42280E-05
  13  Prefactor     121.05        376.69        .44443E-04    .43714E-06
  14  Prefactor     14.240        58.634        .89640E-04    .21690E-04
  15  Prefactor     6.1025        44.009       -.19405E-04   -.41585E-04
  16  Prefactor     4.1733        5.4329        .33690E-06   -.27907E-03
  17  Prefactor     .10000E-03    10.448       -.13480E-05** at limit **
  18  Prefactor     3.5301        2.8120       -.23386E-05   -.38635E-03
  19  Prefactor     23.464        23.748       -.80035E-05    .21459E-04
  20  Prefactor     .10000E-03    29.968        .28214E-05** at limit **
  21  Prefactor     58.113        81.455        .71841E-05    .81373E-05
  22  Prefactor     .10000E-03    11.853        .41101E-06** at limit **
  23  Prefactor     37.018        24.400       -.43563E-05    .25420E-04
  24  Prefactor     .10000E-03    4.9099       -.45462E-07** at limit **
  25  Prefactor     .10000E-03    4.3280        .48277E-07** at limit **
  26  norm          1.9037        1.5613        .79129E-07   -.31531E-03
  27  Prefactor     4.4583        6.8475       -.16200E-06   -.16004E-03
  28  Prefactor     .10000E-03    2.0703        .14831E-08** at limit **
  29  Prefactor     .10000E-03    5.5983        .38965E-07** at limit **
  30  Normalizat    .98773        .17867        .78877E-05   -.46701E-03
  31  Prefactor     .84210        .20366       -.78564E-05    .34821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5394
  norm       = 0.000100003
  Prefactor  = 12.2285
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 9.00804
  Prefactor  = 11.8621
  Prefactor  = 9.11023
  norm       = 7.14849
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.8489
  Prefactor  = 121.047
  Prefactor  = 14.2404
  Prefactor  = 6.1025
  Prefactor  = 4.17332
  Prefactor  = 0.0001
  Prefactor  = 3.5301
  Prefactor  = 23.464
  Prefactor  = 0.0001
  Prefactor  = 58.1128
  Prefactor  = 0.0001
  Prefactor  = 37.0175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90368
  Prefactor  = 4.45834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.987731
  Prefactor  = 0.842098
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.228     FROM HESSE     STATUS=OK           622 CALLS     5355 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.539        13.088        .10885E-03   -1.4972    
   2  norm          .10000E-03    10.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.229        37.986        .11450E-03   -1.5008    
   4  Prefactor     .10000E-03    11.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.0080        4.7353        .11121E-03   -1.5108    
   7  Prefactor     11.862        50.929        .11623E-03   -1.5019    
   8  Prefactor     9.1102        41.977        .13274E-03   -1.5104    
   9  norm          7.1485        2.1617        .57364E-04   -1.5173    
  10  norm          .10000E-03    27.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0730        .74632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.849        28.568        .10764E-03   -1.4964    
  13  Prefactor     121.05        376.64        .18293E-03   -1.3503    
  14  Prefactor     14.240        58.422        .10629E-03   -1.4953    
  15  Prefactor     6.1025        43.620        .16245E-03   -1.5214    
  16  Prefactor     4.1733        5.4005        .18014E-03   -1.5299    
  17  Prefactor     .10000E-03    10.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5301        2.8025        .10038E-03   -1.5332    
  19  Prefactor     23.464        23.747        .82673E-04   -1.4739    
  20  Prefactor     .10000E-03    30.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     58.113        81.379        .52629E-04   -1.4182    
  22  Prefactor     .10000E-03    11.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     37.018        24.379        .65866E-04   -1.4490    
  24  Prefactor     .10000E-03    4.9110        .15987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.3327        .15007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.9037        1.5511        .79990E-04   -1.5432    
  27  Prefactor     4.4583        6.8334        .19069E-03   -1.5286    
  28  Prefactor     .10000E-03    2.1037        .10379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.7039        .17048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .98773        .21200        .22006E-03   -.93443    
  31  Prefactor     .84210        .23978        .27928E-03   -.98195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26271e-09
Minuit parameter uncertainties:
  1  13.0906
  2  0.000368258
  3  38.0609
  4  9.18521e-05
  5  0.000535576
  6  4.73547
  7  49.2288
  8  39.1564
  9  2.16168
  10  2.84191e-06
  11  3.61267e-06
  12  28.5964
  13  384.516
  14  57.7848
  15  32.6643
  16  5.40111
  17  1.97969e-05
  18  2.80263
  19  23.7566
  20  6.22447e-05
  21  81.5357
  22  3.66993e-05
  23  24.3857
  24  1.14367e-06
  25  7.28891e-06
  26  1.55109
  27  6.83458
  28  3.1507e-06
  29  4.89961e-06
  30  0.212181
  31  0.240078
Done.

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

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  3.530e+00  2.803e+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.421e-01  2.401e-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:  9.877e-01  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.04
Ra Dec: 214.955 54.394
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.13e-05

TS (Fixed Index): 3.04
Ra Dec: 214.955 54.394
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/352729/likelihoodResults_465091201_465350401_4FGL_J1419.8+5423_daily_bin871.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) = 5457.18224725
delta logL = 0.0454792684131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5457.17830413
delta logL = 0.0494223875739

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0289       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1957       1.0000          .0000       10.000    
     3 'Normalizat'    .99301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83748       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5457.178     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      268 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0287        3.3294        .10760E-03    .11763E-02
   2  Index         2.1957        .52712        .69677E-02    .17812E-03
   3  Normalizat    .99297        .19581        .21955E-03   -.91755E-04
   4  Prefactor     .83752        .23153        .28018E-03   -.90242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.02873
  Index      = 2.19574
  Normalizat = 0.992968
  Prefactor  = 0.83752
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.178     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0287        3.2777        .43040E-05   -1.5307    
   2  Index         2.1957        .51889        .27871E-03   -.59541    
   3  Normalizat    .99297        .19599        .87822E-05   -.93266    
   4  Prefactor     .83752        .23175        .11207E-04   -.98360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53162e-10
Minuit parameter uncertainties:
  1  3.27788
  2  0.520261
  3  0.196135
  4  0.232018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352729': 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) = 5457.1783041
delta logL = 0.049422412726

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  4.029e+00  3.278e+00  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  2.196e+00  5.203e-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:  8.375e-01  2.320e-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:  9.930e-01  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.14
Ra Dec: 214.955 54.394
Photon Index (Free Index): 2.20 +/- 0.52
Photon Flux (Free Index): 3.76e-08 +/- 3.16e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.63e-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/352729/cmap_HighResolution_465091201_465350401_4FGL_J1419.8+5423_daily_bin871.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.56e-03', comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='1.70e-05', photon_flux_error='3.29e-08', dlogl='4.94e-02', energy_flux='1.43e-05', photon_flux2='3.76e-08', job_status='DONE', time_completed='2021-09-09 10:16:58.299945', photon_index_error2='0.52', photon_index2='2.20', ts='3.04', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.63e-05', EG='0.99', time_epoch_completed='1631207818.3', return_code='0', job_id='352729', GAL2='0.84', EG2='0.99', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='3.16e-08', ts2='3.14', photon_index='2.36' WHERE bin_id='871' AND source_name='4FGL J1419.8+5423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 352729: <4FGL_J1419.8+5423_daily_bin871> in cluster <slac> Done

Job <4FGL_J1419.8+5423_daily_bin871> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 10:00:39 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:00:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 10:00:40 2021
Terminated at Thu Sep  9 10:16:59 2021
Results reported at Thu Sep  9 10:16:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.8+5423_daily_bin871 214.955 54.3937 465091201 465350401 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 :                                   959.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

