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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin427
RA = 184.476, Dec = 30.1177
tmin = 350006401, tmax = 350265601
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='456354', job_status='RUN', time_executed='2021-09-05 06:16:42.087856', time_epoch_executed='1630847802.09' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456354

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456354/ft1_4FGL_J1217.9+3007_daily_bin427.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456354/ft2_4FGL_J1217.9+3007_daily_bin427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456354/ft1_4FGL_J1217.9+3007_daily_bin427.fits outfile=/scratch/kocevski/456354/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin427.fits ra=184.476 dec=30.1177 rad=12.0 tmin=350006401.0 tmax=350265601.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 4.02
user 3.77
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456354/ft2_4FGL_J1217.9+3007_daily_bin427.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/456354/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin427.fits evtable="EVENTS" outfile="/scratch/kocevski/456354/ft1_filtered_4FGL_J1217.9+3007_daily_bin427.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.56
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456354/ft1_filtered_4FGL_J1217.9+3007_daily_bin427.fits" evtable="EVENTS" scfile=/scratch/kocevski/456354/ft2_4FGL_J1217.9+3007_daily_bin427.fits sctable="SC_DATA" outfile=/scratch/kocevski/456354/ltcube_350006401_350265601_4FGL_J1217.9+3007_daily_bin427.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/456354/ft2_4FGL_J1217.9+3007_daily_bin427.fits
.....................!
real 11.68
user 11.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456354/ft1_filtered_4FGL_J1217.9+3007_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/456354/ft2_4FGL_J1217.9+3007_daily_bin427.fits sctable="SC_DATA" expcube=/scratch/kocevski/456354/ltcube_350006401_350265601_4FGL_J1217.9+3007_daily_bin427.fits outfile=/scratch/kocevski/456354/expmap_350006401_350265601_4FGL_J1217.9+3007_daily_bin427.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/456354/ltcube_350006401_350265601_4FGL_J1217.9+3007_daily_bin427.fits
.....................!
real 191.72
user 185.81
sys 5.16

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/456354/ft1_filtered_4FGL_J1217.9+3007_daily_bin427.fits scfile=/scratch/kocevski/456354/ft2_4FGL_J1217.9+3007_daily_bin427.fits outfile=/scratch/kocevski/456354/cmap_350006401_350265601_4FGL_J1217.9+3007_daily_bin427.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.70
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456354/ft1_filtered_4FGL_J1217.9+3007_daily_bin427.fits scfile=/scratch/kocevski/456354/ft2_4FGL_J1217.9+3007_daily_bin427.fits outfile=/scratch/kocevski/456354/cmap_HighResolution_350006401_350265601_4FGL_J1217.9+3007_daily_bin427.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.73
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/456354/ft1_filtered_4FGL_J1217.9+3007_daily_bin427.fits', '/scratch/kocevski/456354/ft2_4FGL_J1217.9+3007_daily_bin427.fits', expMap='/scratch/kocevski/456354/expmap_350006401_350265601_4FGL_J1217.9+3007_daily_bin427.fits', expCube='/scratch/kocevski/456354/ltcube_350006401_350265601_4FGL_J1217.9+3007_daily_bin427.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/456354/Model_4FGL_J1217.9+3007_daily_bin427.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/456354/ft1_filtered_4FGL_J1217.9+3007_daily_bin427.fits
Spacecraft file(s): /scratch/kocevski/456354/ft2_4FGL_J1217.9+3007_daily_bin427.fits
Exposure map: /scratch/kocevski/456354/expmap_350006401_350265601_4FGL_J1217.9+3007_daily_bin427.fits
Exposure cube: /scratch/kocevski/456354/ltcube_350006401_350265601_4FGL_J1217.9+3007_daily_bin427.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/456354/Model_4FGL_J1217.9+3007_daily_bin427.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) = 6153.00352348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .13395E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.0678       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.585       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50915E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5676       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8470       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7938       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6958       1.0000         .10000E-03   10000.    
    12 'norm      '    9.9468       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.619       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0451       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8371       1.0000         .10000E-03   10000.    
    17 'norm      '    .26081       1.0000         .10000E-03   10000.    
    18 'norm      '    8.1468       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.3109       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .43557E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.112       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .78018       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.4088       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=   6152.982     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     4130 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9900       -.16427E-06** at limit **
   2  Prefactor     .10000E-03    7.3911       -.12779E-06** at limit **
   3  Prefactor     .10001E-03    13.781       -.75402E-05** at limit **
   4  norm          2.0677        1.2650       -.52376E-07    .13400E-03
   5  Prefactor     40.606        23.461       -.68397E-06   -.21644E-05
   6  Prefactor     .33115E-01    2.0816       -.21377E-05    .87537E-03
   7  Prefactor     1.5213        75.919       -.13990E-06    .20573E-04
   8  Prefactor     .10000E-03    13.965       -.11188E-05** at limit **
   9  norm          2.8466        1.4001        .56692E-07   -.86296E-05
  10  Prefactor     1.7933        4.2237       -.10968E-05    .22361E-03
  11  Prefactor     9.6867        22.785        .57208E-06   -.10355E-04
  12  norm          9.9464        3.5411       -.34005E-07    .17614E-04
  13  Prefactor     11.618        7.6188       -.52036E-07    .22216E-04
  14  Prefactor     1.0795        1.2202        .22704E-07   -.15613E-04
  15  Prefactor     3.0448        2.2276       -.60630E-07    .71075E-04
  16  Prefactor     4.8368        4.4595       -.47958E-08    .36893E-04
  17  norm          .26082        .20486       -.28637E-07    .24355E-03
  18  norm          8.1462        4.7203       -.50708E-07    .74759E-04
  19  Prefactor     .10000E-03    5.3924       -.99893E-07** at limit **
  20  Prefactor     7.3072        19.426       -.16784E-06    .16867E-04
  21  Prefactor     .10000E-03    54.271       -.18076E-05** at limit **
  22  Prefactor     .10000E-03    5.3570       -.61142E-07** at limit **
  23  Prefactor     .10000E-03    2.0342       -.19115E-07** at limit **
  24  norm          .10000E-03    3.4952       -.24129E-05** at limit **
  25  Prefactor     24.110        21.388       -.45684E-07    .20515E-03
  26  norm          .10000E-03    1.4618       -.89365E-07** at limit **
  27  Prefactor     .10000E-03    5.4714       -.13161E-06** at limit **
  28  norm          .10000E-03    1.2604       -.43200E-07** at limit **
  29  norm          .10000E-03    2.6084       -.38890E-07** at limit **
  30  Normalizat    .78016        .18190        .56641E-06    .24567E-03
  31  Prefactor     1.4090        .20741        .94519E-06    .30527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 2.06766
  Prefactor  = 40.6058
  Prefactor  = 0.0331154
  Prefactor  = 1.52135
  Prefactor  = 0.0001
  norm       = 2.84661
  Prefactor  = 1.79327
  Prefactor  = 9.68669
  norm       = 9.9464
  Prefactor  = 11.6175
  Prefactor  = 1.07949
  Prefactor  = 3.04484
  Prefactor  = 4.83679
  norm       = 0.260815
  norm       = 8.14624
  Prefactor  = 0.0001
  Prefactor  = 7.30716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 24.1101
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.780158
  Prefactor  = 1.40898
 **********
 **   18 **HESSE 
 **********

 FCN=   6152.982     FROM HESSE     STATUS=OK           628 CALLS     4758 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.4460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    14.949        .23804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0677        1.2654        .66456E-04   -1.5420    
   5  Prefactor     40.606        24.323        .62920E-04   -1.4433    
   6  Prefactor     .33115E-01    28.121        .13774E-02   -1.5672    
   7  Prefactor     1.5213        77.479        .33963E-03   -1.5461    
   8  Prefactor     .10000E-03    13.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8466        1.3956        .61171E-04   -1.5371    
  10  Prefactor     1.7933        4.2196        .23623E-03   -1.5440    
  11  Prefactor     9.6867        22.707        .12869E-03   -1.5085    
  12  norm          9.9464        3.5403        .83772E-04   -1.5077    
  13  Prefactor     11.618        7.6212        .11753E-03   -1.5026    
  14  Prefactor     1.0795        1.2202        .46410E-04   -1.5500    
  15  Prefactor     3.0448        2.2232        .94989E-04   -1.5359    
  16  Prefactor     4.8368        4.4557        .15329E-03   -1.5268    
  17  norm          .26082        .19906        .30075E-04   -1.5606    
  18  norm          8.1462        4.7171        .12413E-03   -1.5137    
  19  Prefactor     .10000E-03    5.4264        .17790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.3072        19.443        .14834E-03   -1.5167    
  21  Prefactor     .10000E-03    54.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.3996        .17729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.0372        .10924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    21.841        .22043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     24.110        20.489        .81576E-04   -1.4726    
  26  norm          .10000E-03    1.4707        .92649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.4745        .17922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.2728        .85975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.6252        .12372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .78016        .21267        .27946E-03   -1.0081    
  31  Prefactor     1.4090        .24714        .26052E-03   -.80122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89563e-09
