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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1170
RA = 184.476, Dec = 30.1177
tmin = 542592001, tmax = 542851201
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='460347', job_status='RUN', time_executed='2021-09-05 06:28:21.169198', time_epoch_executed='1630848501.17' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460347

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460347/ft1_4FGL_J1217.9+3007_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460347/ft2_4FGL_J1217.9+3007_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460347/ft1_4FGL_J1217.9+3007_daily_bin1170.fits outfile=/scratch/kocevski/460347/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1170.fits ra=184.476 dec=30.1177 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.73
user 6.40
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460347/ft2_4FGL_J1217.9+3007_daily_bin1170.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/460347/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1170.fits evtable="EVENTS" outfile="/scratch/kocevski/460347/ft1_filtered_4FGL_J1217.9+3007_daily_bin1170.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460347/ft1_filtered_4FGL_J1217.9+3007_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/460347/ft2_4FGL_J1217.9+3007_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/460347/ltcube_542592001_542851201_4FGL_J1217.9+3007_daily_bin1170.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/460347/ft2_4FGL_J1217.9+3007_daily_bin1170.fits
.....................!
real 12.34
user 11.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460347/ft1_filtered_4FGL_J1217.9+3007_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/460347/ft2_4FGL_J1217.9+3007_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/460347/ltcube_542592001_542851201_4FGL_J1217.9+3007_daily_bin1170.fits outfile=/scratch/kocevski/460347/expmap_542592001_542851201_4FGL_J1217.9+3007_daily_bin1170.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/460347/ltcube_542592001_542851201_4FGL_J1217.9+3007_daily_bin1170.fits
.....................!
real 191.10
user 185.77
sys 4.93

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/460347/ft1_filtered_4FGL_J1217.9+3007_daily_bin1170.fits scfile=/scratch/kocevski/460347/ft2_4FGL_J1217.9+3007_daily_bin1170.fits outfile=/scratch/kocevski/460347/cmap_542592001_542851201_4FGL_J1217.9+3007_daily_bin1170.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460347/ft1_filtered_4FGL_J1217.9+3007_daily_bin1170.fits scfile=/scratch/kocevski/460347/ft2_4FGL_J1217.9+3007_daily_bin1170.fits outfile=/scratch/kocevski/460347/cmap_HighResolution_542592001_542851201_4FGL_J1217.9+3007_daily_bin1170.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/460347/ft1_filtered_4FGL_J1217.9+3007_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/460347/ft2_4FGL_J1217.9+3007_daily_bin1170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460347/Model_4FGL_J1217.9+3007_daily_bin1170.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/460347/ft1_filtered_4FGL_J1217.9+3007_daily_bin1170.fits....................!
real 26.50
user 24.64
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.661       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5180       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.564       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9793       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.1752       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9009       1.0000         .10000E-03   10000.    
    11 'Prefactor '    132.55       1.0000         .10000E-03   10000.    
    12 'norm      '    .13554E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.535       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.685       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .23280       1.0000         .10000E-03   10000.    
    18 'norm      '    16.534       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8020       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14297E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.615       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    11.423       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.4356       1.0000         .10000E-03   10000.    
    27 'Prefactor '    46.575       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2004       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .40142       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=   1901.187     FROM MIGRAD    STATUS=CONVERGED    824 CALLS     4193 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.805        .61298E-08** at limit **
   2  Prefactor     .10000E-03    11.042        .10401E-07** at limit **
   3  Prefactor     15.661        13.064        .52203E-06   -.13005E-03
   4  norm          2.5186        2.5715        .46990E-07   -.58904E-04
   5  Prefactor     23.564        35.305        .16797E-06   -.16218E-04
   6  Prefactor     1.9803        2.8418        .41145E-07   -.38496E-04
   7  Prefactor     .10000E-03    198.20        .23161E-05** at limit **
   8  Prefactor     .10000E-03    53.028       -.58031E-07** at limit **
   9  norm          7.1755        3.2724       -.16498E-07   -.28618E-03
  10  Prefactor     2.9032        7.9624        .42544E-06   -.43430E-04
  11  Prefactor     132.55        90.767        .90543E-06   -.99150E-04
  12  norm          .10000E-03    7.0787        .18360E-05** at limit **
  13  Prefactor     14.540        19.571       -.52617E-07   -.40020E-04
  14  Prefactor     13.680        6.9164       -.99356E-06   -.45999E-03
  15  Prefactor     .10000E-03    1.8274        .15273E-06** at limit **
  16  Prefactor     .10000E-03    6.3998        .18965E-07** at limit **
  17  norm          .23284        .25274        .68094E-08   -.76272E-04
  18  norm          16.537        9.7316       -.37657E-08   -.15606E-04
  19  Prefactor     3.7987        38.484        .18032E-06   -.13006E-04
  20  Prefactor     .10000E-03    38.907        .11974E-06** at limit **
  21  Prefactor     .10000E-03    416.56       -.18988E-05** at limit **
  22  Prefactor     19.620        16.045        .42295E-07    .18719E-06
  23  Prefactor     .10000E-03    7.3316        .54553E-07** at limit **
  24  norm          11.416        8.8767       -.54420E-06    .21096E-03
  25  Prefactor     .10000E-03    15.592        .38980E-07** at limit **
  26  norm          3.4359        4.6333        .92375E-08   -.11054E-04
  27  Prefactor     46.581        42.675        .10128E-06    .19730E-05
  28  norm          .10000E-03    2.1035        .51712E-08** at limit **
  29  norm          .10000E-03    4.0665        .34443E-08** at limit **
  30  Normalizat    1.1996        .32824       -.83489E-06   -.53181E-04
  31  Prefactor     .40208        .33962        .16302E-06   -.33984E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.661
  norm       = 2.51862
  Prefactor  = 23.5638
  Prefactor  = 1.98026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.17548
  Prefactor  = 2.90317
  Prefactor  = 132.549
  norm       = 0.000100002
  Prefactor  = 14.5402
  Prefactor  = 13.6796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.232835
  norm       = 16.5369
  Prefactor  = 3.79874
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 19.6195
  Prefactor  = 0.0001
  norm       = 11.416
  Prefactor  = 0.0001
  norm       = 3.43591
  Prefactor  = 46.5809
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.19962
  Prefactor  = 0.402079
 **********
 **   18 **HESSE 
 **********

 FCN=   1901.187     FROM HESSE     STATUS=OK           622 CALLS     4815 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.050        .14153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.661        13.022        .10121E-03   -1.4916    
   4  norm          2.5186        2.5728        .68244E-04   -1.5391    
   5  Prefactor     23.564        35.306        .82517E-04   -1.4737    
   6  Prefactor     1.9803        2.8158        .84184E-04   -1.5427    
   7  Prefactor     .10000E-03    200.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    53.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.1755        3.2754        .50322E-04   -1.5172    
  10  Prefactor     2.9032        7.9475        .19178E-03   -1.5367    
  11  Prefactor     132.55        90.342        .34976E-04   -1.3400    
  12  norm          .10000E-03    18.616        .20473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.540        19.622        .10506E-03   -1.4945    
  14  Prefactor     13.680        7.1559        .79553E-04   -1.4968    
  15  Prefactor     .10000E-03    1.8380        .57599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.4311        .10768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .23284        .24611        .22118E-03   -1.5611    
  18  norm          16.537        9.7262        .98498E-04   -1.4894    
  19  Prefactor     3.7987        38.153        .20701E-03   -1.5318    
  20  Prefactor     .10000E-03    39.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    417.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.620        16.078        .90435E-04   -1.4822    
  23  Prefactor     .10000E-03    7.3417        .11525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          11.416        8.8004        .10854E-03   -1.5032    
  25  Prefactor     .10000E-03    15.597        .16819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.4359        4.6266        .10602E-03   -1.5337    
  27  Prefactor     46.581        42.674        .58752E-04   -1.4342    
  28  norm          .10000E-03    2.1052        .61763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    4.0673        .85883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1996        .36757        .22588E-03   -.86615    
  31  Prefactor     .40208        .36649        .40555E-03   -1.1670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60271e-10
