/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 145 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 = 7436
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1338.0+6534_daily_bin72
RA = 204.516, Dec = 65.5696
tmin = 257990401, tmax = 258249601
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='817711', job_status='RUN', time_executed='2021-09-08 05:38:07.843547', time_epoch_executed='1631104687.84' WHERE source_name='4FGL J1338.0+6534' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817711

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817711/ft1_4FGL_J1338.0+6534_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817711/ft2_4FGL_J1338.0+6534_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817711/ft1_4FGL_J1338.0+6534_daily_bin72.fits outfile=/scratch/kocevski/817711/ft1_filteredMKT_4FGL_J1338.0+6534_daily_bin72.fits ra=204.516 dec=65.5696 rad=12.0 tmin=257990401.0 tmax=258249601.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 1.23
user 1.04
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/817711/ft2_4FGL_J1338.0+6534_daily_bin72.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/817711/ft2_4FGL_J1338.0+6534_daily_bin72.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/817711/ft1_filteredMKT_4FGL_J1338.0+6534_daily_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/817711/ft1_filtered_4FGL_J1338.0+6534_daily_bin72.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.47
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817711/ft1_filtered_4FGL_J1338.0+6534_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/817711/ft2_4FGL_J1338.0+6534_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/817711/ltcube_257990401_258249601_4FGL_J1338.0+6534_daily_bin72.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/817711/ft2_4FGL_J1338.0+6534_daily_bin72.fits
.....................!
real 15.97
user 15.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817711/ft1_filtered_4FGL_J1338.0+6534_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/817711/ft2_4FGL_J1338.0+6534_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/817711/ltcube_257990401_258249601_4FGL_J1338.0+6534_daily_bin72.fits outfile=/scratch/kocevski/817711/expmap_257990401_258249601_4FGL_J1338.0+6534_daily_bin72.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/817711/ltcube_257990401_258249601_4FGL_J1338.0+6534_daily_bin72.fits
.....................!
real 156.95
user 152.11
sys 4.20

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 232 point sources and 0 extended sources

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/817711/ft1_filtered_4FGL_J1338.0+6534_daily_bin72.fits scfile=/scratch/kocevski/817711/ft2_4FGL_J1338.0+6534_daily_bin72.fits outfile=/scratch/kocevski/817711/cmap_257990401_258249601_4FGL_J1338.0+6534_daily_bin72.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=204.516 yref=65.5696 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.51
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817711/ft1_filtered_4FGL_J1338.0+6534_daily_bin72.fits scfile=/scratch/kocevski/817711/ft2_4FGL_J1338.0+6534_daily_bin72.fits outfile=/scratch/kocevski/817711/cmap_HighResolution_257990401_258249601_4FGL_J1338.0+6534_daily_bin72.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=204.516 yref=65.5696 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.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817711/ft1_filtered_4FGL_J1338.0+6534_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/817711/ft2_4FGL_J1338.0+6534_daily_bin72.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817711/Model_4FGL_J1338.0+6534_daily_bin72.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/817711/ft1_filtered_4FGL_J1338.0+6534_daily_bin72.fits.....................!
real 41.70
user 40.36
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/817711/ft1_filtered_4FGL_J1338.0+6534_daily_bin72.fits', '/scratch/kocevski/817711/ft2_4FGL_J1338.0+6534_daily_bin72.fits', expMap='/scratch/kocevski/817711/expmap_257990401_258249601_4FGL_J1338.0+6534_daily_bin72.fits', expCube='/scratch/kocevski/817711/ltcube_257990401_258249601_4FGL_J1338.0+6534_daily_bin72.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/817711/Model_4FGL_J1338.0+6534_daily_bin72.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/817711/ft1_filtered_4FGL_J1338.0+6534_daily_bin72.fits
Spacecraft file(s): /scratch/kocevski/817711/ft2_4FGL_J1338.0+6534_daily_bin72.fits
Exposure map: /scratch/kocevski/817711/expmap_257990401_258249601_4FGL_J1338.0+6534_daily_bin72.fits
Exposure cube: /scratch/kocevski/817711/ltcube_257990401_258249601_4FGL_J1338.0+6534_daily_bin72.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/817711/Model_4FGL_J1338.0+6534_daily_bin72.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) = 4649.65505665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.997       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.905       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1957       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0330       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.573       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5163       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.439       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16980E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    99.205       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9451       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.435       1.0000         .10000E-03   10000.    
    20 'norm      '    3.9671       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.928       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .52986E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    57.900       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    28.816       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4401       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .40903       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4649.619     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     4143 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.997        13.034        .18921E-06   -.44501E-04
   2  Prefactor     .10000E-03    8.4710        .13551E-06** at limit **
   3  Prefactor     40.919        30.328       -.59378E-06   -.54298E-04
   4  Prefactor     .10000E-03    54.480        .73306E-05** at limit **
   5  norm          2.1960        3.4545       -.68736E-07   -.20847E-03
   6  Prefactor     .10000E-03    2.6144        .73427E-07** at limit **
   7  norm          2.0332        2.2596       -.11833E-06   -.36092E-03
   8  Prefactor     25.581        41.062        .37516E-05   -.17086E-04
   9  Prefactor     9.5164        9.9197       -.76887E-06   -.67839E-04
  10  Prefactor     .10000E-03    24.627       -.46800E-06** at limit **
  11  Prefactor     .10001E-03    193.97        .94591E-04** at limit **
  12  Prefactor     30.605        74.298        .21139E-03    .49140E-04
  13  Prefactor     .10001E-03    6.3681        .14235E-05** at limit **
  14  Prefactor     .10000E-03    48.439       -.23709E-04** at limit **
  15  Prefactor     99.130        76.673       -.62871E-04    .51389E-04
  16  Prefactor     5.9466        11.663       -.15840E-06   -.31024E-03
  17  Prefactor     .10000E-03    4.1772        .84330E-07** at limit **
  18  norm          .10000E-03    31.718        .11375E-04** at limit **
  19  Prefactor     20.442        21.857       -.18523E-05   -.31855E-04
  20  norm          3.9672        5.7702       -.34531E-05   -.40865E-03
  21  Prefactor     25.932        29.148       -.82838E-07    .48321E-05
  22  Prefactor     .10259E-03    6958.0       -.41577E-02** at limit **
  23  Prefactor     .10000E-03    32.751        .52290E-05** at limit **
  24  Prefactor     .10000E-03    24.250       -.52626E-05** at limit **
  25  Prefactor     .10000E-03    33.975       -.23415E-05** at limit **
  26  Prefactor     .10000E-03    7.1598        .22013E-06** at limit **
  27  Prefactor     57.903        39.458        .17658E-05   -.24916E-04
  28  Prefactor     .10000E-03    14.533        .97135E-06** at limit **
  29  Prefactor     28.817        27.256        .19137E-06   -.37460E-05
  30  Normalizat    1.4401        .20562       -.27329E-05    .65402E-03
  31  Prefactor     .40900        .20574        .44193E-05    .40717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9972
  Prefactor  = 0.0001
  Prefactor  = 40.9189
  Prefactor  = 0.0001
  norm       = 2.196
  Prefactor  = 0.0001
  norm       = 2.03319
  Prefactor  = 25.5806
  Prefactor  = 9.51637
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 30.6053
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 99.1297
  Prefactor  = 5.9466
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.4424
  norm       = 3.96717
  Prefactor  = 25.932
  Prefactor  = 0.000102595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.9029
  Prefactor  = 0.0001
  Prefactor  = 28.8166
  Normalizat = 1.44009
  Prefactor  = 0.408997
 **********
 **   18 **HESSE 
 **********

 FCN=   4649.619     FROM HESSE     STATUS=OK           616 CALLS     4759 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.997        13.049        .89568E-04   -1.4813    
   2  Prefactor     .10000E-03    8.4726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.919        30.461        .62675E-04   -1.4428    
   4  Prefactor     .10000E-03    54.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1960        3.4340        .15393E-03   -1.5412    
   6  Prefactor     .10000E-03    2.6192        .10765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0332        2.2436        .10392E-03   -1.5423    
   8  Prefactor     25.581        41.056        .79216E-04   -1.4696    
   9  Prefactor     9.5164        9.9296        .12991E-03   -1.5091    
  10  Prefactor     .10000E-03    24.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    200.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.605        74.235        .72621E-04   -1.4601    
  13  Prefactor     .10001E-03    11.873        .29909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    49.572        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     99.130        77.139        .20181E-03   -1.3713    
  16  Prefactor     5.9466        10.700        .16469E-03   -1.5220    
  17  Prefactor     .10000E-03    4.2024        .13608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    31.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.442        21.850        .88603E-04   -1.4803    
  20  norm          3.9672        5.7525        .18555E-03   -1.5310    
  21  Prefactor     25.932        29.128        .78672E-04   -1.4689    
  22  Prefactor     .10259E-03    6960.1        .18569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    34.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.1610        .17821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     57.903        39.504        .52723E-04   -1.4185    
  28  Prefactor     .10000E-03    14.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     28.817        27.252        .74634E-04   -1.4634    
  30  Normalizat    1.4401        .23234        .19979E-03   -.79476    
  31  Prefactor     .40900        .22774        .37015E-03   -1.1635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72157e-09
