/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 41 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 = 7406
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin480
RA = 184.476, Dec = 30.1177
tmin = 363744001, tmax = 364003201
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='456433', job_status='RUN', time_executed='2021-09-05 06:16:55.439214', time_epoch_executed='1630847815.44' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456433

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456433/ft1_4FGL_J1217.9+3007_daily_bin480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456433/ft2_4FGL_J1217.9+3007_daily_bin480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456433/ft1_4FGL_J1217.9+3007_daily_bin480.fits outfile=/scratch/kocevski/456433/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin480.fits ra=184.476 dec=30.1177 rad=12.0 tmin=363744001.0 tmax=364003201.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.31
user 3.06
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/456433/ft2_4FGL_J1217.9+3007_daily_bin480.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456433/ft2_4FGL_J1217.9+3007_daily_bin480.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/456433/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin480.fits evtable="EVENTS" outfile="/scratch/kocevski/456433/ft1_filtered_4FGL_J1217.9+3007_daily_bin480.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.58
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456433/ft1_filtered_4FGL_J1217.9+3007_daily_bin480.fits" evtable="EVENTS" scfile=/scratch/kocevski/456433/ft2_4FGL_J1217.9+3007_daily_bin480.fits sctable="SC_DATA" outfile=/scratch/kocevski/456433/ltcube_363744001_364003201_4FGL_J1217.9+3007_daily_bin480.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/456433/ft2_4FGL_J1217.9+3007_daily_bin480.fits
.....................!
real 12.29
user 11.84
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456433/ft1_filtered_4FGL_J1217.9+3007_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/456433/ft2_4FGL_J1217.9+3007_daily_bin480.fits sctable="SC_DATA" expcube=/scratch/kocevski/456433/ltcube_363744001_364003201_4FGL_J1217.9+3007_daily_bin480.fits outfile=/scratch/kocevski/456433/expmap_363744001_364003201_4FGL_J1217.9+3007_daily_bin480.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/456433/ltcube_363744001_364003201_4FGL_J1217.9+3007_daily_bin480.fits
.....................!
real 192.00
user 185.05
sys 5.97

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

