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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin598
RA = 214.894, Dec = 38.3657
tmin = 394329601, tmax = 394588801
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='341662', job_status='RUN', time_executed='2021-09-09 09:25:48.724131', time_epoch_executed='1631204748.72' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341662

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341662/ft1_4FGL_J1419.5+3821_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341662/ft2_4FGL_J1419.5+3821_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341662/ft1_4FGL_J1419.5+3821_daily_bin598.fits outfile=/scratch/kocevski/341662/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin598.fits ra=214.894 dec=38.3657 rad=12.0 tmin=394329601.0 tmax=394588801.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 7.50
user 7.19
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/341662/ft2_4FGL_J1419.5+3821_daily_bin598.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341662/ft2_4FGL_J1419.5+3821_daily_bin598.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/341662/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/341662/ft1_filtered_4FGL_J1419.5+3821_daily_bin598.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341662/ft1_filtered_4FGL_J1419.5+3821_daily_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/341662/ft2_4FGL_J1419.5+3821_daily_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/341662/ltcube_394329601_394588801_4FGL_J1419.5+3821_daily_bin598.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/341662/ft2_4FGL_J1419.5+3821_daily_bin598.fits
.....................!
real 11.57
user 11.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341662/ft1_filtered_4FGL_J1419.5+3821_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/341662/ft2_4FGL_J1419.5+3821_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/341662/ltcube_394329601_394588801_4FGL_J1419.5+3821_daily_bin598.fits outfile=/scratch/kocevski/341662/expmap_394329601_394588801_4FGL_J1419.5+3821_daily_bin598.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/341662/ltcube_394329601_394588801_4FGL_J1419.5+3821_daily_bin598.fits
.....................!
real 191.37
user 186.46
sys 4.53

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

