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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1229
RA = 184.476, Dec = 30.1177
tmin = 557884801, tmax = 558144001
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='461364', job_status='RUN', time_executed='2021-09-05 06:30:50.854873', time_epoch_executed='1630848650.85' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461364

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461364/ft1_4FGL_J1217.9+3007_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461364/ft2_4FGL_J1217.9+3007_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461364/ft1_4FGL_J1217.9+3007_daily_bin1229.fits outfile=/scratch/kocevski/461364/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1229.fits ra=184.476 dec=30.1177 rad=12.0 tmin=557884801.0 tmax=558144001.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.58
user 3.81
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461364/ft1_filtered_4FGL_J1217.9+3007_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/461364/ft2_4FGL_J1217.9+3007_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/461364/ltcube_557884801_558144001_4FGL_J1217.9+3007_daily_bin1229.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/461364/ft2_4FGL_J1217.9+3007_daily_bin1229.fits
.....................!
real 11.83
user 11.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461364/ft1_filtered_4FGL_J1217.9+3007_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/461364/ft2_4FGL_J1217.9+3007_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/461364/ltcube_557884801_558144001_4FGL_J1217.9+3007_daily_bin1229.fits outfile=/scratch/kocevski/461364/expmap_557884801_558144001_4FGL_J1217.9+3007_daily_bin1229.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/461364/ltcube_557884801_558144001_4FGL_J1217.9+3007_daily_bin1229.fits
.....................!
real 194.06
user 187.31
sys 5.41

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/461364/ft1_filtered_4FGL_J1217.9+3007_daily_bin1229.fits scfile=/scratch/kocevski/461364/ft2_4FGL_J1217.9+3007_daily_bin1229.fits outfile=/scratch/kocevski/461364/cmap_557884801_558144001_4FGL_J1217.9+3007_daily_bin1229.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/461364/ft1_filtered_4FGL_J1217.9+3007_daily_bin1229.fits scfile=/scratch/kocevski/461364/ft2_4FGL_J1217.9+3007_daily_bin1229.fits outfile=/scratch/kocevski/461364/cmap_HighResolution_557884801_558144001_4FGL_J1217.9+3007_daily_bin1229.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/461364/ft1_filtered_4FGL_J1217.9+3007_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/461364/ft2_4FGL_J1217.9+3007_daily_bin1229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461364/Model_4FGL_J1217.9+3007_daily_bin1229.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/461364/ft1_filtered_4FGL_J1217.9+3007_daily_bin1229.fits....!
real 13.82
user 12.57
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/461364/ft1_filtered_4FGL_J1217.9+3007_daily_bin1229.fits', '/scratch/kocevski/461364/ft2_4FGL_J1217.9+3007_daily_bin1229.fits', expMap='/scratch/kocevski/461364/expmap_557884801_558144001_4FGL_J1217.9+3007_daily_bin1229.fits', expCube='/scratch/kocevski/461364/ltcube_557884801_558144001_4FGL_J1217.9+3007_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/461364/Model_4FGL_J1217.9+3007_daily_bin1229.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/461364/ft1_filtered_4FGL_J1217.9+3007_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/461364/ft2_4FGL_J1217.9+3007_daily_bin1229.fits
Exposure map: /scratch/kocevski/461364/expmap_557884801_558144001_4FGL_J1217.9+3007_daily_bin1229.fits
Exposure cube: /scratch/kocevski/461364/ltcube_557884801_558144001_4FGL_J1217.9+3007_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/461364/Model_4FGL_J1217.9+3007_daily_bin1229.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 51.5012083859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 50.7380092415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4676       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1322       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8480       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7046       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5380       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17599E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1288       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1470       1.0000         .10000E-03   10000.    
     9 'norm      '    6.1171       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11254E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1752       1.0000         .10000E-03   10000.    
    12 'norm      '    6.2398       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9412       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40091       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .49620E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .80005E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .81194E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1480       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2291       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.4435       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1750       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4720       1.0000         .10000E-03   10000.    
    24 'norm      '    .34377       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.2068       1.0000         .10000E-03   10000.    
    26 'norm      '    29.061       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.1112       1.0000         .10000E-03   10000.    
    28 'norm      '    .58870       1.0000         .10000E-03   10000.    
    29 'norm      '    .10778E-02   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .51031       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99822E-08   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   50.71166     FROM MIGRAD    STATUS=CONVERGED    239 CALLS      359 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4676        1.0222         .0000         .0000    
   2  Prefactor     2.1322        1.0305         .0000         .0000    
   3  Prefactor     1.8480        1.0423         .0000         .0000    
   4  norm          2.7046        1.0182         .0000         .0000    
   5  Prefactor     1.0210        .54281        .17490E-05    .38589E-02
   6  Prefactor     .10000E-03    .20751       -.15429E-07** at limit **
   7  Prefactor     5.1288        1.0048         .0000         .0000    
   8  Prefactor     8.1470        1.0019         .0000         .0000    
   9  norm          6.1171        1.0034         .0000         .0000    
  10  Prefactor     .10000E-03    .20571        .46402E-06** at limit **
  11  Prefactor     4.1752        1.0074         .0000         .0000    
  12  norm          .10211E-03    .40352E-01   -.25150E-05** at limit **
  13  Prefactor     1.9412        1.0378         .0000         .0000    
  14  Prefactor     .10000E-03    .29481        .24230E-05** at limit **
  15  Prefactor     .10000E-03    .21475       -.73053E-06** at limit **
  16  Prefactor     .10000E-03    .22163        .13615E-06** at limit **
  17  norm          .10000E-03    .20571        .46946E-07** at limit **
  18  norm          .10000E-03    .22190        .12057E-06** at limit **
  19  Prefactor     .10000E-03    .61199E-01    .41649E-06** at limit **
  20  Prefactor     2.2291        1.0277         .0000         .0000    
  21  Prefactor     .38834E-02    .33765E-01    .38916E-05   -.19639E-02
  22  Prefactor     .10000E-03    .27911       -.54363E-05** at limit **
  23  Prefactor     1.4720        1.0740         .0000         .0000    
  24  norm          .10000E-03    .28171        .59279E-06** at limit **
  25  Prefactor     .14374E-02    .60319E-01   -.12968E-06** at limit **
  26  norm          29.173        1.0021        .14437E-05    .17131E-03
  27  Prefactor     2.1112        1.0312         .0000         .0000    
  28  norm          .10000E-03    .33801       -.11802E-05** at limit **
  29  norm          .10000E-03    .26813        .79168E-06** at limit **
  30  Normalizat    .52071        .85069        .14808E-04    .29302E-04
  31  Prefactor     .11102E-14    .25504       -.37613E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46756
  Prefactor  = 2.13221
  Prefactor  = 1.84799
  norm       = 2.70459
  Prefactor  = 1.02102
  Prefactor  = 0.0001
  Prefactor  = 5.12883
  Prefactor  = 8.14703
  norm       = 6.1171
  Prefactor  = 0.0001
  Prefactor  = 4.17517
  norm       = 0.000102106
  Prefactor  = 1.9412
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.22911
  Prefactor  = 0.00388339
  Prefactor  = 0.000100001
  Prefactor  = 1.47196
  norm       = 0.0001
  Prefactor  = 0.00143743
  norm       = 29.1734
  Prefactor  = 2.11118
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.520715
  Prefactor  = 1.11022e-15
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   50.71166     FROM HESSE     STATUS=FAILED         9 CALLS      368 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     561.76        559.18         .0000       -1.5394    
   2  Prefactor     2.1322        1.0305         .0000       -1.5416    
   3  Prefactor     1.8480        1.0423         .0000       -1.5436    
   4  norm          2.7046        1.0182         .0000       -1.5379    
   5  Prefactor     1.0210        .54281        .17490E-05   -1.5506    
   6  Prefactor     .10000E-03    .20751       -.15429E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1288        1.0048         .0000       -1.5255    
   8  Prefactor     8.1470        1.0019         .0000       -1.5137    
   9  norm          6.1171        1.0034         .0000       -1.5213    
  10  Prefactor     .10000E-03    .20571        .46402E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1752        1.0074         .0000       -1.5299    
  12  norm          .10211E-03    .40352E-01   -.25150E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9412        1.0378         .0000       -1.5429    
  14  Prefactor     .10000E-03    .29481        .24230E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .21475       -.73053E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .22163        .13615E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571        .46946E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .22190        .12057E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .61199E-01    .41649E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2291        1.0277         .0000       -1.5409    
  21  Prefactor     .38834E-02    .33765E-01    .38916E-05   -1.5720    
  22  Prefactor     .10000E-03    .27911       -.54363E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4720        1.0740         .0000       -1.5465    
  24  norm          .10000E-03    .28171        .59279E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .14374E-02    .60319E-01   -.12968E-06   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          29.173        1.0021        .14437E-05   -1.4627    
  27  Prefactor     2.1112        1.0312         .0000       -1.5417    
  28  norm          .10000E-03    .33801       -.11802E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    .26813        .79168E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .52071        .85069        .14808E-04   -1.1146    
  31  Prefactor     .11102E-14    .25504       -.37613E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.57893e-10
