/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 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7372
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1038
RA = 184.476, Dec = 30.1177
tmin = 508377601, tmax = 508636801
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='460169', job_status='RUN', time_executed='2021-09-05 06:25:55.895237', time_epoch_executed='1630848355.9' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460169

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460169/ft1_4FGL_J1217.9+3007_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460169/ft2_4FGL_J1217.9+3007_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460169/ft1_4FGL_J1217.9+3007_daily_bin1038.fits outfile=/scratch/kocevski/460169/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1038.fits ra=184.476 dec=30.1177 rad=12.0 tmin=508377601.0 tmax=508636801.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.90
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460169/ft1_filtered_4FGL_J1217.9+3007_daily_bin1038.fits" evtable="EVENTS" scfile=/scratch/kocevski/460169/ft2_4FGL_J1217.9+3007_daily_bin1038.fits sctable="SC_DATA" outfile=/scratch/kocevski/460169/ltcube_508377601_508636801_4FGL_J1217.9+3007_daily_bin1038.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/460169/ft2_4FGL_J1217.9+3007_daily_bin1038.fits
.....................!
real 11.82
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460169/ft1_filtered_4FGL_J1217.9+3007_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/460169/ft2_4FGL_J1217.9+3007_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/460169/ltcube_508377601_508636801_4FGL_J1217.9+3007_daily_bin1038.fits outfile=/scratch/kocevski/460169/expmap_508377601_508636801_4FGL_J1217.9+3007_daily_bin1038.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/460169/ltcube_508377601_508636801_4FGL_J1217.9+3007_daily_bin1038.fits
.....................!
real 193.33
user 188.23
sys 4.72

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/460169/ft1_filtered_4FGL_J1217.9+3007_daily_bin1038.fits scfile=/scratch/kocevski/460169/ft2_4FGL_J1217.9+3007_daily_bin1038.fits outfile=/scratch/kocevski/460169/cmap_508377601_508636801_4FGL_J1217.9+3007_daily_bin1038.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460169/ft1_filtered_4FGL_J1217.9+3007_daily_bin1038.fits scfile=/scratch/kocevski/460169/ft2_4FGL_J1217.9+3007_daily_bin1038.fits outfile=/scratch/kocevski/460169/cmap_HighResolution_508377601_508636801_4FGL_J1217.9+3007_daily_bin1038.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2392       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.959       1.0000         .10000E-03   10000.    
     9 'norm      '    3.6771       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.700       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2811       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .49545E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    16.494       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .40401       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.4116       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    14.524       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10029       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0962       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1416       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=   6498.052     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3493 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9470        .24357E-05** at limit **
   2  Prefactor     .10000E-03    3.9606       -.17214E-05** at limit **
   3  Prefactor     .10000E-03    5.3169        .17108E-05** at limit **
   4  norm          1.2391        1.1177       -.33897E-06   -.27767E-03
   5  Prefactor     .10000E-03    13.964       -.28550E-06** at limit **
   6  Prefactor     .10000E-03    .76822        .32148E-08** at limit **
   7  Prefactor     .10000E-03    37.494       -.16250E-04** at limit **
   8  Prefactor     45.970        44.684        .13176E-04    .70609E-05
   9  norm          3.6775        1.4813       -.36065E-08    .13981E-03
  10  Prefactor     .10000E-03    2.3213        .80344E-06** at limit **
  11  Prefactor     .10000E-03    15.108       -.16924E-05** at limit **
  12  norm          14.700        4.7737        .15811E-07    .18234E-03
  13  Prefactor     .10000E-03    4.3362       -.16743E-05** at limit **
  14  Prefactor     4.2810        2.7277        .35167E-07    .21854E-03
  15  Prefactor     .10000E-03    1.0642        .60828E-07** at limit **
  16  Prefactor     .10000E-03    8.0945        .40790E-05** at limit **
  17  norm          .49701E-01    .16032       -.13448E-06   -.16667E-02
  18  norm          16.494        6.4194       -.28645E-07   -.16861E-03
  19  Prefactor     .39631        6.6932       -.87728E-06    .38303E-04
  20  Prefactor     .10000E-03    6.8535       -.30865E-05** at limit **
  21  Prefactor     .10000E-03    31.640        .17156E-04** at limit **
  22  Prefactor     .10000E-03    2.3376       -.69476E-06** at limit **
  23  Prefactor     .10000E-03    2.6140       -.92223E-07** at limit **
  24  norm          3.4093        4.8256       -.28056E-06   -.45909E-03
  25  Prefactor     .10000E-03    15.897       -.15633E-05** at limit **
  26  norm          14.524        6.2376       -.15022E-06   -.61031E-03
  27  Prefactor     .10000E-03    6.1507       -.21455E-05** at limit **
  28  norm          .10351        2.2563       -.35424E-06    .57276E-04
  29  norm          .10000E-03    3.7726        .17837E-05** at limit **
  30  Normalizat    1.0961        .18190       -.23885E-07    .20275E-03
  31  Prefactor     1.1418        .20204        .10365E-06    .11713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.9704
  norm       = 3.67749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6999
  Prefactor  = 0.0001
  Prefactor  = 4.28098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0497012
  norm       = 16.4937
  Prefactor  = 0.396314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.40932
  Prefactor  = 0.0001
  norm       = 14.5237
  Prefactor  = 0.0001
  norm       = 0.103509
  norm       = 0.0001
  Normalizat = 1.09615
  Prefactor  = 1.14177
 **********
 **   18 **HESSE 
 **********

 FCN=   6498.052     FROM HESSE     STATUS=OK           622 CALLS     4115 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9489        .17507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9643        .15667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4330        .18129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2391        1.1026        .77505E-04   -1.5485    
   5  Prefactor     .10000E-03    14.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3285        .13651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     45.970        44.603        .29571E-03   -1.4351    
   9  norm          3.6775        1.4802        .59467E-04   -1.5324    
  10  Prefactor     .10000E-03    2.3490        .11988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.700        4.7642        .91952E-04   -1.4941    
  13  Prefactor     .10000E-03    4.3595        .16390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2810        2.7258        .98492E-04   -1.5294    
  15  Prefactor     .10000E-03    1.0750        .81058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.2744        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .49701E-01    .27436        .53853E-03   -1.5663    
  18  norm          16.494        6.3759        .98619E-04   -1.4895    
  19  Prefactor     .39631        56.536        .39297E-02   -1.5582    
  20  Prefactor     .10000E-03    6.8563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.3396        .12035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6329        .12727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.4093        4.8362        .19885E-03   -1.5339    
  25  Prefactor     .10000E-03    15.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          14.524        6.2490        .52549E-03   -1.4946    
  27  Prefactor     .10000E-03    6.1529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10351        32.187        .22918E-02   -1.5644    
  29  norm          .10000E-03    3.7921        .15275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0961        .21469        .26036E-03   -.89876    
  31  Prefactor     1.1418        .24036        .29170E-03   -.88143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8263e-10
