/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 111 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1338.0+6534_daily_bin75
RA = 204.516, Dec = 65.5696
tmin = 258768001, tmax = 259027201
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='817715', job_status='RUN', time_executed='2021-09-08 05:37:36.709135', time_epoch_executed='1631104656.71' WHERE source_name='4FGL J1338.0+6534' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817715

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817715/ft1_4FGL_J1338.0+6534_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817715/ft2_4FGL_J1338.0+6534_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817715/ft1_4FGL_J1338.0+6534_daily_bin75.fits outfile=/scratch/kocevski/817715/ft1_filteredMKT_4FGL_J1338.0+6534_daily_bin75.fits ra=204.516 dec=65.5696 rad=12.0 tmin=258768001.0 tmax=259027201.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.15
user 0.95
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/817715/ft2_4FGL_J1338.0+6534_daily_bin75.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/817715/ft1_filteredMKT_4FGL_J1338.0+6534_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/817715/ft1_filtered_4FGL_J1338.0+6534_daily_bin75.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817715/ft1_filtered_4FGL_J1338.0+6534_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/817715/ft2_4FGL_J1338.0+6534_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/817715/ltcube_258768001_259027201_4FGL_J1338.0+6534_daily_bin75.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/817715/ft2_4FGL_J1338.0+6534_daily_bin75.fits
.....................!
real 12.78
user 12.36
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817715/ft1_filtered_4FGL_J1338.0+6534_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/817715/ft2_4FGL_J1338.0+6534_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/817715/ltcube_258768001_259027201_4FGL_J1338.0+6534_daily_bin75.fits outfile=/scratch/kocevski/817715/expmap_258768001_259027201_4FGL_J1338.0+6534_daily_bin75.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/817715/ltcube_258768001_259027201_4FGL_J1338.0+6534_daily_bin75.fits
.....................!
real 193.04
user 186.87
sys 5.65

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/817715/ft1_filtered_4FGL_J1338.0+6534_daily_bin75.fits scfile=/scratch/kocevski/817715/ft2_4FGL_J1338.0+6534_daily_bin75.fits outfile=/scratch/kocevski/817715/cmap_258768001_259027201_4FGL_J1338.0+6534_daily_bin75.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817715/ft1_filtered_4FGL_J1338.0+6534_daily_bin75.fits scfile=/scratch/kocevski/817715/ft2_4FGL_J1338.0+6534_daily_bin75.fits outfile=/scratch/kocevski/817715/cmap_HighResolution_258768001_259027201_4FGL_J1338.0+6534_daily_bin75.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/817715/ft1_filtered_4FGL_J1338.0+6534_daily_bin75.fits', '/scratch/kocevski/817715/ft2_4FGL_J1338.0+6534_daily_bin75.fits', expMap='/scratch/kocevski/817715/expmap_258768001_259027201_4FGL_J1338.0+6534_daily_bin75.fits', expCube='/scratch/kocevski/817715/ltcube_258768001_259027201_4FGL_J1338.0+6534_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/817715/Model_4FGL_J1338.0+6534_daily_bin75.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/817715/ft1_filtered_4FGL_J1338.0+6534_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/817715/ft2_4FGL_J1338.0+6534_daily_bin75.fits
Exposure map: /scratch/kocevski/817715/expmap_258768001_259027201_4FGL_J1338.0+6534_daily_bin75.fits
Exposure cube: /scratch/kocevski/817715/ltcube_258768001_259027201_4FGL_J1338.0+6534_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/817715/Model_4FGL_J1338.0+6534_daily_bin75.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) = 3561.17502212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70888E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13525E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12587E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11077E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11058E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    6.2555       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.394       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8900       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2250       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.899       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.847       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6247       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.4023       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .87540       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0678       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=   3561.016     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     3509 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    10.895       -.81092E-07** at limit **
   2  Prefactor     .10000E-03    104.89        .19538E-04** at limit **
   3  Prefactor     .10148E-03    25.150       -.26243E-05** at limit **
   4  Prefactor     .10000E-03    31.320       -.44348E-05** at limit **
   5  norm          .10000E-03    9.7844        .88689E-05** at limit **
   6  Prefactor     .10003E-03    11.119       -.17448E-05** at limit **
   7  norm          6.2651        4.0625        .15120E-06    .53429E-03
   8  Prefactor     16.340        40.722       -.61312E-05    .13333E-04
   9  Prefactor     5.9181        15.681       -.96157E-06    .57102E-04
  10  Prefactor     .10000E-03    54.945       -.19429E-04** at limit **
  11  Prefactor     .10000E-03    13.509        .15948E-05** at limit **
  12  Prefactor     .10000E-03    21.673        .13190E-04** at limit **
  13  Prefactor     9.2285        6.6390       -.32463E-06    .27387E-03
  14  Prefactor     .10000E-03    9.2679       -.11615E-05** at limit **
  15  Prefactor     .10000E-03    25.063       -.12025E-04** at limit **
  16  Prefactor     .10000E-03    15.842       -.49013E-05** at limit **
  17  Prefactor     .10000E-03    7.4190       -.44010E-07** at limit **
  18  norm          .10000E-03    35.418        .22132E-04** at limit **
  19  Prefactor     11.888        32.857        .48263E-07   -.10325E-04
  20  norm          .10000E-03    1.1941        .55110E-08** at limit **
  21  Prefactor     32.863        39.780       -.19614E-06    .26500E-04
  22  Prefactor     4.5273        9900.4       -.45256E-03    .10555E-05
  23  Prefactor     .10000E-03    8.3351        .10823E-06** at limit **
  24  Prefactor     .10000E-03    51.674       -.15037E-06** at limit **
  25  Prefactor     .10000E-03    13.454        .13142E-05** at limit **
  26  Prefactor     .10000E-03    10.191       -.88409E-05** at limit **
  27  Prefactor     5.3713        55.124        .53838E-05   -.14837E-04
  28  Prefactor     .10000E-03    22.592        .54619E-05** at limit **
  29  Prefactor     .10000E-03    24.810       -.10502E-04** at limit **
  30  Normalizat    .87469        .20896        .13081E-05    .15318E-03
  31  Prefactor     1.0687        .23115        .43311E-06    .12960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100112
  Prefactor  = 0.000100001
  Prefactor  = 0.000101481
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100031
  norm       = 6.26509
  Prefactor  = 16.3399
  Prefactor  = 5.91808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.22851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8883
  norm       = 0.0001
  Prefactor  = 32.8631
  Prefactor  = 4.52731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.37126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.874686
  Prefactor  = 1.06869
 **********
 **   18 **HESSE 
 **********

 FCN=   3561.016     FROM HESSE     STATUS=OK           610 CALLS     4119 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    140.19        .38001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    106.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10148E-03    302.12        .57197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.034        .36272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    33.580        .36528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.2651        3.9603        .87706E-04   -1.5207    
   8  Prefactor     16.340        40.725        .98919E-04   -1.4899    
   9  Prefactor     5.9181        15.503        .16547E-03   -1.5221    
  10  Prefactor     .10000E-03    55.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.2285        6.6416        .12123E-03   -1.5100    
  14  Prefactor     .10000E-03    9.2863        .17743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4569        .15869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    35.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.888        32.811        .11613E-03   -1.5018    
  20  norm          .10000E-03    1.1962        .63682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.863        39.771        .69916E-04   -1.4561    
  22  Prefactor     4.5273        9926.9        .18716E-03   -1.5282    
  23  Prefactor     .10000E-03    8.3395        .16828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    51.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.3713        54.877        .17289E-03   -1.5244    
  28  Prefactor     .10000E-03    22.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    24.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .87469        .24411        .22710E-03   -.97355    
  31  Prefactor     1.0687        .27224        .23706E-03   -.90473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20849e-09