Setting source of interest to:
4FGL J1419.5+3821 @ 214.894 38.3657

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/341662/ft1_filtered_4FGL_J1419.5+3821_daily_bin598.fits scfile=/scratch/kocevski/341662/ft2_4FGL_J1419.5+3821_daily_bin598.fits outfile=/scratch/kocevski/341662/cmap_394329601_394588801_4FGL_J1419.5+3821_daily_bin598.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.894 yref=38.3657 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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341662/ft1_filtered_4FGL_J1419.5+3821_daily_bin598.fits scfile=/scratch/kocevski/341662/ft2_4FGL_J1419.5+3821_daily_bin598.fits outfile=/scratch/kocevski/341662/cmap_HighResolution_394329601_394588801_4FGL_J1419.5+3821_daily_bin598.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.894 yref=38.3657 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/341662/ft1_filtered_4FGL_J1419.5+3821_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/341662/ft2_4FGL_J1419.5+3821_daily_bin598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/341662/Model_4FGL_J1419.5+3821_daily_bin598.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/341662/ft1_filtered_4FGL_J1419.5+3821_daily_bin598.fits.....................!
real 40.97
user 39.71
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/341662/ft1_filtered_4FGL_J1419.5+3821_daily_bin598.fits', '/scratch/kocevski/341662/ft2_4FGL_J1419.5+3821_daily_bin598.fits', expMap='/scratch/kocevski/341662/expmap_394329601_394588801_4FGL_J1419.5+3821_daily_bin598.fits', expCube='/scratch/kocevski/341662/ltcube_394329601_394588801_4FGL_J1419.5+3821_daily_bin598.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/341662/Model_4FGL_J1419.5+3821_daily_bin598.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1419.5+3821'

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  4.993e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/341662/ft1_filtered_4FGL_J1419.5+3821_daily_bin598.fits
Spacecraft file(s): /scratch/kocevski/341662/ft2_4FGL_J1419.5+3821_daily_bin598.fits
Exposure map: /scratch/kocevski/341662/expmap_394329601_394588801_4FGL_J1419.5+3821_daily_bin598.fits
Exposure cube: /scratch/kocevski/341662/ltcube_394329601_394588801_4FGL_J1419.5+3821_daily_bin598.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/341662/Model_4FGL_J1419.5+3821_daily_bin598.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) = 5028.80833925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.5219       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .85912       1.0000         .10000E-03   10000.    
     5 'norm      '    14.420       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5196       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.699       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.555       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.400       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    128.06       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.1574       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30901       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.4602       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.397       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92257       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1191       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5028.682     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3165 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.621       -.17421E-05** at limit **
   2  Prefactor     .10000E-03    24.796        .72584E-06** at limit **
   3  norm          5.5228        2.1654        .34238E-07   -.30917E-05
   4  Prefactor     .85878        5.2383        .55421E-06   -.12297E-03
   5  norm          14.422        14.245       -.78728E-07    .30634E-05
   6  Prefactor     1.5271        52.978        .12192E-04   -.14001E-04
   7  Prefactor     10.791        61.857       -.18938E-04   -.25970E-04
   8  Prefactor     .10000E-03    1.8887        .47268E-06** at limit **
   9  Prefactor     .10000E-03    42.712        .39600E-05** at limit **
  10  norm          .10000E-03    1.4444       -.10478E-06** at limit **
  11  Prefactor     17.539        29.638        .26810E-06    .46122E-04
  12  Prefactor     12.407        28.434       -.12715E-05    .12841E-04
  13  Prefactor     .10000E-03    1.6016       -.10775E-06** at limit **
  14  norm          .10000E-03    15.580       -.64159E-06** at limit **
  15  Prefactor     .10000E-03    32.215       -.92897E-06** at limit **
  16  norm          .10000E-03    6.9681        .16587E-08** at limit **
  17  Prefactor     128.06        72.482       -.14278E-06    .21874E-04
  18  Prefactor     .10000E-03    118.06        .31516E-05** at limit **
  19  norm          4.1216        12.279        .19076E-05    .10091E-03
  20  Prefactor     .50814        14.319       -.24906E-05    .25713E-03
  21  Prefactor     .10000E-03    4.6630        .27994E-07** at limit **
  22  norm          1.4593        1.8593       -.26834E-07    .20380E-03
  23  Prefactor     11.399        11.898        .15107E-06    .10687E-04
  24  Prefactor     .10000E-03    81.521       -.44349E-05** at limit **
  25  Normalizat    .92229        .20537       -.70014E-06    .75447E-04
  26  Prefactor     1.1192        .22053        .12115E-05    .76838E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.52279
  Prefactor  = 0.85878
  norm       = 14.4219
  Prefactor  = 1.5271
  Prefactor  = 10.7913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.5388
  Prefactor  = 12.4072
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 128.062
  Prefactor  = 0.0001
  norm       = 4.12158
  Prefactor  = 0.508143
  Prefactor  = 0.0001
  norm       = 1.45927
  Prefactor  = 11.3992
  Prefactor  = 0.0001
  Normalizat = 0.922291
  Prefactor  = 1.11921
 **********
 **   18 **HESSE 
 **********

 FCN=   5028.682     FROM HESSE     STATUS=OK           460 CALLS     3625 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.5228        2.1675        .62022E-04   -1.5238    
   4  Prefactor     .85878        9.8872        .29156E-02   -1.5523    
   5  norm          14.422        14.243        .10548E-03   -1.4948    
   6  Prefactor     1.5271        53.625        .17332E-02   -1.5461    
   7  Prefactor     10.791        62.360        .12249E-03   -1.5051    
   8  Prefactor     .10000E-03    1.8994        .95305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.531        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4483        .83214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.539        29.452        .95592E-04   -1.4870    
  12  Prefactor     12.407        28.143        .11376E-03   -1.5003    
  13  Prefactor     .10000E-03    1.6130        .87619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    15.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.0283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     128.06        72.415        .35576E-04   -1.3440    
  18  Prefactor     .10000E-03    119.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.1216        12.354        .98838E-03   -1.5302    
  20  Prefactor     .50814        115.78        .46597E-02   -1.5565    
  21  Prefactor     .10000E-03    4.6796        .14940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4593        1.8271        .10265E-03   -1.5466    
  23  Prefactor     11.399        11.896        .59334E-03   -1.5033    
  24  Prefactor     .10000E-03    81.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .92229        .24933        .24727E-03   -.95681    
  26  Prefactor     1.1192        .27170        .25998E-03   -.88855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57503e-08
