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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin875
RA = 184.476, Dec = 30.1177
tmin = 466128001, tmax = 466387201
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='458420', job_status='RUN', time_executed='2021-09-05 06:21:02.522370', time_epoch_executed='1630848062.52' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='875'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458420

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458420/ft1_4FGL_J1217.9+3007_daily_bin875.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458420/ft2_4FGL_J1217.9+3007_daily_bin875.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458420/ft1_4FGL_J1217.9+3007_daily_bin875.fits outfile=/scratch/kocevski/458420/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin875.fits ra=184.476 dec=30.1177 rad=12.0 tmin=466128001.0 tmax=466387201.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.52
user 3.27
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458420/ft1_filtered_4FGL_J1217.9+3007_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/458420/ft2_4FGL_J1217.9+3007_daily_bin875.fits sctable="SC_DATA" expcube=/scratch/kocevski/458420/ltcube_466128001_466387201_4FGL_J1217.9+3007_daily_bin875.fits outfile=/scratch/kocevski/458420/expmap_466128001_466387201_4FGL_J1217.9+3007_daily_bin875.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/458420/ltcube_466128001_466387201_4FGL_J1217.9+3007_daily_bin875.fits
.....................!
real 195.90
user 191.44
sys 4.07

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/458420/ft1_filtered_4FGL_J1217.9+3007_daily_bin875.fits scfile=/scratch/kocevski/458420/ft2_4FGL_J1217.9+3007_daily_bin875.fits outfile=/scratch/kocevski/458420/cmap_466128001_466387201_4FGL_J1217.9+3007_daily_bin875.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458420/ft1_filtered_4FGL_J1217.9+3007_daily_bin875.fits scfile=/scratch/kocevski/458420/ft2_4FGL_J1217.9+3007_daily_bin875.fits outfile=/scratch/kocevski/458420/cmap_HighResolution_466128001_466387201_4FGL_J1217.9+3007_daily_bin875.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7507       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.517       1.0000         .10000E-03   10000.    
     4 'norm      '    .57568       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.243       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .48015       1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.686       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.4806       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85785E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8525       1.0000         .10000E-03   10000.    
    12 'norm      '    9.0051       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4682       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9744       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .34769E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .21879       1.0000         .10000E-03   10000.    
    18 'norm      '    .56038       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0775       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .88225E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.1295       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.2593       1.0000         .10000E-03   10000.    
    24 'norm      '    12.818       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.424       1.0000         .10000E-03   10000.    
    26 'norm      '    5.0388       1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.938       1.0000         .10000E-03   10000.    
    28 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .79138       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.4060       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=   6659.978     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     4219 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7505        12.683       -.12806E-07   -.29488E-04
   2  Prefactor     .10000E-03    7.9895       -.79392E-07** at limit **
   3  Prefactor     17.516        6.5360        .21248E-06   -.57929E-04
   4  norm          .57562        .80529        .16138E-06    .33443E-03
   5  Prefactor     15.263        19.023       -.39612E-05   -.55236E-03
   6  Prefactor     .47814        1.7670        .17621E-06    .30477E-03
   7  Prefactor     35.686        27.229       -.18270E-06    .89923E-06
   8  Prefactor     .10000E-03    13.256        .18141E-06** at limit **
   9  norm          2.4805        1.3393        .90400E-07    .16736E-03
  10  Prefactor     .10004E-03    1.8910       -.15090E-06** at limit **
  11  Prefactor     8.8547        20.708       -.80924E-06   -.48477E-04
  12  norm          9.0053        3.3080       -.36000E-07    .28372E-03
  13  Prefactor     6.4674        6.8213        .78741E-07   -.47578E-05
  14  Prefactor     2.9744        2.0301       -.10400E-06    .12780E-03
  15  Prefactor     .10000E-03    1.0515       -.50764E-06** at limit **
  16  Prefactor     .10874E-01    5.7403       -.13538E-05    .64991E-03
  17  norm          .21880        .15523       -.85885E-08    .80727E-03
  18  norm          .57662        4.5312        .19124E-06    .16352E-03
  19  Prefactor     5.0770        9.7759        .59220E-05   -.83953E-04
  20  Prefactor     .10000E-03    8.6592       -.15721E-07** at limit **
  21  Prefactor     .10001E-03    327.60       -.62564E-05** at limit **
  22  Prefactor     9.1294        7.3449       -.58152E-07    .12560E-04
  23  Prefactor     8.2584        6.1769        .39227E-07    .38423E-05
  24  norm          12.818        6.9665       -.19097E-06   -.22468E-05
  25  Prefactor     14.431        33.147        .43913E-07    .14057E-04
  26  norm          5.0387        3.7081       -.19021E-07    .33543E-04
  27  Prefactor     21.938        18.301       -.19912E-06   -.18794E-04
  28  norm          .10000E-03    1.0840        .19774E-07** at limit **
  29  norm          .10000E-03    1.7874       -.14420E-08** at limit **
  30  Normalizat    .79127        .18877        .24890E-05    .85021E-04
  31  Prefactor     1.4062        .21382       -.24870E-05    .34348E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.75046
  Prefactor  = 0.0001
  Prefactor  = 17.5161
  norm       = 0.575615
  Prefactor  = 15.2633
  Prefactor  = 0.478135
  Prefactor  = 35.6862
  Prefactor  = 0.0001
  norm       = 2.48049
  Prefactor  = 0.000100035
  Prefactor  = 8.85468
  norm       = 9.00527
  Prefactor  = 6.46741
  Prefactor  = 2.97437
  Prefactor  = 0.0001
  Prefactor  = 0.0108741
  norm       = 0.218803
  norm       = 0.576622
  Prefactor  = 5.07697
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 9.12939
  Prefactor  = 8.25844
  norm       = 12.818
  Prefactor  = 14.431
  norm       = 5.03868
  Prefactor  = 21.9383
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.79127
  Prefactor  = 1.40618
 **********
 **   18 **HESSE 
 **********

 FCN=   6659.978     FROM HESSE     STATUS=OK           646 CALLS     4865 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7505        12.666        .14404E-03   -1.5151    
   2  Prefactor     .10000E-03    8.0285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.516        6.5329        .47848E-03   -1.4871    
   4  norm          .57562        .69240        .84238E-03   -1.5556    
   5  Prefactor     15.263        19.932        .10259E-03   -1.4926    
   6  Prefactor     .47814        1.7122        .18377E-03   -1.5570    
   7  Prefactor     35.686        27.285        .67085E-04   -1.4512    
   8  Prefactor     .10000E-03    13.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.4805        1.3327        .65570E-04   -1.5393    
  10  Prefactor     .10004E-03    28.987        .21533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8547        20.710        .13472E-03   -1.5113    
  12  norm          9.0053        3.2999        .84240E-04   -1.5108    
  13  Prefactor     6.4674        6.8151        .15781E-03   -1.5199    
  14  Prefactor     2.9744        2.0317        .90425E-04   -1.5363    
  15  Prefactor     .10000E-03    1.8415        .16076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10874E-01    5.8889        .52119E-01   -1.5687    
  17  norm          .21880        .15628        .26065E-04   -1.5614    
  18  norm          .57662        9.0981        .28519E-02   -1.5556    
  19  Prefactor     5.0770        10.074        .89219E-03   -1.5257    
  20  Prefactor     .10000E-03    8.6757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    335.04        .20843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.1294        7.3453        .13264E-03   -1.5104    
  23  Prefactor     8.2584        6.1722        .13950E-03   -1.5133    
  24  norm          12.818        6.9465        .11188E-03   -1.4992    
  25  Prefactor     14.431        33.099        .10546E-03   -1.4948    
  26  norm          5.0387        3.7090        .13070E-03   -1.5259    
  27  Prefactor     21.938        18.295        .85516E-04   -1.4771    
  28  norm          .10000E-03    1.0864        .82937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.7885        .10655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .79127        .21989        .28632E-03   -1.0039    
  31  Prefactor     1.4062        .25157        .26958E-03   -.80202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68213e-09
