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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin164
RA = 219.74, Dec = 37.1752
tmin = 281836801, tmax = 282096001
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='666002', job_status='RUN', time_executed='2021-09-10 03:13:39.032201', time_epoch_executed='1631268819.03' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666002

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666002/ft1_4FGL_J1438.9+3710_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666002/ft2_4FGL_J1438.9+3710_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666002/ft1_4FGL_J1438.9+3710_daily_bin164.fits outfile=/scratch/kocevski/666002/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin164.fits ra=219.74 dec=37.1752 rad=12.0 tmin=281836801.0 tmax=282096001.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.21
user 3.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/666002/ft2_4FGL_J1438.9+3710_daily_bin164.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/666002/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin164.fits evtable="EVENTS" outfile="/scratch/kocevski/666002/ft1_filtered_4FGL_J1438.9+3710_daily_bin164.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/666002/ft1_filtered_4FGL_J1438.9+3710_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/666002/ft2_4FGL_J1438.9+3710_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/666002/ltcube_281836801_282096001_4FGL_J1438.9+3710_daily_bin164.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/666002/ft2_4FGL_J1438.9+3710_daily_bin164.fits
.....................!
real 11.97
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666002/ft1_filtered_4FGL_J1438.9+3710_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/666002/ft2_4FGL_J1438.9+3710_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/666002/ltcube_281836801_282096001_4FGL_J1438.9+3710_daily_bin164.fits outfile=/scratch/kocevski/666002/expmap_281836801_282096001_4FGL_J1438.9+3710_daily_bin164.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/666002/ltcube_281836801_282096001_4FGL_J1438.9+3710_daily_bin164.fits
.....................!
real 191.80
user 185.86
sys 5.45

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/666002/ft1_filtered_4FGL_J1438.9+3710_daily_bin164.fits scfile=/scratch/kocevski/666002/ft2_4FGL_J1438.9+3710_daily_bin164.fits outfile=/scratch/kocevski/666002/cmap_281836801_282096001_4FGL_J1438.9+3710_daily_bin164.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666002/ft1_filtered_4FGL_J1438.9+3710_daily_bin164.fits scfile=/scratch/kocevski/666002/ft2_4FGL_J1438.9+3710_daily_bin164.fits outfile=/scratch/kocevski/666002/cmap_HighResolution_281836801_282096001_4FGL_J1438.9+3710_daily_bin164.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.57
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8836       1.0000         .10000E-03   10000.    
     3 'norm      '    .14054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1351       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4254       1.0000         .10000E-03   10000.    
    10 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.9622       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10935E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1635       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1008       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3840       1.0000         .10000E-03   10000.    
    22 'Prefactor '    57.506       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.994       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.6603       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0736       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98826       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=   6188.871     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3359 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.694        .61469E-05** at limit **
   2  Prefactor     6.8834        5.8722        .12845E-06   -.10213E-02
   3  norm          .10004E-03    13.341       -.73657E-06** at limit **
   4  Prefactor     .10000E-03    10.001       -.23574E-05** at limit **
   5  Prefactor     .10000E-03    7.3511       -.30146E-06** at limit **
   6  norm          3.1355        4.4289        .19132E-05    .20858E-03
   7  Prefactor     .10000E-03    7.8338        .20345E-05** at limit **
   8  Prefactor     .10000E-03    7.2752       -.67168E-06** at limit **
   9  Prefactor     8.4261        4.4536        .37434E-06    .13021E-03
  10  norm          .10000E-03    11.985       -.33487E-05** at limit **
  11  Prefactor     .10000E-03    20.776        .66767E-06** at limit **
  12  norm          5.9626        5.1834        .79536E-07    .31037E-04
  13  Prefactor     .10000E-03    14.108        .48530E-05** at limit **
  14  Prefactor     .10000E-03    9.5221       -.13672E-06** at limit **
  15  norm          .10000E-03    2.6365        .19121E-06** at limit **
  16  Prefactor     .10000E-03    22.029       -.46727E-05** at limit **
  17  Prefactor     1.1632        3.5737        .13682E-06   -.17776E-03
  18  Prefactor     .10000E-03    8.6505        .18456E-05** at limit **
  19  norm          .10000E-03    .65124       -.15868E-06** at limit **
  20  norm          1.0996        2.1975        .28957E-06    .32889E-03
  21  Prefactor     3.3826        3.9202        .78968E-08   -.16375E-04
  22  Prefactor     57.517        54.321        .76478E-05    .15247E-03
  23  Prefactor     .10000E-03    7.1737       -.10678E-05** at limit **
  24  Prefactor     .10000E-03    2.8895        .19010E-06** at limit **
  25  norm          11.996        2.2592       -.13870E-06    .60545E-04
  26  Prefactor     2.6429        8.9046        .28205E-05   -.90706E-03
  27  Prefactor     .10000E-03    6.2545        .59535E-06** at limit **
  28  norm          .10000E-03    4.2610        .28079E-06** at limit **
  29  Normalizat    1.0735        .17918       -.81908E-06    .17213E-03
  30  Prefactor     .98833        .19163        .41975E-07    .85854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 6.88343
  norm       = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.13547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.42611
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.96261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.16322
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.09956
  Prefactor  = 3.38264
  Prefactor  = 57.5171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9963
  Prefactor  = 2.64292
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.07349
  Prefactor  = 0.988333
 **********
 **   18 **HESSE 
 **********

 FCN=   6188.871     FROM HESSE     STATUS=OK           582 CALLS     3941 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.8834        6.0165        .76459E-03   -1.5183    
   3  norm          .10004E-03    65.457        .54611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1355        4.4145        .18720E-03   -1.5354    
   7  Prefactor     .10000E-03    7.8664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4261        4.4519        .11404E-03   -1.5127    
  10  norm          .10000E-03    12.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.9626        5.1908        .16082E-03   -1.5220    
  13  Prefactor     .10000E-03    14.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6388        .12475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.538        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1632        3.4889        .25227E-03   -1.5492    
  18  Prefactor     .10000E-03    8.9895        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.0262        .12198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0996        1.7353        .15958E-02   -1.5498    
  21  Prefactor     3.3826        3.8994        .16205E-03   -1.5340    
  22  Prefactor     57.517        54.435        .26451E-03   -1.4190    
  23  Prefactor     .10000E-03    7.2081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.8929        .13059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.996        2.5473        .45887E-04   -1.5015    
  26  Prefactor     2.6429        23.680        .12495E-02   -1.5383    
  27  Prefactor     .10000E-03    6.2560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.2630        .15859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0735        .20438        .23628E-03   -.90608    
  30  Prefactor     .98833        .22165        .27160E-03   -.93119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35842e-09
