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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1051
RA = 184.476, Dec = 30.1177
tmin = 511747201, tmax = 512006401
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='460191', job_status='RUN', time_executed='2021-09-05 06:25:56.903043', time_epoch_executed='1630848356.9' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460191

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460191/ft1_4FGL_J1217.9+3007_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460191/ft2_4FGL_J1217.9+3007_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460191/ft1_4FGL_J1217.9+3007_daily_bin1051.fits outfile=/scratch/kocevski/460191/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1051.fits ra=184.476 dec=30.1177 rad=12.0 tmin=511747201.0 tmax=512006401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.56
user 3.32
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460191/ft1_filtered_4FGL_J1217.9+3007_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/460191/ft2_4FGL_J1217.9+3007_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/460191/ltcube_511747201_512006401_4FGL_J1217.9+3007_daily_bin1051.fits outfile=/scratch/kocevski/460191/expmap_511747201_512006401_4FGL_J1217.9+3007_daily_bin1051.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/460191/ltcube_511747201_512006401_4FGL_J1217.9+3007_daily_bin1051.fits
.....................!
real 192.26
user 186.79
sys 5.11

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/460191/ft1_filtered_4FGL_J1217.9+3007_daily_bin1051.fits scfile=/scratch/kocevski/460191/ft2_4FGL_J1217.9+3007_daily_bin1051.fits outfile=/scratch/kocevski/460191/cmap_511747201_512006401_4FGL_J1217.9+3007_daily_bin1051.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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460191/ft1_filtered_4FGL_J1217.9+3007_daily_bin1051.fits scfile=/scratch/kocevski/460191/ft2_4FGL_J1217.9+3007_daily_bin1051.fits outfile=/scratch/kocevski/460191/cmap_HighResolution_511747201_512006401_4FGL_J1217.9+3007_daily_bin1051.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/460191/ft1_filtered_4FGL_J1217.9+3007_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/460191/ft2_4FGL_J1217.9+3007_daily_bin1051.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460191/Model_4FGL_J1217.9+3007_daily_bin1051.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/460191/ft1_filtered_4FGL_J1217.9+3007_daily_bin1051.fits.....................!
real 51.77
user 50.32
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18711       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0140       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11768E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    88.860       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3758       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.640       1.0000         .10000E-03   10000.    
    12 'norm      '    12.519       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6248       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12523E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .50636E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    13.714       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .30875       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.381       1.0000         .10000E-03   10000.    
    25 'Prefactor '    40.481       1.0000         .10000E-03   10000.    
    26 'norm      '    2.6212       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1635       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .77982       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=   5823.288     FROM MIGRAD    STATUS=CONVERGED    859 CALLS     4281 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7375        .85663E-08** at limit **
   2  Prefactor     .10000E-03    10.890        .21144E-06** at limit **
   3  Prefactor     .19139        2.5751        .66771E-07   -.26750E-04
   4  norm          1.0086        1.5270        .13565E-05   -.68005E-04
   5  Prefactor     .10000E-03    4.5735        .38876E-07** at limit **
   6  Prefactor     .10000E-03    .58798        .45489E-07** at limit **
   7  Prefactor     .10000E-03    16.110       -.58811E-06** at limit **
   8  Prefactor     89.160        81.778       -.33273E-05    .37795E-04
   9  norm          1.3753        1.1005        .52120E-07    .21417E-04
  10  Prefactor     .10000E-03    1.5086        .48279E-07** at limit **
  11  Prefactor     17.646        23.270       -.39196E-05   -.27914E-03
  12  norm          12.518        3.7890       -.47965E-07   -.12819E-03
  13  Prefactor     .10000E-03    1.4936       -.60434E-07** at limit **
  14  Prefactor     .10000E-03    .90049        .91335E-08** at limit **
  15  Prefactor     3.6220        2.1752       -.36562E-07   -.28600E-03
  16  Prefactor     .10000E-03    3.3569       -.67690E-07** at limit **
  17  norm          .48544E-02    .16214       -.19892E-07    .45957E-03
  18  norm          13.709        5.5010        .36337E-07    .72299E-04
  19  Prefactor     .38106        8.2050        .13736E-05   -.34003E-03
  20  Prefactor     .10000E-03    30.466        .95727E-06** at limit **
  21  Prefactor     .10000E-03    21.911       -.34148E-06** at limit **
  22  Prefactor     .10000E-03    6.7513        .13543E-06** at limit **
  23  Prefactor     .10000E-03    4.1257        .85129E-07** at limit **
  24  norm          10.381        6.6131       -.40560E-07   -.61285E-04
  25  Prefactor     40.482        35.774        .13828E-06   -.76569E-06
  26  norm          2.6216        3.1414        .11643E-06   -.11032E-04
  27  Prefactor     .10000E-03    6.4219        .44258E-08** at limit **
  28  norm          .10000E-03    2.1603        .42768E-07** at limit **
  29  norm          .10000E-03    2.4220        .13707E-07** at limit **
  30  Normalizat    1.1639        .18173        .64697E-06   -.18007E-03
  31  Prefactor     .77916        .20138       -.15064E-05   -.55596E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.19139
  norm       = 1.00855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.1605
  norm       = 1.37529
  Prefactor  = 0.0001
  Prefactor  = 17.6461
  norm       = 12.5179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.62203
  Prefactor  = 0.0001
  norm       = 0.00485445
  norm       = 13.7089
  Prefactor  = 0.381061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3814
  Prefactor  = 40.4822
  norm       = 2.62158
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.16394
  Prefactor  = 0.779165
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.288     FROM HESSE     STATUS=OK           622 CALLS     4903 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7416        .16221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .19139        25.528        .23259E-02   -1.5620    
   4  norm          1.0086        1.5763        .26023E-03   -1.5507    
   5  Prefactor     .10000E-03    4.5783        .15938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .60592        .11423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     89.160        82.969        .42624E-04   -1.3817    
   9  norm          1.3753        1.0855        .68269E-04   -1.5473    
  10  Prefactor     .10000E-03    1.5430        .91515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.646        24.314        .95359E-04   -1.4868    
  12  norm          12.518        3.7842        .38859E-03   -1.5000    
  13  Prefactor     .10000E-03    1.4942        .91071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .90952        .70598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6220        2.1715        .81825E-04   -1.5327    
  16  Prefactor     .10000E-03    11.536        .26861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .48544E-02    1.8082        .57804E-03   -1.5694    
  18  norm          13.709        5.4514        .10784E-03   -1.4967    
  19  Prefactor     .38106        50.111        .40357E-02   -1.5585    
  20  Prefactor     .10000E-03    30.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.8043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.2144        .15133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.381        6.6229        .12436E-03   -1.5063    
  25  Prefactor     40.482        35.951        .63001E-04   -1.4435    
  26  norm          2.6216        3.1323        .14382E-03   -1.5384    
  27  Prefactor     .10000E-03    6.4266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.2017        .10936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.4283        .11597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1639        .21205        .21939E-03   -.87725    
  31  Prefactor     .77916        .23332        .30514E-03   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76477e-08
