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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin642
RA = 184.476, Dec = 30.1177
tmin = 405734401, tmax = 405993601
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='456689', job_status='RUN', time_executed='2021-09-05 06:16:06.507062', time_epoch_executed='1630847766.51' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456689

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456689/ft1_4FGL_J1217.9+3007_daily_bin642.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456689/ft2_4FGL_J1217.9+3007_daily_bin642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456689/ft1_4FGL_J1217.9+3007_daily_bin642.fits outfile=/scratch/kocevski/456689/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin642.fits ra=184.476 dec=30.1177 rad=12.0 tmin=405734401.0 tmax=405993601.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.73
user 3.30
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456689/ft1_filtered_4FGL_J1217.9+3007_daily_bin642.fits evtable="EVENTS" scfile=/scratch/kocevski/456689/ft2_4FGL_J1217.9+3007_daily_bin642.fits sctable="SC_DATA" expcube=/scratch/kocevski/456689/ltcube_405734401_405993601_4FGL_J1217.9+3007_daily_bin642.fits outfile=/scratch/kocevski/456689/expmap_405734401_405993601_4FGL_J1217.9+3007_daily_bin642.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/456689/ltcube_405734401_405993601_4FGL_J1217.9+3007_daily_bin642.fits
.....................!
real 190.84
user 185.18
sys 5.25

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/456689/ft1_filtered_4FGL_J1217.9+3007_daily_bin642.fits scfile=/scratch/kocevski/456689/ft2_4FGL_J1217.9+3007_daily_bin642.fits outfile=/scratch/kocevski/456689/cmap_405734401_405993601_4FGL_J1217.9+3007_daily_bin642.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/456689/ft1_filtered_4FGL_J1217.9+3007_daily_bin642.fits scfile=/scratch/kocevski/456689/ft2_4FGL_J1217.9+3007_daily_bin642.fits outfile=/scratch/kocevski/456689/cmap_HighResolution_405734401_405993601_4FGL_J1217.9+3007_daily_bin642.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.945       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0649       1.0000         .10000E-03   10000.    
     4 'norm      '    8.1655       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .61967E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7000       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11285E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    63.149       1.0000         .10000E-03   10000.    
     9 'norm      '    .76798       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0002       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.268       1.0000         .10000E-03   10000.    
    12 'norm      '    26.387       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .33548E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5414       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .77210       1.0000         .10000E-03   10000.    
    17 'norm      '    4.4887       1.0000         .10000E-03   10000.    
    18 'norm      '    7.4843       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7444       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.341       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3716       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.4617       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .13911E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    7.4977       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .66378       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0763       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=   6714.959     FROM MIGRAD    STATUS=CONVERGED    841 CALLS     4218 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.954        19.682       -.53476E-06    .32791E-03
   2  Prefactor     .10000E-03    13.003       -.76078E-05** at limit **
   3  Prefactor     3.0647        4.5486       -.10131E-05   -.31592E-03
   4  norm          8.1658        2.0066        .53958E-07    .63291E-04
   5  Prefactor     .10011E-03    15.653       -.26180E-06** at limit **
   6  Prefactor     3.6992        2.1367       -.13348E-07    .42998E-04
   7  Prefactor     .10000E-03    68.281        .25689E-05** at limit **
   8  Prefactor     63.145        54.147       -.25038E-05    .77392E-04
   9  norm          .76793        .70220        .11117E-07    .14540E-03
  10  Prefactor     6.0000        3.8884       -.27904E-06    .90287E-05
  11  Prefactor     32.270        34.029       -.60888E-06    .33807E-04
  12  norm          26.392        5.6263        .26702E-06   -.16143E-03
  13  Prefactor     .10000E-03    6.1919       -.29341E-06** at limit **
  14  Prefactor     .10000E-03    3.1313       -.10922E-06** at limit **
  15  Prefactor     3.5424        2.7423       -.40052E-06   -.19282E-03
  16  Prefactor     .77137        3.1743       -.40333E-05   -.12709E-02
  17  norm          4.4887        .50461       -.60242E-08    .95424E-03
  18  norm          7.4850        4.5937        .23528E-05   -.87622E-03
  19  Prefactor     2.7419        10.404        .90831E-06   -.25584E-03
  20  Prefactor     .10000E-03    15.092        .13555E-05** at limit **
  21  Prefactor     41.345        63.932        .19366E-05   -.20833E-04
  22  Prefactor     2.3704        7.0521       -.25305E-05   -.26241E-03
  23  Prefactor     .10000E-03    2.8673       -.42844E-07** at limit **
  24  norm          5.4610        4.4064       -.95107E-06    .18647E-03
  25  Prefactor     .10000E-03    12.707        .67767E-05** at limit **
  26  norm          .10000E-03    2.4853        .54778E-07** at limit **
  27  Prefactor     .10000E-03    7.6887        .85775E-09** at limit **
  28  norm          .10000E-03    2.3846       -.22052E-06** at limit **
  29  norm          7.4900        5.8062        .53590E-06    .22750E-04
  30  Normalizat    .66366        .18710        .17508E-06    .14437E-03
  31  Prefactor     1.0764        .20578        .58162E-06    .10774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.9537
  Prefactor  = 0.000100004
  Prefactor  = 3.06466
  norm       = 8.16581
  Prefactor  = 0.000100107
  Prefactor  = 3.6992
  Prefactor  = 0.0001
  Prefactor  = 63.1455
  norm       = 0.767934
  Prefactor  = 6
  Prefactor  = 32.2703
  norm       = 26.3919
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.54241
  Prefactor  = 0.771374
  norm       = 4.4887
  norm       = 7.48503
  Prefactor  = 2.7419
  Prefactor  = 0.0001
  Prefactor  = 41.3447
  Prefactor  = 2.37042
  Prefactor  = 0.0001
  norm       = 5.46099
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.49002
  Normalizat = 0.66366
  Prefactor  = 1.07643
 **********
 **   18 **HESSE 
 **********

 FCN=   6714.959     FROM HESSE     STATUS=OK           636 CALLS     4854 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.954        19.640        .69812E-04   -1.4559    
   2  Prefactor     .10000E-03    12.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0647        4.5712        .20445E-03   -1.5358    
   4  norm          8.1658        2.0094        .54421E-04   -1.5136    
   5  Prefactor     .10011E-03    21.923        .85395E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6992        2.1381        .82918E-04   -1.5323    
   7  Prefactor     .10000E-03    70.476        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     63.145        54.130        .50497E-04   -1.4117    
   9  norm          .76793        .70795        .63248E-04   -1.5533    
  10  Prefactor     6.0000        3.8869        .12554E-03   -1.5218    
  11  Prefactor     32.270        33.951        .70539E-04   -1.4571    
  12  norm          26.392        5.5776        .77985E-04   -1.4680    
  13  Prefactor     .10000E-03    37.011        .38526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2211        .28056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5424        2.7211        .10818E-03   -1.5332    
  16  Prefactor     .77137        3.6980        .30257E-03   -1.5532    
  17  norm          4.4887        .50502        .18622E-04   -1.5284    
  18  norm          7.4850        4.6101        .12942E-03   -1.5161    
  19  Prefactor     2.7419        10.327        .24575E-03   -1.5377    
  20  Prefactor     .10000E-03    15.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     41.345        63.870        .62345E-04   -1.4421    
  22  Prefactor     2.3704        7.1390        .26605E-03   -1.5400    
  23  Prefactor     .10000E-03    2.8813        .13549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.4610        4.3902        .14460E-03   -1.5241    
  25  Prefactor     .10000E-03    12.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.5442        .12609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.6952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.4416        .23309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          7.4900        5.5314        .14646E-03   -1.5161    
  30  Normalizat    .66366        .22127        .31168E-03   -1.0535    
  31  Prefactor     1.0764        .24607        .29590E-03   -.90223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59383e-09
