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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1405
RA = 184.476, Dec = 30.1177
tmin = 603504001, tmax = 603763201
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='461685', job_status='RUN', time_executed='2021-09-05 06:34:05.789806', time_epoch_executed='1630848845.79' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461685/ft1_4FGL_J1217.9+3007_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461685/ft2_4FGL_J1217.9+3007_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461685/ft1_4FGL_J1217.9+3007_daily_bin1405.fits outfile=/scratch/kocevski/461685/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1405.fits ra=184.476 dec=30.1177 rad=12.0 tmin=603504001.0 tmax=603763201.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 2.78
user 2.51
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461685/ft1_filtered_4FGL_J1217.9+3007_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/461685/ft2_4FGL_J1217.9+3007_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/461685/ltcube_603504001_603763201_4FGL_J1217.9+3007_daily_bin1405.fits outfile=/scratch/kocevski/461685/expmap_603504001_603763201_4FGL_J1217.9+3007_daily_bin1405.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/461685/ltcube_603504001_603763201_4FGL_J1217.9+3007_daily_bin1405.fits
.....................!
real 191.01
user 186.31
sys 4.27

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/461685/ft1_filtered_4FGL_J1217.9+3007_daily_bin1405.fits scfile=/scratch/kocevski/461685/ft2_4FGL_J1217.9+3007_daily_bin1405.fits outfile=/scratch/kocevski/461685/cmap_603504001_603763201_4FGL_J1217.9+3007_daily_bin1405.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4407       1.0000         .10000E-03   10000.    
     4 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    129.40       1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.371       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4221       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12753       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.059       1.0000         .10000E-03   10000.    
    12 'norm      '    8.9532       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6781       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3046       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.450       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.502       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4984       1.0000         .10000E-03   10000.    
    24 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.4571       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    34.779       1.0000         .10000E-03   10000.    
    29 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.5460       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .48062       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=   2326.908     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     4115 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.982       -.28926E-06** at limit **
   2  Prefactor     .10000E-03    26.114       -.11962E-06** at limit **
   3  Prefactor     6.4466        17.204        .20242E-05    .15300E-03
   4  norm          .10000E-03    1.6806       -.55608E-06** at limit **
   5  Prefactor     .10000E-03    70.447       -.54440E-06** at limit **
   6  Prefactor     .10000E-03    2.7147       -.85554E-07** at limit **
   7  Prefactor     129.33        108.90        .85987E-06    .46410E-04
   8  Prefactor     70.289        142.08        .14860E-05    .21501E-04
   9  norm          1.4227        2.5176        .77024E-08    .91614E-04
  10  Prefactor     .13744        306.95        .97394E-05   -.18720E-04
  11  Prefactor     15.087        90.158       -.44418E-06    .19336E-04
  12  norm          8.9534        5.9888        .33989E-07    .12217E-03
  13  Prefactor     6.6718        12.960        .19432E-06    .52680E-04
  14  Prefactor     7.3057        5.3476        .36169E-07    .13235E-03
  15  Prefactor     .10000E-03    3.0322       -.24817E-06** at limit **
  16  Prefactor     .10000E-03    7.2679       -.26145E-06** at limit **
  17  norm          .10000E-03    .67064       -.11273E-05** at limit **
  18  norm          15.444        11.479        .19566E-06    .26007E-03
  19  Prefactor     .10000E-03    5.9892       -.19164E-06** at limit **
  20  Prefactor     .10000E-03    22.654       -.25641E-07** at limit **
  21  Prefactor     22.289        207.02        .29879E-05    .44141E-05
  22  Prefactor     .10000E-03    9.2277       -.36411E-07** at limit **
  23  Prefactor     1.4970        7.3166        .35950E-06    .65582E-04
  24  norm          .10000E-03    3.0391       -.13102E-05** at limit **
  25  Prefactor     .10000E-03    17.798       -.61140E-06** at limit **
  26  norm          5.4576        5.4971        .43031E-07    .61604E-04
  27  Prefactor     .10000E-03    16.889       -.11775E-06** at limit **
  28  norm          34.780        10.623        .20020E-06    .34613E-03
  29  norm          .10000E-03    8.6382        .37706E-06** at limit **
  30  Normalizat    1.5452        .38522       -.23001E-05    .14840E-03
  31  Prefactor     .48157        .38166        .39358E-05    .17093E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.44655
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 129.334
  Prefactor  = 70.2892
  norm       = 1.42267
  Prefactor  = 0.137444
  Prefactor  = 15.0871
  norm       = 8.95342
  Prefactor  = 6.67181
  Prefactor  = 7.3057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.2895
  Prefactor  = 0.0001
  Prefactor  = 1.497
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.4576
  Prefactor  = 0.0001
  norm       = 34.7803
  norm       = 0.0001
  Normalizat = 1.54515
  Prefactor  = 0.481575
 **********
 **   18 **HESSE 
 **********

 FCN=   2326.908     FROM HESSE     STATUS=OK           624 CALLS     4739 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.4466        17.378        .79073E-03   -1.5200    
   4  norm          .10000E-03    1.7086        .61332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    70.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7214        .77640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     129.33        108.56        .17697E-03   -1.3429    
   8  Prefactor     70.289        142.07        .23926E-03   -1.4029    
   9  norm          1.4227        2.4783        .97240E-04   -1.5469    
  10  Prefactor     .13744        23.875        .59886E-01   -1.5634    
  11  Prefactor     15.087        89.566        .10321E-03   -1.4931    
  12  norm          8.9534        6.0022        .89590E-04   -1.5109    
  13  Prefactor     6.6718        12.943        .15528E-03   -1.5191    
  14  Prefactor     7.3057        5.3588        .88497E-04   -1.5167    
  15  Prefactor     .10000E-03    3.0935        .82108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2832        .12700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .74054        .55434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.444        11.454        .10190E-03   -1.4922    
  19  Prefactor     .10000E-03    5.9934        .11533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.289        208.28        .84440E-04   -1.4763    
  22  Prefactor     .10000E-03    9.3355        .14324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4970        7.2697        .25103E-03   -1.5463    
  24  norm          .10000E-03    3.1412        .83355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.4576        5.4948        .10972E-03   -1.5241    
  27  Prefactor     .10000E-03    16.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          34.780        10.637        .67952E-04   -1.4528    
  29  norm          .10000E-03    8.6476        .13832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.5452        .39690        .23723E-03   -.76517    
  31  Prefactor     .48157        .39982        .42467E-03   -1.1283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16278e-09
