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


Performing analysis on: 4FGL_J1419.8+5423_daily_bin605
RA = 214.955, Dec = 54.3937
tmin = 396144001, tmax = 396403201
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='351094', job_status='RUN', time_executed='2021-09-09 09:55:38.530210', time_epoch_executed='1631206538.53' WHERE source_name='4FGL J1419.8+5423' and cadence='daily' and bin_id='605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351094/ft1_4FGL_J1419.8+5423_daily_bin605.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351094/ft2_4FGL_J1419.8+5423_daily_bin605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351094/ft1_4FGL_J1419.8+5423_daily_bin605.fits outfile=/scratch/kocevski/351094/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin605.fits ra=214.955 dec=54.3937 rad=12.0 tmin=396144001.0 tmax=396403201.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.27
user 3.06
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351094/ft2_4FGL_J1419.8+5423_daily_bin605.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/351094/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin605.fits evtable="EVENTS" outfile="/scratch/kocevski/351094/ft1_filtered_4FGL_J1419.8+5423_daily_bin605.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351094/ft1_filtered_4FGL_J1419.8+5423_daily_bin605.fits" evtable="EVENTS" scfile=/scratch/kocevski/351094/ft2_4FGL_J1419.8+5423_daily_bin605.fits sctable="SC_DATA" outfile=/scratch/kocevski/351094/ltcube_396144001_396403201_4FGL_J1419.8+5423_daily_bin605.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/351094/ft2_4FGL_J1419.8+5423_daily_bin605.fits
.....................!
real 12.19
user 11.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351094/ft1_filtered_4FGL_J1419.8+5423_daily_bin605.fits evtable="EVENTS" scfile=/scratch/kocevski/351094/ft2_4FGL_J1419.8+5423_daily_bin605.fits sctable="SC_DATA" expcube=/scratch/kocevski/351094/ltcube_396144001_396403201_4FGL_J1419.8+5423_daily_bin605.fits outfile=/scratch/kocevski/351094/expmap_396144001_396403201_4FGL_J1419.8+5423_daily_bin605.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/351094/ltcube_396144001_396403201_4FGL_J1419.8+5423_daily_bin605.fits
.....................!
real 190.87
user 185.24
sys 5.13

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/351094/ft1_filtered_4FGL_J1419.8+5423_daily_bin605.fits scfile=/scratch/kocevski/351094/ft2_4FGL_J1419.8+5423_daily_bin605.fits outfile=/scratch/kocevski/351094/cmap_396144001_396403201_4FGL_J1419.8+5423_daily_bin605.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351094/ft1_filtered_4FGL_J1419.8+5423_daily_bin605.fits scfile=/scratch/kocevski/351094/ft2_4FGL_J1419.8+5423_daily_bin605.fits outfile=/scratch/kocevski/351094/cmap_HighResolution_396144001_396403201_4FGL_J1419.8+5423_daily_bin605.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11692E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28283E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7098       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.170       1.0000         .10000E-03   10000.    
     9 'norm      '    11.209       1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .68228       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.250       1.0000         .10000E-03   10000.    
    13 'Prefactor '    82.680       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23144E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7996       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0226       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    62.988       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13316E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.929       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.228       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.872       1.0000         .10000E-03   10000.    
    26 'norm      '    .23299       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    15.955       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0152       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93312       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=   5922.980     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     4713 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5478        .54507E-07** at limit **
   2  norm          .10000E-03    2.8738        .89378E-07** at limit **
   3  Prefactor     .10000E-03    55.904        .34069E-06** at limit **
   4  Prefactor     .10027E-03    11.785       -.23261E-05** at limit **
   5  Prefactor     .10000E-03    16.741        .16027E-06** at limit **
   6  norm          1.7158        4.4461       -.23071E-06    .46043E-03
   7  Prefactor     .10000E-03    19.363        .76898E-07** at limit **
   8  Prefactor     46.215        35.990       -.41984E-06   -.44979E-04
   9  norm          11.208        2.4489        .30819E-07   -.25638E-04
  10  norm          .10000E-03    27.821        .22738E-07** at limit **
  11  norm          .67969        4.8571        .36307E-05    .25022E-03
  12  Prefactor     20.231        39.056        .17634E-06   -.12112E-04
  13  Prefactor     82.189        518.52       -.49994E-05   -.18087E-04
  14  Prefactor     .10000E-03    201.00       -.25557E-05** at limit **
  15  Prefactor     .10000E-03    26.810        .21073E-06** at limit **
  16  Prefactor     4.7989        4.3956        .10807E-06    .59460E-06
  17  Prefactor     .10000E-03    8.3586        .11852E-06** at limit **
  18  Prefactor     4.0193        3.2071       -.36618E-06   -.37997E-03
  19  Prefactor     .10000E-03    8.7235       -.10460E-06** at limit **
  20  Prefactor     62.979        35.694        .10294E-06   -.92622E-04
  21  Prefactor     .10000E-03    125.47        .19044E-05** at limit **
  22  Prefactor     34.893        34.212        .26747E-07   -.31015E-04
  23  Prefactor     12.222        13.239        .50002E-06   -.78745E-05
  24  Prefactor     .10000E-03    6.5415        .32832E-07** at limit **
  25  Prefactor     12.867        14.004       -.35692E-07   -.77137E-04
  26  norm          .23274        1.0446        .11781E-05    .36689E-03
  27  Prefactor     .10000E-03    5.0564        .16886E-08** at limit **
  28  Prefactor     .10000E-03    2.4147        .68710E-07** at limit **
  29  Prefactor     15.952        10.317        .34509E-06   -.55683E-04
  30  Normalizat    1.0155        .17818       -.27736E-05   -.37665E-04
  31  Prefactor     .93297        .20082        .15584E-05   -.13777E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010027
  Prefactor  = 0.0001
  norm       = 1.71578
  Prefactor  = 0.0001
  Prefactor  = 46.2149
  norm       = 11.208
  norm       = 0.0001
  norm       = 0.679693
  Prefactor  = 20.231
  Prefactor  = 82.1886
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 4.79888
  Prefactor  = 0.0001
  Prefactor  = 4.01927
  Prefactor  = 0.0001
  Prefactor  = 62.9788
  Prefactor  = 0.000100002
  Prefactor  = 34.8929
  Prefactor  = 12.2218
  Prefactor  = 0.0001
  Prefactor  = 12.8672
  norm       = 0.232736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9517
  Normalizat = 1.01554
  Prefactor  = 0.932966
 **********
 **   18 **HESSE 
 **********

 FCN=   5922.980     FROM HESSE     STATUS=OK           616 CALLS     5329 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5509        .11998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.8919        .12742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    56.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10027E-03    42.298        .43809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7158        4.0137        .22411E-03   -1.5446    
   7  Prefactor     .10000E-03    19.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     46.215        36.051        .59008E-04   -1.4347    
   9  norm          11.208        2.4505        .54340E-04   -1.5038    
  10  norm          .10000E-03    27.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .67969        5.0242        .32117E-03   -1.5543    
  12  Prefactor     20.231        39.074        .89007E-04   -1.4808    
  13  Prefactor     82.189        526.77        .22087E-03   -1.3892    
  14  Prefactor     .10000E-03    204.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.7989        4.3960        .14963E-03   -1.5270    
  17  Prefactor     .10000E-03    8.3816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0193        3.1961        .10851E-03   -1.5307    
  19  Prefactor     .10000E-03    8.7290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     62.979        35.632        .50561E-04   -1.4119    
  21  Prefactor     .10000E-03    126.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.893        34.211        .67807E-04   -1.4526    
  23  Prefactor     12.222        13.219        .11455E-03   -1.5009    
  24  Prefactor     .10000E-03    6.5460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.867        13.954        .11165E-03   -1.4990    
  26  norm          .23274        1.0499        .15268E-03   -1.5611    
  27  Prefactor     .10000E-03    5.0660        .16891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.4258        .11676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     15.952        10.349        .10027E-03   -1.4909    
  30  Normalizat    1.0155        .20094        .23100E-03   -.92511    
  31  Prefactor     .93297        .22825        .28258E-03   -.94998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7802e-09
