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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin446
RA = 214.894, Dec = 38.3657
tmin = 354931201, tmax = 355190401
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='341447', job_status='RUN', time_executed='2021-09-09 09:25:30.685208', time_epoch_executed='1631204730.69' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341447/ft1_4FGL_J1419.5+3821_daily_bin446.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341447/ft2_4FGL_J1419.5+3821_daily_bin446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341447/ft1_4FGL_J1419.5+3821_daily_bin446.fits outfile=/scratch/kocevski/341447/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin446.fits ra=214.894 dec=38.3657 rad=12.0 tmin=354931201.0 tmax=355190401.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.32
user 3.09
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341447/ft1_filtered_4FGL_J1419.5+3821_daily_bin446.fits" evtable="EVENTS" scfile=/scratch/kocevski/341447/ft2_4FGL_J1419.5+3821_daily_bin446.fits sctable="SC_DATA" outfile=/scratch/kocevski/341447/ltcube_354931201_355190401_4FGL_J1419.5+3821_daily_bin446.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/341447/ft2_4FGL_J1419.5+3821_daily_bin446.fits
.....................!
real 11.52
user 11.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341447/ft1_filtered_4FGL_J1419.5+3821_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/341447/ft2_4FGL_J1419.5+3821_daily_bin446.fits sctable="SC_DATA" expcube=/scratch/kocevski/341447/ltcube_354931201_355190401_4FGL_J1419.5+3821_daily_bin446.fits outfile=/scratch/kocevski/341447/expmap_354931201_355190401_4FGL_J1419.5+3821_daily_bin446.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/341447/ltcube_354931201_355190401_4FGL_J1419.5+3821_daily_bin446.fits
.....................!
real 191.00
user 185.66
sys 4.91

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/341447/ft1_filtered_4FGL_J1419.5+3821_daily_bin446.fits scfile=/scratch/kocevski/341447/ft2_4FGL_J1419.5+3821_daily_bin446.fits outfile=/scratch/kocevski/341447/cmap_354931201_355190401_4FGL_J1419.5+3821_daily_bin446.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341447/ft1_filtered_4FGL_J1419.5+3821_daily_bin446.fits scfile=/scratch/kocevski/341447/ft2_4FGL_J1419.5+3821_daily_bin446.fits outfile=/scratch/kocevski/341447/cmap_HighResolution_354931201_355190401_4FGL_J1419.5+3821_daily_bin446.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    131.43       1.0000         .10000E-03   10000.    
     3 'norm      '    10.485       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6128       1.0000         .10000E-03   10000.    
     5 'norm      '    12.828       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    71.449       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7570       1.0000         .10000E-03   10000.    
    10 'norm      '    14.632       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0938       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.221       1.0000         .10000E-03   10000.    
    16 'norm      '    30.886       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9399       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.755       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76971       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0834       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=   5073.432     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3048 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.529        .12364E-05** at limit **
   2  Prefactor     131.41        88.471        .28902E-05   -.94169E-05
   3  norm          10.485        2.3593        .52966E-07    .55876E-05
   4  Prefactor     1.6121        4.4707        .54565E-05   -.65778E-04
   5  norm          12.829        18.889        .99921E-07   -.51505E-05
   6  Prefactor     .10000E-03    12.620        .11269E-05** at limit **
   7  Prefactor     71.577        67.291       -.12300E-04    .17765E-04
   8  Prefactor     .10000E-03    5.5915        .24667E-05** at limit **
   9  Prefactor     6.7670        13.891        .11976E-05    .20643E-05
  10  norm          14.631        5.9376        .81430E-07    .26746E-04
  11  Prefactor     .10000E-03    11.213       -.11573E-05** at limit **
  12  Prefactor     .10000E-03    14.155        .59049E-06** at limit **
  13  Prefactor     2.0938        3.5244        .10011E-06   -.42012E-05
  14  norm          .10000E-03    8.5767        .41827E-07** at limit **
  15  Prefactor     21.222        26.432        .36188E-06    .71039E-05
  16  norm          30.884        10.242        .12692E-06    .32279E-04
  17  Prefactor     .10000E-03    15.861       -.14585E-05** at limit **
  18  Prefactor     .10000E-03    43.602       -.16499E-05** at limit **
  19  norm          .10000E-03    3.5099       -.21946E-07** at limit **
  20  Prefactor     .10000E-03    4.6712       -.72804E-07** at limit **
  21  Prefactor     .10000E-03    3.1604       -.71202E-07** at limit **
  22  norm          2.9398        1.6226        .49876E-07    .61388E-04
  23  Prefactor     11.753        11.812        .14239E-06    .55850E-05
  24  Prefactor     .10000E-03    90.931       -.15457E-05** at limit **
  25  Normalizat    .76967        .19607       -.25838E-05    .57054E-04
  26  Prefactor     1.0835        .21302        .17139E-05   -.36276E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 131.406
  norm       = 10.4846
  Prefactor  = 1.61212
  norm       = 12.8293
  Prefactor  = 0.0001
  Prefactor  = 71.5767
  Prefactor  = 0.000100002
  Prefactor  = 6.76697
  norm       = 14.6315
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.09376
  norm       = 0.0001
  Prefactor  = 21.2221
  norm       = 30.8843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.93984
  Prefactor  = 11.7534
  Prefactor  = 0.0001
  Normalizat = 0.76967
  Prefactor  = 1.08355
 **********
 **   18 **HESSE 
 **********

 FCN=   5073.432     FROM HESSE     STATUS=OK           458 CALLS     3506 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     131.41        88.952        .17561E-03   -1.3410    
   3  norm          10.485        2.3608        .49996E-04   -1.5060    
   4  Prefactor     1.6121        4.4807        .11686E-02   -1.5454    
   5  norm          12.829        18.933        .11184E-03   -1.4991    
   6  Prefactor     .10000E-03    12.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     71.577        67.423        .23747E-03   -1.4014    
   8  Prefactor     .10000E-03    5.8847        .33049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7670        13.885        .15436E-03   -1.5188    
  10  norm          14.631        5.9360        .10471E-03   -1.4943    
  11  Prefactor     .10000E-03    11.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0938        3.5014        .16438E-03   -1.5419    
  14  norm          .10000E-03    8.5979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.222        26.439        .86948E-04   -1.4786    
  16  norm          30.884        10.256        .72096E-04   -1.4596    
  17  Prefactor     .10000E-03    15.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    43.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.5129        .13032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.6767        .15034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.1708        .12362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9398        1.6214        .64786E-04   -1.5365    
  23  Prefactor     11.753        11.812        .11684E-03   -1.5022    
  24  Prefactor     .10000E-03    91.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .76967        .23069        .25886E-03   -1.0120    
  26  Prefactor     1.0835        .25164        .26290E-03   -.89994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3288e-10
