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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin654
RA = 219.74, Dec = 37.1752
tmin = 408844801, tmax = 409104001
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='670434', job_status='RUN', time_executed='2021-09-10 03:28:44.431992', time_epoch_executed='1631269724.43' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670434

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670434/ft1_4FGL_J1438.9+3710_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670434/ft2_4FGL_J1438.9+3710_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670434/ft1_4FGL_J1438.9+3710_daily_bin654.fits outfile=/scratch/kocevski/670434/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin654.fits ra=219.74 dec=37.1752 rad=12.0 tmin=408844801.0 tmax=409104001.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.34
user 4.11
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670434/ft1_filtered_4FGL_J1438.9+3710_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/670434/ft2_4FGL_J1438.9+3710_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/670434/ltcube_408844801_409104001_4FGL_J1438.9+3710_daily_bin654.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/670434/ft2_4FGL_J1438.9+3710_daily_bin654.fits
.....................!
real 11.74
user 11.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670434/ft1_filtered_4FGL_J1438.9+3710_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/670434/ft2_4FGL_J1438.9+3710_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/670434/ltcube_408844801_409104001_4FGL_J1438.9+3710_daily_bin654.fits outfile=/scratch/kocevski/670434/expmap_408844801_409104001_4FGL_J1438.9+3710_daily_bin654.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/670434/ltcube_408844801_409104001_4FGL_J1438.9+3710_daily_bin654.fits
.....................!
real 191.42
user 185.52
sys 5.54

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/670434/ft1_filtered_4FGL_J1438.9+3710_daily_bin654.fits scfile=/scratch/kocevski/670434/ft2_4FGL_J1438.9+3710_daily_bin654.fits outfile=/scratch/kocevski/670434/cmap_408844801_409104001_4FGL_J1438.9+3710_daily_bin654.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670434/ft1_filtered_4FGL_J1438.9+3710_daily_bin654.fits scfile=/scratch/kocevski/670434/ft2_4FGL_J1438.9+3710_daily_bin654.fits outfile=/scratch/kocevski/670434/cmap_HighResolution_408844801_409104001_4FGL_J1438.9+3710_daily_bin654.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.981       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12661E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    129.90       1.0000         .10000E-03   10000.    
     6 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17905E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    107.60       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.772       1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    391.92       1.0000         .10000E-03   10000.    
    12 'norm      '    14.793       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    79.512       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.580       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.3775       1.0000         .10000E-03   10000.    
    20 'norm      '    16.439       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.327       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.3220       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .16138E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    121.37       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93022       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=   575.5927     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3870 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    250.55        .25500E-06** at limit **
   2  Prefactor     .10000E-03    19.329       -.10568E-06** at limit **
   3  norm          17.068        140.68        .18630E-05    .41150E-04
   4  Prefactor     .10001E-03    152.07       -.21470E-05** at limit **
   5  Prefactor     129.87        138.98        .88621E-06    .19255E-04
   6  norm          .10000E-03    14.082       -.53353E-06** at limit **
   7  Prefactor     .10002E-03    132.79       -.41743E-05** at limit **
   8  Prefactor     107.47        131.72        .15140E-05    .10209E-04
   9  Prefactor     13.769        18.098        .87989E-06    .14680E-03
  10  norm          .10000E-03    45.141       -.26623E-06** at limit **
  11  Prefactor     391.91        244.65        .37255E-06    .18022E-04
  12  norm          14.793        24.477       -.10624E-06    .59162E-04
  13  Prefactor     .10000E-03    154.03       -.11347E-06** at limit **
  14  Prefactor     79.509        103.51        .73329E-06    .32879E-04
  15  norm          .10000E-03    33.704       -.76610E-07** at limit **
  16  Prefactor     29.593        55.528        .47273E-06    .38546E-04
  17  Prefactor     .10000E-03    60.089       -.98242E-07** at limit **
  18  Prefactor     .10000E-03    18.187       -.51482E-07** at limit **
  19  norm          8.3766        10.010        .30341E-06    .24432E-03
  20  norm          16.439        17.827       -.18705E-07    .10321E-03
  21  Prefactor     .10000E-03    30.171        .80823E-08** at limit **
  22  Prefactor     .10000E-03    410.38       -.92215E-06** at limit **
  23  Prefactor     41.324        86.436        .21619E-06    .76046E-04
  24  Prefactor     .10000E-03    107.96       -.67318E-06** at limit **
  25  norm          4.3221        3.7302        .45160E-07    .16685E-03
  26  Prefactor     .10000E-03    23.651       -.18351E-07** at limit **
  27  Prefactor     .10000E-03    153.36        .67744E-06** at limit **
  28  norm          121.39        89.816        .52122E-06    .38225E-04
  29  Normalizat    .10000E-01    .50269       -.30310E-04** at limit **
  30  Prefactor     .93005        .29340        .41064E-05    .23370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 17.0678
  Prefactor  = 0.000100009
  Prefactor  = 129.87
  norm       = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 107.471
  Prefactor  = 13.7695
  norm       = 0.0001
  Prefactor  = 391.912
  norm       = 14.793
  Prefactor  = 0.0001
  Prefactor  = 79.5093
  norm       = 0.0001
  Prefactor  = 29.5927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.3766
  norm       = 16.4394
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 41.3242
  Prefactor  = 0.0001
  norm       = 4.32207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 121.386
  Normalizat = 0.01
  Prefactor  = 0.930052
 **********
 **   18 **HESSE 
 **********

 FCN=   575.5927     FROM HESSE     STATUS=OK           568 CALLS     4438 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    250.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.417        .10304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.068        141.09        .97194E-04   -1.4881    
   4  Prefactor     .10001E-03    151.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     129.87        139.16        .17663E-03   -1.3424    
   6  norm          .10000E-03    14.069        .87867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    130.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     107.47        131.89        .19386E-03   -1.3631    
   9  Prefactor     13.769        18.273        .10793E-03   -1.4966    
  10  norm          .10000E-03    45.143        .15759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     391.91        244.71        .10307E-03   -1.1722    
  12  norm          14.793        24.478        .10414E-03   -1.4939    
  13  Prefactor     .10000E-03    154.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     79.509        103.76        .45039E-04   -1.3922    
  15  norm          .10000E-03    33.709        .13614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.593        55.536        .73666E-04   -1.4619    
  17  Prefactor     .10000E-03    60.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.188        .99990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.3766        10.036        .73365E-04   -1.5129    
  20  norm          16.439        17.822        .98782E-04   -1.4897    
  21  Prefactor     .10000E-03    30.189        .12876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    410.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     41.324        86.439        .62355E-04   -1.4421    
  24  Prefactor     .10000E-03    108.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.3221        3.7320        .41614E-04   -1.5292    
  26  Prefactor     .10000E-03    23.657        .11400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    153.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          121.39        89.781        .18266E-03   -1.3500    
  29  Normalizat    .10000E-01    .75902        .99131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .93005        .30850        .20737E-03   -.95099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08762e-09
