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


Performing analysis on: 4FGL_J1338.0+6534_daily_bin911
RA = 204.516, Dec = 65.5696
tmin = 475459201, tmax = 475718401
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='822400', job_status='RUN', time_executed='2021-09-08 05:50:40.044630', time_epoch_executed='1631105440.04' WHERE source_name='4FGL J1338.0+6534' and cadence='daily' and bin_id='911'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822400

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822400/ft1_4FGL_J1338.0+6534_daily_bin911.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822400/ft2_4FGL_J1338.0+6534_daily_bin911.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822400/ft1_4FGL_J1338.0+6534_daily_bin911.fits outfile=/scratch/kocevski/822400/ft1_filteredMKT_4FGL_J1338.0+6534_daily_bin911.fits ra=204.516 dec=65.5696 rad=12.0 tmin=475459201.0 tmax=475718401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.03
user 2.80
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/822400/ft2_4FGL_J1338.0+6534_daily_bin911.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/822400/ft1_filteredMKT_4FGL_J1338.0+6534_daily_bin911.fits evtable="EVENTS" outfile="/scratch/kocevski/822400/ft1_filtered_4FGL_J1338.0+6534_daily_bin911.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.30
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822400/ft1_filtered_4FGL_J1338.0+6534_daily_bin911.fits evtable="EVENTS" scfile=/scratch/kocevski/822400/ft2_4FGL_J1338.0+6534_daily_bin911.fits sctable="SC_DATA" expcube=/scratch/kocevski/822400/ltcube_475459201_475718401_4FGL_J1338.0+6534_daily_bin911.fits outfile=/scratch/kocevski/822400/expmap_475459201_475718401_4FGL_J1338.0+6534_daily_bin911.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/822400/ltcube_475459201_475718401_4FGL_J1338.0+6534_daily_bin911.fits
.....................!
real 158.40
user 154.00
sys 4.01

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/822400/ft1_filtered_4FGL_J1338.0+6534_daily_bin911.fits scfile=/scratch/kocevski/822400/ft2_4FGL_J1338.0+6534_daily_bin911.fits outfile=/scratch/kocevski/822400/cmap_475459201_475718401_4FGL_J1338.0+6534_daily_bin911.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.50
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822400/ft1_filtered_4FGL_J1338.0+6534_daily_bin911.fits scfile=/scratch/kocevski/822400/ft2_4FGL_J1338.0+6534_daily_bin911.fits outfile=/scratch/kocevski/822400/cmap_HighResolution_475459201_475718401_4FGL_J1338.0+6534_daily_bin911.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.51
user 0.34
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .59707       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.512       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5383       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.735       1.0000         .10000E-03   10000.    
    10 'Prefactor '    104.99       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3044       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .72976E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9792       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6712       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .32173E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-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 '    .24004       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.2702       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1246       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82217       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=   6872.546     FROM MIGRAD    STATUS=CONVERGED    828 CALLS     4138 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8419        .21740E-07** at limit **
   2  Prefactor     .10000E-03    8.6277        .24768E-07** at limit **
   3  Prefactor     .62216        12.199        .18252E-05   -.29637E-03
   4  Prefactor     .10000E-03    34.175        .39105E-06** at limit **
   5  norm          15.512        6.0090       -.15446E-07   -.14984E-03
   6  Prefactor     6.5387        5.5462        .61028E-07    .26199E-05
   7  norm          .10000E-03    1.1843       -.45431E-07** at limit **
   8  Prefactor     .10000E-03    21.262        .39625E-06** at limit **
   9  Prefactor     13.736        9.3098       -.30673E-08   -.19129E-04
  10  Prefactor     104.95        63.436        .39323E-07   -.22684E-05
  11  Prefactor     .10000E-03    73.864       -.37110E-07** at limit **
  12  Prefactor     .10000E-03    44.022        .33075E-07** at limit **
  13  Prefactor     5.3052        3.6590        .13295E-06    .31045E-03
  14  Prefactor     .10048E-03    12.481       -.24083E-05** at limit **
  15  Prefactor     .10000E-03    32.457       -.36894E-07** at limit **
  16  Prefactor     .10000E-03    4.2705       -.51347E-07** at limit **
  17  Prefactor     .10000E-03    2.5226        .16848E-07** at limit **
  18  norm          .10000E-03    22.559       -.65585E-06** at limit **
  19  Prefactor     9.9799        14.764        .13614E-06    .29426E-04
  20  norm          1.6712        2.1372        .13923E-05    .10674E-02
  21  Prefactor     .10000E-03    15.511        .92389E-10** at limit **
  22  Prefactor     .10003E-03    346.83        .32869E-05** at limit **
  23  Prefactor     .10000E-03    45.107       -.34620E-06** at limit **
  24  Prefactor     .10000E-03    21.797       -.35667E-07** at limit **
  25  Prefactor     .10000E-03    11.191        .84983E-08** at limit **
  26  Prefactor     .10000E-03    6.4146        .39593E-07** at limit **
  27  Prefactor     .71470E-01    16.643       -.66508E-06    .92567E-04
  28  Prefactor     .10000E-03    21.097        .53572E-06** at limit **
  29  Prefactor     6.2730        19.141        .73742E-06    .25747E-04
  30  Normalizat    1.1245        .15032       -.19009E-07    .18326E-03
  31  Prefactor     .82234        .16565       -.18518E-06    .13575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.622157
  Prefactor  = 0.0001
  norm       = 15.5115
  Prefactor  = 6.5387
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7365
  Prefactor  = 104.947
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.30519
  Prefactor  = 0.000100484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 9.97995
  norm       = 1.6712
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0714699
  Prefactor  = 0.0001
  Prefactor  = 6.27296
  Normalizat = 1.12448
  Prefactor  = 0.822338
 **********
 **   18 **HESSE 
 **********

 FCN=   6872.546     FROM HESSE     STATUS=OK           624 CALLS     4762 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8649        .15869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.6483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .62216        90.931        .50755E-02   -1.5550    
   4  Prefactor     .10000E-03    34.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.512        6.0106        .10169E-03   -1.4920    
   6  Prefactor     6.5387        5.5229        .15695E-03   -1.5196    
   7  norm          .10000E-03    1.2209        .17529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.736        9.3153        .10808E-03   -1.4967    
  10  Prefactor     104.95        62.844        .19623E-03   -1.3655    
  11  Prefactor     .10000E-03    74.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3052        3.6529        .12479E-03   -1.5247    
  14  Prefactor     .10048E-03    74.809        .47362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2810        .16696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5321        .12856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    22.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9799        14.761        .12685E-03   -1.5076    
  20  norm          1.6712        2.1673        .67976E-03   -1.5449    
  21  Prefactor     .10000E-03    15.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10003E-03    347.62        .21360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    45.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    21.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.4222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .71470E-01    20.399        .10368       -1.5655    
  28  Prefactor     .10000E-03    21.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.2730        19.099        .16031E-03   -1.5207    
  30  Normalizat    1.1245        .17313        .20785E-03   -.88970    
  31  Prefactor     .82234        .19040        .27071E-03   -.98910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42078e-09
