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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin890
RA = 219.74, Dec = 37.1752
tmin = 470016001, tmax = 470275201
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='671840', job_status='RUN', time_executed='2021-09-10 03:34:59.036588', time_epoch_executed='1631270099.04' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671840

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671840/ft1_4FGL_J1438.9+3710_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671840/ft2_4FGL_J1438.9+3710_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671840/ft1_4FGL_J1438.9+3710_daily_bin890.fits outfile=/scratch/kocevski/671840/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin890.fits ra=219.74 dec=37.1752 rad=12.0 tmin=470016001.0 tmax=470275201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.56
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671840/ft2_4FGL_J1438.9+3710_daily_bin890.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/671840/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin890.fits evtable="EVENTS" outfile="/scratch/kocevski/671840/ft1_filtered_4FGL_J1438.9+3710_daily_bin890.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.50
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671840/ft1_filtered_4FGL_J1438.9+3710_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/671840/ft2_4FGL_J1438.9+3710_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/671840/ltcube_470016001_470275201_4FGL_J1438.9+3710_daily_bin890.fits outfile=/scratch/kocevski/671840/expmap_470016001_470275201_4FGL_J1438.9+3710_daily_bin890.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/671840/ltcube_470016001_470275201_4FGL_J1438.9+3710_daily_bin890.fits
.....................!
real 192.17
user 186.28
sys 4.91

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/671840/ft1_filtered_4FGL_J1438.9+3710_daily_bin890.fits scfile=/scratch/kocevski/671840/ft2_4FGL_J1438.9+3710_daily_bin890.fits outfile=/scratch/kocevski/671840/cmap_470016001_470275201_4FGL_J1438.9+3710_daily_bin890.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671840/ft1_filtered_4FGL_J1438.9+3710_daily_bin890.fits scfile=/scratch/kocevski/671840/ft2_4FGL_J1438.9+3710_daily_bin890.fits outfile=/scratch/kocevski/671840/cmap_HighResolution_470016001_470275201_4FGL_J1438.9+3710_daily_bin890.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10870E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6777       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.405       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .50750E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1484       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3461       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5411       1.0000         .10000E-03   10000.    
    12 'norm      '    11.704       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.999       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5235       1.0000         .10000E-03   10000.    
    19 'norm      '    10.363       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3302       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.3052       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.8464       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    12.106       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .87160       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98967       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=   6234.135     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3322 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    101.63       -.52024E-05** at limit **
   2  Prefactor     .10000E-03    1.9326        .53392E-08** at limit **
   3  norm          6.6672        16.052        .52880E-06   -.62964E-04
   4  Prefactor     .10000E-03    24.031        .26921E-05** at limit **
   5  Prefactor     .10000E-03    6.7918       -.26048E-07** at limit **
   6  norm          12.403        5.1008       -.45990E-08   -.58215E-03
   7  Prefactor     .10066E-03    8.7330        .31136E-05** at limit **
   8  Prefactor     8.1323        10.022       -.11150E-05   -.87890E-03
   9  Prefactor     2.3464        3.2106        .64614E-07   -.23009E-03
  10  norm          .10000E-03    5.6528        .19899E-07** at limit **
  11  Prefactor     6.5412        21.601       -.14573E-07   -.44508E-04
  12  norm          11.704        6.7380        .20502E-06    .73647E-05
  13  Prefactor     .10000E-03    25.233        .17009E-05** at limit **
  14  Prefactor     .10000E-03    11.734        .91752E-07** at limit **
  15  norm          .10000E-03    3.8341        .84585E-08** at limit **
  16  Prefactor     .10002E-03    34.222       -.10636E-04** at limit **
  17  Prefactor     12.000        8.4566        .10300E-06    .13970E-03
  18  Prefactor     3.5235        3.4422        .56016E-06   -.16767E-02
  19  norm          10.364        2.4485        .20057E-09    .22471E-03
  20  norm          .10000E-03    .65084       -.56614E-08** at limit **
  21  Prefactor     1.3302        3.1055        .87369E-07   -.17826E-03
  22  Prefactor     .10000E-03    24.686        .24091E-05** at limit **
  23  Prefactor     .10000E-03    5.1711       -.18185E-07** at limit **
  24  Prefactor     .10000E-03    2.9332       -.10327E-08** at limit **
  25  norm          6.3054        1.7784       -.68636E-07    .85506E-04
  26  Prefactor     5.8465        9.8665        .11041E-05   -.78318E-03
  27  Prefactor     .10000E-03    20.739       -.28215E-05** at limit **
  28  norm          12.107        13.111        .16914E-06    .80715E-04
  29  Normalizat    .87156        .17508       -.25528E-06   -.18859E-03
  30  Prefactor     .98961        .19056       -.43676E-07   -.11438E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 6.66715
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.4028
  Prefactor  = 0.000100664
  Prefactor  = 8.13231
  Prefactor  = 2.34638
  norm       = 0.0001
  Prefactor  = 6.54117
  norm       = 11.7039
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 11.9996
  Prefactor  = 3.52353
  norm       = 10.3636
  norm       = 0.0001
  Prefactor  = 1.33019
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.30541
  Prefactor  = 5.84653
  Prefactor  = 0.000100002
  norm       = 12.1071
  Normalizat = 0.87156
  Prefactor  = 0.989613
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.135     FROM HESSE     STATUS=OK           588 CALLS     3910 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    102.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9385        .10718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6672        16.035        .15528E-03   -1.5191    
   4  Prefactor     .10000E-03    24.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.403        5.0805        .10920E-03   -1.5003    
   7  Prefactor     .10066E-03    54.518        .38044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.1323        9.7157        .14045E-03   -1.5138    
   9  Prefactor     2.3464        3.2042        .15765E-03   -1.5402    
  10  norm          .10000E-03    5.6569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.5412        21.604        .15691E-03   -1.5196    
  12  norm          11.704        6.7395        .11710E-03   -1.5024    
  13  Prefactor     .10000E-03    25.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.8391        .15098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    35.611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.000        8.4667        .11565E-03   -1.5015    
  18  Prefactor     3.5235        4.0719        .83589E-03   -1.5333    
  19  norm          10.364        2.4520        .55215E-04   -1.5064    
  20  norm          .10000E-03    .65135        .62176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3302        3.0545        .20713E-03   -1.5477    
  22  Prefactor     .10000E-03    24.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.1766        .17535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.9400        .13205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.3054        1.8550        .48648E-04   -1.5206    
  26  Prefactor     5.8465        12.005        .83047E-03   -1.5224    
  27  Prefactor     .10000E-03    20.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          12.107        13.086        .11513E-03   -1.5012    
  29  Normalizat    .87156        .20431        .25112E-03   -.97467    
  30  Prefactor     .98961        .22297        .26530E-03   -.93077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58475e-08