Minuit parameter uncertainties:
  1  9.67684e-06
  2  2.07054e-05
  3  0.000628329
  4  1.26543
  5  24.3287
  6  1.92799
  7  21.7429
  8  1.43913e-06
  9  1.3956
  10  4.22032
  11  22.7267
  12  3.54039
  13  7.62187
  14  1.22022
  15  2.22327
  16  4.45599
  17  0.199056
  18  4.71727
  19  1.84789e-05
  20  19.4602
  21  6.36208e-05
  22  2.84139e-05
  23  5.7302e-06
  24  0.000562932
  25  20.4949
  26  5.54378e-06
  27  6.04277e-06
  28  3.554e-06
  29  3.90538e-06
  30  0.212894
  31  0.247345
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  9.946e+00  3.540e+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:  1.409e+00  2.473e-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:  7.802e-01  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 49.41
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 8.66e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 7.71e-05 +/- 2.75e-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) = 6152.24037887
delta logL = 0.741149939658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6152.18385044
delta logL = 0.797678376845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5444       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4576       1.0000          .0000       5.0000    
     3 'Normalizat'    .80988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3982       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=   6152.184     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5467        3.3813        .34284E-02    .58441E-03
   2  alpha         1.4579        .25657        .19897       -.16019E-03
   3  Normalizat    .80978        .17297        .43739E-01   -.12067E-03
   4  Prefactor     1.3983        .20984        .59210E-01   -.20806E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.54669
  alpha      = 1.4579
  Normalizat = 0.809777
  Prefactor  = 1.39825
 **********
 **   18 **HESSE 
 **********

 FCN=   6152.184     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5467        4.0063        .86294E-04   -1.5123    
   2  alpha         1.4579        .31733        .84085E-02   -.42997    
   3  Normalizat    .80978        .20170        .27498E-03   -.99707    
   4  Prefactor     1.3983        .24479        .26183E-03   -.80431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73601e-10