Minuit parameter uncertainties:
  1  2.06832e-05
  2  3.44063e-06
  3  2.16757
  4  5.82871
  5  14.2459
  6  18.1157
  7  51.9643
  8  2.21828e-05
  9  0.000120273
  10  4.01554e-06
  11  29.4759
  12  28.1731
  13  3.3965e-06
  14  6.67499e-05
  15  2.12423e-05
  16  7.03487e-06
  17  72.4649
  18  0.000246841
  19  12.3614
  20  15.3694
  21  3.66556e-06
  22  1.82718
  23  11.8988
  24  4.76126e-05
  25  0.24964
  26  0.272033
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.754e+01  2.948e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.119e+00  2.720e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  9.223e-01  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.96
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341662/likelihoodResults_394329601_394588801_4FGL_J1419.5+3821_daily_bin598.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) = 5028.49105106
delta logL = 0.190874463826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5028.48562136
delta logL = 0.196304158303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.187       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9468       1.0000          .0000       10.000    
     3 'Normalizat'    .89493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1399       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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=   5028.486     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      293 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.178        20.176        .11978E-03    .49345E-03
   2  Index         2.9463        .93173        .58722E-02    .17344E-03
   3  Normalizat    .89532        .23973        .25045E-03   -.20002E-02
   4  Prefactor     1.1399        .26975        .25787E-03   -.18127E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1779
  Index      = 2.94629
  Normalizat = 0.895318
  Prefactor  = 1.13987
 **********
 **   18 **HESSE 
 **********

 FCN=   5028.486     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.178        17.119        .47912E-05   -1.5039    
   2  Index         2.9463        .79078        .23489E-03   -.42327    
   3  Normalizat    .89532        .23997        .50090E-04   -.96625    
   4  Prefactor     1.1399        .26981        .51574E-04   -.88202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80484e-09
Minuit parameter uncertainties:
  1  17.1265
  2  0.794801
  3  0.240258
  4  0.270134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341662': 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) = 5028.48561532
delta logL = 0.196310205226

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.118e+01  1.713e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.946e+00  7.948e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.140e+00  2.701e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  8.953e-01  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 214.894 38.366
Photon Index (Free Index): 2.95 +/- 0.79
Photon Flux (Free Index): 6.55e-08 +/- 6.43e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.28e-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/341662/cmap_HighResolution_394329601_394588801_4FGL_J1419.5+3821_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='1.34e-05', dlogl='1.96e-01', photon_flux2='6.55e-08', job_status='DONE', time_completed='2021-09-09 09:37:51.793017', photon_index_error2='0.79', photon_index2='2.95', ts='0.96', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.28e-05', EG='0.92', time_epoch_completed='1631205471.79', return_code='0', job_id='341662', GAL2='1.14', EG2='0.90', return_code2='0', photon_flux_error2='6.43e-08', ts2='1.40', photon_index='2.47' WHERE bin_id='598' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:37:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 341662: <4FGL_J1419.5+3821_daily_bin598> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin598> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 09:25:32 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:25:33 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:25:33 2021
Terminated at Thu Sep  9 09:37:52 2021
Results reported at Thu Sep  9 09:37:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin598 214.894 38.3657 394329601 394588801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1419.5+3821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   661.11 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 :                                   739 sec.
    Turnaround time :                            740 sec.

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

