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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1406
RA = 184.476, Dec = 30.1177
tmin = 603763201, tmax = 604022401
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='461688', job_status='RUN', time_executed='2021-09-05 06:31:58.854581', time_epoch_executed='1630848718.85' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461688

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461688/ft1_4FGL_J1217.9+3007_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461688/ft2_4FGL_J1217.9+3007_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461688/ft1_4FGL_J1217.9+3007_daily_bin1406.fits outfile=/scratch/kocevski/461688/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1406.fits ra=184.476 dec=30.1177 rad=12.0 tmin=603763201.0 tmax=604022401.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.22
user 3.98
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461688/ft2_4FGL_J1217.9+3007_daily_bin1406.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/461688/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1406.fits evtable="EVENTS" outfile="/scratch/kocevski/461688/ft1_filtered_4FGL_J1217.9+3007_daily_bin1406.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.54
user 0.35
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461688/ft1_filtered_4FGL_J1217.9+3007_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/461688/ft2_4FGL_J1217.9+3007_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/461688/ltcube_603763201_604022401_4FGL_J1217.9+3007_daily_bin1406.fits outfile=/scratch/kocevski/461688/expmap_603763201_604022401_4FGL_J1217.9+3007_daily_bin1406.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/461688/ltcube_603763201_604022401_4FGL_J1217.9+3007_daily_bin1406.fits
.....................!
real 190.28
user 185.31
sys 4.37

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/461688/ft1_filtered_4FGL_J1217.9+3007_daily_bin1406.fits scfile=/scratch/kocevski/461688/ft2_4FGL_J1217.9+3007_daily_bin1406.fits outfile=/scratch/kocevski/461688/cmap_603763201_604022401_4FGL_J1217.9+3007_daily_bin1406.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461688/ft1_filtered_4FGL_J1217.9+3007_daily_bin1406.fits scfile=/scratch/kocevski/461688/ft2_4FGL_J1217.9+3007_daily_bin1406.fits outfile=/scratch/kocevski/461688/cmap_HighResolution_603763201_604022401_4FGL_J1217.9+3007_daily_bin1406.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22403E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.236       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.750       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6584       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.979       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2607       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.158       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2920       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.2073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8704       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8826       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.399       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.771       1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.776       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8195       1.0000         .10000E-03   10000.    
    24 'norm      '    6.9638       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .19277       1.0000         .10000E-03   10000.    
    27 'Prefactor '    79.150       1.0000         .10000E-03   10000.    
    28 'norm      '    36.495       1.0000         .10000E-03   10000.    
    29 'norm      '    .12056E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .62348       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1239       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=   4337.231     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     4193 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10023E-03    14.855       -.33730E-05** at limit **
   2  Prefactor     10.253        14.661        .76414E-07    .23252E-03
   3  Prefactor     24.753        9.4419       -.75969E-07    .14606E-03
   4  norm          1.6565        2.0620        .15215E-05    .24569E-03
   5  Prefactor     26.985        29.991       -.19933E-06    .42575E-04
   6  Prefactor     5.2604        3.2995        .62429E-07    .96222E-04
   7  Prefactor     .10000E-03    26.496        .43910E-07** at limit **
   8  Prefactor     33.294        80.408       -.22326E-04   -.11055E-04
   9  norm          1.2919        1.5429        .27920E-07    .86838E-04
  10  Prefactor     .10000E-03    3.7690       -.14538E-06** at limit **
  11  Prefactor     .10000E-03    8.9058        .91813E-07** at limit **
  12  norm          7.2073        3.8577       -.33491E-07    .31614E-04
  13  Prefactor     1.8707        6.7261        .71295E-05    .14467E-03
  14  Prefactor     .10000E-03    1.2522       -.13165E-07** at limit **
  15  Prefactor     2.8828        3.2619        .68343E-07    .43637E-04
  16  Prefactor     .10000E-03    2.9664       -.48194E-07** at limit **
  17  norm          .10000E-03    .15469       -.12394E-06** at limit **
  18  norm          14.399        7.2675        .17090E-06    .12574E-03
  19  Prefactor     .10000E-03    4.3185        .27567E-07** at limit **
  20  Prefactor     12.771        14.166        .64717E-08   -.17612E-05
  21  Prefactor     42.776        67.089        .77433E-07   -.25130E-05
  22  Prefactor     .10000E-03    4.2997       -.16246E-06** at limit **
  23  Prefactor     6.8190        9.6957        .14932E-06   -.93805E-05
  24  norm          6.9635        5.1592        .57927E-07   -.53766E-04
  25  Prefactor     .10000E-03    9.9463       -.91744E-07** at limit **
  26  norm          .19249        3.2239        .17808E-06   -.81365E-04
  27  Prefactor     79.155        43.322       -.22851E-06   -.20579E-04
  28  norm          36.493        10.378        .42282E-07   -.88545E-03
  29  norm          .10005E-03    13.676        .14006E-05** at limit **
  30  Normalizat    .62330        .22101       -.30089E-05    .13308E-03
  31  Prefactor     1.1241        .23844        .23571E-05    .12241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100228
  Prefactor  = 10.2525
  Prefactor  = 24.753
  norm       = 1.65652
  Prefactor  = 26.9851
  Prefactor  = 5.26036
  Prefactor  = 0.0001
  Prefactor  = 33.2943
  norm       = 1.2919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.20735
  Prefactor  = 1.87073
  Prefactor  = 0.0001
  Prefactor  = 2.88281
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.399
  Prefactor  = 0.0001
  Prefactor  = 12.7708
  Prefactor  = 42.7756
  Prefactor  = 0.0001
  Prefactor  = 6.81901
  norm       = 6.96345
  Prefactor  = 0.0001
  norm       = 0.192489
  Prefactor  = 79.1547
  norm       = 36.4929
  norm       = 0.000100046
  Normalizat = 0.623299
  Prefactor  = 1.1241
 **********
 **   18 **HESSE 
 **********

 FCN=   4337.231     FROM HESSE     STATUS=OK           630 CALLS     4823 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10023E-03    66.446        .45876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.253        14.129        .12524E-03   -1.5067    
   3  Prefactor     24.753        9.4298        .80519E-04   -1.4713    
   4  norm          1.6565        2.0471        .85082E-04   -1.5451    
   5  Prefactor     26.985        29.950        .77127E-04   -1.4669    
   6  Prefactor     5.2604        3.2955        .85255E-04   -1.5249    
   7  Prefactor     .10000E-03    26.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.294        80.561        .69588E-04   -1.4553    
   9  norm          1.2919        1.5108        .83527E-04   -1.5481    
  10  Prefactor     .10000E-03    3.8390        .12481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.9080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.2073        3.8477        .88235E-04   -1.5171    
  13  Prefactor     1.8707        6.7573        .15227E-02   -1.5434    
  14  Prefactor     .10000E-03    1.2573        .71820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8828        3.2445        .11391E-03   -1.5368    
  16  Prefactor     .10000E-03    2.9706        .11074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .22120        .49908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.399        7.2585        .52777E-03   -1.4949    
  19  Prefactor     .10000E-03    4.3218        .13364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.771        14.164        .11209E-03   -1.4993    
  21  Prefactor     42.776        67.092        .61295E-04   -1.4399    
  22  Prefactor     .10000E-03    4.3123        .13335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.8190        9.6560        .15364E-03   -1.5186    
  24  norm          6.9635        5.1541        .12201E-03   -1.5180    
  25  Prefactor     .10000E-03    9.9515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .19249        21.657        .22564E-02   -1.5620    
  27  Prefactor     79.155        43.203        .45141E-04   -1.3926    
  28  norm          36.493        8.5682        .66340E-04   -1.4499    
  29  norm          .10005E-03    48.769        .38783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .62330        .25630        .30059E-03   -1.0700    
  31  Prefactor     1.1241        .28153        .26730E-03   -.88700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77522e-08
