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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1054
RA = 184.476, Dec = 30.1177
tmin = 512524801, tmax = 512784001
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='460195', job_status='RUN', time_executed='2021-09-05 06:28:03.677870', time_epoch_executed='1630848483.68' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1054'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460195

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460195/ft1_4FGL_J1217.9+3007_daily_bin1054.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460195/ft2_4FGL_J1217.9+3007_daily_bin1054.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460195/ft1_4FGL_J1217.9+3007_daily_bin1054.fits outfile=/scratch/kocevski/460195/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1054.fits ra=184.476 dec=30.1177 rad=12.0 tmin=512524801.0 tmax=512784001.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.66
user 3.40
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460195/ft1_filtered_4FGL_J1217.9+3007_daily_bin1054.fits evtable="EVENTS" scfile=/scratch/kocevski/460195/ft2_4FGL_J1217.9+3007_daily_bin1054.fits sctable="SC_DATA" expcube=/scratch/kocevski/460195/ltcube_512524801_512784001_4FGL_J1217.9+3007_daily_bin1054.fits outfile=/scratch/kocevski/460195/expmap_512524801_512784001_4FGL_J1217.9+3007_daily_bin1054.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/460195/ltcube_512524801_512784001_4FGL_J1217.9+3007_daily_bin1054.fits
.....................!
real 191.38
user 186.00
sys 4.88

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/460195/ft1_filtered_4FGL_J1217.9+3007_daily_bin1054.fits scfile=/scratch/kocevski/460195/ft2_4FGL_J1217.9+3007_daily_bin1054.fits outfile=/scratch/kocevski/460195/cmap_512524801_512784001_4FGL_J1217.9+3007_daily_bin1054.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460195/ft1_filtered_4FGL_J1217.9+3007_daily_bin1054.fits scfile=/scratch/kocevski/460195/ft2_4FGL_J1217.9+3007_daily_bin1054.fits outfile=/scratch/kocevski/460195/cmap_HighResolution_512524801_512784001_4FGL_J1217.9+3007_daily_bin1054.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .44629E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .76789       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2926       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.201       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6037       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    51.782       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0479       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2641       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7792       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0370       1.0000         .10000E-03   10000.    
    17 'norm      '    .38460       1.0000         .10000E-03   10000.    
    18 'norm      '    10.884       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0068       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1516       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.9489       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.660       1.0000         .10000E-03   10000.    
    26 'norm      '    3.3672       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .15540E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3309       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .67184       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=   6441.614     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4160 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0934        .15213E-05** at limit **
   2  Prefactor     .10000E-03    5.2641        .29397E-05** at limit **
   3  Prefactor     .10000E-03    3.0916        .62857E-06** at limit **
   4  norm          .76774        .97241        .22231E-07   -.15234E-03
   5  Prefactor     .10000E-03    23.466        .57797E-05** at limit **
   6  Prefactor     2.2927        1.6865        .61081E-07   -.72430E-03
   7  Prefactor     .10000E-03    12.086        .24990E-05** at limit **
   8  Prefactor     28.202        28.814        .12403E-05    .68133E-05
   9  norm          1.6039        1.3970        .11555E-06   -.27743E-03
  10  Prefactor     .10000E-03    2.0003        .63160E-07** at limit **
  11  Prefactor     .10000E-03    13.905       -.55049E-05** at limit **
  12  norm          51.783        7.4032        .19298E-07   -.34774E-04
  13  Prefactor     3.0493        6.4271        .16937E-06   -.49875E-04
  14  Prefactor     1.2640        1.9701        .19354E-07   -.33293E-04
  15  Prefactor     1.7793        2.3213       -.58789E-07   -.12941E-03
  16  Prefactor     6.0374        5.0312        .73814E-06    .47232E-04
  17  norm          .38466        .23235       -.13954E-08   -.22188E-03
  18  norm          10.884        5.2054        .44370E-06    .44199E-04
  19  Prefactor     2.0079        3.2827        .88022E-06   -.14730E-02
  20  Prefactor     8.1553        16.185        .14168E-05    .55925E-04
  21  Prefactor     .10000E-03    31.543       -.52838E-05** at limit **
  22  Prefactor     7.9499        7.8739        .76099E-07   -.11932E-04
  23  Prefactor     .10000E-03    5.0937       -.26537E-05** at limit **
  24  norm          .10000E-03    1.3509       -.16896E-06** at limit **
  25  Prefactor     23.666        25.423        .66340E-05    .21687E-03
  26  norm          3.3678        3.9379       -.17040E-06   -.60927E-04
  27  Prefactor     .10000E-03    8.0188        .78943E-06** at limit **
  28  norm          .10000E-03    2.4522       -.10656E-05** at limit **
  29  norm          .10000E-03    6.4774       -.84578E-06** at limit **
  30  Normalizat    1.3306        .19080       -.14732E-05   -.61360E-06
  31  Prefactor     .67197        .21193        .19483E-06   -.10015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.767738
  Prefactor  = 0.0001
  Prefactor  = 2.29268
  Prefactor  = 0.0001
  Prefactor  = 28.202
  norm       = 1.6039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 51.7835
  Prefactor  = 3.04935
  Prefactor  = 1.26403
  Prefactor  = 1.77931
  Prefactor  = 6.03741
  norm       = 0.384662
  norm       = 10.8843
  Prefactor  = 2.00788
  Prefactor  = 8.15529
  Prefactor  = 0.0001
  Prefactor  = 7.94994
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.6664
  norm       = 3.36784
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Normalizat = 1.33063
  Prefactor  = 0.671966
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.614     FROM HESSE     STATUS=OK           628 CALLS     4788 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2712        .17969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.624        .26719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .76774        .86942        .85917E-03   -1.5533    
   5  Prefactor     .10000E-03    23.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2927        1.6872        .43248E-03   -1.5405    
   7  Prefactor     .10000E-03    12.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.202        28.815        .75442E-04   -1.4645    
   9  norm          1.6039        1.3811        .83711E-04   -1.5455    
  10  Prefactor     .10000E-03    2.0248        .11083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          51.783        7.3636        .55734E-04   -1.4268    
  13  Prefactor     3.0493        6.4121        .23239E-03   -1.5359    
  14  Prefactor     1.2640        1.9205        .13320E-03   -1.5483    
  15  Prefactor     1.7793        2.2999        .13153E-03   -1.5441    
  16  Prefactor     6.0374        5.0292        .15725E-03   -1.5216    
  17  norm          .38466        .22939        .28774E-04   -1.5584    
  18  norm          10.884        5.2057        .12058E-03   -1.5048    
  19  Prefactor     2.0079        8.0209        .14614E-02   -1.5425    
  20  Prefactor     8.1553        16.183        .14042E-03   -1.5137    
  21  Prefactor     .10000E-03    31.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.9499        7.8666        .14221E-03   -1.5144    
  23  Prefactor     .10000E-03    5.1898        .17704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.3539        .91121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.666        25.553        .82351E-04   -1.4735    
  26  norm          3.3678        3.9268        .16620E-03   -1.5341    
  27  Prefactor     .10000E-03    8.0199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    7.5777        .23874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    6.7183        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3306        .22419        .23688E-03   -.82657    
  31  Prefactor     .67197        .24863        .36355E-03   -1.0464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4933e-09