Minuit parameter uncertainties:
  1  0.00794406
  2  0.000569608
  3  0.0425165
  4  9.53923e-07
  5  0.000129457
  6  0.00204694
  7  3.96043
  8  40.7946
  9  15.5134
  10  6.08737e-06
  11  1.79911e-06
  12  4.15057e-06
  13  6.64212
  14  3.00632e-06
  15  6.5802e-06
  16  5.86456e-05
  17  1.62598e-05
  18  4.58204e-08
  19  32.8605
  20  3.35859e-07
  21  39.8034
  22  626.58
  23  1.07943e-06
  24  2.5601e-05
  25  9.80677e-07
  26  1.68536e-06
  27  34.3775
  28  6.33884e-05
  29  1.43392e-05
  30  0.244418
  31  0.272594
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  9.229e+00  6.642e+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

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  1.069e+00  2.726e-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:  8.747e-01  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.03
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 7.64e-08 +/- 5.49e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.30e-05

TS (Fixed Index): 3.03
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817715/likelihoodResults_258768001_259027201_4FGL_J1338.0+6534_daily_bin75.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) = 3560.58459903
delta logL = 0.431075356038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3560.56582202
delta logL = 0.449852362653

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1546       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8043       1.0000          .0000       10.000    
     3 'Normalizat'    .81055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1254       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.

 FCN=   3560.566     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      242 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1441        36.204        .57052E-02    .85518E-04
   2  Index         3.8074        3.7854        .10946        .57146E-04
   3  Normalizat    .81074        .77700E-01    .43748E-01   -.15370E-04
   4  Prefactor     1.1251        .85718E-01    .52481E-01   -.12775E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1441
  Index      = 3.80741
  Normalizat = 0.810737
  Prefactor  = 1.12514
 **********
 **   18 **HESSE 
 **********

 FCN=   3560.566     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1441        52.346        .59583E-04   -1.5353    
   2  Index         3.8074        6.8807        .44145E-02   -.24084    
   3  Normalizat    .81074        .28092        .23477E-03   -.99672    
   4  Prefactor     1.1251        .32213        .23203E-03   -.88667    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36984e-07
