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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin427
RA = 219.74, Dec = 37.1752
tmin = 350006401, tmax = 350265601
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='668770', job_status='RUN', time_executed='2021-09-10 03:23:17.898847', time_epoch_executed='1631269397.9' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668770

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668770/ft1_4FGL_J1438.9+3710_daily_bin427.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668770/ft2_4FGL_J1438.9+3710_daily_bin427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668770/ft1_4FGL_J1438.9+3710_daily_bin427.fits outfile=/scratch/kocevski/668770/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin427.fits ra=219.74 dec=37.1752 rad=12.0 tmin=350006401.0 tmax=350265601.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 4.06
user 3.83
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/668770/ft2_4FGL_J1438.9+3710_daily_bin427.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/668770/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin427.fits evtable="EVENTS" outfile="/scratch/kocevski/668770/ft1_filtered_4FGL_J1438.9+3710_daily_bin427.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/668770/ft1_filtered_4FGL_J1438.9+3710_daily_bin427.fits" evtable="EVENTS" scfile=/scratch/kocevski/668770/ft2_4FGL_J1438.9+3710_daily_bin427.fits sctable="SC_DATA" outfile=/scratch/kocevski/668770/ltcube_350006401_350265601_4FGL_J1438.9+3710_daily_bin427.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/668770/ft2_4FGL_J1438.9+3710_daily_bin427.fits
.....................!
real 11.58
user 11.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668770/ft1_filtered_4FGL_J1438.9+3710_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/668770/ft2_4FGL_J1438.9+3710_daily_bin427.fits sctable="SC_DATA" expcube=/scratch/kocevski/668770/ltcube_350006401_350265601_4FGL_J1438.9+3710_daily_bin427.fits outfile=/scratch/kocevski/668770/expmap_350006401_350265601_4FGL_J1438.9+3710_daily_bin427.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/668770/ltcube_350006401_350265601_4FGL_J1438.9+3710_daily_bin427.fits
.....................!
real 192.05
user 186.74
sys 4.95

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/668770/ft1_filtered_4FGL_J1438.9+3710_daily_bin427.fits scfile=/scratch/kocevski/668770/ft2_4FGL_J1438.9+3710_daily_bin427.fits outfile=/scratch/kocevski/668770/cmap_350006401_350265601_4FGL_J1438.9+3710_daily_bin427.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668770/ft1_filtered_4FGL_J1438.9+3710_daily_bin427.fits scfile=/scratch/kocevski/668770/ft2_4FGL_J1438.9+3710_daily_bin427.fits outfile=/scratch/kocevski/668770/cmap_HighResolution_350006401_350265601_4FGL_J1438.9+3710_daily_bin427.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.53
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/668770/ft1_filtered_4FGL_J1438.9+3710_daily_bin427.fits', '/scratch/kocevski/668770/ft2_4FGL_J1438.9+3710_daily_bin427.fits', expMap='/scratch/kocevski/668770/expmap_350006401_350265601_4FGL_J1438.9+3710_daily_bin427.fits', expCube='/scratch/kocevski/668770/ltcube_350006401_350265601_4FGL_J1438.9+3710_daily_bin427.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/668770/Model_4FGL_J1438.9+3710_daily_bin427.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/668770/ft1_filtered_4FGL_J1438.9+3710_daily_bin427.fits
Spacecraft file(s): /scratch/kocevski/668770/ft2_4FGL_J1438.9+3710_daily_bin427.fits
Exposure map: /scratch/kocevski/668770/expmap_350006401_350265601_4FGL_J1438.9+3710_daily_bin427.fits
Exposure cube: /scratch/kocevski/668770/ltcube_350006401_350265601_4FGL_J1438.9+3710_daily_bin427.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/668770/Model_4FGL_J1438.9+3710_daily_bin427.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) = 5690.23872688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    4.8375       1.0000         .10000E-03   10000.    
     3 'norm      '    13.542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.166       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8629       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11844E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9078       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1603       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6849       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.610       1.0000         .10000E-03   10000.    
    15 'norm      '    6.7068       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4242       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4485       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9232       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2885       1.0000         .10000E-03   10000.    
    25 'norm      '    15.061       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    16.179       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1265       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70577       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5690.144     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3876 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.181       -.14490E-06** at limit **
   2  Prefactor     4.8382        5.5463        .33816E-06    .95051E-05
   3  norm          13.545        13.425        .15198E-06   -.57757E-04
   4  Prefactor     .10000E-03    24.873        .97743E-06** at limit **
   5  Prefactor     11.164        21.896        .56761E-06   -.31511E-04
   6  norm          1.8629        2.1514        .10637E-08   -.66223E-04
   7  Prefactor     .10000E-03    17.969        .62562E-06** at limit **
   8  Prefactor     7.8985        13.551       -.79410E-06   -.23083E-03
   9  Prefactor     .10000E-03    2.4571        .23513E-07** at limit **
  10  norm          5.1559        10.628       -.73543E-07   -.82212E-04
  11  Prefactor     .10000E-03    19.074        .11867E-05** at limit **
  12  norm          4.6857        7.0205        .18087E-05   -.19430E-03
  13  Prefactor     .10000E-03    57.164        .29913E-05** at limit **
  14  Prefactor     20.611        25.934        .21419E-06   -.88423E-05
  15  norm          6.7050        7.8926        .15997E-06   -.26940E-04
  16  Prefactor     .10000E-03    5.0754        .22087E-07** at limit **
  17  Prefactor     3.4232        8.4715        .38736E-05   -.78026E-04
  18  Prefactor     .10000E-03    2.3786        .44385E-08** at limit **
  19  norm          2.4496        2.4267       -.42527E-06    .24556E-03
  20  norm          1.9237        2.3482       -.82496E-07   -.50396E-05
  21  Prefactor     .10000E-03    2.9309        .23915E-07** at limit **
  22  Prefactor     .10000E-03    37.275       -.42220E-05** at limit **
  23  Prefactor     .10000E-03    9.5132       -.32711E-06** at limit **
  24  Prefactor     4.2854        12.604        .35204E-05   -.56011E-05
  25  norm          15.060        2.2809       -.14516E-07   -.72054E-03
  26  Prefactor     .10000E-03    10.528        .73268E-06** at limit **
  27  Prefactor     .10000E-03    15.068       -.17001E-05** at limit **
  28  norm          16.179        13.706        .61742E-06    .25216E-03
  29  Normalizat    1.1259        .18856       -.12597E-05   -.15543E-03
  30  Prefactor     .70637        .18933       -.22109E-06   -.14516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.83817
  norm       = 13.5449
  Prefactor  = 0.0001
  Prefactor  = 11.1644
  norm       = 1.86289
  Prefactor  = 0.0001
  Prefactor  = 7.89846
  Prefactor  = 0.0001
  norm       = 5.15594
  Prefactor  = 0.0001
  norm       = 4.68565
  Prefactor  = 0.0001
  Prefactor  = 20.6105
  norm       = 6.70502
  Prefactor  = 0.0001
  Prefactor  = 3.42322
  Prefactor  = 0.0001
  norm       = 2.44958
  norm       = 1.92367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.28538
  norm       = 15.0605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.1789
  Normalizat = 1.12588
  Prefactor  = 0.706367
 **********
 **   18 **HESSE 
 **********

 FCN=   5690.144     FROM HESSE     STATUS=OK           584 CALLS     4460 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8382        5.5446        .18290E-03   -1.5268    
   3  norm          13.545        13.427        .10884E-03   -1.4972    
   4  Prefactor     .10000E-03    25.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.164        22.182        .11989E-03   -1.5040    
   6  norm          1.8629        2.1488        .11551E-03   -1.5435    
   7  Prefactor     .10000E-03    18.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.8985        13.549        .14259E-03   -1.5146    
   9  Prefactor     .10000E-03    2.5678        .23069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1559        10.597        .17697E-03   -1.5254    
  11  Prefactor     .10000E-03    19.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6857        6.9930        .92961E-03   -1.5275    
  13  Prefactor     .10000E-03    57.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.611        25.947        .88227E-04   -1.4800    
  15  norm          6.7050        7.8881        .77471E-03   -1.5190    
  16  Prefactor     .10000E-03    5.0825        .16595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4232        8.4424        .10930E-02   -1.5338    
  18  Prefactor     .10000E-03    2.3814        .11361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4496        2.4233        .96275E-04   -1.5395    
  20  norm          1.9237        2.3333        .12288E-03   -1.5431    
  21  Prefactor     .10000E-03    2.9347        .12604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    37.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.5267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.2854        12.568        .97272E-03   -1.5294    
  25  norm          15.060        2.2803        .42613E-04   -1.4932    
  26  Prefactor     .10000E-03    10.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    15.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          16.179        13.746        .99574E-04   -1.4903    
  29  Normalizat    1.1259        .22183        .22255E-03   -.88925    
  30  Prefactor     .70637        .22135        .29750E-03   -1.0328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57398e-10
