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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin66
RA = 214.894, Dec = 38.3657
tmin = 256435201, tmax = 256694401
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='338825', job_status='RUN', time_executed='2021-09-09 09:18:09.679220', time_epoch_executed='1631204289.68' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338825

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338825/ft1_4FGL_J1419.5+3821_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338825/ft2_4FGL_J1419.5+3821_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338825/ft1_4FGL_J1419.5+3821_daily_bin66.fits outfile=/scratch/kocevski/338825/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin66.fits ra=214.894 dec=38.3657 rad=12.0 tmin=256435201.0 tmax=256694401.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 1.51
user 1.26
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/338825/ft2_4FGL_J1419.5+3821_daily_bin66.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/338825/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin66.fits evtable="EVENTS" outfile="/scratch/kocevski/338825/ft1_filtered_4FGL_J1419.5+3821_daily_bin66.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338825/ft1_filtered_4FGL_J1419.5+3821_daily_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/338825/ft2_4FGL_J1419.5+3821_daily_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/338825/ltcube_256435201_256694401_4FGL_J1419.5+3821_daily_bin66.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/338825/ft2_4FGL_J1419.5+3821_daily_bin66.fits
.....................!
real 12.65
user 12.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338825/ft1_filtered_4FGL_J1419.5+3821_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/338825/ft2_4FGL_J1419.5+3821_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/338825/ltcube_256435201_256694401_4FGL_J1419.5+3821_daily_bin66.fits outfile=/scratch/kocevski/338825/expmap_256435201_256694401_4FGL_J1419.5+3821_daily_bin66.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/338825/ltcube_256435201_256694401_4FGL_J1419.5+3821_daily_bin66.fits
.....................!
real 189.51
user 184.90
sys 4.25

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/338825/ft1_filtered_4FGL_J1419.5+3821_daily_bin66.fits scfile=/scratch/kocevski/338825/ft2_4FGL_J1419.5+3821_daily_bin66.fits outfile=/scratch/kocevski/338825/cmap_256435201_256694401_4FGL_J1419.5+3821_daily_bin66.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338825/ft1_filtered_4FGL_J1419.5+3821_daily_bin66.fits scfile=/scratch/kocevski/338825/ft2_4FGL_J1419.5+3821_daily_bin66.fits outfile=/scratch/kocevski/338825/cmap_HighResolution_256435201_256694401_4FGL_J1419.5+3821_daily_bin66.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1050       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.071       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.959       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1892       1.0000         .10000E-03   10000.    
    10 'norm      '    .22310E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21156E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3836       1.0000         .10000E-03   10000.    
    14 'norm      '    15.129       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4033       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12355E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.468       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0888       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81597       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=   7030.479     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     2720 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1103        39.405       -.72031E-05    .84326E-04
   2  Prefactor     .10000E-03    31.555        .13477E-05** at limit **
   3  norm          .10000E-03    .58824        .70250E-07** at limit **
   4  Prefactor     .10000E-03    1.2703       -.53598E-07** at limit **
   5  norm          11.061        16.042        .49481E-06   -.50368E-04
   6  Prefactor     33.935        24.071        .34348E-05   -.73795E-04
   7  Prefactor     .10000E-03    28.505        .33283E-05** at limit **
   8  Prefactor     .10000E-03    2.2591       -.38569E-07** at limit **
   9  Prefactor     5.1849        15.133        .45373E-06   -.72534E-04
  10  norm          .10007E-03    1.8705       -.37609E-06** at limit **
  11  Prefactor     .10000E-03    11.597       -.22022E-06** at limit **
  12  Prefactor     .10001E-03    10.899       -.18917E-05** at limit **
  13  Prefactor     4.3841        3.7324       -.14561E-06   -.94245E-04
  14  norm          15.130        11.901        .15788E-06    .20636E-03
  15  Prefactor     .10000E-03    11.866        .24523E-06** at limit **
  16  norm          1.4015        4.0386       -.10319E-05   -.85875E-03
  17  Prefactor     .10000E-03    15.473       -.89085E-08** at limit **
  18  Prefactor     .10024E-03    32.853        .85109E-06** at limit **
  19  norm          .10000E-03    2.6993       -.20013E-07** at limit **
  20  Prefactor     36.480        16.059       -.87455E-06    .33801E-03
  21  Prefactor     .10000E-03    1.3622       -.20353E-07** at limit **
  22  norm          .10000E-03    .39430       -.38662E-07** at limit **
  23  Prefactor     .10000E-03    18.857        .11950E-08** at limit **
  24  Prefactor     .10000E-03    54.263       -.26648E-06** at limit **
  25  Normalizat    1.0888        .15602       -.12483E-06    .41056E-03
  26  Prefactor     .81617        .17031       -.28020E-06    .25620E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11034
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0615
  Prefactor  = 33.9346
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.18489
  norm       = 0.000100072
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 4.38414
  norm       = 15.1304
  Prefactor  = 0.0001
  norm       = 1.40147
  Prefactor  = 0.0001
  Prefactor  = 0.000100243
  norm       = 0.0001
  Prefactor  = 36.4797
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08876
  Prefactor  = 0.81617
 **********
 **   18 **HESSE 
 **********

 FCN=   7030.479     FROM HESSE     STATUS=OK           464 CALLS     3184 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1103        38.593        .17795E-03   -1.5256    
   2  Prefactor     .10000E-03    31.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .92141        .12405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2879        .92246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.061        16.030        .12041E-03   -1.5043    
   6  Prefactor     33.935        22.906        .68765E-04   -1.4542    
   7  Prefactor     .10000E-03    28.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2908        .12302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1849        15.149        .17647E-03   -1.5253    
  10  norm          .10007E-03    28.854        .21534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    113.96        .49049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3841        3.7298        .14016E-03   -1.5289    
  14  norm          15.130        11.794        .10297E-03   -1.4930    
  15  Prefactor     .10000E-03    11.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4015        4.4311        .30056E-03   -1.5471    
  17  Prefactor     .10000E-03    15.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10024E-03    33.092        .11853       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.7015        .13451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.480        15.897        .66365E-04   -1.4499    
  21  Prefactor     .10000E-03    1.3638        .95559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .40676        .10273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.688        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    54.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0888        .18270        .20945E-03   -.90114    
  26  Prefactor     .81617        .19919        .27400E-03   -.99135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07507e-09
