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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin674
RA = 219.74, Dec = 37.1752
tmin = 414028801, tmax = 414288001
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='671478', job_status='RUN', time_executed='2021-09-10 03:34:54.911330', time_epoch_executed='1631270094.91' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671478

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671478/ft1_4FGL_J1438.9+3710_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671478/ft2_4FGL_J1438.9+3710_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671478/ft1_4FGL_J1438.9+3710_daily_bin674.fits outfile=/scratch/kocevski/671478/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin674.fits ra=219.74 dec=37.1752 rad=12.0 tmin=414028801.0 tmax=414288001.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 5.24
user 5.00
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/671478/ft2_4FGL_J1438.9+3710_daily_bin674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671478/ft2_4FGL_J1438.9+3710_daily_bin674.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/671478/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin674.fits evtable="EVENTS" outfile="/scratch/kocevski/671478/ft1_filtered_4FGL_J1438.9+3710_daily_bin674.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671478/ft1_filtered_4FGL_J1438.9+3710_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/671478/ft2_4FGL_J1438.9+3710_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/671478/ltcube_414028801_414288001_4FGL_J1438.9+3710_daily_bin674.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/671478/ft2_4FGL_J1438.9+3710_daily_bin674.fits
.....................!
real 12.38
user 11.97
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671478/ft1_filtered_4FGL_J1438.9+3710_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/671478/ft2_4FGL_J1438.9+3710_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/671478/ltcube_414028801_414288001_4FGL_J1438.9+3710_daily_bin674.fits outfile=/scratch/kocevski/671478/expmap_414028801_414288001_4FGL_J1438.9+3710_daily_bin674.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/671478/ltcube_414028801_414288001_4FGL_J1438.9+3710_daily_bin674.fits
.....................!
real 191.15
user 185.78
sys 4.97

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

