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


Performing analysis on: 4FGL_J1338.0+6534_daily_bin1171
RA = 204.516, Dec = 65.5696
tmin = 542851201, tmax = 543110401
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='823985', job_status='RUN', time_executed='2021-09-08 05:58:51.639985', time_epoch_executed='1631105931.64' WHERE source_name='4FGL J1338.0+6534' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823985

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823985/ft1_4FGL_J1338.0+6534_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823985/ft2_4FGL_J1338.0+6534_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823985/ft1_4FGL_J1338.0+6534_daily_bin1171.fits outfile=/scratch/kocevski/823985/ft1_filteredMKT_4FGL_J1338.0+6534_daily_bin1171.fits ra=204.516 dec=65.5696 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.82
user 0.60
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823985/ft1_filtered_4FGL_J1338.0+6534_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/823985/ft2_4FGL_J1338.0+6534_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/823985/ltcube_542851201_543110401_4FGL_J1338.0+6534_daily_bin1171.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/823985/ft2_4FGL_J1338.0+6534_daily_bin1171.fits
.....................!
real 2.01
user 1.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823985/ft1_filtered_4FGL_J1338.0+6534_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/823985/ft2_4FGL_J1338.0+6534_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/823985/ltcube_542851201_543110401_4FGL_J1338.0+6534_daily_bin1171.fits outfile=/scratch/kocevski/823985/expmap_542851201_543110401_4FGL_J1338.0+6534_daily_bin1171.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/823985/ltcube_542851201_543110401_4FGL_J1338.0+6534_daily_bin1171.fits
.....................!
real 193.70
user 186.42
sys 5.12

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/823985/ft1_filtered_4FGL_J1338.0+6534_daily_bin1171.fits scfile=/scratch/kocevski/823985/ft2_4FGL_J1338.0+6534_daily_bin1171.fits outfile=/scratch/kocevski/823985/cmap_542851201_543110401_4FGL_J1338.0+6534_daily_bin1171.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.52
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823985/ft1_filtered_4FGL_J1338.0+6534_daily_bin1171.fits scfile=/scratch/kocevski/823985/ft2_4FGL_J1338.0+6534_daily_bin1171.fits outfile=/scratch/kocevski/823985/cmap_HighResolution_542851201_543110401_4FGL_J1338.0+6534_daily_bin1171.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.56
user 0.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48877       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54519E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4211       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .87530       1.0000         .10000E-03   10000.    
     5 'norm      '    76.975       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .70019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13663E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0195       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4130       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1999       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.502       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12040E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .80614E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23778       1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.0988       1.0000         .10000E-03   10000.    
    19 'Prefactor '    69.599       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    120.68       1.0000         .10000E-03   10000.    
    22 'Prefactor '    68.676       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17101       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .48858E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .37610E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .23476E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .76766E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.103       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .86763E-01   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .42432       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=   74.22086     FROM MIGRAD    STATUS=CONVERGED   1250 CALLS     3415 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    443.01        .11225E-01** at limit **
   2  Prefactor     .10000E-03    526.99        .92921E-02** at limit **
   3  Prefactor     1847.2        2127.0        .54675E-02   -.97692E-05
   4  Prefactor     .10001E-03    1636.1        .12718E-01** at limit **
   5  norm          109.42        115.97        .11442E-02   -.39691E-05
   6  Prefactor     .10000E-03    112.79        .90712E-02** at limit **
   7  norm          .10000E-03    47.046        .10490E-01** at limit **
   8  Prefactor     .10000E-03    1996.7        .90912E-02** at limit **
   9  Prefactor     .10000E-03    138.79        .12817E-01** at limit **
  10  Prefactor     .10000E-03    5728.2        .34552E-02** at limit **
  11  Prefactor     .10000E-03    700.84        .33033E-02** at limit **
  12  Prefactor     .10000E-03    357.34        .28323E-02** at limit **
  13  Prefactor     .10000E-03    480.69        .90831E-02** at limit **
  14  Prefactor     .10000E-03    342.78        .10449E-01** at limit **
  15  Prefactor     .10000E-03    306.66        .10149E-01** at limit **
  16  Prefactor    10000.0        6497.1        .97815E-02** at limit **
  17  Prefactor     .10000E-03    43.185        .90712E-02** at limit **
  18  norm          .10000E-03    1026.2        .37640E-02** at limit **
  19  Prefactor     122.67        175.11        .12029E-02   -.35282E-05
  20  norm          .10000E-03    20.242        .90712E-02** at limit **
  21  Prefactor    10000.0        8001.1        .91585E-02** at limit **
  22  Prefactor     .10005E-03    8343.1        .12109E-02** at limit **
  23  Prefactor     .10000E-03    80.952        .98445E-02** at limit **
  24  Prefactor     .10000E-03    354.57        .92645E-02** at limit **
  25  Prefactor     .10000E-03    146.28        .10646E-01** at limit **
  26  Prefactor     .10000E-03    90.555        .90712E-02** at limit **
  27  Prefactor     .10000E-03    103.64        .93999E-02** at limit **
  28  Prefactor     31.434        50.799        .24952E-02   -.30529E-04
  29  Prefactor     .10000E-03    96.024        .94479E-02** at limit **
  30  Normalizat    .10000E-01    .22026        .56907E-01** at limit **
  31  Prefactor     .10648E-10    .55731        .90813E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1847.23
  Prefactor  = 0.000100006
  norm       = 109.415
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 122.668
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100053
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.4339
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.06481e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   74.22086     FROM HESSE     STATUS=OK           590 CALLS     4005 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    443.00        .17901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    526.99        .18584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1847.2        2119.0        .21870E-03   -.68227    
   4  Prefactor     .10001E-03    1636.1        .25435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          109.42        115.69        .45769E-04   -1.3612    
   6  Prefactor     .10000E-03    112.79        .89821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    47.045        .57946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1996.6        .18182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    138.79        .99679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5728.2        .69105E-03    36.128    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    700.83        .66067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    357.34        .56646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    480.69        .18166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    342.78        .15720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    306.66        .14859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        6497.1        .19563E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.185        .55514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1026.2        .75280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     122.67        174.53        .48116E-04   -1.3488    
  20  norm          .10000E-03    20.242        .37992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        8001.1        .18317E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10005E-03    8343.1        .24218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    80.952        .76054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    354.56        .15991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    146.28        .10235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    90.554        .80451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    103.65        .86089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     31.434        50.536        .76317E-04   -1.4586    
  29  Prefactor     .10000E-03    96.024        .82845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .22024        .12563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10648E-10    .55784        .39603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88541e-11