Minuit parameter uncertainties:
  1  0.000355753
  2  6.01701
  3  0.00308128
  4  7.17718e-05
  5  3.56557e-06
  6  4.41499
  7  3.58004e-05
  8  2.27072e-05
  9  4.45204
  10  0.000130924
  11  3.47964e-05
  12  5.19115
  13  0.00016315
  14  3.01578e-06
  15  3.48916e-06
  16  0.000146781
  17  3.48947
  18  2.69709e-05
  19  2.03986e-05
  20  1.73541
  21  3.8997
  22  54.4821
  23  2.54446e-05
  24  2.61953e-06
  25  2.54734
  26  15.8302
  27  1.04867e-05
  28  3.42174e-06
  29  0.204529
  30  0.221851
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  5.963e+00  5.191e+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.883e-01  2.219e-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.073e+00  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.30
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 9.26e-06 +/- 8.06e-06

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) = 6187.85464392
delta logL = 1.01679033143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6186.81285081
delta logL = 2.05858344402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55585       1.0000         .10000E-03   10000.    
     2 'alpha     '    .43936       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96899       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=   6186.813     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      211 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55589        .64104        .11497E-01    .19797E-02
   2  alpha         .43929        .48933        .42620        .15631E-04
   3  Normalizat    1.1073        .17149        .37710E-01    .91494E-05
   4  Prefactor     .96914        .19088        .45878E-01    .14086E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.555886
  alpha      = 0.439295
  Normalizat = 1.10726
  Prefactor  = 0.969138
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.813     FROM HESSE     STATUS=OK            35 CALLS      246 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55589        1.1337        .51908E-03   -1.5559    
   2  alpha         .43929        .67460        .21309E-01   -.96893    
   3  Normalizat    1.1073        .19771        .23300E-03   -.89519    
   4  Prefactor     .96914        .21999        .27389E-03   -.93765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28382e-09
Minuit parameter uncertainties:
  1  1.13376
  2  0.703166
  3  0.197845
  4  0.220196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666002': 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) = 6186.81285037
delta logL = 2.05858388414

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  5.559e-01  1.134e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  4.393e-01  7.032e-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.691e-01  2.202e-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.107e+00  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.38
Ra Dec: 219.740 37.175
Photon Index (Free Index): 0.44 +/- 0.70
Photon Flux (Free Index): 3.36e-09 +/- 3.47e-09
Energy Flux (Free Index): 5.32e-05 +/- 7.50e-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/666002/cmap_HighResolution_281836801_282096001_4FGL_J1438.9+3710_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='5.32e-05', photon_flux_error='2.35e-08', dlogl='2.06e+00', energy_flux='9.26e-06', photon_flux2='3.36e-09', job_status='DONE', time_completed='2021-09-10 03:25:09.856430', photon_index_error2='0.70', photon_index2='0.44', ts='4.30', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='7.50e-05', EG='1.07', time_epoch_completed='1631269509.86', return_code='0', job_id='666002', GAL2='0.97', EG2='1.11', return_code2='0', energy_flux_error='8.06e-06', photon_flux_error2='3.47e-09', ts2='8.38', photon_index='2.31' WHERE bin_id='164' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:25:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 666002: <4FGL_J1438.9+3710_daily_bin164> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin164> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:11:22 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:11:23 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:11:23 2021
Terminated at Fri Sep 10 03:25:10 2021
Results reported at Fri Sep 10 03:25:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin164 219.74 37.1752 281836801 282096001 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 :                                   689.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             296.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            828 sec.

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