Minuit parameter uncertainties:
  1  0.00157165
  2  2.23366e-07
  3  16.0457
  4  0.000333988
  5  1.9621e-06
  6  5.08064
  7  0.0120447
  8  9.71757
  9  3.20439
  10  2.02735e-06
  11  21.63
  12  6.7399
  13  0.000248471
  14  1.10745e-05
  15  2.15738e-06
  16  0.00172799
  17  8.46755
  18  4.0722
  19  2.45206
  20  9.23369e-08
  21  3.05488
  22  0.000357501
  23  9.80774e-07
  24  1.51186e-07
  25  1.85503
  26  12.0102
  27  0.000384622
  28  13.0896
  29  0.204491
  30  0.223175
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.170e+01  6.740e+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:  9.896e-01  2.232e-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:  8.716e-01  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.94
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.30e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.05e-05

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) = 6234.08999116
delta logL = 0.044621525758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6234.08882658
delta logL = 0.0457861046116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.857       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4709       1.0000          .0000       5.0000    
     3 'Normalizat'    .86435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99507       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6234.089     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      267 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.866        7.1810        .60797E-03    .79432E-04
   2  alpha         2.4709        .55009        .12827E-01    .12929E-03
   3  Normalizat    .86448        .19940        .25199E-03   -.36995E-05
   4  Prefactor     .99491        .22241        .26466E-03   -.71736E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8663
  alpha      = 2.47088
  Normalizat = 0.864479
  Prefactor  = 0.994907
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.089     FROM HESSE     STATUS=OK            27 CALLS      294 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.866        7.0283        .12159E-03   -1.5049    
   2  alpha         2.4709        .53842        .25653E-02   -.11649E-01
   3  Normalizat    .86448        .19961        .10080E-04   -.97720    
   4  Prefactor     .99491        .22263        .10586E-04   -.92899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41967e-12
Minuit parameter uncertainties:
  1  7.02878
  2  0.542676
  3  0.199778
  4  0.222834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671840': 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) = 6234.08882508
delta logL = 0.0457876000373

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.087e+01  7.029e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.471e+00  5.427e-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.949e-01  2.228e-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:  8.645e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.03
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.47 +/- 0.54
Photon Flux (Free Index): 5.85e-08 +/- 3.70e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.02e-05

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/671840/cmap_HighResolution_470016001_470275201_4FGL_J1438.9+3710_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.30e-08', energy_flux2='1.72e-05', photon_flux_error='3.05e-08', dlogl='4.58e-02', energy_flux='1.82e-05', photon_flux2='5.85e-08', job_status='DONE', time_completed='2021-09-10 03:46:39.061892', photon_index_error2='0.54', photon_index2='2.47', ts='5.94', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.02e-05', EG='0.87', time_epoch_completed='1631270799.06', return_code='0', job_id='671840', GAL2='0.99', EG2='0.86', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.70e-08', ts2='6.03', photon_index='2.31' WHERE bin_id='890' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:46:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 671840: <4FGL_J1438.9+3710_daily_bin890> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin890> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 03:31:39 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:31:41 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:41 2021
Terminated at Fri Sep 10 03:46:39 2021
Results reported at Fri Sep 10 03:46:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin890 219.74 37.1752 470016001 470275201 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 :                                   696.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