Minuit parameter uncertainties:
  1  19.6435
  2  0.000457553
  3  4.57169
  4  2.00942
  5  0.00306448
  6  2.13818
  7  0.000221465
  8  54.1721
  9  0.707955
  10  3.88711
  11  33.9717
  12  5.57771
  13  0.000508636
  14  2.05465e-05
  15  2.72115
  16  3.37801
  17  0.50502
  18  4.6103
  19  10.3337
  20  8.2636e-05
  21  63.9756
  22  7.14158
  23  3.32454e-07
  24  4.39042
  25  0.000332587
  26  3.4123e-06
  27  1.2426e-06
  28  3.95504e-05
  29  5.53173
  30  0.221567
  31  0.24633
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  2.639e+01  5.578e+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.076e+00  2.463e-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.637e-01  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 96.17
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.30e-07 +/- 4.86e-08
Energy Flux (Fixed Index): 2.05e-04 +/- 4.33e-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) = 6714.45679298
delta logL = 0.502214210633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6714.3614986
delta logL = 0.597508594262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.175       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0423       1.0000          .0000       5.0000    
     3 'Normalizat'    .61934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1064       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=   6714.361     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.178        10.388        .20367E-02    .47573E-03
   2  alpha         2.0419        .32510        .10581        .24325E-03
   3  Normalizat    .61933        .17985        .72521E-01   -.21289E-05
   4  Prefactor     1.1064        .20802        .66004E-01   -.66658E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 24.1778
  alpha      = 2.04192
  Normalizat = 0.619327
  Prefactor  = 1.10644
 **********
 **   18 **HESSE 
 **********

 FCN=   6714.361     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.178        5.4454        .74951E-04   -1.4724    
   2  alpha         2.0419        .17410        .45834E-03   -.18427    
   3  Normalizat    .61933        .20751        .32104E-03   -1.0717    
   4  Prefactor     1.1064        .24339        .29195E-03   -.89261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34233e-10
Minuit parameter uncertainties:
  1  5.44548
  2  0.174246
  3  0.207774
  4  0.243635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456689': 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) = 6714.36149623
delta logL = 0.597510963703

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  2.418e+01  5.445e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.042e+00  1.742e-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.106e+00  2.436e-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.193e-01  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 96.12
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.04 +/- 0.17
Photon Flux (Free Index): 2.69e-07 +/- 6.26e-08
Energy Flux (Free Index): 1.58e-04 +/- 4.60e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/456689/cmap_HighResolution_405734401_405993601_4FGL_J1217.9+3007_daily_bin642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.30e-07', energy_flux2='1.58e-04', photon_flux_error='4.86e-08', dlogl='5.98e-01', energy_flux='2.05e-04', photon_flux2='2.69e-07', job_status='DONE', time_completed='2021-09-05 06:30:58.800242', photon_index_error2='0.17', photon_index2='2.04', ts='96.17', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='4.60e-05', EG='0.66', time_epoch_completed='1630848658.8', return_code='0', job_id='456689', GAL2='1.11', EG2='0.62', return_code2='0', energy_flux_error='4.33e-05', photon_flux_error2='6.26e-08', ts2='96.12', photon_index='1.85' WHERE bin_id='642' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:30:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 456689: <4FGL_J1217.9+3007_daily_bin642> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin642> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 06:15:52 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:15:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 06:15:53 2021
Terminated at Sun Sep  5 06:30:59 2021
Results reported at Sun Sep  5 06:30:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin642 184.476 30.1177 405734401 405993601 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 :                                   888.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            907 sec.

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