Minuit parameter uncertainties:
  1  4.00638
  2  0.31837
  3  0.201891
  4  0.244991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456354': 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) = 6152.18384982
delta logL = 0.79767899558

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  8.547e+00  4.006e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.458e+00  3.184e-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:  1.398e+00  2.450e-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.098e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 51.10
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.46 +/- 0.32
Photon Flux (Free Index): 5.18e-08 +/- 3.05e-08
Energy Flux (Free Index): 1.38e-04 +/- 8.84e-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/456354/cmap_HighResolution_350006401_350265601_4FGL_J1217.9+3007_daily_bin427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.66e-08', energy_flux2='1.38e-04', photon_flux_error='3.08e-08', dlogl='7.98e-01', energy_flux='7.71e-05', photon_flux2='5.18e-08', job_status='DONE', time_completed='2021-09-05 06:30:49.932077', photon_index_error2='0.32', photon_index2='1.46', ts='49.41', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', energy_flux_error2='8.84e-05', EG='0.78', time_epoch_completed='1630848649.93', return_code='0', job_id='456354', GAL2='1.40', EG2='0.81', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='3.05e-08', ts2='51.10', photon_index='1.85' WHERE bin_id='427' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:30:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 456354: <4FGL_J1217.9+3007_daily_bin427> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin427> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 06:15:29 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:15:31 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:31 2021
Terminated at Sun Sep  5 06:30:50 2021
Results reported at Sun Sep  5 06:30:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin427 184.476 30.1177 350006401 350265601 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 :                                   827.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