Setting source of interest to:
4FGL J1438.9+3710 @ 219.74 37.1752

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/671478/ft1_filtered_4FGL_J1438.9+3710_daily_bin674.fits scfile=/scratch/kocevski/671478/ft2_4FGL_J1438.9+3710_daily_bin674.fits outfile=/scratch/kocevski/671478/cmap_414028801_414288001_4FGL_J1438.9+3710_daily_bin674.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=219.74 yref=37.1752 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671478/ft1_filtered_4FGL_J1438.9+3710_daily_bin674.fits scfile=/scratch/kocevski/671478/ft2_4FGL_J1438.9+3710_daily_bin674.fits outfile=/scratch/kocevski/671478/cmap_HighResolution_414028801_414288001_4FGL_J1438.9+3710_daily_bin674.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=219.74 yref=37.1752 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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/671478/ft1_filtered_4FGL_J1438.9+3710_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/671478/ft2_4FGL_J1438.9+3710_daily_bin674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/671478/Model_4FGL_J1438.9+3710_daily_bin674.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/671478/ft1_filtered_4FGL_J1438.9+3710_daily_bin674.fits.....................!
real 37.39
user 36.07
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/671478/ft1_filtered_4FGL_J1438.9+3710_daily_bin674.fits', '/scratch/kocevski/671478/ft2_4FGL_J1438.9+3710_daily_bin674.fits', expMap='/scratch/kocevski/671478/expmap_414028801_414288001_4FGL_J1438.9+3710_daily_bin674.fits', expCube='/scratch/kocevski/671478/ltcube_414028801_414288001_4FGL_J1438.9+3710_daily_bin674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/671478/Model_4FGL_J1438.9+3710_daily_bin674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.9+3710'

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.709e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/671478/ft1_filtered_4FGL_J1438.9+3710_daily_bin674.fits
Spacecraft file(s): /scratch/kocevski/671478/ft2_4FGL_J1438.9+3710_daily_bin674.fits
Exposure map: /scratch/kocevski/671478/expmap_414028801_414288001_4FGL_J1438.9+3710_daily_bin674.fits
Exposure cube: /scratch/kocevski/671478/ltcube_414028801_414288001_4FGL_J1438.9+3710_daily_bin674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/671478/Model_4FGL_J1438.9+3710_daily_bin674.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) = 4130.51386532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10808E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    22.393       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.351       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.214       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11114E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7322       1.0000         .10000E-03   10000.    
    10 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .42247       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6811       1.0000         .10000E-03   10000.    
    20 'norm      '    2.7809       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11068E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.738       1.0000         .10000E-03   10000.    
    25 'norm      '    4.8610       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.145       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    8.9120       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0861       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .53148       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4130.495     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3902 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    27.358        .90712E-02** at limit **
   2  Prefactor     .10001E-03    14.960        .90712E-02** at limit **
   3  norm          22.397        18.141        .21161E-02    .31098E-03
   4  Prefactor     .10001E-03    9.6028        .90712E-02** at limit **
   5  Prefactor     40.356        25.158        .15775E-02   -.18191E-03
   6  norm          .10000E-03    1.4688        .90712E-02** at limit **
   7  Prefactor     17.219        15.858        .24133E-02    .34172E-03
   8  Prefactor     .10000E-03    17.607        .90712E-02** at limit **
   9  Prefactor     5.7333        4.0022        .41941E-02    .12143E-02
  10  norm          .10000E-03    8.0435        .90712E-02** at limit **
  11  Prefactor     .10010E-03    23.688        .90712E-02** at limit **
  12  norm          .10000E-03    3.2076        .90712E-02** at limit **
  13  Prefactor     .10000E-03    18.312        .90712E-02** at limit **
  14  Prefactor     .10000E-03    8.6805        .90712E-02** at limit **
  15  norm          .10000E-03    3.3005        .90712E-02** at limit **
  16  Prefactor     .10001E-03    9.2533        .90712E-02** at limit **
  17  Prefactor     .10000E-03    2.8078        .90712E-02** at limit **
  18  Prefactor     .41997        8.0957        .56996E-01    .37753E-03
  19  norm          2.6800        1.9384        .62215E-02   -.52426E-03
  20  norm          2.7829        4.0935        .61005E-02    .31153E-03
  21  Prefactor     .10000E-03    18.135        .90712E-02** at limit **
  22  Prefactor     .10005E-03    127.08        .90712E-02** at limit **
  23  Prefactor     .10000E-03    16.469        .90712E-02** at limit **
  24  Prefactor     16.760        16.514        .24474E-02    .11148E-02
  25  norm          4.8608        1.9626        .45612E-02   -.32979E-03
  26  Prefactor     17.144        13.756        .24182E-02   -.12308E-04
  27  Prefactor     .10001E-03    43.891        .90712E-02** at limit **
  28  norm          8.9057        12.944        .33566E-02    .69551E-03
  29  Normalizat    1.0858        .19464        .38594E-01   -.30495E-03
  30  Prefactor     .53188        .19433        .67460E-01   -.25004E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010005
  Prefactor  = 0.000100008
  norm       = 22.3974
  Prefactor  = 0.00010001
  Prefactor  = 40.356
  norm       = 0.0001
  Prefactor  = 17.2187
  Prefactor  = 0.000100002
  Prefactor  = 5.73326
  norm       = 0.0001
  Prefactor  = 0.000100103
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.419969
  norm       = 2.67996
  norm       = 2.78287
  Prefactor  = 0.000100001
  Prefactor  = 0.000100047
  Prefactor  = 0.000100004
  Prefactor  = 16.7597
  norm       = 4.8608
  Prefactor  = 17.1445
  Prefactor  = 0.000100008
  norm       = 8.90571
  Normalizat = 1.08576
  Prefactor  = 0.53188
 **********
 **   18 **HESSE 
 **********

 FCN=   4130.495     FROM HESSE     STATUS=OK           572 CALLS     4474 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    27.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    15.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          22.397        18.176        .84645E-04   -1.4761    
   4  Prefactor     .10001E-03    9.6063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.356        25.253        .63102E-04   -1.4437    
   6  norm          .10000E-03    1.4726        .76051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.219        15.889        .96533E-04   -1.4878    
   8  Prefactor     .10000E-03    17.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7333        4.0092        .10302E-03   -1.5229    
  10  norm          .10000E-03    8.0471        .17797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10010E-03    23.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.2243        .11239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3018        .11403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    9.2952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.8100        .10515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .41997        28.275        .35230E-02   -1.5578    
  19  norm          2.6800        1.9351        .72268E-04   -1.5381    
  20  norm          2.7829        4.0607        .14269E-03   -1.5374    
  21  Prefactor     .10000E-03    18.286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10005E-03    127.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.760        16.420        .97896E-04   -1.4889    
  25  norm          4.8608        1.9751        .49524E-04   -1.5267    
  26  Prefactor     17.144        13.846        .96728E-04   -1.4880    
  27  Prefactor     .10001E-03    44.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          8.9057        12.838        .67131E-03   -1.5111    
  29  Normalizat    1.0858        .22599        .20694E-03   -.90210    
  30  Prefactor     .53188        .22304        .29859E-03   -1.1054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28711e-08
