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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin304
RA = 214.894, Dec = 38.3657
tmin = 318124801, tmax = 318384001
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='340216', job_status='RUN', time_executed='2021-09-09 09:20:48.412539', time_epoch_executed='1631204448.41' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340216

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340216/ft1_4FGL_J1419.5+3821_daily_bin304.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340216/ft2_4FGL_J1419.5+3821_daily_bin304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340216/ft1_4FGL_J1419.5+3821_daily_bin304.fits outfile=/scratch/kocevski/340216/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin304.fits ra=214.894 dec=38.3657 rad=12.0 tmin=318124801.0 tmax=318384001.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.41
user 3.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/340216/ft2_4FGL_J1419.5+3821_daily_bin304.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/340216/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin304.fits evtable="EVENTS" outfile="/scratch/kocevski/340216/ft1_filtered_4FGL_J1419.5+3821_daily_bin304.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/340216/ft1_filtered_4FGL_J1419.5+3821_daily_bin304.fits" evtable="EVENTS" scfile=/scratch/kocevski/340216/ft2_4FGL_J1419.5+3821_daily_bin304.fits sctable="SC_DATA" outfile=/scratch/kocevski/340216/ltcube_318124801_318384001_4FGL_J1419.5+3821_daily_bin304.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/340216/ft2_4FGL_J1419.5+3821_daily_bin304.fits
.....................!
real 11.83
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340216/ft1_filtered_4FGL_J1419.5+3821_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/340216/ft2_4FGL_J1419.5+3821_daily_bin304.fits sctable="SC_DATA" expcube=/scratch/kocevski/340216/ltcube_318124801_318384001_4FGL_J1419.5+3821_daily_bin304.fits outfile=/scratch/kocevski/340216/expmap_318124801_318384001_4FGL_J1419.5+3821_daily_bin304.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/340216/ltcube_318124801_318384001_4FGL_J1419.5+3821_daily_bin304.fits
.....................!
real 191.63
user 186.66
sys 4.47

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/340216/ft1_filtered_4FGL_J1419.5+3821_daily_bin304.fits scfile=/scratch/kocevski/340216/ft2_4FGL_J1419.5+3821_daily_bin304.fits outfile=/scratch/kocevski/340216/cmap_318124801_318384001_4FGL_J1419.5+3821_daily_bin304.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/340216/ft1_filtered_4FGL_J1419.5+3821_daily_bin304.fits scfile=/scratch/kocevski/340216/ft2_4FGL_J1419.5+3821_daily_bin304.fits outfile=/scratch/kocevski/340216/cmap_HighResolution_318124801_318384001_4FGL_J1419.5+3821_daily_bin304.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/340216/ft1_filtered_4FGL_J1419.5+3821_daily_bin304.fits', '/scratch/kocevski/340216/ft2_4FGL_J1419.5+3821_daily_bin304.fits', expMap='/scratch/kocevski/340216/expmap_318124801_318384001_4FGL_J1419.5+3821_daily_bin304.fits', expCube='/scratch/kocevski/340216/ltcube_318124801_318384001_4FGL_J1419.5+3821_daily_bin304.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/340216/Model_4FGL_J1419.5+3821_daily_bin304.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/340216/ft1_filtered_4FGL_J1419.5+3821_daily_bin304.fits
Spacecraft file(s): /scratch/kocevski/340216/ft2_4FGL_J1419.5+3821_daily_bin304.fits
Exposure map: /scratch/kocevski/340216/expmap_318124801_318384001_4FGL_J1419.5+3821_daily_bin304.fits
Exposure cube: /scratch/kocevski/340216/ltcube_318124801_318384001_4FGL_J1419.5+3821_daily_bin304.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/340216/Model_4FGL_J1419.5+3821_daily_bin304.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) = 5382.73020967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.0770       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0475       1.0000         .10000E-03   10000.    
     5 'norm      '    5.2536       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7707       1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1084       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.287       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8150       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.622       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .51381       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8208       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.083       1.0000         .10000E-03   10000.    
    16 'norm      '    10.383       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.956       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.563       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1631       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    68.073       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89928       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0431       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=   5382.712     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3098 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.446        .63715E-06** at limit **
   2  Prefactor     .10000E-03    15.842        .56443E-07** at limit **
   3  norm          4.0771        1.7336       -.17934E-07   -.97422E-04
   4  Prefactor     3.0479        3.7703        .35329E-06    .31334E-04
   5  norm          5.2540        10.962        .38445E-05   -.99246E-04
   6  Prefactor     7.7703        11.601       -.50784E-07   -.57267E-05
   7  Prefactor     50.861        86.151        .59546E-05    .10273E-03
   8  Prefactor     1.1078        7.6854        .18440E-05   -.15378E-03
   9  Prefactor     14.289        20.552       -.15477E-05   -.43872E-04
  10  norm          2.8154        3.6464        .32069E-06    .36524E-04
  11  Prefactor     16.623        14.828       -.51775E-07   -.53427E-04
  12  Prefactor     .51737        11.984        .42785E-06   -.93642E-04
  13  Prefactor     5.8211        3.9500       -.69177E-08   -.97593E-04
  14  norm          .10000E-03    31.619        .73817E-06** at limit **
  15  Prefactor     18.077        21.936       -.61202E-06   -.54518E-04
  16  norm          10.383        8.5940        .22482E-06   -.16369E-04
  17  Prefactor     21.954        51.127       -.37988E-06   -.11046E-04
  18  Prefactor     34.557        32.112       -.11535E-05   -.82007E-04
  19  norm          5.1628        6.5427       -.10236E-06   -.23742E-04
  20  Prefactor     .10000E-03    3.5493       -.35003E-07** at limit **
  21  Prefactor     .10000E-03    1.9701       -.24616E-07** at limit **
  22  norm          .10000E-03    .56890       -.99607E-07** at limit **
  23  Prefactor     .10000E-03    9.1259        .58369E-08** at limit **
  24  Prefactor     68.048        73.738       -.68197E-05   -.13492E-03
  25  Normalizat    .89902        .18520       -.22670E-05    .22688E-04
  26  Prefactor     1.0435        .21243        .16923E-05   -.14834E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.07709
  Prefactor  = 3.04787
  norm       = 5.25403
  Prefactor  = 7.77026
  Prefactor  = 50.8609
  Prefactor  = 1.10784
  Prefactor  = 14.2894
  norm       = 2.81539
  Prefactor  = 16.6226
  Prefactor  = 0.51737
  Prefactor  = 5.82108
  norm       = 0.0001
  Prefactor  = 18.0774
  norm       = 10.3832
  Prefactor  = 21.9544
  Prefactor  = 34.5573
  norm       = 5.16281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.048
  Normalizat = 0.89902
  Prefactor  = 1.04347
 **********
 **   18 **HESSE 
 **********

 FCN=   5382.712     FROM HESSE     STATUS=OK           464 CALLS     3562 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.0771        1.7337        .60454E-04   -1.5304    
   4  Prefactor     3.0479        3.7663        .15124E-03   -1.5359    
   5  norm          5.2540        11.291        .87683E-03   -1.5249    
   6  Prefactor     7.7703        11.591        .14385E-03   -1.5150    
   7  Prefactor     50.861        88.816        .56256E-04   -1.4280    
   8  Prefactor     1.1078        8.0952        .35249E-03   -1.5497    
   9  Prefactor     14.289        20.588        .10597E-03   -1.4952    
  10  norm          2.8154        3.6271        .15219E-03   -1.5372    
  11  Prefactor     16.623        15.398        .98237E-04   -1.4892    
  12  Prefactor     .51737        61.827        .43546E-02   -1.5564    
  13  Prefactor     5.8211        3.9518        .11442E-03   -1.5225    
  14  norm          .10000E-03    31.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.077        21.943        .94187E-04   -1.4857    
  16  norm          10.383        8.5732        .12435E-03   -1.5063    
  17  Prefactor     21.954        51.051        .85483E-04   -1.4771    
  18  Prefactor     34.557        32.224        .68163E-04   -1.4532    
  19  norm          5.1628        6.5379        .17692E-03   -1.5253    
  20  Prefactor     .10000E-03    3.5535        .13498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.9746        .10056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .59278        .10781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.2006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     68.048        74.968        .48648E-04   -1.4056    
  25  Normalizat    .89902        .21998        .23654E-03   -.96495    
  26  Prefactor     1.0435        .25348        .26484E-03   -.91294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08224e-08
