/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 192 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin18
RA = 184.476, Dec = 30.1177
tmin = 243993601, tmax = 244252801
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='452934', job_status='RUN', time_executed='2021-09-05 06:09:13.728532', time_epoch_executed='1630847353.73' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452934

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452934/ft1_4FGL_J1217.9+3007_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452934/ft2_4FGL_J1217.9+3007_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452934/ft1_4FGL_J1217.9+3007_daily_bin18.fits outfile=/scratch/kocevski/452934/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin18.fits ra=184.476 dec=30.1177 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.41
user 1.20
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452934/ft1_filtered_4FGL_J1217.9+3007_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/452934/ft2_4FGL_J1217.9+3007_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/452934/ltcube_243993601_244252801_4FGL_J1217.9+3007_daily_bin18.fits outfile=/scratch/kocevski/452934/expmap_243993601_244252801_4FGL_J1217.9+3007_daily_bin18.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/452934/ltcube_243993601_244252801_4FGL_J1217.9+3007_daily_bin18.fits
.....................!
real 190.65
user 185.51
sys 4.79

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/452934/ft1_filtered_4FGL_J1217.9+3007_daily_bin18.fits scfile=/scratch/kocevski/452934/ft2_4FGL_J1217.9+3007_daily_bin18.fits outfile=/scratch/kocevski/452934/cmap_243993601_244252801_4FGL_J1217.9+3007_daily_bin18.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452934/ft1_filtered_4FGL_J1217.9+3007_daily_bin18.fits scfile=/scratch/kocevski/452934/ft2_4FGL_J1217.9+3007_daily_bin18.fits outfile=/scratch/kocevski/452934/cmap_HighResolution_243993601_244252801_4FGL_J1217.9+3007_daily_bin18.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.023       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24587       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2531       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6680       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3339       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4609       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.116       1.0000         .10000E-03   10000.    
    12 'norm      '    14.070       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.103       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0601       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4277       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .77401       1.0000         .10000E-03   10000.    
    17 'norm      '    .44370       1.0000         .10000E-03   10000.    
    18 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10692E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.9907       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.3450       1.0000         .10000E-03   10000.    
    27 'Prefactor '    31.291       1.0000         .10000E-03   10000.    
    28 'norm      '    16.886       1.0000         .10000E-03   10000.    
    29 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96473       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .86309       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=   5580.256     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     4140 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.021        13.846       -.11067E-06   -.10105E-03
   2  Prefactor     .10000E-03    12.664        .55777E-05** at limit **
   3  Prefactor     .24591        2.5876       -.32793E-07    .23133E-04
   4  norm          .10000E-03    .24607        .30073E-08** at limit **
   5  Prefactor     1.2534        3.7373        .11739E-05   -.85807E-03
   6  Prefactor     2.6682        1.7680       -.88799E-07    .17154E-04
   7  Prefactor     .10000E-03    18.998       -.12818E-04** at limit **
   8  Prefactor     .10000E-03    16.568        .73466E-05** at limit **
   9  norm          3.3339        1.2713        .41610E-08    .16237E-03
  10  Prefactor     2.4613        2.6278       -.48860E-07    .16830E-04
  11  Prefactor     12.110        22.171       -.27953E-05    .16759E-04
  12  norm          14.070        4.3896       -.97633E-06   -.77992E-05
  13  Prefactor     12.105        9.5788        .22391E-06   -.94902E-04
  14  Prefactor     2.0604        1.9468        .33128E-06    .79579E-04
  15  Prefactor     5.4280        2.6585        .29042E-06    .27732E-03
  16  Prefactor     .77947        5.4522       -.19634E-05    .43947E-03
  17  norm          .44375        .27439        .21279E-07    .16398E-02
  18  norm          .10000E-03    2.8048       -.83789E-06** at limit **
  19  Prefactor     .10000E-03    2.8241        .81681E-06** at limit **
  20  Prefactor     .10000E-03    12.530        .99787E-06** at limit **
  21  Prefactor     .10000E-03    31.784        .10630E-04** at limit **
  22  Prefactor     .10013E-03    4.6355       -.32528E-06** at limit **
  23  Prefactor     .10000E-03    2.9672        .88162E-07** at limit **
  24  norm          2.9909        3.9547       -.52852E-07    .85656E-06
  25  Prefactor     .10000E-03    12.201       -.64730E-05** at limit **
  26  norm          5.3448        4.1774       -.14531E-05   -.74992E-05
  27  Prefactor     31.294        26.563        .12293E-05    .26406E-04
  28  norm          16.887        5.6966        .25411E-06    .13054E-03
  29  norm          .10000E-03    6.4709       -.25876E-06** at limit **
  30  Normalizat    .96452        .17916        .78349E-07    .25009E-03
  31  Prefactor     .86322        .20285        .66572E-06    .15760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0208
  Prefactor  = 0.0001
  Prefactor  = 0.245915
  norm       = 0.0001
  Prefactor  = 1.25338
  Prefactor  = 2.66821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.33394
  Prefactor  = 2.46133
  Prefactor  = 12.1095
  norm       = 14.07
  Prefactor  = 12.1048
  Prefactor  = 2.06045
  Prefactor  = 5.42799
  Prefactor  = 0.779468
  norm       = 0.443754
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100134
  Prefactor  = 0.0001
  norm       = 2.99093
  Prefactor  = 0.0001
  norm       = 5.3448
  Prefactor  = 31.2938
  norm       = 16.8875
  norm       = 0.0001
  Normalizat = 0.964524
  Prefactor  = 0.863221
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.256     FROM HESSE     STATUS=OK           632 CALLS     4772 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.021        13.813        .10334E-03   -1.4933    
   2  Prefactor     .10000E-03    12.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .24591        17.679        .22703E-02   -1.5609    
   4  norm          .10000E-03    .24692        .36183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2534        25.760        .19962E-02   -1.5484    
   6  Prefactor     2.6682        1.7766        .77508E-04   -1.5381    
   7  Prefactor     .10000E-03    19.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3339        1.2717        .50042E-04   -1.5343    
  10  Prefactor     2.4613        2.6169        .12132E-03   -1.5394    
  11  Prefactor     12.110        22.154        .11508E-03   -1.5012    
  12  norm          14.070        4.3865        .80072E-04   -1.4958    
  13  Prefactor     12.105        9.6047        .57574E-03   -1.5012    
  14  Prefactor     2.0604        1.9517        .94896E-04   -1.5421    
  15  Prefactor     5.4280        2.6528        .79804E-04   -1.5242    
  16  Prefactor     .77947        10.484        .32026E-02   -1.5531    
  17  norm          .44375        .26875        .28475E-04   -1.5575    
  18  norm          .10000E-03    2.8383        .12178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.8265        .12260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10013E-03    58.489        .30964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9712        .12556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.9909        3.9416        .16386E-03   -1.5362    
  25  Prefactor     .10000E-03    12.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.3448        4.1713        .13067E-03   -1.5246    
  27  Prefactor     31.294        26.594        .71628E-04   -1.4589    
  28  norm          16.887        5.6826        .97465E-04   -1.4886    
  29  norm          .10000E-03    6.4871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .96452        .21158        .23833E-03   -.94229    
  31  Prefactor     .86322        .23925        .29266E-03   -.97438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08254e-08