Minuit parameter uncertainties:
  1  25.684
  2  5.79878
  3  0.281427
  4  0.322686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817715': 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): 102
logL (Free Index) = 3560.56581761
delta logL = 0.449856774293

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  3.144e+00  2.568e+01  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  3.807e+00  5.799e+00  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:  1.125e+00  3.227e-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:  8.107e-01  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.12
Ra Dec: 204.516 65.570
Photon Index (Free Index): 3.81 +/- 5.80
Photon Flux (Free Index): 1.15e-07 +/- 8.07e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.79e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/817715/cmap_HighResolution_258768001_259027201_4FGL_J1338.0+6534_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', comment='SUCCESS', photon_flux='7.64e-08', energy_flux2='1.79e-05', photon_flux_error='5.49e-08', dlogl='4.50e-01', energy_flux='1.81e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-08 05:49:40.686399', photon_index_error2='5.80', photon_index2='3.81', ts='3.03', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='1.79e-05', EG='0.87', time_epoch_completed='1631105380.69', return_code='0', job_id='817715', GAL2='1.13', EG2='0.81', return_code2='102', energy_flux_error='1.30e-05', photon_flux_error2='8.07e-08', ts2='4.12', photon_index='2.72' WHERE bin_id='75' AND source_name='4FGL J1338.0+6534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:49:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 817715: <4FGL_J1338.0+6534_daily_bin75> in cluster <slac> Done

Job <4FGL_J1338.0+6534_daily_bin75> 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) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:35:37 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:37 2021
Terminated at Wed Sep  8 05:49:41 2021
Results reported at Wed Sep  8 05:49:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.0+6534_daily_bin75 204.516 65.5696 258768001 259027201 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 :                                   706.56 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            854 sec.

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