Minuit parameter uncertainties:
  1  8.74421e-05
  2  3.90262e-06
  3  1.73376
  4  3.7666
  5  11.2951
  6  11.5948
  7  89.0485
  8  5.99028
  9  20.5978
  10  3.62737
  11  15.4019
  12  11.3224
  13  3.95199
  14  1.18538e-05
  15  21.9532
  16  8.57426
  17  51.1528
  18  32.2401
  19  6.53879
  20  2.99583e-06
  21  2.80482e-06
  22  5.34681e-06
  23  8.54039e-06
  24  75.0721
  25  0.220203
  26  0.253772
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.662e+01  1.540e+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.043e+00  2.538e-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.990e-01  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.15e-05

TS (Fixed Index): 2.88
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/340216/likelihoodResults_318124801_318384001_4FGL_J1419.5+3821_daily_bin304.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) = 5382.19540345
delta logL = 0.516332347545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5382.19368673
delta logL = 0.518049070192

Fit tolerance = 1e-08

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

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

 FCN=   5382.194     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      264 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.758        735.74        .18665E-02    .48667E-05
   2  Index         1.8493        5.5321        .21473        .94038E-05
   3  Normalizat    .92404        .13490        .45209E-01    .87348E-05
   4  Prefactor     1.0197        .11788        .60452E-01    .10189E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.7584
  Index      = 1.84933
  Normalizat = 0.924041
  Prefactor  = 1.01965
 **********
 **   18 **HESSE 
 **********

 FCN=   5382.194     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .42E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.758        21.766        .74659E-04   -1.4635    
   2  Index         1.8493        .52546        .75085E-02   -.68172    
   3  Normalizat    .92404        .20653        .23365E-03   -.95620    
   4  Prefactor     1.0197        .24721        .26733E-03   -.92077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17271e-13
