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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1153
RA = 184.476, Dec = 30.1177
tmin = 538185601, tmax = 538444801
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='460330', job_status='RUN', time_executed='2021-09-05 06:30:05.738694', time_epoch_executed='1630848605.74' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460330

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460330/ft1_4FGL_J1217.9+3007_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460330/ft2_4FGL_J1217.9+3007_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460330/ft1_4FGL_J1217.9+3007_daily_bin1153.fits outfile=/scratch/kocevski/460330/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1153.fits ra=184.476 dec=30.1177 rad=12.0 tmin=538185601.0 tmax=538444801.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 5.53
user 5.08
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460330/ft1_filtered_4FGL_J1217.9+3007_daily_bin1153.fits" evtable="EVENTS" scfile=/scratch/kocevski/460330/ft2_4FGL_J1217.9+3007_daily_bin1153.fits sctable="SC_DATA" outfile=/scratch/kocevski/460330/ltcube_538185601_538444801_4FGL_J1217.9+3007_daily_bin1153.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/460330/ft2_4FGL_J1217.9+3007_daily_bin1153.fits
.....................!
real 11.80
user 11.30
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460330/ft1_filtered_4FGL_J1217.9+3007_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/460330/ft2_4FGL_J1217.9+3007_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/460330/ltcube_538185601_538444801_4FGL_J1217.9+3007_daily_bin1153.fits outfile=/scratch/kocevski/460330/expmap_538185601_538444801_4FGL_J1217.9+3007_daily_bin1153.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/460330/ltcube_538185601_538444801_4FGL_J1217.9+3007_daily_bin1153.fits
.....................!
real 190.31
user 185.81
sys 4.08

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/460330/ft1_filtered_4FGL_J1217.9+3007_daily_bin1153.fits scfile=/scratch/kocevski/460330/ft2_4FGL_J1217.9+3007_daily_bin1153.fits outfile=/scratch/kocevski/460330/cmap_538185601_538444801_4FGL_J1217.9+3007_daily_bin1153.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=184.476 yref=30.1177 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460330/ft1_filtered_4FGL_J1217.9+3007_daily_bin1153.fits scfile=/scratch/kocevski/460330/ft2_4FGL_J1217.9+3007_daily_bin1153.fits outfile=/scratch/kocevski/460330/cmap_HighResolution_538185601_538444801_4FGL_J1217.9+3007_daily_bin1153.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.788       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4416       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5771       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.966       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    18.172       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6625       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12018E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6323       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1011       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9213       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .34996       1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0949       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6285       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.559       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .28963E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.8773       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .29486E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    53.886       1.0000         .10000E-03   10000.    
    28 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4939       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .57313       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=   3100.489     FROM MIGRAD    STATUS=CONVERGED    843 CALLS     4227 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.785        16.140        .69192E-07   -.19100E-04
   2  Prefactor     .10000E-03    8.9840        .16715E-06** at limit **
   3  Prefactor     5.4359        8.5180        .61692E-06   -.87098E-04
   4  norm          .10000E-03    .45378        .49424E-07** at limit **
   5  Prefactor     .10000E-03    91.288        .18057E-06** at limit **
   6  Prefactor     2.5800        3.6413        .23109E-06   -.10775E-03
   7  Prefactor     21.968        51.235       -.41697E-06   -.76163E-04
   8  Prefactor     .10000E-03    28.583        .73596E-07** at limit **
   9  norm          18.173        3.6884        .39852E-07   -.42750E-03
  10  Prefactor     1.6626        4.8462        .26131E-06   -.73787E-04
  11  Prefactor     .10000E-03    613.34        .30971E-04** at limit **
  12  norm          .10000E-03    3.0376       -.86271E-08** at limit **
  13  Prefactor     3.6328        8.5027        .23455E-06   -.60578E-04
  14  Prefactor     3.1002        4.6748        .82498E-07   -.10153E-03
  15  Prefactor     4.9203        4.2102       -.15882E-07   -.10499E-03
  16  Prefactor     .10000E-03    4.6705        .92678E-07** at limit **
  17  norm          .34995        .33638        .50033E-07   -.66453E-04
  18  norm          .10000E-03    2.8397        .10274E-06** at limit **
  19  Prefactor     2.1189        41.621        .18709E-05   -.86681E-06
  20  Prefactor     .10000E-03    19.912        .12459E-06** at limit **
  21  Prefactor     2.3283        1251.9        .37028E-04    .99887E-05
  22  Prefactor     12.559        15.824        .27580E-06   -.21120E-04
  23  Prefactor     .10000E-03    19.353        .65264E-06** at limit **
  24  norm          1.8782        9.8084       -.56490E-06    .24308E-05
  25  Prefactor     .10000E-03    91.065        .11991E-04** at limit **
  26  norm          .10000E-03    3.5149        .10535E-06** at limit **
  27  Prefactor     53.840        52.202       -.30071E-07   -.70020E-04
  28  norm          .10000E-03    4.7219        .10482E-05** at limit **
  29  norm          .10000E-03    5.2388        .30169E-06** at limit **
  30  Normalizat    1.4943        .31743       -.51318E-05   -.19063E-04
  31  Prefactor     .57275        .32158        .50966E-05   -.10465E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7846
  Prefactor  = 0.0001
  Prefactor  = 5.43592
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.58004
  Prefactor  = 21.9685
  Prefactor  = 0.0001
  norm       = 18.1727
  Prefactor  = 1.66257
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.63281
  Prefactor  = 3.10021
  Prefactor  = 4.92031
  Prefactor  = 0.0001
  norm       = 0.349946
  norm       = 0.0001
  Prefactor  = 2.11895
  Prefactor  = 0.0001
  Prefactor  = 2.32829
  Prefactor  = 12.5591
  Prefactor  = 0.0001
  norm       = 1.87816
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 53.8397
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.49427
  Prefactor  = 0.572755
 **********
 **   18 **HESSE 
 **********

 FCN=   3100.489     FROM HESSE     STATUS=OK           628 CALLS     4855 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.785        16.129        .10415E-03   -1.4939    
   2  Prefactor     .10000E-03    9.0325        .16295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4359        8.5001        .17226E-03   -1.5242    
   4  norm          .10000E-03    .45607        .36639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    92.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5800        3.6202        .11746E-03   -1.5387    
   7  Prefactor     21.968        51.583        .85463E-04   -1.4770    
   8  Prefactor     .10000E-03    28.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          18.173        3.6892        .45059E-04   -1.4855    
  10  Prefactor     1.6626        4.8108        .20029E-03   -1.5450    
  11  Prefactor     .10000E-03    67.677        .12017       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0621        .94337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.6328        8.4733        .21198E-03   -1.5327    
  14  Prefactor     3.1002        4.6280        .13360E-03   -1.5356    
  15  Prefactor     4.9203        4.1874        .94833E-04   -1.5264    
  16  Prefactor     .10000E-03    4.6811        .11752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .34995        .32961        .30191E-04   -1.5590    
  18  norm          .10000E-03    2.8454        .91640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1189        41.045        .28518E-03   -1.5417    
  20  Prefactor     .10000E-03    19.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3283        1319.6        .25153E-02   -1.5403    
  22  Prefactor     12.559        15.820        .11303E-03   -1.4999    
  23  Prefactor     .10000E-03    19.770        .42809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.8782        9.7942        .30389E-03   -1.5434    
  25  Prefactor     .10000E-03    93.831        .21397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.5210        .10196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     53.840        52.057        .54640E-04   -1.4239    
  28  norm          .10000E-03    4.7628        .11841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    5.2413        .12450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.4943        .34340        .23455E-03   -.77939    
  31  Prefactor     .57275        .34558        .39525E-03   -1.0875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36178e-10