Minuit parameter uncertainties:
  1  2.93909e-07
  2  1.11664e-06
  3  15.0652
  4  0.000196996
  5  6.01088
  6  5.5233
  7  1.63998e-06
  8  0.000167963
  9  9.3163
  10  62.8835
  11  0.000505533
  12  1.21487e-06
  13  3.65303
  14  0.0120476
  15  4.23789e-05
  16  2.36391e-06
  17  2.84564e-06
  18  0.000310627
  19  14.7666
  20  2.16741
  21  5.58737e-06
  22  0.00602316
  23  0.000240897
  24  2.15471e-05
  25  1.13003e-06
  26  3.2838e-06
  27  2.41402
  28  0.000125934
  29  19.1172
  30  0.173215
  31  0.190554
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  5.305e+00  3.653e+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:  8.223e-01  1.906e-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.124e+00  1.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.54
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 4.39e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 7.15e-06

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

Saving results to:
/scratch/kocevski/822400/likelihoodResults_475459201_475718401_4FGL_J1338.0+6534_daily_bin911.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) = 6872.50435408
delta logL = 0.0417407828108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6872.50370223
delta logL = 0.0423926306894

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5288       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9228       1.0000          .0000       10.000    
     3 'Normalizat'    1.1189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82666       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=   6872.504     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      225 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5288        60.929        .47294E-02   -.13229E-03
   2  Index         2.9228        3.7675        .19832       -.23402E-04
   3  Normalizat    1.1189        .53555E-01    .37280E-01   -.23201E-03
   4  Prefactor     .82667        .56927E-01    .44063E-01   -.46683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.52876
  Index      = 2.92282
  Normalizat = 1.11885
  Prefactor  = 0.82667
 **********
 **   18 **HESSE 
 **********

 FCN=   6872.504     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5288        4.4760        .11218E-03   -1.5282    
   2  Index         2.9228        .74862        .69923E-02   -.42842    
   3  Normalizat    1.1189        .16879        .20829E-03   -.89149    
   4  Prefactor     .82667        .18942        .27007E-03   -.98753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67904e-10
Minuit parameter uncertainties:
  1  4.47635
  2  0.752037
  3  0.168876
  4  0.18957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822400': 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) = 6872.50370223
delta logL = 0.042392632452

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  4.529e+00  4.476e+00  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.923e+00  7.520e-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:  8.267e-01  1.896e-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.119e+00  1.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.92 +/- 0.75
Photon Flux (Free Index): 4.84e-08 +/- 3.44e-08
Energy Flux (Free Index): 1.00e-05 +/- 6.90e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/822400/cmap_HighResolution_475459201_475718401_4FGL_J1338.0+6534_daily_bin911.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.50e-03', comment='SUCCESS', photon_flux='4.39e-08', energy_flux2='1.00e-05', photon_flux_error='3.02e-08', dlogl='4.24e-02', energy_flux='1.04e-05', photon_flux2='4.84e-08', job_status='DONE', time_completed='2021-09-08 06:06:45.893213', photon_index_error2='0.75', photon_index2='2.92', ts='3.54', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='6.90e-06', EG='1.12', time_epoch_completed='1631106405.89', return_code='0', job_id='822400', GAL2='0.83', EG2='1.12', return_code2='0', energy_flux_error='7.15e-06', photon_flux_error2='3.44e-08', ts2='3.63', photon_index='2.72' WHERE bin_id='911' AND source_name='4FGL J1338.0+6534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 06:06:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 822400: <4FGL_J1338.0+6534_daily_bin911> in cluster <slac> Done

Job <4FGL_J1338.0+6534_daily_bin911> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 05:50:25 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:50:31 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:50:31 2021
Terminated at Wed Sep  8 06:06:46 2021
Results reported at Wed Sep  8 06:06:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.0+6534_daily_bin911 204.516 65.5696 475459201 475718401 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 :                                   964.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            981 sec.

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