Minuit parameter uncertainties:
  1  21.7721
  2  0.527077
  3  0.206711
  4  0.247485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340216': 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) = 5382.19368109
delta logL = 0.518054708259

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.876e+01  2.177e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.849e+00  5.271e-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.020e+00  2.475e-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.240e-01  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.93
Ra Dec: 214.894 38.366
Photon Index (Free Index): 1.85 +/- 0.53
Photon Flux (Free Index): 2.80e-08 +/- 2.56e-08
Energy Flux (Free Index): 2.90e-05 +/- 3.60e-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/340216/cmap_HighResolution_318124801_318384001_4FGL_J1419.5+3821_daily_bin304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-03', comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='2.90e-05', photon_flux_error='3.84e-08', dlogl='5.18e-01', energy_flux='1.24e-05', photon_flux2='2.80e-08', job_status='DONE', time_completed='2021-09-09 09:32:05.617374', photon_index_error2='0.53', photon_index2='1.85', ts='2.88', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='3.60e-05', EG='0.90', time_epoch_completed='1631205125.62', return_code='0', job_id='340216', GAL2='1.02', EG2='0.92', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='2.56e-08', ts2='3.93', photon_index='2.47' WHERE bin_id='304' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:32:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 340216: <4FGL_J1419.5+3821_daily_bin304> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin304> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 09:20:35 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:20:35 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:20:35 2021
Terminated at Thu Sep  9 09:32:06 2021
Results reported at Thu Sep  9 09:32:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin304 214.894 38.3657 318124801 318384001 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 :                                   673.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            691 sec.

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