Minuit parameter uncertainties:
  1  4.85043e-06
  2  5.54523
  3  13.4304
  4  7.14637e-06
  5  22.1984
  6  2.14888
  7  6.46178e-05
  8  13.5541
  9  4.10461e-06
  10  10.601
  11  4.47903e-05
  12  6.99426
  13  4.49667e-05
  14  25.9608
  15  7.88928
  16  9.7313e-08
  17  8.44534
  18  4.5927e-07
  19  2.42345
  20  2.33339
  21  1.97313e-07
  22  0.000255193
  23  1.07589e-05
  24  12.5757
  25  2.28032
  26  1.70442e-05
  27  6.7725e-05
  28  13.7492
  29  0.222015
  30  0.22163
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.686e+00  6.994e+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

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.064e-01  2.216e-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.126e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/668770/likelihoodResults_350006401_350265601_4FGL_J1438.9+3710_daily_bin427.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) = 5688.71194117
delta logL = 1.43177579436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5688.68841819
delta logL = 1.45529877905

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40185       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79054       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=   5688.688     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      244 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40195        8.9366        .66164E-02   -.16092E-02
   2  alpha         5.0000        4.6403        .46267    ** at limit **
   3  Normalizat    1.0248        .17377        .42720E-01   -.97416E-04
   4  Prefactor     .79054        .14782        .63949E-01   -.15875E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.401951
  alpha      = 5
  Normalizat = 1.02484
  Prefactor  = 0.790541
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.688     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40195        .26484        .29977E-04   -1.5581    
   2  alpha         5.0000        .75774        .43958E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0248        .20777        .23144E-03   -.92203    
   4  Prefactor     .79054        .22179        .28287E-03   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0304e-10