Minuit parameter uncertainties:
  1  5.13207e-06
  2  3.03797e-06
  3  13.024
  4  2.5729
  5  35.3373
  6  2.81603
  7  0.000316305
  8  4.75476e-05
  9  3.27551
  10  7.95034
  11  90.4358
  12  0.000358058
  13  19.6311
  14  7.15636
  15  9.86613e-07
  16  1.80081e-06
  17  0.246113
  18  9.72715
  19  24.0973
  20  2.60491e-05
  21  0.00110125
  22  16.0812
  23  5.49656e-07
  24  8.80143
  25  1.55386e-05
  26  4.6271
  27  42.7021
  28  1.40292e-06
  29  8.72255e-07
  30  0.368366
  31  0.368649
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.000e-04  3.581e-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:  4.021e-01  3.686e-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.200e+00  3.684e-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: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460347/likelihoodResults_542592001_542851201_4FGL_J1217.9+3007_daily_bin1170.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) = 1901.18682952
delta logL = -0.000255953128772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1901.18657058
delta logL = 2.99389262182e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46563E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0002       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40194       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=   1900.981     FROM MIGRAD    STATUS=CONVERGED    137 CALLS      314 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56721        18.202        .10596E-01   -.72718E-03
   2  alpha         3.5080        4.2540        .33415       -.38530E-05
   3  Normalizat    1.1290        .60016E-01    .52214E-01    .60538E-04
   4  Prefactor     .44260        .65431E-01    .87218E-01   -.16112E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.56721
  alpha      = 3.50804
  Normalizat = 1.12896
  Prefactor  = 0.442599
 **********
 **   18 **HESSE 
 **********

 FCN=   1900.981     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      345 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56721        67.532        .49501E-04   -1.5557    
   2  alpha         3.5080        3.2332        .11524E-01    .41503    
   3  Normalizat    1.1290        .35655        .23086E-03   -.88827    
   4  Prefactor     .44260        .37516        .38662E-03   -1.1469    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.8056e-09
Minuit parameter uncertainties:
  1  12.3914
  2  11.4029
  3  0.357318
  4  0.377271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460347': 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): 102
logL (Free Index) = 1900.98093783
delta logL = 0.205635741685

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.672e-01  1.239e+01  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  3.508e+00  1.140e+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.426e-01  3.773e-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.129e+00  3.573e-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/460347/cmap_HighResolution_542592001_542851201_4FGL_J1217.9+3007_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-04', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2021-09-05 06:37:46.411431', job_id='460347', GAL2='0.44', fit_tolerance='1e-08', EG2='1.13', EG='1.20', time_epoch_completed='1630849066.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.40', dlogl='2.06e-01', ts2='0.43', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1170' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:37:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 460347: <4FGL_J1217.9+3007_daily_bin1170> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1170 184.476 30.1177 542592001 542851201 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 :                                   552.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            713 sec.

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