Minuit parameter uncertainties:
  1  13.0507
  2  1.89338e-06
  3  30.473
  4  1.69076e-05
  5  3.43432
  6  3.6551e-06
  7  2.24366
  8  41.1017
  9  9.93128
  10  6.91538e-07
  11  0.00308041
  12  74.4598
  13  0.000597166
  14  0.000287342
  15  77.2171
  16  10.7039
  17  6.43835e-06
  18  2.7302e-05
  19  21.8586
  20  5.75328
  21  29.1435
  22  0.217975
  23  0.000139859
  24  4.05952e-06
  25  3.25713e-05
  26  2.95204e-06
  27  39.5223
  28  1.74053e-06
  29  27.264
  30  0.232514
  31  0.228244
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  5.972e-04  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  4.090e-01  2.282e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.440e+00  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817711/likelihoodResults_257990401_258249601_4FGL_J1338.0+6534_daily_bin72.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): 102
logL (Free Index) = 4649.61972293
delta logL = -0.000400906270443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4649.61932227
delta logL = -2.4530072551e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7611       1.0000          .0000       10.000    
     3 'Normalizat'    1.4402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40888       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+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=   4649.618     FROM MIGRAD    STATUS=FAILED       174 CALLS      351 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54381E-01    4.4442        .23878E-01   -.17097E-01
   2  Index         4.3162        3.3543        .50000       -.17963E-04
   3  Normalizat    1.4381        .12712E-01    .19979E-03    .11942    
   4  Prefactor     .40919        .13274E-01    .37014E-03   -.49596E-01
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4649.618     FROM SIMPLEX   STATUS=PROGRESS      62 CALLS      413 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53186E-01    4.4442        .21193E-03   -.17097E-01
   2  Index         4.3293        3.3543        .46282E-02   -.17963E-04
   3  Normalizat    1.4380        .12712E-01    .76116E-04    .11942    
   4  Prefactor     .40918        .13274E-01    .28991E-04   -.49596E-01
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4649.618     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      465 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55771E-01    5.2835        .10449E-02    .18117E-03
   2  Index         4.3392        6.3964        .18436E-01   -.46022E-05
   3  Normalizat    1.4351        .23088        .39957E-04    .67716E-04
   4  Prefactor     .41209        .23090        .74028E-04   -.33939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.055771
  Index      = 4.33921
  Normalizat = 1.43513
  Prefactor  = 0.412086
 **********
 **   18 **HESSE 
 **********

 FCN=   4649.618     FROM HESSE     STATUS=OK            27 CALLS      492 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55771E-01    11.167        .41795E-04   -1.5755    
   2  Index         4.3392        5.7383        .73743E-03   -.13255    
   3  Normalizat    1.4351        .23010        .79915E-05   -.79618    
   4  Prefactor     .41209        .23028        .14806E-04   -1.1620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88318e-10
Minuit parameter uncertainties:
  1  1.57722
  2  15.7255
  3  0.23027
  4  0.230794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817711': 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) = 4649.61752405
delta logL = 0.00179798069621

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  5.577e-02  1.577e+00  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  4.339e+00  1.573e+01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  4.121e-01  2.308e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.435e+00  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.516 65.570

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/817711/cmap_HighResolution_257990401_258249601_4FGL_J1338.0+6534_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-08 05:50:27.219981', job_id='817711', GAL2='0.41', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1631105427.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.41', dlogl='1.80e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='72' AND source_name='4FGL J1338.0+6534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:50:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 817711: <4FGL_J1338.0+6534_daily_bin72> in cluster <slac> Done

Job <4FGL_J1338.0+6534_daily_bin72> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 05:35:27 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:35:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 05:35:34 2021
Terminated at Wed Sep  8 05:50:28 2021
Results reported at Wed Sep  8 05:50:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.0+6534_daily_bin72 204.516 65.5696 257990401 258249601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1338.0+6534 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            901 sec.

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