Minuit parameter uncertainties:
  1  1.02216
  2  1.03054
  3  1.04231
  4  1.0182
  5  0.542814
  6  1.03888e-06
  7  1.00483
  8  1.00189
  9  1.00338
  10  2.91402e-07
  11  1.00736
  12  0.000583082
  13  1.03776
  14  2.46481e-05
  15  1.10631e-07
  16  2.77325e-07
  17  2.38361e-09
  18  1.33857e-07
  19  9.00593e-06
  20  1.02767
  21  0.0226049
  22  2.65909e-05
  23  1.07403
  24  3.64389e-07
  25  0.0179636
  26  1.00207
  27  1.03123
  28  3.10393e-07
  29  2.43651e-06
  30  0.873456
  31  3.09532e-08
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 50.711662973

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.021e-04  5.831e-04  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.110e-15  3.095e-08  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:  5.207e-01  8.735e-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: 2.72e-05 ph cm-2 s-1
Energy Flux Upper Limit: 2.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461364/likelihoodResults_557884801_558144001_4FGL_J1217.9+3007_daily_bin1229.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): 102
logL (Free Index) = 50.711672117
delta logL = -9.1440040606e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 50.7116631682
delta logL = -1.95192299657e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12413E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7827       1.0000          .0000       5.0000    
     3 'Normalizat'    .52082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66775E-10   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.

 FCN=   50.71166     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      265 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10024E-03    9988.0        .10756E-01** at limit **
   2  alpha         1.5578        4.2182        .16596        .14933E-07
   3  Normalizat    .52072        .15244        .16239E-03    .35980E-04
   4  Prefactor     .13552E-08    .37606E-01    .14312E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100238
  alpha      = 1.55776
  Normalizat = 0.520716
  Prefactor  = 1.35519e-09
 **********
 **   18 **HESSE 
 **********

 FCN=   50.71166     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10024E-03    663.49        .16608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5578        3.9124        .66382E-02   -.38644    
   3  Normalizat    .52072        .50628        .32477E-04   -1.1146    
   4  Prefactor     .13552E-08    .41625        .28625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80719e-09
Minuit parameter uncertainties:
  1  0.0254441
  2  3023.45
  3  0.510859
  4  4.78375e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461364': 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) = 50.7116629653
delta logL = 7.65101049183e-09

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.002e-04  2.544e-02  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.558e+00  3.023e+03  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.355e-09  4.784e-05  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:  5.207e-01  5.109e-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/461364/cmap_HighResolution_557884801_558144001_4FGL_J1217.9+3007_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-02', job_status='DONE', photon_flux_upper_limit='2.72e-05', time_completed='2021-09-05 06:36:25.508777', job_id='461364', GAL2='0.00', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1630848985.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='7.65e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1229' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:36:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 461364: <4FGL_J1217.9+3007_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1229> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 06:30:22 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:30:24 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:24 2021
Terminated at Sun Sep  5 06:36:26 2021
Results reported at Sun Sep  5 06:36:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1229 184.476 30.1177 557884801 558144001 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 :                                   329.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             400.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   361 sec.
    Turnaround time :                            364 sec.

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