Minuit parameter uncertainties:
  1  5.93717e-08
  2  1.6641e-05
  3  4.42156
  4  1.57638
  5  1.28331e-06
  6  3.66007e-07
  7  5.23526e-05
  8  83.0773
  9  1.08549
  10  7.26901e-07
  11  24.3272
  12  3.78432
  13  1.11881e-06
  14  8.7156e-07
  15  2.17159
  16  8.0893e-05
  17  0.185445
  18  5.45165
  19  8.74596
  20  9.68646e-05
  21  3.84744e-05
  22  5.23988e-06
  23  1.53481e-06
  24  6.62337
  25  35.97
  26  3.13254
  27  1.39236e-06
  28  8.95671e-08
  29  1.84906e-07
  30  0.212206
  31  0.233616
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.252e+01  3.784e+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:  7.792e-01  2.336e-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.164e+00  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 77.53
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 3.30e-08
Energy Flux (Fixed Index): 9.71e-05 +/- 2.93e-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) = 5822.06194697
delta logL = 1.2261758028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5822.04741464
delta logL = 1.24070813084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.804       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4757       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76159       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=   5822.047     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      205 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.804        3.8302        .29149E-02    .53705E-02
   2  alpha         1.4757        .21285        .16063       -.41394E-04
   3  Normalizat    1.1991        .17234        .34912E-01    .14880E-05
   4  Prefactor     .76158        .20044        .69801E-01    .22263E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8044
  alpha      = 1.47569
  Normalizat = 1.19915
  Prefactor  = 0.761584
 **********
 **   18 **HESSE 
 **********

 FCN=   5822.047     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.804        4.1938        .82251E-04   -1.5021    
   2  alpha         1.4757        .24052        .68810E-02   -.42215    
   3  Normalizat    1.1991        .19964        .21699E-03   -.86629    
   4  Prefactor     .76158        .23168        .30887E-03   -1.0116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27701e-09
Minuit parameter uncertainties:
  1  4.19394
  2  0.240967
  3  0.199766
  4  0.231972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460191': 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) = 5822.04741464
delta logL = 1.24070813308

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.180e+01  4.194e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.476e+00  2.410e-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:  7.616e-01  2.320e-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.199e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 80.10
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.48 +/- 0.24
Photon Flux (Free Index): 7.23e-08 +/- 3.15e-08
Energy Flux (Free Index): 1.83e-04 +/- 9.80e-05

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/460191/cmap_HighResolution_511747201_512006401_4FGL_J1217.9+3007_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='1.83e-04', photon_flux_error='3.30e-08', dlogl='1.24e+00', energy_flux='9.71e-05', photon_flux2='7.23e-08', job_status='DONE', time_completed='2021-09-05 06:39:32.777510', photon_index_error2='0.24', photon_index2='1.48', ts='77.53', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='9.80e-05', EG='1.16', time_epoch_completed='1630849172.78', return_code='0', job_id='460191', GAL2='0.76', EG2='1.20', return_code2='0', energy_flux_error='2.93e-05', photon_flux_error2='3.15e-08', ts2='80.10', photon_index='1.85' WHERE bin_id='1051' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:39:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 460191: <4FGL_J1217.9+3007_daily_bin1051> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1051 184.476 30.1177 511747201 512006401 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 :                                   805.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            831 sec.

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