Minuit parameter uncertainties:
  1  28.1124
  2  0.000158119
  3  4.89912e-06
  4  2.75154e-06
  5  16.0362
  6  22.9124
  7  0.000375906
  8  1.12337e-06
  9  15.1605
  10  0.00288541
  11  5.5198e-05
  12  0.0016095
  13  3.72998
  14  11.7958
  15  1.04786e-05
  16  4.43217
  17  1.23054e-05
  18  0.00567806
  19  7.15243e-06
  20  15.8985
  21  2.97769e-06
  22  2.13612e-06
  23  2.40207e-05
  24  7.2426e-05
  25  0.182805
  26  0.199366
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.520e-05  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:  8.162e-01  1.994e-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:  1.089e+00  1.828e-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: 6.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338825/likelihoodResults_256435201_256694401_4FGL_J1419.5+3821_daily_bin66.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) = 7030.47905092
delta logL = -0.000408943086768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7030.47864194
delta logL = 3.23389031109e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4988       1.0000          .0000       10.000    
     3 'Normalizat'    1.0888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81614       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7030.479     FROM MIGRAD    STATUS=FAILED        87 CALLS      237 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1510.6        .18142E-02** at limit **
   2  Index         2.5277        7.8656        .50000       -.22523E-04
   3  Normalizat    1.0888        .48953E-01    .20945E-03   -.20307E-03
   4  Prefactor     .81617        .56485E-01    .27400E-03   -.78543E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7030.479     FROM SIMPLEX   STATUS=UNCHANGED    181 CALLS      418 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1510.6        .52611E-03** at limit **
   2  Index         2.5277        7.8656        .59564E-06   -.22523E-04
   3  Normalizat    1.0888        .48953E-01    .32972E-07   -.20307E-03
   4  Prefactor     .81617        .56485E-01    .11195E-07   -.78543E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7030.479     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      452 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    20.773        .36285E-03** at limit **
   2  Index         2.5279        6.1917        .50000       -.22530E-04
   3  Normalizat    1.0888        .17107        .41890E-04   -.20800E-03
   4  Prefactor     .81617        .19743        .10960E-04   -.81945E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.52793
  Normalizat = 1.08876
  Prefactor  = 0.816171
 **********
 **   18 **HESSE 
 **********

 FCN=   7030.479     FROM HESSE     STATUS=OK            29 CALLS      481 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    12.617        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5279        6.2615        .50000       -.51716    
   3  Normalizat    1.0888        .17123        .83780E-05   -.90114    
   4  Prefactor     .81617        .19765        .21920E-05   -.99135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.37486e-10
Minuit parameter uncertainties:
  1  0.000563366
  2  4.38441
  3  0.171316
  4  0.197826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338825': 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) = 7030.4786417
delta logL = 2.75305865216e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.634e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.528e+00  4.384e+00  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:  8.162e-01  1.978e-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:  1.089e+00  1.713e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/338825/cmap_HighResolution_256435201_256694401_4FGL_J1419.5+3821_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.65e-08', time_completed='2021-09-09 09:30:26.930861', job_id='338825', GAL2='0.82', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631205026.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='66' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:30:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 338825: <4FGL_J1419.5+3821_daily_bin66> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin66> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 09:15:43 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:15:44 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:15:44 2021
Terminated at Thu Sep  9 09:30:27 2021
Results reported at Thu Sep  9 09:30:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin66 214.894 38.3657 256435201 256694401 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 :                                   736.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            884 sec.

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