Minuit parameter uncertainties:
  1  13.816
  2  7.5243e-06
  3  4.1706
  4  4.57591e-08
  5  11.3694
  6  1.7766
  7  1.59504e-06
  8  3.51228e-05
  9  1.27172
  10  2.61701
  11  22.1685
  12  4.38659
  13  9.60588
  14  1.95174
  15  2.6529
  16  5.71808
  17  0.268753
  18  1.64198e-05
  19  2.08042e-06
  20  6.34536e-06
  21  6.58892e-05
  22  0.00560742
  23  7.4523e-06
  24  3.94196
  25  3.9197e-05
  26  4.17156
  27  26.6036
  28  5.68274
  29  2.03815e-05
  30  0.211764
  31  0.23954
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.407e+01  4.387e+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:  8.632e-01  2.395e-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:  9.645e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.37
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 3.82e-08
Energy Flux (Fixed Index): 1.09e-04 +/- 3.40e-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) = 5580.23881844
delta logL = 0.0173823636378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5580.23735372
delta logL = 0.0188470810253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.267       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8124       1.0000          .0000       5.0000    
     3 'Normalizat'    .96767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86154       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=   5580.237     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      200 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.267        5.3992        .26510E-02   -.51148E-02
   2  alpha         1.8123        .25999        .14284        .23546E-04
   3  Normalizat    .96768        .17186        .45761E-01    .12769E-04
   4  Prefactor     .86153        .20108        .66228E-01    .10017E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2672
  alpha      = 1.81232
  Normalizat = 0.967679
  Prefactor  = 0.861527
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.237     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.267        4.3359        .81166E-04   -1.4952    
   2  alpha         1.8123        .21517        .61292E-02   -.27866    
   3  Normalizat    .96768        .20229        .23804E-03   -.94121    
   4  Prefactor     .86153        .23660        .29296E-03   -.97499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47576e-09
Minuit parameter uncertainties:
  1  4.33597
  2  0.215455
  3  0.202452
  4  0.236881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452934': 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) = 5580.23735371
delta logL = 0.0188470926723

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.427e+01  4.336e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.812e+00  2.155e-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:  8.615e-01  2.369e-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:  9.677e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.89
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.81 +/- 0.22
Photon Flux (Free Index): 1.18e-07 +/- 4.12e-08
Energy Flux (Free Index): 1.17e-04 +/- 5.45e-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/452934/cmap_HighResolution_243993601_244252801_4FGL_J1217.9+3007_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='1.17e-04', photon_flux_error='3.82e-08', dlogl='1.88e-02', energy_flux='1.09e-04', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-05 06:21:49.221979', photon_index_error2='0.22', photon_index2='1.81', ts='37.37', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='5.45e-05', EG='0.96', time_epoch_completed='1630848109.22', return_code='0', job_id='452934', GAL2='0.86', EG2='0.97', return_code2='0', energy_flux_error='3.40e-05', photon_flux_error2='4.12e-08', ts2='37.89', photon_index='1.85' WHERE bin_id='18' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:21:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 452934: <4FGL_J1217.9+3007_daily_bin18> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin18 184.476 30.1177 243993601 244252801 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 :                                   754.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