Minuit parameter uncertainties:
  1  0.00780147
  2  14.1332
  3  9.43032
  4  2.04722
  5  29.9662
  6  3.29561
  7  1.40527e-05
  8  80.8263
  9  1.51085
  10  8.38478e-06
  11  1.63605e-06
  12  3.84785
  13  6.76006
  14  1.54694e-06
  15  3.24473
  16  2.00214e-06
  17  7.69028e-07
  18  7.25894
  19  2.50069e-06
  20  14.1675
  21  67.2103
  22  4.97093e-06
  23  9.65825
  24  5.15442
  25  2.76008e-06
  26  4.08394
  27  43.2197
  28  8.56848
  29  0.00301257
  30  0.256786
  31  0.281901
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  7.207e+00  3.848e+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.124e+00  2.819e-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:  6.233e-01  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.46
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 6.28e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 5.59e-05 +/- 2.98e-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) = 4336.14679392
delta logL = 1.08380335032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4335.93250213
delta logL = 1.29809514575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0231       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1222       1.0000          .0000       5.0000    
     3 'Normalizat'    .65584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1185       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=   4335.933     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      217 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0231        2.9348        .50263E-02    .61727E-03
   2  alpha         1.1224        .32111        .19704       -.22952E-04
   3  Normalizat    .65571        .20003        .66407E-01    .19677E-04
   4  Prefactor     1.1184        .23473        .60702E-01    .76502E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.0231
  alpha      = 1.12235
  Normalizat = 0.655715
  Prefactor  = 1.11844
 **********
 **   18 **HESSE 
 **********

 FCN=   4335.933     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0231        4.2731        .80330E-04   -1.5307    
   2  alpha         1.1224        .47707        .85000E-02   -.58363    
   3  Normalizat    .65571        .23671        .29386E-03   -1.0567    
   4  Prefactor     1.1184        .27877        .26844E-03   -.88879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93185e-10
Minuit parameter uncertainties:
  1  4.27345
  2  0.481327
  3  0.237083
  4  0.279139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461688': 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) = 4335.93250103
delta logL = 1.29809624622

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  4.023e+00  4.273e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.122e+00  4.813e-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.118e+00  2.791e-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:  6.557e-01  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.99
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.12 +/- 0.48
Photon Flux (Free Index): 2.32e-08 +/- 2.18e-08
Energy Flux (Free Index): 1.66e-04 +/- 1.48e-04

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/461688/cmap_HighResolution_603763201_604022401_4FGL_J1217.9+3007_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.28e-08', energy_flux2='1.66e-04', photon_flux_error='3.35e-08', dlogl='1.30e+00', energy_flux='5.59e-05', photon_flux2='2.32e-08', job_status='DONE', time_completed='2021-09-05 06:45:07.335740', photon_index_error2='0.48', photon_index2='1.12', ts='15.46', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.48e-04', EG='0.62', time_epoch_completed='1630849507.34', return_code='0', job_id='461688', GAL2='1.12', EG2='0.66', return_code2='0', energy_flux_error='2.98e-05', photon_flux_error2='2.18e-08', ts2='17.99', photon_index='1.85' WHERE bin_id='1406' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:45:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 461688: <4FGL_J1217.9+3007_daily_bin1406> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1406> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 06:30:40 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:30:42 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:30:42 2021
Terminated at Sun Sep  5 06:45:08 2021
Results reported at Sun Sep  5 06:45:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1406 184.476 30.1177 603763201 604022401 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 :                                   674.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