Minuit parameter uncertainties:
  1  0.264841
  2  2.68738e-06
  3  0.207934
  4  0.222041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668770': 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) = 5688.6884181
delta logL = 1.45529886399

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.020e-01  2.648e-01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  5.000e+00  2.687e-06  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:  7.905e-01  2.220e-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.025e+00  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.71
Ra Dec: 219.740 37.175
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.80e-08 +/- 5.11e-08
Energy Flux (Free Index): 1.06e-05 +/- 6.98e-06

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/668770/cmap_HighResolution_350006401_350265601_4FGL_J1438.9+3710_daily_bin427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-05', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='1.46e+00', photon_flux2='7.80e-08', job_status='DONE', time_completed='2021-09-10 03:36:33.953095', photon_index_error2='0.00', photon_index2='5.00', ts='0.58', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='9.28e-08', energy_flux_error2='6.98e-06', EG='1.13', time_epoch_completed='1631270193.95', return_code='0', job_id='668770', GAL2='0.79', EG2='1.02', return_code2='0', photon_flux_error2='5.11e-08', ts2='3.71', photon_index='2.31' WHERE bin_id='427' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:36:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 668770: <4FGL_J1438.9+3710_daily_bin427> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin427> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:21:08 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:21:10 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:21:10 2021
Terminated at Fri Sep 10 03:36:34 2021
Results reported at Fri Sep 10 03:36:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin427 219.74 37.1752 350006401 350265601 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 :                                   794.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