Minuit parameter uncertainties:
  1  2.96508e-06
  2  8.25903e-06
  3  0.000107318
  4  0.00676399
  5  4.10572e-05
  6  4.01438
  7  1.95256e-05
  8  36.0684
  9  2.45055
  10  5.40278e-06
  11  3.69606
  12  39.1237
  13  421.704
  14  0.00131442
  15  6.31043e-05
  16  4.39626
  17  1.56149e-05
  18  3.19619
  19  1.4957e-06
  20  35.6441
  21  0.00103609
  22  34.2301
  23  13.2221
  24  4.32206e-06
  25  13.9577
  26  0.988448
  27  1.03921e-06
  28  2.88091e-06
  29  10.35
  30  0.201086
  31  0.22848
Done.

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

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  4.019e+00  3.196e+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:  9.330e-01  2.285e-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.016e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.75
Ra Dec: 214.955 54.394
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 4.73e-08 +/- 3.75e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.29e-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) = 5922.81971092
delta logL = 0.160217763068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5922.81263444
delta logL = 0.167294244224

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3913       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9666       1.0000          .0000       10.000    
     3 'Normalizat'    1.0326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92146       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=   5922.813     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3913        137.27        .48048E-02    .89722E-04
   2  Index         1.9666        5.2960        .19241       -.10081E-04
   3  Normalizat    1.0326        .31417        .41913E-01    .84429E-05
   4  Prefactor     .92145        .27895        .45278E-01    .12894E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39134
  Index      = 1.9666
  Normalizat = 1.03263
  Prefactor  = 0.921449
 **********
 **   18 **HESSE 
 **********

 FCN=   5922.813     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3913        3.4346        .12145E-03   -1.5289    
   2  Index         1.9666        .66327        .10050E-01   -.65188    
   3  Normalizat    1.0326        .19018        .22945E-03   -.91945    
   4  Prefactor     .92145        .22308        .28419E-03   -.95396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60226e-11
