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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin1368
RA = 219.74, Dec = 37.1752
tmin = 593913601, tmax = 594172801
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='675225', job_status='RUN', time_executed='2021-09-10 03:41:32.669819', time_epoch_executed='1631270492.67' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='1368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675225

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675225/ft1_4FGL_J1438.9+3710_daily_bin1368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675225/ft2_4FGL_J1438.9+3710_daily_bin1368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675225/ft1_4FGL_J1438.9+3710_daily_bin1368.fits outfile=/scratch/kocevski/675225/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin1368.fits ra=219.74 dec=37.1752 rad=12.0 tmin=593913601.0 tmax=594172801.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.33
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675225/ft1_filtered_4FGL_J1438.9+3710_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/675225/ft2_4FGL_J1438.9+3710_daily_bin1368.fits sctable="SC_DATA" expcube=/scratch/kocevski/675225/ltcube_593913601_594172801_4FGL_J1438.9+3710_daily_bin1368.fits outfile=/scratch/kocevski/675225/expmap_593913601_594172801_4FGL_J1438.9+3710_daily_bin1368.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/675225/ltcube_593913601_594172801_4FGL_J1438.9+3710_daily_bin1368.fits
.....................!
real 191.30
user 185.75
sys 5.11

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/675225/ft1_filtered_4FGL_J1438.9+3710_daily_bin1368.fits scfile=/scratch/kocevski/675225/ft2_4FGL_J1438.9+3710_daily_bin1368.fits outfile=/scratch/kocevski/675225/cmap_593913601_594172801_4FGL_J1438.9+3710_daily_bin1368.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675225/ft1_filtered_4FGL_J1438.9+3710_daily_bin1368.fits scfile=/scratch/kocevski/675225/ft2_4FGL_J1438.9+3710_daily_bin1368.fits outfile=/scratch/kocevski/675225/cmap_HighResolution_593913601_594172801_4FGL_J1438.9+3710_daily_bin1368.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .74396       1.0000         .10000E-03   10000.    
     3 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.090       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.511       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0267       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7009       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4380       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3702       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.538       1.0000         .10000E-03   10000.    
    15 'norm      '    9.4803       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.650       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10196E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .57747E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.878       1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.603       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .81019       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11236E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    14.516       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0600       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .79634       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=   6768.194     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3942 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    112.93        .12325E-05** at limit **
   2  Prefactor     .74433        7.1393        .48747E-05   -.13151E-03
   3  norm          .10000E-03    9.8467        .44336E-06** at limit **
   4  Prefactor     .10000E-03    4.9322        .55448E-07** at limit **
   5  Prefactor     .10000E-03    4.3387        .88410E-07** at limit **
   6  norm          .10000E-03    1.9715        .89611E-07** at limit **
   7  Prefactor     .10000E-03    14.048        .30389E-06** at limit **
   8  Prefactor     27.084        17.724       -.31913E-06   -.81289E-04
   9  Prefactor     49.511        7.2456        .36840E-07   -.16296E-03
  10  norm          2.0275        23.229        .21486E-05   -.22650E-04
  11  Prefactor     3.7004        46.486        .15670E-04   -.50012E-04
  12  norm          5.4377        4.7541        .86769E-06   -.16063E-03
  13  Prefactor     8.3672        33.423       -.16197E-05   -.20905E-04
  14  Prefactor     23.534        32.100        .62936E-06   -.15143E-04
  15  norm          9.4804        7.4936        .35128E-07   -.25915E-05
  16  Prefactor     18.650        11.319        .90371E-07    .10641E-04
  17  Prefactor     .10000E-03    3.7783       -.37793E-08** at limit **
  18  Prefactor     .10000E-03    1.5222        .51548E-07** at limit **
  19  norm          .10000E-03    .51189       -.58030E-06** at limit **
  20  norm          .57175E-01    1.2844       -.16832E-08    .13196E-03
  21  Prefactor     .10000E-03    3.4103        .72059E-07** at limit **
  22  Prefactor     26.780        52.191       -.18831E-05   -.23391E-03
  23  Prefactor     38.603        21.061        .45871E-06   -.28947E-04
  24  Prefactor     .10000E-03    18.037        .40505E-06** at limit **
  25  norm          .81011        1.1365        .13499E-05   -.44682E-03
  26  Prefactor     .10000E-03    3.8900       -.44077E-06** at limit **
  27  Prefactor     .10000E-03    16.605       -.64312E-06** at limit **
  28  norm          14.520        14.902        .50293E-07   -.16247E-04
  29  Normalizat    1.0602        .17019       -.11180E-05   -.16635E-03
  30  Prefactor     .79619        .17467       -.18872E-05   -.86904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.744329
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.0839
  Prefactor  = 49.5106
  norm       = 2.02746
  Prefactor  = 3.70037
  norm       = 5.43773
  Prefactor  = 8.36715
  Prefactor  = 23.5343
  norm       = 9.48044
  Prefactor  = 18.6495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0571751
  Prefactor  = 0.0001
  Prefactor  = 26.7802
  Prefactor  = 38.6033
  Prefactor  = 0.0001
  norm       = 0.810112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.5197
  Normalizat = 1.06016
  Prefactor  = 0.796188
 **********
 **   18 **HESSE 
 **********

 FCN=   6768.194     FROM HESSE     STATUS=OK           586 CALLS     4528 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    113.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .74433        7.3233        .41914E-03   -1.5535    
   3  norm          .10000E-03    10.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9331        .17843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3432        .16736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.0135        .11272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.084        17.594        .76970E-04   -1.4667    
   9  Prefactor     49.511        7.2600        .56991E-04   -1.4300    
  10  norm          2.0275        23.005        .29063E-03   -1.5423    
  11  Prefactor     3.7004        47.139        .10496E-02   -1.5323    
  12  norm          5.4377        4.7485        .80513E-03   -1.5242    
  13  Prefactor     8.3672        33.369        .13857E-03   -1.5129    
  14  Prefactor     23.534        32.163        .82563E-04   -1.4737    
  15  norm          9.4804        7.4941        .13016E-03   -1.5092    
  16  Prefactor     18.650        11.322        .92744E-04   -1.4844    
  17  Prefactor     .10000E-03    3.8630        .15611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5246        .99127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .52851        .11414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .57175E-01    15.498        .17959E-02   -1.5660    
  21  Prefactor     .10000E-03    3.4221        .14816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.780        52.074        .77273E-04   -1.4673    
  23  Prefactor     38.603        20.910        .64510E-04   -1.4465    
  24  Prefactor     .10000E-03    18.328        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .81011        1.1404        .24956E-03   -1.5528    
  26  Prefactor     .10000E-03    3.9049        .15849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          14.520        14.889        .10513E-03   -1.4946    
  29  Normalizat    1.0602        .19928        .23318E-03   -.91041    
  30  Prefactor     .79619        .20360        .28854E-03   -.99869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03634e-09