Minuit parameter uncertainties:
  1  0.00234955
  2  0.000713644
  3  18.1802
  4  0.000608172
  5  25.2596
  6  1.01055e-05
  7  15.8932
  8  0.00038744
  9  4.00935
  10  0.00012626
  11  0.00312976
  12  7.89037e-06
  13  0.000235885
  14  0.000189073
  15  1.76666e-05
  16  0.00072334
  17  3.20649e-05
  18  6.89451
  19  1.93513
  20  4.06114
  21  0.000216734
  22  0.0048912
  23  0.000511398
  24  16.4245
  25  1.97511
  26  13.8488
  27  0.00116944
  28  12.842
  29  0.226187
  30  0.223411
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  7.890e-06  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  5.319e-01  2.234e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.086e+00  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.740 37.175
Photon Flux Upper Limit: 6.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671478/likelihoodResults_414028801_414288001_4FGL_J1438.9+3710_daily_bin674.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) = 4130.49597844
delta logL = -0.0014691379065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4130.49451082
delta logL = -1.52611301019e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11014E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2992       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53193       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4130.495     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2361        .90712E-02** at limit **
   2  alpha         2.2879        3.4993        .41321        .18327E-04
   3  Normalizat    1.0858        .18371        .38613E-01    .12767E-05
   4  Prefactor     .53188        .19183        .67460E-01    .18532E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.28788
  Normalizat = 1.08576
  Prefactor  = 0.531882
 **********
 **   18 **HESSE 
 **********

 FCN=   4130.495     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2533        .11296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2879        3.4993        .50000       -.84952E-01
   3  Normalizat    1.0858        .20975        .20694E-03   -.90210    
   4  Prefactor     .53188        .21859        .29859E-03   -1.1054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36743e-10
Minuit parameter uncertainties:
  1  6.01234e-06
  2  2.4911
  3  0.209912
  4  0.218939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671478': 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) = 4130.49450914
delta logL = 1.56863279699e-07

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  6.012e-06  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.288e+00  2.491e+00  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  5.319e-01  2.189e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.086e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.740 37.175

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/671478/cmap_HighResolution_414028801_414288001_4FGL_J1438.9+3710_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-05', job_status='DONE', photon_flux_upper_limit='6.09e-08', time_completed='2021-09-10 03:45:51.628175', job_id='671478', GAL2='0.53', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631270751.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='1.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='674' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:45:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 671478: <4FGL_J1438.9+3710_daily_bin674> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin674> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 03:31:09 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:31:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:31:11 2021
Terminated at Fri Sep 10 03:45:52 2021
Results reported at Fri Sep 10 03:45:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin674 219.74 37.1752 414028801 414288001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.9+3710 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   654.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