Minuit parameter uncertainties:
  1  3.71691e-05
  2  5.71576e-05
  3  17.3917
  4  2.04539e-05
  5  0.000136491
  6  2.70907e-06
  7  108.724
  8  142.761
  9  2.47847
  10  3.62308
  11  73.6859
  12  6.00264
  13  12.948
  14  5.35917
  15  8.04221e-06
  16  1.42877e-05
  17  2.87802e-05
  18  11.4555
  19  1.14747e-05
  20  1.56256e-05
  21  136.903
  22  1.61059e-05
  23  6.59885
  24  6.62894e-05
  25  7.0514e-05
  26  5.49527
  27  2.69234e-05
  28  10.6371
  29  4.05914e-05
  30  0.39771
  31  0.402183
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  8.953e+00  6.003e+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:  4.816e-01  4.022e-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.545e+00  3.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.48
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 7.80e-08 +/- 5.23e-08
Energy Flux (Fixed Index): 6.94e-05 +/- 4.66e-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) = 2326.76024089
delta logL = 0.147269841785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2326.75820312
delta logL = 0.149307608888

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8205       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6001       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47726       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=   2326.758     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      197 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8205        5.8411        .33740E-02    .52172E-03
   2  alpha         1.6001        .42886        .20275       -.22014E-04
   3  Normalizat    1.5574        .33430        .53512E-01   -.15704E-05
   4  Prefactor     .47721        .35419        .96258E-01    .17143E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.82051
  alpha      = 1.60014
  Normalizat = 1.55736
  Prefactor  = 0.477205
 **********
 **   18 **HESSE 
 **********

 FCN=   2326.758     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8205        5.9124        .91353E-04   -1.5114    
   2  alpha         1.6001        .45356        .85748E-02   -.36821    
   3  Normalizat    1.5574        .37309        .23658E-03   -.76179    
   4  Prefactor     .47721        .39357        .42679E-03   -1.1303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09975e-10
Minuit parameter uncertainties:
  1  5.91282
  2  0.456472
  3  0.373758
  4  0.395844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461685': 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) = 2326.75820309
delta logL = 0.149307639234

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  8.821e+00  5.913e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.600e+00  4.565e-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:  4.772e-01  3.958e-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.557e+00  3.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.86
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.60 +/- 0.46
Photon Flux (Free Index): 5.91e-08 +/- 4.97e-08
Energy Flux (Free Index): 1.04e-04 +/- 1.06e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/461685/cmap_HighResolution_603504001_603763201_4FGL_J1217.9+3007_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.80e-08', energy_flux2='1.04e-04', photon_flux_error='5.23e-08', dlogl='1.49e-01', energy_flux='6.94e-05', photon_flux2='5.91e-08', job_status='DONE', time_completed='2021-09-05 06:45:56.648294', photon_index_error2='0.46', photon_index2='1.60', ts='9.48', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', energy_flux_error2='1.06e-04', EG='1.55', time_epoch_completed='1630849556.65', return_code='0', job_id='461685', GAL2='0.48', EG2='1.56', return_code2='0', energy_flux_error='4.66e-05', photon_flux_error2='4.97e-08', ts2='9.86', photon_index='1.85' WHERE bin_id='1405' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:45:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 461685: <4FGL_J1217.9+3007_daily_bin1405> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1405> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 06:30:40 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:30:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 06:30:42 2021
Terminated at Sun Sep  5 06:45:57 2021
Results reported at Sun Sep  5 06:45:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1405 184.476 30.1177 603504001 603763201 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 :                                   499.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             194.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

