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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin640
RA = 219.74, Dec = 37.1752
tmin = 405216001, tmax = 405475201
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='670411', job_status='RUN', time_executed='2021-09-10 03:29:02.918678', time_epoch_executed='1631269742.92' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670411/ft1_4FGL_J1438.9+3710_daily_bin640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670411/ft2_4FGL_J1438.9+3710_daily_bin640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670411/ft1_4FGL_J1438.9+3710_daily_bin640.fits outfile=/scratch/kocevski/670411/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin640.fits ra=219.74 dec=37.1752 rad=12.0 tmin=405216001.0 tmax=405475201.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.36
user 3.16
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670411/ft1_filtered_4FGL_J1438.9+3710_daily_bin640.fits" evtable="EVENTS" scfile=/scratch/kocevski/670411/ft2_4FGL_J1438.9+3710_daily_bin640.fits sctable="SC_DATA" outfile=/scratch/kocevski/670411/ltcube_405216001_405475201_4FGL_J1438.9+3710_daily_bin640.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/670411/ft2_4FGL_J1438.9+3710_daily_bin640.fits
.....................!
real 11.70
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670411/ft1_filtered_4FGL_J1438.9+3710_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/670411/ft2_4FGL_J1438.9+3710_daily_bin640.fits sctable="SC_DATA" expcube=/scratch/kocevski/670411/ltcube_405216001_405475201_4FGL_J1438.9+3710_daily_bin640.fits outfile=/scratch/kocevski/670411/expmap_405216001_405475201_4FGL_J1438.9+3710_daily_bin640.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/670411/ltcube_405216001_405475201_4FGL_J1438.9+3710_daily_bin640.fits
.....................!
real 189.66
user 184.95
sys 4.35

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/670411/ft1_filtered_4FGL_J1438.9+3710_daily_bin640.fits scfile=/scratch/kocevski/670411/ft2_4FGL_J1438.9+3710_daily_bin640.fits outfile=/scratch/kocevski/670411/cmap_405216001_405475201_4FGL_J1438.9+3710_daily_bin640.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670411/ft1_filtered_4FGL_J1438.9+3710_daily_bin640.fits scfile=/scratch/kocevski/670411/ft2_4FGL_J1438.9+3710_daily_bin640.fits outfile=/scratch/kocevski/670411/cmap_HighResolution_405216001_405475201_4FGL_J1438.9+3710_daily_bin640.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.658       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9449       1.0000         .10000E-03   10000.    
     3 'norm      '    11.947       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.658       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4286       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26837E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.950       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.023       1.0000         .10000E-03   10000.    
    12 'norm      '    .11091E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    61.012       1.0000         .10000E-03   10000.    
    15 'norm      '    14.353       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.5319       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.3363       1.0000         .10000E-03   10000.    
    25 'norm      '    2.3255       1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.693       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .56566       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2308       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=   4959.358     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3961 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.624        67.866       -.11548E-06   -.32960E-04
   2  Prefactor     3.9444        4.6658       -.49311E-07    .14601E-03
   3  norm          11.945        11.714       -.29930E-07    .63657E-04
   4  Prefactor     .10000E-03    5.9328       -.21768E-07** at limit **
   5  Prefactor     30.650        19.625       -.62008E-07   -.28301E-04
   6  norm          2.4294        4.1339        .14056E-06    .78050E-03
   7  Prefactor     .10010E-03    41.996       -.76793E-05** at limit **
   8  Prefactor     20.947        19.373        .11504E-05    .69530E-03
   9  Prefactor     .10000E-03    1.8768        .10869E-07** at limit **
  10  norm          .10000E-03    7.5287       -.64800E-07** at limit **
  11  Prefactor     22.020        18.142       -.34967E-07    .43583E-04
  12  norm          .10000E-03    5.8554        .20773E-06** at limit **
  13  Prefactor     .10000E-03    22.563       -.80602E-07** at limit **
  14  Prefactor     60.995        41.388        .29790E-07   -.79739E-04
  15  norm          14.353        12.516        .56880E-07   -.31983E-04
  16  Prefactor     .10000E-03    11.938        .78005E-08** at limit **
  17  Prefactor     .10000E-03    8.6936       -.10784E-07** at limit **
  18  Prefactor     .10000E-03    6.7691        .13861E-07** at limit **
  19  norm          4.5320        1.9849       -.65030E-08    .28155E-03
  20  norm          .10000E-03    1.9067        .20907E-07** at limit **
  21  Prefactor     .10000E-03    4.9998        .63858E-07** at limit **
  22  Prefactor     .10000E-03    24.699        .30918E-07** at limit **
  23  Prefactor     .10000E-03    15.082        .60979E-07** at limit **
  24  Prefactor     3.3364        9.6572        .48110E-08    .17279E-03
  25  norm          2.3253        1.5405        .10873E-07    .25490E-03
  26  Prefactor     34.696        15.572       -.28201E-07    .29857E-04
  27  Prefactor     .10000E-03    5.4259       -.19865E-07** at limit **
  28  norm          .10000E-03    4.9995        .16565E-07** at limit **
  29  Normalizat    .56563        .20744        .28028E-05    .33712E-03
  30  Prefactor     1.2308        .21473       -.20365E-05   -.15916E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6239
  Prefactor  = 3.94445
  norm       = 11.9455
  Prefactor  = 0.0001
  Prefactor  = 30.6498
  norm       = 2.42945
  Prefactor  = 0.000100102
  Prefactor  = 20.947
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.0205
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 60.9951
  norm       = 14.3526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.532
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.33641
  norm       = 2.32533
  Prefactor  = 34.6957
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.565626
  Prefactor  = 1.23085
 **********
 **   18 **HESSE 
 **********

 FCN=   4959.358     FROM HESSE     STATUS=OK           582 CALLS     4543 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.624        68.145        .95312E-04   -1.4868    
   2  Prefactor     3.9444        4.6649        .15963E-03   -1.5311    
   3  norm          11.945        11.707        .11590E-03   -1.5017    
   4  Prefactor     .10000E-03    5.9345        .16753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.650        19.647        .72362E-04   -1.4600    
   6  norm          2.4294        4.1209        .17598E-03   -1.5396    
   7  Prefactor     .10010E-03    55.742        .42460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.947        19.460        .87508E-04   -1.4792    
   9  Prefactor     .10000E-03    1.9014        .94135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.5356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.020        18.142        .85352E-04   -1.4769    
  12  norm          .10000E-03    15.463        .31993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     60.995        41.441        .51369E-04   -1.4144    
  15  norm          14.353        12.440        .10572E-03   -1.4950    
  16  Prefactor     .10000E-03    11.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.7776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.0778        .35789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.5320        1.9822        .62243E-04   -1.5282    
  20  norm          .10000E-03    1.9503        .18961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.0235        .15317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.3364        9.6257        .22159E-03   -1.5343    
  25  norm          2.3253        1.5396        .59906E-04   -1.5403    
  26  Prefactor     34.696        15.588        .68036E-04   -1.4529    
  27  Prefactor     .10000E-03    5.4276        .16021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    5.0096        .15380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .56563        .23308        .28347E-03   -1.0946    
  30  Prefactor     1.2308        .24455        .22670E-03   -.85387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14206e-09