Minuit parameter uncertainties:
  1  0.000731083
  2  2.25055e-05
  3  98.4625
  4  0.00229661
  5  139.511
  6  0.000136967
  7  0.00328118
  8  132.253
  9  18.2805
  10  0.00016261
  11  245.362
  12  24.4946
  13  0.000526172
  14  103.999
  15  0.000109456
  16  55.6336
  17  1.8019e-05
  18  1.4949e-05
  19  10.0379
  20  17.8274
  21  9.5252e-05
  22  0.00231203
  23  86.7028
  24  9.76107e-05
  25  3.73224
  26  2.0787e-05
  27  0.000331524
  28  89.8822
  29  2.96491e-05
  30  0.309085
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.479e+01  2.449e+01  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:  9.301e-01  3.091e-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.000e-02  2.965e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 219.740 37.175
Photon Flux Upper Limit: 4.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.57e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670434/likelihoodResults_408844801_409104001_4FGL_J1438.9+3710_daily_bin654.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) = 575.243710347
delta logL = 0.348977638168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 575.232418953
delta logL = 0.360269032239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.322       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3658       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92299       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=   575.2324     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      222 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.329        25.763        .13946E-05    .26695E-05
   2  alpha         1.3659        .89854        .32189E-04   -.11148E-05
   3  Normalizat    .10000E-01    .56520       -.23078E-05** at limit **
   4  Prefactor     .92296        .33308        .48377E-06    .46884E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.3285
  alpha      = 1.36595
  Normalizat = 0.01
  Prefactor  = 0.92296
 **********
 **   18 **HESSE 
 **********

 FCN=   575.2324     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.329        25.641        .46785E-03   -1.4851    
   2  alpha         1.3659        .89040        .86957E-02   -.47082    
   3  Normalizat    .10000E-01    .91376        .86417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92296        .25682        .20737E-03   -.95343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29971e-11
Minuit parameter uncertainties:
  1  25.6563
  2  0.915984
  3  3.99921e-06
  4  0.257154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670434': 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) = 575.232418517
delta logL = 0.360269469071

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.833e+01  2.566e+01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  1.366e+00  9.160e-01  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:  9.230e-01  2.572e-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.000e-02  3.999e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 219.740 37.175
Photon Index (Free Index): 1.37 +/- 0.92
Photon Flux (Free Index): 4.50e-08 +/- 6.43e-08
Energy Flux (Free Index): 8.30e-05 +/- 1.76e-04

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/670434/cmap_HighResolution_408844801_409104001_4FGL_J1438.9+3710_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-04', comment='SUCCESS', energy_flux2='8.30e-05', dlogl='3.60e-01', photon_flux2='4.50e-08', job_status='DONE', time_completed='2021-09-10 03:34:59.111686', photon_index_error2='0.92', photon_index2='1.37', ts='0.65', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='4.59e-07', energy_flux_error2='1.76e-04', EG='0.01', time_epoch_completed='1631270099.11', return_code='0', job_id='670434', GAL2='0.92', EG2='0.01', return_code2='0', photon_flux_error2='6.43e-08', ts2='1.36', photon_index='2.31' WHERE bin_id='654' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:34:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 670434: <4FGL_J1438.9+3710_daily_bin654> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin654> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 03:26:24 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:26:25 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:26:25 2021
Terminated at Fri Sep 10 03:34:59 2021
Results reported at Fri Sep 10 03:34:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin654 219.74 37.1752 408844801 409104001 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 :                                   373.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             307.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            515 sec.

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