Minuit parameter uncertainties:
  1  1.20991e-05
  2  1.7724e-05
  3  0.000497839
  4  0.869436
  5  7.0788e-05
  6  1.6872
  7  2.68876e-05
  8  28.829
  9  1.38112
  10  2.99449e-06
  11  4.62429e-05
  12  7.36372
  13  6.4135
  14  1.92063
  15  2.30004
  16  5.02951
  17  0.229392
  18  5.20591
  19  8.02517
  20  16.1917
  21  9.6443e-05
  22  7.86767
  23  3.45324e-05
  24  9.09811e-06
  25  25.5651
  26  3.92705
  27  8.61684e-06
  28  0.000176477
  29  1.16074e-05
  30  0.224357
  31  0.249044
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.178e+01  7.364e+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:  6.720e-01  2.490e-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.331e+00  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 282.88
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 4.51e-07 +/- 6.41e-08
Energy Flux (Fixed Index): 4.02e-04 +/- 5.71e-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) = 6439.16923403
delta logL = 2.44465743208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6439.13753432
delta logL = 2.47635714218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    53.698       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6095       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4131       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62347       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=   6439.138     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          53.698        7.6733        .13684E-02   -.20261E-02
   2  alpha         1.6096        .10765        .80365E-01   -.11605E-06
   3  Normalizat    1.4131        .18923        .52487E-01    .37234E-07
   4  Prefactor     .62346        .21216        .85213E-01    .31940E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 53.6982
  alpha      = 1.60956
  Normalizat = 1.41311
  Prefactor  = 0.623458
 **********
 **   18 **HESSE 
 **********

 FCN=   6439.138     FROM HESSE     STATUS=OK            25 CALLS      231 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          53.698        7.6831        .54735E-04   -1.4241    
   2  alpha         1.6096        .10887        .35266E-03   -.36417    
   3  Normalizat    1.4131        .22189        .23205E-03   -.80250    
   4  Prefactor     .62346        .24727        .37748E-03   -1.0661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48731e-10
Minuit parameter uncertainties:
  1  7.68327
  2  0.108908
  3  0.222039
  4  0.247704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460195': 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) = 6439.13753431
delta logL = 2.47635715049

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.370e+01  7.683e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.610e+00  1.089e-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:  6.235e-01  2.477e-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.413e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 291.74
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.61 +/- 0.11
Photon Flux (Free Index): 3.63e-07 +/- 6.46e-08
Energy Flux (Free Index): 6.20e-04 +/- 1.55e-04

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.51e-07', energy_flux2='6.20e-04', photon_flux_error='6.41e-08', dlogl='2.48e+00', energy_flux='4.02e-04', photon_flux2='3.63e-07', job_status='DONE', time_completed='2021-09-05 06:42:09.499848', photon_index_error2='0.11', photon_index2='1.61', ts='282.88', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='1.55e-04', EG='1.33', time_epoch_completed='1630849329.5', return_code='0', job_id='460195', GAL2='0.62', EG2='1.41', return_code2='0', energy_flux_error='5.71e-05', photon_flux_error2='6.46e-08', ts2='291.74', photon_index='1.85' WHERE bin_id='1054' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:42:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 460195: <4FGL_J1217.9+3007_daily_bin1054> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1054> 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) <bullet0242>, 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:42:10 2021
Results reported at Sun Sep  5 06:42:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1054 184.476 30.1177 512524801 512784001 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 :                                   838.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

