/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 6 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 = 7372
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1318.2+6754_daily_bin289
RA = 199.556, Dec = 67.9152
tmin = 314236801, tmax = 314496001
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='451701', job_status='RUN', time_executed='2021-09-07 10:36:25.858786', time_epoch_executed='1631036185.86' WHERE source_name='4FGL J1318.2+6754' and cadence='daily' and bin_id='289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/451701

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/451701/ft1_4FGL_J1318.2+6754_daily_bin289.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/451701/ft2_4FGL_J1318.2+6754_daily_bin289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/451701/ft1_4FGL_J1318.2+6754_daily_bin289.fits outfile=/scratch/kocevski/451701/ft1_filteredMKT_4FGL_J1318.2+6754_daily_bin289.fits ra=199.556 dec=67.9152 rad=12.0 tmin=314236801.0 tmax=314496001.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 2.83
user 2.58
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/451701/ft2_4FGL_J1318.2+6754_daily_bin289.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/451701/ft2_4FGL_J1318.2+6754_daily_bin289.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/451701/ft1_filteredMKT_4FGL_J1318.2+6754_daily_bin289.fits evtable="EVENTS" outfile="/scratch/kocevski/451701/ft1_filtered_4FGL_J1318.2+6754_daily_bin289.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.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/451701/ft1_filtered_4FGL_J1318.2+6754_daily_bin289.fits" evtable="EVENTS" scfile=/scratch/kocevski/451701/ft2_4FGL_J1318.2+6754_daily_bin289.fits sctable="SC_DATA" outfile=/scratch/kocevski/451701/ltcube_314236801_314496001_4FGL_J1318.2+6754_daily_bin289.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/451701/ft2_4FGL_J1318.2+6754_daily_bin289.fits
.....................!
real 15.10
user 14.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/451701/ft1_filtered_4FGL_J1318.2+6754_daily_bin289.fits evtable="EVENTS" scfile=/scratch/kocevski/451701/ft2_4FGL_J1318.2+6754_daily_bin289.fits sctable="SC_DATA" expcube=/scratch/kocevski/451701/ltcube_314236801_314496001_4FGL_J1318.2+6754_daily_bin289.fits outfile=/scratch/kocevski/451701/expmap_314236801_314496001_4FGL_J1318.2+6754_daily_bin289.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/451701/ltcube_314236801_314496001_4FGL_J1318.2+6754_daily_bin289.fits
.....................!
real 157.91
user 153.51
sys 4.06

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