Minuit parameter uncertainties:
  1  0.00245207
  2  0.000928647
  3  2241.6
  4  0.00619888
  5  115.928
  6  3.84428e-06
  7  5.2439e-06
  8  0.00603058
  9  0.000203992
  10  0.0154089
  11  0.00299069
  12  0.00109776
  13  0.000399092
  14  0.000145966
  15  1.69904e-07
  16  0.00964769
  17  1.31491e-05
  18  0.00027692
  19  175.268
  20  1.29278e-06
  21  0.00917019
  22  0.0440232
  23  6.46455e-05
  24  0.000880428
  25  9.39354e-05
  26  6.61822e-05
  27  1.45736e-05
  28  50.6045
  29  4.99632e-07
  30  7.67622e-09
  31  4.92094e-06
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  3.991e-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:  1.065e-11  4.921e-06  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.000e-02  7.676e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 2.29e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/823985/likelihoodResults_542851201_543110401_4FGL_J1338.0+6534_daily_bin1171.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) = 74.2208699491
delta logL = -1.26946195991e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 74.2208680043
delta logL = -1.074982886e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96221E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7233       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .11210E-05   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.

 FCN=   74.22086     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      231 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11271E-03    1052.6        .18145E-01** at limit **
   2  Index         2.4915        6.9655        .50000        .36674E-06
   3  Normalizat    .10000E-01    .78746E-03    .12563E-02** at limit **
   4  Prefactor      .0000        .20177E-02    .19801E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112712
  Index      = 2.49153
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********

 FCN=   74.22086     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      260 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11271E-03    8225.8        .20959E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4915        5.9163        .50000       -.52556    
   3  Normalizat    .10000E-01    .64329E-02    .25126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        .16478E-01    .39602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.18154e-09
Minuit parameter uncertainties:
  1  0.665103
  2  5328.81
  3  6.36737e-12
  4  8.4974e-12
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823985': 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) = 74.2208572436
delta logL = 1.09212123789e-08

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.127e-04  6.651e-01  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.492e+00  5.329e+03  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:  0.000e+00  8.497e-12  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.000e-02  6.367e-12  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/823985/cmap_HighResolution_542851201_543110401_4FGL_J1338.0+6534_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e+00', job_status='DONE', photon_flux_upper_limit='2.29e-05', time_completed='2021-09-08 06:04:29.352633', job_id='823985', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631106269.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='1.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1171' AND source_name='4FGL J1338.0+6534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 06:04:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 823985: <4FGL_J1338.0+6534_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1338.0+6534_daily_bin1171> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 05:55:37 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:56:26 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:56:26 2021
Terminated at Wed Sep  8 06:04:30 2021
Results reported at Wed Sep  8 06:04:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.0+6534_daily_bin1171 204.516 65.5696 542851201 543110401 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 :                                   321.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   483 sec.
    Turnaround time :                            533 sec.

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