Minuit parameter uncertainties:
  1  3.4348
  2  0.666388
  3  0.190304
  4  0.223301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351094': 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) = 5922.81263441
delta logL = 0.167294266208

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  4.391e+00  3.435e+00  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  1.967e+00  6.664e-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:  9.214e-01  2.233e-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.033e+00  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.12
Ra Dec: 214.955 54.394
Photon Index (Free Index): 1.97 +/- 0.67
Photon Flux (Free Index): 3.10e-08 +/- 3.52e-08
Energy Flux (Free Index): 2.33e-05 +/- 2.73e-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/351094/cmap_HighResolution_396144001_396403201_4FGL_J1419.8+5423_daily_bin605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.73e-08', energy_flux2='2.33e-05', photon_flux_error='3.75e-08', dlogl='1.67e-01', energy_flux='1.63e-05', photon_flux2='3.10e-08', job_status='DONE', time_completed='2021-09-09 10:10:31.751690', photon_index_error2='0.67', photon_index2='1.97', ts='4.75', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.73e-05', EG='1.02', time_epoch_completed='1631207431.75', return_code='0', job_id='351094', GAL2='0.92', EG2='1.03', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.52e-08', ts2='5.12', photon_index='2.36' WHERE bin_id='605' AND source_name='4FGL J1419.8+5423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:10:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 351094: <4FGL_J1419.8+5423_daily_bin605> in cluster <slac> Done

Job <4FGL_J1419.8+5423_daily_bin605> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep  9 09:55:16 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:55:18 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:55:18 2021
Terminated at Thu Sep  9 10:10:32 2021
Results reported at Thu Sep  9 10:10:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.8+5423_daily_bin605 214.955 54.3937 396144001 396403201 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 :                                   886.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