Setting source of interest to:
4FGL J1318.2+6754 @ 199.556 67.9152

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/451701/ft1_filtered_4FGL_J1318.2+6754_daily_bin289.fits scfile=/scratch/kocevski/451701/ft2_4FGL_J1318.2+6754_daily_bin289.fits outfile=/scratch/kocevski/451701/cmap_314236801_314496001_4FGL_J1318.2+6754_daily_bin289.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=199.556 yref=67.9152 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/451701/ft1_filtered_4FGL_J1318.2+6754_daily_bin289.fits scfile=/scratch/kocevski/451701/ft2_4FGL_J1318.2+6754_daily_bin289.fits outfile=/scratch/kocevski/451701/cmap_HighResolution_314236801_314496001_4FGL_J1318.2+6754_daily_bin289.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=199.556 yref=67.9152 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.77
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/451701/ft1_filtered_4FGL_J1318.2+6754_daily_bin289.fits evtable="EVENTS" scfile=/scratch/kocevski/451701/ft2_4FGL_J1318.2+6754_daily_bin289.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/451701/Model_4FGL_J1318.2+6754_daily_bin289.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/451701/ft1_filtered_4FGL_J1318.2+6754_daily_bin289.fits.....................!
real 50.64
user 49.31
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/451701/ft1_filtered_4FGL_J1318.2+6754_daily_bin289.fits', '/scratch/kocevski/451701/ft2_4FGL_J1318.2+6754_daily_bin289.fits', expMap='/scratch/kocevski/451701/expmap_314236801_314496001_4FGL_J1318.2+6754_daily_bin289.fits', expCube='/scratch/kocevski/451701/ltcube_314236801_314496001_4FGL_J1318.2+6754_daily_bin289.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/451701/Model_4FGL_J1318.2+6754_daily_bin289.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1318.2+6754'

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  6.773e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
392        Index:  2.168e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/451701/ft1_filtered_4FGL_J1318.2+6754_daily_bin289.fits
Spacecraft file(s): /scratch/kocevski/451701/ft2_4FGL_J1318.2+6754_daily_bin289.fits
Exposure map: /scratch/kocevski/451701/expmap_314236801_314496001_4FGL_J1318.2+6754_daily_bin289.fits
Exposure cube: /scratch/kocevski/451701/ltcube_314236801_314496001_4FGL_J1318.2+6754_daily_bin289.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/451701/Model_4FGL_J1318.2+6754_daily_bin289.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) = 6028.02701866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    21.559       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5722       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.729       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.666       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1411       1.0000         .10000E-03   10000.    
    12 'norm      '    .63043E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.905       1.0000         .10000E-03   10000.    
    16 'Prefactor '    55.504       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.566       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16190E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    31.933       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    38.053       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .81506       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0517       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6028.016     FROM MIGRAD    STATUS=CONVERGED    859 CALLS     4360 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.085        .59715E-08** at limit **
   2  Prefactor     .10000E-03    2.4374       -.13261E-05** at limit **
   3  norm          21.559        19.667        .15046E-07    .99420E-05
   4  norm          .10000E-03    2.7972       -.20244E-06** at limit **
   5  Prefactor     3.5720        4.3660        .18961E-07   -.14380E-05
   6  Prefactor     .10000E-03    5.8811       -.16216E-06** at limit **
   7  Prefactor     .10001E-03    126.30       -.65367E-06** at limit **
   8  Prefactor     17.727        19.454        .81442E-08    .50130E-04
   9  Prefactor     21.661        35.897        .24643E-06   -.88472E-06
  10  norm          .10000E-03    1.6471       -.53615E-07** at limit **
  11  Prefactor     4.1281        4.6422       -.27973E-06   -.34209E-03
  12  norm          .16858E-01    1.0594        .10217E-05   -.41884E-03
  13  Prefactor     .10000E-03    16.204        .52560E-07** at limit **
  14  Prefactor     .10000E-03    15.687       -.13004E-06** at limit **
  15  Prefactor     13.899        49.510        .79151E-06    .24401E-04
  16  Prefactor     55.508        43.667       -.18914E-06    .35962E-04
  17  Prefactor     .10000E-03    17.356       -.84400E-06** at limit **
  18  Prefactor     .10000E-03    1.5584       -.25393E-06** at limit **
  19  Prefactor     10.572        13.668        .79760E-06    .36781E-03
  20  Prefactor     .10000E-03    11.596       -.17448E-06** at limit **
  21  Prefactor     .10000E-03    5.2745       -.26085E-06** at limit **
  22  Prefactor     .10000E-03    6.5958       -.12130E-06** at limit **
  23  Prefactor     .10000E-03    16.164        .26725E-06** at limit **
  24  Prefactor     .10000E-03    125.52        .38424E-04** at limit **
  25  Prefactor     .10000E-03    143.50        .42119E-05** at limit **
  26  Prefactor     .10000E-03    26.492       -.38770E-08** at limit **
  27  Prefactor     .10000E-03    5.0994       -.71535E-07** at limit **
  28  Prefactor     31.934        26.329       -.42382E-07    .18114E-04
  29  Prefactor     .10000E-03    4.9646       -.61290E-07** at limit **
  30  Prefactor     38.055        33.814       -.36060E-08    .24760E-04
  31  Normalizat    .81519        .14992        .17937E-06    .15668E-03
  32  Prefactor     1.0515        .16534        .18094E-06    .16767E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 21.559
  norm       = 0.0001
  Prefactor  = 3.57196
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 17.7274
  Prefactor  = 21.6606
  norm       = 0.0001
  Prefactor  = 4.12812
  norm       = 0.016858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8995
  Prefactor  = 55.5076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.9341
  Prefactor  = 0.0001
  Prefactor  = 38.0545
  Normalizat = 0.815187
  Prefactor  = 1.05154
 **********
 **   18 **HESSE 
 **********

 FCN=   6028.016     FROM HESSE     STATUS=OK           657 CALLS     5017 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8444        .23419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          21.559        19.670        .86265E-04   -1.4779    
   4  norm          .10000E-03    2.8162        .12682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5720        4.3607        .17439E-03   -1.5330    
   6  Prefactor     .10000E-03    5.8847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    127.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.727        19.558        .95122E-04   -1.4866    
   9  Prefactor     21.661        35.888        .86051E-04   -1.4777    
  10  norm          .10000E-03    1.6558        .97301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1281        4.7437        .16753E-03   -1.5302    
  12  norm          .16858E-01    2.1023        .27024E-01   -1.5682    
  13  Prefactor     .10000E-03    16.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.158        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.899        49.503        .10741E-03   -1.4962    
  16  Prefactor     55.508        43.698        .53842E-04   -1.4217    
  17  Prefactor     .10000E-03    17.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5837        .94745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.572        13.706        .12326E-03   -1.5058    
  20  Prefactor     .10000E-03    11.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3550        .17415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.7438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    124.38        .67633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    143.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    26.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.1114        .17124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     31.934        26.340        .70907E-04   -1.4577    
  29  Prefactor     .10000E-03    4.9715        .16894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     38.055        33.813        .64973E-04   -1.4473    
  31  Normalizat    .81519        .17564        .22497E-03   -.99508    
  32  Prefactor     1.0515        .19411        .22534E-03   -.91031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08164e-09