Minuit parameter uncertainties:
  1  3.70368e-07
  2  1.44945e-07
  3  7.32072e-06
  4  1.10264
  5  2.15649e-06
  6  1.90376e-07
  7  4.25018e-05
  8  44.6357
  9  1.48022
  10  6.10816e-07
  11  2.92732e-06
  12  4.76435
  13  1.64091e-06
  14  2.72589
  15  1.33592e-06
  16  1.80307e-05
  17  0.233312
  18  6.3762
  19  9.4749
  20  9.63336e-07
  21  8.76026e-06
  22  7.57539e-07
  23  1.30905e-06
  24  4.83678
  25  1.69496e-05
  26  6.24929
  27  1.15853e-06
  28  3.65077
  29  3.64051e-06
  30  0.21486
  31  0.240593
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.470e+01  4.764e+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.142e+00  2.406e-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:  1.096e+00  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.80
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 4.15e-08
Energy Flux (Fixed Index): 1.14e-04 +/- 3.69e-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) = 6495.78183627
delta logL = 2.26981750889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6495.75383028
delta logL = 2.29782349817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.331       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4502       1.0000          .0000       5.0000    
     3 'Normalizat'    .98164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2150       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=   6495.754     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      245 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.332        38.655        .29753E-02    .84130E-04
   2  alpha         2.4501        2.0717        .13098        .83483E-04
   3  Normalizat    .98161        .17884        .45936E-01    .13721E-04
   4  Prefactor     1.2151        .13327        .64043E-01    .52367E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3322
  alpha      = 2.45012
  Normalizat = 0.981605
  Prefactor  = 1.21505
 **********
 **   18 **HESSE 
 **********

 FCN=   6495.754     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.332        4.4034        .66782E-04   -1.5035    
   2  alpha         2.4501        .29385        .55680E-02   -.19953E-01
   3  Normalizat    .98161        .21917        .27183E-03   -.93649    
   4  Prefactor     1.2151        .24437        .28327E-03   -.85869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40567e-12
Minuit parameter uncertainties:
  1  4.40351
  2  0.294529
  3  0.219372
  4  0.244598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460169': 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) = 6495.75383024
delta logL = 2.29782354172

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.133e+01  4.404e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.450e+00  2.945e-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.215e+00  2.446e-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.816e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.99
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.45 +/- 0.29
Photon Flux (Free Index): 2.36e-07 +/- 7.72e-08
Energy Flux (Free Index): 7.48e-05 +/- 2.16e-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/460169/cmap_HighResolution_508377601_508636801_4FGL_J1217.9+3007_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='7.48e-05', photon_flux_error='4.15e-08', dlogl='2.30e+00', energy_flux='1.14e-04', photon_flux2='2.36e-07', job_status='DONE', time_completed='2021-09-05 06:38:42.674634', photon_index_error2='0.29', photon_index2='2.45', ts='31.80', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='1.10', time_epoch_completed='1630849122.67', return_code='0', job_id='460169', GAL2='1.22', EG2='0.98', return_code2='0', energy_flux_error='3.69e-05', photon_flux_error2='7.72e-08', ts2='36.99', photon_index='1.85' WHERE bin_id='1038' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:38:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 460169: <4FGL_J1217.9+3007_daily_bin1038> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1038 184.476 30.1177 508377601 508636801 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 :                                   759.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            784 sec.

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