Setting source of interest to:
4FGL J1217.9+3007 @ 184.476 30.1177

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/456433/ft1_filtered_4FGL_J1217.9+3007_daily_bin480.fits scfile=/scratch/kocevski/456433/ft2_4FGL_J1217.9+3007_daily_bin480.fits outfile=/scratch/kocevski/456433/cmap_363744001_364003201_4FGL_J1217.9+3007_daily_bin480.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=184.476 yref=30.1177 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.82
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456433/ft1_filtered_4FGL_J1217.9+3007_daily_bin480.fits scfile=/scratch/kocevski/456433/ft2_4FGL_J1217.9+3007_daily_bin480.fits outfile=/scratch/kocevski/456433/cmap_HighResolution_363744001_364003201_4FGL_J1217.9+3007_daily_bin480.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=184.476 yref=30.1177 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.84
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/456433/ft1_filtered_4FGL_J1217.9+3007_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/456433/ft2_4FGL_J1217.9+3007_daily_bin480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/456433/Model_4FGL_J1217.9+3007_daily_bin480.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/456433/ft1_filtered_4FGL_J1217.9+3007_daily_bin480.fits.....................!
real 56.70
user 52.81
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/456433/ft1_filtered_4FGL_J1217.9+3007_daily_bin480.fits', '/scratch/kocevski/456433/ft2_4FGL_J1217.9+3007_daily_bin480.fits', expMap='/scratch/kocevski/456433/expmap_363744001_364003201_4FGL_J1217.9+3007_daily_bin480.fits', expCube='/scratch/kocevski/456433/ltcube_363744001_364003201_4FGL_J1217.9+3007_daily_bin480.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/456433/Model_4FGL_J1217.9+3007_daily_bin480.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1217.9+3007'

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  7.980e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.854e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  4.615e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/456433/ft1_filtered_4FGL_J1217.9+3007_daily_bin480.fits
Spacecraft file(s): /scratch/kocevski/456433/ft2_4FGL_J1217.9+3007_daily_bin480.fits
Exposure map: /scratch/kocevski/456433/expmap_363744001_364003201_4FGL_J1217.9+3007_daily_bin480.fits
Exposure cube: /scratch/kocevski/456433/ltcube_363744001_364003201_4FGL_J1217.9+3007_daily_bin480.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/456433/Model_4FGL_J1217.9+3007_daily_bin480.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) = 6168.86655494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6405       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8297       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6392       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.358       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.546       1.0000         .10000E-03   10000.    
     9 'norm      '    4.9333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1348       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.7139       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0758       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9738       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7432       1.0000         .10000E-03   10000.    
    18 'norm      '    11.046       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3595       1.0000         .10000E-03   10000.    
    24 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.901       1.0000         .10000E-03   10000.    
    26 'norm      '    4.7913       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    9.3235       1.0000         .10000E-03   10000.    
    29 'norm      '    .85205       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .87916       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92613       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6168.792     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     4125 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8551        .50459E-07** at limit **
   2  Prefactor     .10000E-03    4.2740        .10455E-07** at limit **
   3  Prefactor     4.6426        6.0911        .51732E-06    .11092E-03
   4  norm          1.8302        1.2249        .55021E-07    .41413E-04
   5  Prefactor     .10024E-03    21.285       -.30900E-05** at limit **
   6  Prefactor     1.6355        2.1257        .19721E-06    .85534E-03
   7  Prefactor     10.380        21.148        .12892E-05    .25275E-03
   8  Prefactor     10.547        32.040        .21945E-06    .58554E-05
   9  norm          4.9330        1.3901        .70179E-08    .70004E-03
  10  Prefactor     3.1358        4.5556        .50886E-06    .16537E-03
  11  Prefactor     .10000E-03    29.945        .18121E-05** at limit **
  12  norm          5.7148        2.9115        .24534E-07   -.90590E-04
  13  Prefactor     8.0790        6.7701        .14409E-05    .32760E-03
  14  Prefactor     2.9746        2.2284        .30011E-07   -.66948E-04
  15  Prefactor     .10000E-03    1.3849        .44069E-06** at limit **
  16  Prefactor     .10000E-03    4.4485        .20364E-07** at limit **
  17  norm          1.7433        .35830        .93160E-08   -.37153E-04
  18  norm          11.050        5.6553        .14612E-06   -.15646E-04
  19  Prefactor     .10000E-03    2.8292       -.11958E-07** at limit **
  20  Prefactor     .10000E-03    7.4086       -.67342E-07** at limit **
  21  Prefactor     .10000E-03    25.913       -.73799E-06** at limit **
  22  Prefactor     .10000E-03    3.0661       -.81421E-07** at limit **
  23  Prefactor     3.3594        3.7951        .85722E-06    .38101E-03
  24  norm          .10000E-03    2.2126        .11802E-06** at limit **
  25  Prefactor     33.905        21.883        .20754E-06    .67607E-04
  26  norm          4.7911        3.7355        .67792E-07   -.16254E-05
  27  Prefactor     .10000E-03    9.8267       -.94220E-06** at limit **
  28  norm          9.3181        6.2016       -.32126E-06   -.53750E-03
  29  norm          .86500        9.3614        .12862E-05   -.33861E-03
  30  Normalizat    .87889        .18042       -.14503E-05    .18850E-03
  31  Prefactor     .92641        .19629        .42535E-06    .55349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.64255
  norm       = 1.83019
  Prefactor  = 0.000100235
  Prefactor  = 1.6355
  Prefactor  = 10.3804
  Prefactor  = 10.5466
  norm       = 4.93297
  Prefactor  = 3.13584
  Prefactor  = 0.000100004
  norm       = 5.71475
  Prefactor  = 8.07897
  Prefactor  = 2.9746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74334
  norm       = 11.0502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.35941
  norm       = 0.0001
  Prefactor  = 33.9048
  norm       = 4.79113
  Prefactor  = 0.000100003
  norm       = 9.31808
  norm       = 0.865
  Normalizat = 0.878889
  Prefactor  = 0.926408
 **********
 **   18 **HESSE 
 **********

 FCN=   6168.792     FROM HESSE     STATUS=OK           634 CALLS     4759 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.2841        .15856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6426        6.0902        .18683E-03   -1.5277    
   4  norm          1.8302        1.2180        .67418E-04   -1.5437    
   5  Prefactor     .10024E-03    72.440        .56556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6355        2.0128        .11704E-03   -1.5452    
   7  Prefactor     10.380        21.368        .12449E-03   -1.5063    
   8  Prefactor     10.547        32.036        .12338E-03   -1.5058    
   9  norm          4.9330        1.3824        .46936E-04   -1.5264    
  10  Prefactor     3.1358        4.5473        .19160E-03   -1.5354    
  11  Prefactor     .10000E-03    30.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7148        2.9305        .85579E-04   -1.5230    
  13  Prefactor     8.0790        6.8397        .70543E-03   -1.5139    
  14  Prefactor     2.9746        2.2453        .91092E-04   -1.5363    
  15  Prefactor     .10000E-03    3.0378        .17291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.4753        .16159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7433        .35860        .20307E-04   -1.5444    
  18  norm          11.050        5.6303        .12054E-03   -1.5043    
  19  Prefactor     .10000E-03    2.8355        .12901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.4236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0799        .13431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.3594        3.7923        .78965E-03   -1.5341    
  24  norm          .10000E-03    2.2410        .11398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     33.905        22.322        .68824E-04   -1.4543    
  26  norm          4.7911        3.7371        .12985E-03   -1.5270    
  27  Prefactor     .10000E-03    42.341        .46490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          9.3181        14.071        .10976E-03   -1.5097    
  29  norm          .86500        155.60        .32426E-02   -1.5522    
  30  Normalizat    .87889        .21041        .25082E-03   -.97206    
  31  Prefactor     .92641        .23025        .28865E-03   -.95224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96103e-09