Minuit parameter uncertainties:
  1  1.17781e-05
  2  0.000204854
  3  19.6756
  4  2.739e-05
  5  4.36107
  6  2.63653e-05
  7  0.00172006
  8  19.5653
  9  35.9239
  10  5.17699e-06
  11  4.7441
  12  0.375406
  13  3.06198e-05
  14  0.000109648
  15  49.6494
  16  43.7232
  17  0.000137606
  18  2.8759e-05
  19  13.7097
  20  8.82213e-06
  21  8.9544e-05
  22  3.90365e-05
  23  5.41783e-05
  24  0.0012812
  25  8.08272e-05
  26  7.62588e-06
  27  8.97926e-08
  28  26.3499
  29  4.7593e-06
  30  33.8295
  31  0.175764
  32  0.194239
Done.

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

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  1.390e+01  4.965e+01  1.000e-04  1.000e+04 ( 1.000e-14)
392        Index:  2.168e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.052e+00  1.942e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  8.152e-01  1.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 199.556 67.915
Photon Flux Upper Limit: 5.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/451701/likelihoodResults_314236801_314496001_4FGL_J1318.2+6754_daily_bin289.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) = 6027.96282867
delta logL = 0.0535746452379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6027.95255485
delta logL = 0.0638484707642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6489       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6940       1.0000          .0000       10.000    
     3 'Normalizat'    .80893       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0553       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6027.953     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      229 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5897        849.04        .34075E-02   -.41614E-04
   2  Index         2.6966        6.3415        .17153        .72222E-04
   3  Normalizat    .80896        .36363E-01    .43727E-01   -.79080E-04
   4  Prefactor     1.0552        .40030E-01    .39611E-01    .38727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.58973
  Index      = 2.69658
  Normalizat = 0.808964
  Prefactor  = 1.05519
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.953     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5897        83.637        .13630E-03   -1.5122    
   2  Index         2.6966        2.4065        .99592E-02   -.47877    
   3  Normalizat    .80896        .17110        .22574E-03   -.99737    
   4  Prefactor     1.0552        .19207        .22498E-03   -.90912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4638e-08
Minuit parameter uncertainties:
  1  53.7046
  2  2.54351
  3  0.171209
  4  0.1922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/451701': 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) = 6027.95255292
delta logL = 0.0638503949513

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  8.590e+00  5.370e+01  1.000e-04  1.000e+04 ( 1.000e-14)
392        Index:  2.697e+00  2.544e+00  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.055e+00  1.922e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  8.090e-01  1.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 199.556 67.915

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/451701/cmap_HighResolution_314236801_314496001_4FGL_J1318.2+6754_daily_bin289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.87e-08', time_completed='2021-09-07 10:51:27.786018', job_id='451701', GAL2='1.06', fit_tolerance='1e-08', EG2='0.81', EG='0.82', time_epoch_completed='1631037087.79', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='6.39e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='289' AND source_name='4FGL J1318.2+6754' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:51:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 451701: <4FGL_J1318.2+6754_daily_bin289> in cluster <slac> Done

Job <4FGL_J1318.2+6754_daily_bin289> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 10:35:28 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:36:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 10:36:11 2021
Terminated at Tue Sep  7 10:51:28 2021
Results reported at Tue Sep  7 10:51:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.2+6754_daily_bin289 199.556 67.9152 314236801 314496001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1318.2+6754 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   899.39 sec.
    Max Memory :                                 1016 MB
    Average Memory :                             328.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            960 sec.

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