Minuit parameter uncertainties:
  1  68.4485
  2  4.66532
  3  11.7094
  4  9.93139e-07
  5  19.6507
  6  4.12142
  7  0.0047841
  8  19.4655
  9  9.92012e-06
  10  2.88601e-06
  11  18.1467
  12  0.000277431
  13  6.88377e-05
  14  41.4608
  15  12.4424
  16  2.31025e-05
  17  5.52644e-05
  18  1.03047e-05
  19  1.98227
  20  4.30937e-06
  21  2.03262e-06
  22  1.26188e-05
  23  8.22701e-07
  24  9.63021
  25  1.53966
  26  15.5902
  27  1.35634e-05
  28  9.91328e-06
  29  0.233482
  30  0.244772
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  2.774e-04  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:  1.231e+00  2.448e-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:  5.656e-01  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/670411/likelihoodResults_405216001_405475201_4FGL_J1438.9+3710_daily_bin640.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) = 4959.35878925
delta logL = -0.000306837870085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4959.35848587
delta logL = -3.45964417647e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30256E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4265       1.0000          .0000       5.0000    
     3 'Normalizat'    .56614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2303       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4959.358     FROM MIGRAD    STATUS=FAILED        95 CALLS      261 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10189E-03    65.412        .26437E-02** at limit **
   2  alpha         2.4373        3.6034        .16470E-01   -.47147E-04
   3  Normalizat    .56562        .20538        .28346E-03    .27986E-03
   4  Prefactor     1.2309        .23614        .22670E-03    .23165E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4959.358     FROM SIMPLEX   STATUS=UNCHANGED    114 CALLS      375 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10189E-03    65.412        .86429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4373        3.6034        .52849E-03   -.25093E-01
   3  Normalizat    .56562        .20538        .84444E-04   -1.0946    
   4  Prefactor     1.2309        .23614        .47126E-04   -.85387    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4959.358     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      402 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    54.776        .52873E-03** at limit **
   2  alpha         2.4376        3.5399        .32939E-02   -.46299E-04
   3  Normalizat    .56562        .20546        .11339E-04   -.17045E-03
   4  Prefactor     1.2309        .23632        .45340E-04   -.16925E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100045
  alpha      = 2.43762
  Normalizat = 0.565616
  Prefactor  = 1.23086
 **********
 **   18 **HESSE 
 **********

 FCN=   4959.358     FROM HESSE     STATUS=OK            23 CALLS      425 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    54.381        .10575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4376        3.5373        .65879E-03   -.24956E-01
   3  Normalizat    .56562        .20559        .22677E-05   -1.0946    
   4  Prefactor     1.2309        .23645        .90680E-05   -.85387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94493e-09
Minuit parameter uncertainties:
  1  0.00314884
  2  2.4997
  3  0.205864
  4  0.236656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670411': 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) = 4959.3584801
delta logL = 2.31169451581e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.231e+00  2.367e-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:  5.656e-01  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/670411/cmap_HighResolution_405216001_405475201_4FGL_J1438.9+3710_daily_bin640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-05', job_status='DONE', photon_flux_upper_limit='7.71e-08', time_completed='2021-09-10 03:41:14.105458', job_id='670411', GAL2='1.23', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1631270474.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='2.31e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='640' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:41:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 670411: <4FGL_J1438.9+3710_daily_bin640> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin640 219.74 37.1752 405216001 405475201 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 :                                   730.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