Minuit parameter uncertainties:
  1  12.6702
  2  1.62621e-05
  3  6.5332
  4  0.692413
  5  19.9411
  6  1.71241
  7  27.2942
  8  1.35387e-05
  9  1.33271
  10  0.00201736
  11  20.7263
  12  3.29997
  13  6.81592
  14  2.03173
  15  2.71248e-05
  16  0.503827
  17  0.156276
  18  4.58134
  19  10.0777
  20  4.20292e-06
  21  0.00311206
  22  7.34606
  23  6.17269
  24  6.94692
  25  33.1414
  26  3.7092
  27  18.3
  28  1.6637e-07
  29  1.63804e-07
  30  0.220132
  31  0.25179
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  9.005e+00  3.300e+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.406e+00  2.518e-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.913e-01  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.93
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 7.84e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 6.98e-05 +/- 2.56e-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) = 6659.94430887
delta logL = 0.0333486652153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6659.93869449
delta logL = 0.0389630401933

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7503       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9330       1.0000          .0000       5.0000    
     3 'Normalizat'    .78551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4095       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=   6659.939     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7512        57.804        .33876E-02    .56148E-04
   2  alpha         1.9329        3.4467        .19466        .49178E-04
   3  Normalizat    .78556        .27145        .64924E-01    .24296E-04
   4  Prefactor     1.4095        .25141        .60891E-01    .85166E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.75123
  alpha      = 1.93287
  Normalizat = 0.785558
  Prefactor  = 1.40947
 **********
 **   18 **HESSE 
 **********

 FCN=   6659.939     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7512        3.2843        .81978E-04   -1.5116    
   2  alpha         1.9329        .28579        .80684E-02   -.22885    
   3  Normalizat    .78556        .20352        .28722E-03   -1.0061    
   4  Prefactor     1.4095        .24719        .26927E-03   -.80108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7182e-12
Minuit parameter uncertainties:
  1  3.28437
  2  0.286445
  3  0.203717
  4  0.247401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458420': 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) = 6659.93869436
delta logL = 0.0389631737362

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  8.751e+00  3.284e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.933e+00  2.864e-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.409e+00  2.474e-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.856e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.17
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.93 +/- 0.29
Photon Flux (Free Index): 8.41e-08 +/- 3.54e-08
Energy Flux (Free Index): 6.23e-05 +/- 3.35e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/458420/cmap_HighResolution_466128001_466387201_4FGL_J1217.9+3007_daily_bin875.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.84e-08', energy_flux2='6.23e-05', photon_flux_error='2.87e-08', dlogl='3.90e-02', energy_flux='6.98e-05', photon_flux2='8.41e-08', job_status='DONE', time_completed='2021-09-05 06:35:48.060337', photon_index_error2='0.29', photon_index2='1.93', ts='26.93', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', energy_flux_error2='3.35e-05', EG='0.79', time_epoch_completed='1630848948.06', return_code='0', job_id='458420', GAL2='1.41', EG2='0.79', return_code2='0', energy_flux_error='2.56e-05', photon_flux_error2='3.54e-08', ts2='27.17', photon_index='1.85' WHERE bin_id='875' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:35:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 458420: <4FGL_J1217.9+3007_daily_bin875> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin875> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 06:20:32 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:20:33 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:20:33 2021
Terminated at Sun Sep  5 06:35:48 2021
Results reported at Sun Sep  5 06:35:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin875 184.476 30.1177 466128001 466387201 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 :                                   880.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