Minuit parameter uncertainties:
  1  1.95965e-05
  2  1.23212e-06
  3  6.09102
  4  1.21799
  5  0.00826519
  6  2.01288
  7  21.3837
  8  32.0885
  9  1.38239
  10  4.5478
  11  0.000653802
  12  2.93055
  13  6.84032
  14  2.24537
  15  4.54742e-05
  16  3.78376e-06
  17  0.358601
  18  5.63058
  19  1.61708e-06
  20  1.1914e-05
  21  0.000376435
  22  1.10386e-05
  23  3.79262
  24  5.3766e-06
  25  22.3279
  26  3.73732
  27  0.000736379
  28  14.0758
  29  23.2629
  30  0.210611
  31  0.230491
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.715e+00  2.931e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.854e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  4.615e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  9.264e-01  2.305e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  8.789e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.51
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 4.98e-08 +/- 2.55e-08
Energy Flux (Fixed Index): 4.43e-05 +/- 2.27e-05

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) = 6168.5180351
delta logL = 0.274449164895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6168.48448449
delta logL = 0.307999779399

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4729       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5533       1.0000          .0000       5.0000    
     3 'Normalizat'    .89426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91806       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6168.484     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4729        2.8092        .42939E-02    .67467E-02
   2  alpha         1.5533        .33238        .26346       -.27490E-04
   3  Normalizat    .89426        .16496        .44828E-01    .32527E-04
   4  Prefactor     .91805        .19462        .65555E-01   -.86589E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.47287
  alpha      = 1.55328
  Normalizat = 0.894263
  Prefactor  = 0.918053
 **********
 **   18 **HESSE 
 **********

 FCN=   6168.484     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4729        2.8915        .88954E-04   -1.5240    
   2  alpha         1.5533        .37435        .10613E-01   -.38838    
   3  Normalizat    .89426        .19286        .24901E-03   -.96662    
   4  Prefactor     .91805        .22748        .28995E-03   -.95513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93407e-09
Minuit parameter uncertainties:
  1  2.89154
  2  0.376007
  3  0.193005
  4  0.227712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456433': 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) = 6168.48448447
delta logL = 0.307999798144

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.473e+00  2.892e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.553e+00  3.760e-01  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  4.615e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  9.181e-01  2.277e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  8.943e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.22
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.55 +/- 0.38
Photon Flux (Free Index): 3.53e-08 +/- 2.40e-08
Energy Flux (Free Index): 7.11e-05 +/- 5.76e-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/456433/cmap_HighResolution_363744001_364003201_4FGL_J1217.9+3007_daily_bin480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.98e-08', energy_flux2='7.11e-05', photon_flux_error='2.55e-08', dlogl='3.08e-01', energy_flux='4.43e-05', photon_flux2='3.53e-08', job_status='DONE', time_completed='2021-09-05 06:30:56.076619', photon_index_error2='0.38', photon_index2='1.55', ts='18.51', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='5.76e-05', EG='0.88', time_epoch_completed='1630848656.08', return_code='0', job_id='456433', GAL2='0.92', EG2='0.89', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='2.40e-08', ts2='19.22', photon_index='1.85' WHERE bin_id='480' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:30:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 456433: <4FGL_J1217.9+3007_daily_bin480> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin480> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 06:15:34 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:15:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 06:15:35 2021
Terminated at Sun Sep  5 06:30:56 2021
Results reported at Sun Sep  5 06:30:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin480 184.476 30.1177 363744001 364003201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1217.9+3007 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   823.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            922 sec.

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