Minuit parameter uncertainties:
  1  16.1341
  2  5.67739e-06
  3  8.50203
  4  9.26089e-07
  5  0.00023945
  6  3.62051
  7  51.6883
  8  1.01778e-05
  9  3.68922
  10  4.81196
  11  0.000631724
  12  9.63084e-07
  13  8.47606
  14  4.62856
  15  4.18762
  16  4.23341e-06
  17  0.329616
  18  2.55269e-06
  19  18.666
  20  5.55508e-06
  21  113.464
  22  15.8249
  23  2.37012e-05
  24  8.5799
  25  0.000636619
  26  4.13182e-06
  27  52.1013
  28  2.39815e-05
  29  7.17684e-06
  30  0.343933
  31  0.346866
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.000e-04  9.631e-07  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:  5.728e-01  3.469e-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.494e+00  3.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.476 30.118
Photon Flux Upper Limit: 8.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460330/likelihoodResults_538185601_538444801_4FGL_J1217.9+3007_daily_bin1153.txt

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) = 3100.49025488
delta logL = -0.00149798170969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3100.48875392
delta logL = 2.97536098515e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1551       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57282       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3100.489     FROM MIGRAD    STATUS=FAILED        98 CALLS      288 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    106.52        .20903E-02** at limit **
   2  alpha         2.3423        3.2488        .50000        .17291E-05
   3  Normalizat    1.4943        .36226E-01    .23455E-03   -.24339E-03
   4  Prefactor     .57276        .39808E-01    .39525E-03   -.14928E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3100.489     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      449 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    106.52        .34042E-03** at limit **
   2  alpha         2.3423        3.2488        .12185E-04    .17291E-05
   3  Normalizat    1.4943        .36226E-01    .15027E-06   -.24339E-03
   4  Prefactor     .57276        .39808E-01    .24363E-06   -.14928E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3100.489     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      481 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    442.56        .41807E-03** at limit **
   2  alpha         2.3441        3.8080        .50000        .13517E-06
   3  Normalizat    1.4943        .84213E-01    .46910E-04   -.24211E-03
   4  Prefactor     .57276        .92526E-01    .15810E-04   -.14864E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.34405
  Normalizat = 1.49427
  Prefactor  = 0.572758
 **********
 **   18 **HESSE 
 **********

 FCN=   3100.489     FROM HESSE     STATUS=OK            29 CALLS      510 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.0509        .83613E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3441        3.6377        .50000       -.62420E-01
   3  Normalizat    1.4943        .30956        .93820E-05   -.77939    
   4  Prefactor     .57276        .33942        .31620E-05   -1.0875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64178e-10
Minuit parameter uncertainties:
  1  3.21915e-05
  2  161.124
  3  0.309956
  4  0.340637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460330': 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) = 3100.4887529
delta logL = 4.00196086048e-06

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.000e-04  3.219e-05  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.344e+00  1.611e+02  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:  5.728e-01  3.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.494e+00  3.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 184.476 30.118

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/460330/cmap_HighResolution_538185601_538444801_4FGL_J1217.9+3007_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-05', job_status='DONE', photon_flux_upper_limit='8.94e-08', time_completed='2021-09-05 06:41:18.185199', job_id='460330', GAL2='0.57', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630849278.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='4.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1153' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:41:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 460330: <4FGL_J1217.9+3007_daily_bin1153> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1153 184.476 30.1177 538185601 538444801 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 :                                   668.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             235.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