Minuit parameter uncertainties:
  1  0.00040819
  2  4.6699
  3  1.60712e-05
  4  8.18683e-07
  5  1.00144e-06
  6  1.11835e-06
  7  3.51823e-05
  8  17.5975
  9  7.26016
  10  13.6653
  11  26.44
  12  4.7488
  13  33.444
  14  32.1865
  15  7.49484
  16  11.323
  17  2.18781e-05
  18  8.92112e-07
  19  6.72019e-06
  20  1.88147
  21  2.17587e-06
  22  52.1629
  23  20.9145
  24  5.89756e-05
  25  1.14043
  26  4.12158e-05
  27  5.04044e-05
  28  14.8925
  29  0.199419
  30  0.203792
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.962e-01  2.038e-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.060e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.92
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.46e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 8.45e-06 +/- 7.38e-06

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

Saving results to:
/scratch/kocevski/675225/likelihoodResults_593913601_594172801_4FGL_J1438.9+3710_daily_bin1368.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) = 6767.60841
delta logL = 0.585443352799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6767.6009878
delta logL = 0.592865549289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9142       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5320       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78707       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=   6767.601     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9170        4.1286        .45359E-02    .16230E-03
   2  alpha         1.5315        .48897        .45348       -.71480E-04
   3  Normalizat    1.0746        .15823        .39154E-01   -.20242E-03
   4  Prefactor     .78687        .17271        .65553E-01    .21987E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.91704
  alpha      = 1.53151
  Normalizat = 1.07459
  Prefactor  = 0.78687
 **********
 **   18 **HESSE 
 **********

 FCN=   6767.601     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9170        4.7435        .14878E-03   -1.5264    
   2  alpha         1.5315        .65550        .17078E-01   -.39781    
   3  Normalizat    1.0746        .18297        .23183E-03   -.90572    
   4  Prefactor     .78687        .19946        .28999E-03   -1.0021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15529e-10
Minuit parameter uncertainties:
  1  4.74387
  2  0.664678
  3  0.183079
  4  0.199646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675225': 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) = 6767.60098611
delta logL = 0.592867235407

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.917e+00  4.744e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  1.532e+00  6.647e-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:  7.869e-01  1.996e-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.075e+00  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.11
Ra Dec: 219.740 37.175
Photon Index (Free Index): 1.53 +/- 0.66
Photon Flux (Free Index): 1.25e-08 +/- 1.37e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.81e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/675225/cmap_HighResolution_593913601_594172801_4FGL_J1438.9+3710_daily_bin1368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-05', comment='SUCCESS', photon_flux='2.46e-08', energy_flux2='1.56e-05', photon_flux_error='2.15e-08', dlogl='5.93e-01', energy_flux='8.45e-06', photon_flux2='1.25e-08', job_status='DONE', time_completed='2021-09-10 03:56:49.916825', photon_index_error2='0.66', photon_index2='1.53', ts='2.92', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='7.93e-08', energy_flux_error2='1.81e-05', EG='1.06', time_epoch_completed='1631271409.92', return_code='0', job_id='675225', GAL2='0.79', EG2='1.07', return_code2='0', energy_flux_error='7.38e-06', photon_flux_error2='1.37e-08', ts2='4.11', photon_index='2.31' WHERE bin_id='1368' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:56:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 675225: <4FGL_J1438.9+3710_daily_bin1368> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin1368 219.74 37.1752 593913601 594172801 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 :                                   911.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