Minuit parameter uncertainties:
  1  5.03537e-05
  2  89.043
  3  2.36078
  4  4.4816
  5  18.9414
  6  1.86761e-05
  7  67.4952
  8  0.000191598
  9  13.8912
  10  5.9362
  11  1.8018e-06
  12  2.04529e-05
  13  3.50172
  14  4.91018e-06
  15  26.4531
  16  10.2562
  17  1.20766e-05
  18  4.30062e-05
  19  1.04271e-06
  20  2.92785e-06
  21  2.84103e-06
  22  1.62138
  23  11.8146
  24  2.04627e-05
  25  0.230986
  26  0.251912
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.802e-06  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.084e+00  2.519e-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:  7.697e-01  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 7.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341447/likelihoodResults_354931201_355190401_4FGL_J1419.5+3821_daily_bin446.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): 102
logL (Free Index) = 5073.43223496
delta logL = -0.000421475008807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5073.43181368
delta logL = -1.9168783183e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4656       1.0000          .0000       10.000    
     3 'Normalizat'    .76958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0837       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=   5073.432     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    134.06        .18142E-02** at limit **
   2  Index         2.4393        8.7552        .50000        .41890E-05
   3  Normalizat    .76967        .15307E-01    .25886E-03    .25472E-05
   4  Prefactor     1.0835        .18244E-01    .26290E-03    .23352E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010022
  Index      = 2.43929
  Normalizat = 0.769669
  Prefactor  = 1.08355
 **********
 **   18 **HESSE 
 **********

 FCN=   5073.432     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    599.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4393        8.6390        .50000       -.53768    
   3  Normalizat    .76967        .34293E-01    .10355E-04   -1.0120    
   4  Prefactor     1.0835        .40867E-01    .10516E-04   -.89994    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.19814e-09
Minuit parameter uncertainties:
  1  0.0231897
  2  1071.72
  3  0.0342944
  4  0.0408678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341447': 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): 102
logL (Free Index) = 5073.43181346
delta logL = 2.56013663602e-08

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.002e-04  2.319e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.439e+00  1.072e+03  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.084e+00  4.087e-02  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:  7.697e-01  3.429e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.894 38.366

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/341447/cmap_HighResolution_354931201_355190401_4FGL_J1419.5+3821_daily_bin446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.76e-08', time_completed='2021-09-09 09:36:20.023831', job_id='341447', GAL2='1.08', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1631205380.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='446' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:36:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 341447: <4FGL_J1419.5+3821_daily_bin446> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin446 214.894 38.3657 354931201 355190401 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 :                                   646.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            662 sec.

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

