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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1071
RA = 184.476, Dec = 30.1177
tmin = 516931201, tmax = 517190401
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='460220', job_status='RUN', time_executed='2021-09-05 06:26:01.476587', time_epoch_executed='1630848361.48' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460220/ft1_4FGL_J1217.9+3007_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460220/ft2_4FGL_J1217.9+3007_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460220/ft1_4FGL_J1217.9+3007_daily_bin1071.fits outfile=/scratch/kocevski/460220/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1071.fits ra=184.476 dec=30.1177 rad=12.0 tmin=516931201.0 tmax=517190401.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.94
user 3.69
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460220/ft1_filtered_4FGL_J1217.9+3007_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/460220/ft2_4FGL_J1217.9+3007_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/460220/ltcube_516931201_517190401_4FGL_J1217.9+3007_daily_bin1071.fits outfile=/scratch/kocevski/460220/expmap_516931201_517190401_4FGL_J1217.9+3007_daily_bin1071.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/460220/ltcube_516931201_517190401_4FGL_J1217.9+3007_daily_bin1071.fits
.....................!
real 192.69
user 187.01
sys 5.28

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/460220/ft1_filtered_4FGL_J1217.9+3007_daily_bin1071.fits scfile=/scratch/kocevski/460220/ft2_4FGL_J1217.9+3007_daily_bin1071.fits outfile=/scratch/kocevski/460220/cmap_516931201_517190401_4FGL_J1217.9+3007_daily_bin1071.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .85312       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3017       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5099       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1702       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0785       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.315       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2006       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.688       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9531       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1091       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8106       1.0000         .10000E-03   10000.    
    17 'norm      '    .82720       1.0000         .10000E-03   10000.    
    18 'norm      '    9.6145       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.437       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.0204       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35181E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.3711       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.095       1.0000         .10000E-03   10000.    
    28 'norm      '    1.4073       1.0000         .10000E-03   10000.    
    29 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1890       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .71527       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=   6512.715     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4172 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.598       -.20335E-05** at limit **
   2  Prefactor     .85854        10.074       -.21978E-05   -.10718E-03
   3  Prefactor     6.3012        5.1288        .11624E-05    .13148E-05
   4  norm          1.3194        .91683       -.72638E-08   -.25953E-03
   5  Prefactor     2.5057        32.433        .47030E-05   -.53197E-04
   6  Prefactor     2.1690        2.2138       -.22980E-06   -.59140E-03
   7  Prefactor     5.0652        22.816        .10814E-04    .14781E-05
   8  Prefactor     .10000E-03    20.021        .63904E-05** at limit **
   9  norm          10.314        1.9406       -.59758E-08    .15540E-03
  10  Prefactor     4.2000        5.0379        .97756E-06   -.46086E-03
  11  Prefactor     .10000E-03    26.504       -.99313E-05** at limit **
  12  norm          12.686        4.3926       -.17363E-05   -.76812E-04
  13  Prefactor     1.9528        4.4651        .41602E-05   -.43745E-03
  14  Prefactor     3.1086        3.0190        .14803E-05   -.25265E-03
  15  Prefactor     .10000E-03    1.7158        .17660E-06** at limit **
  16  Prefactor     4.8105        6.1052       -.12355E-05   -.24046E-03
  17  norm          .82715        .28106        .34839E-07   -.32931E-03
  18  norm          9.6132        5.8153       -.37835E-06   -.10785E-03
  19  Prefactor     .10000E-03    5.8814       -.19321E-06** at limit **
  20  Prefactor     10.446        13.618       -.58372E-06   -.24988E-03
  21  Prefactor     .10000E-03    39.169        .69204E-05** at limit **
  22  Prefactor     9.0203        7.2501        .37261E-06   -.57442E-04
  23  Prefactor     .10005E-03    7.0020        .17297E-06** at limit **
  24  norm          .10000E-03    2.9471        .39888E-07** at limit **
  25  Prefactor     .10000E-03    7.0284        .28955E-06** at limit **
  26  norm          4.3710        3.6437        .53584E-06   -.16887E-03
  27  Prefactor     19.214        29.458        .38185E-05   -.53325E-04
  28  norm          1.4062        2.9695       -.49678E-06   -.94583E-03
  29  norm          .10000E-03    4.6120        .15644E-06** at limit **
  30  Normalizat    1.1893        .18263       -.14670E-05    .16099E-03
  31  Prefactor     .71503        .19680       -.24697E-06   -.12254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.858543
  Prefactor  = 6.30118
  norm       = 1.31936
  Prefactor  = 2.5057
  Prefactor  = 2.16901
  Prefactor  = 5.06522
  Prefactor  = 0.0001
  norm       = 10.3143
  Prefactor  = 4.19996
  Prefactor  = 0.0001
  norm       = 12.6865
  Prefactor  = 1.95278
  Prefactor  = 3.10864
  Prefactor  = 0.0001
  Prefactor  = 4.81047
  norm       = 0.827152
  norm       = 9.61322
  Prefactor  = 0.0001
  Prefactor  = 10.4461
  Prefactor  = 0.0001
  Prefactor  = 9.02033
  Prefactor  = 0.000100053
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.37096
  Prefactor  = 19.2137
  norm       = 1.40615
  norm       = 0.0001
  Normalizat = 1.18932
  Prefactor  = 0.715034
 **********
 **   18 **HESSE 
 **********

 FCN=   6512.715     FROM HESSE     STATUS=OK           634 CALLS     4806 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .85854        40.323        .47641E-02   -1.5523    
   3  Prefactor     6.3012        5.1016        .15488E-03   -1.5206    
   4  norm          1.3194        .91641        .62419E-04   -1.5478    
   5  Prefactor     2.5057        31.336        .25792E-03   -1.5391    
   6  Prefactor     2.1690        2.1785        .10943E-03   -1.5413    
   7  Prefactor     5.0652        22.638        .17842E-03   -1.5258    
   8  Prefactor     .10000E-03    20.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.314        1.9403        .46314E-04   -1.5066    
  10  Prefactor     4.2000        4.9992        .18678E-03   -1.5298    
  11  Prefactor     .10000E-03    26.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.686        4.3926        .87636E-04   -1.4995    
  13  Prefactor     1.9528        4.3272        .24396E-03   -1.5428    
  14  Prefactor     3.1086        2.9943        .12141E-03   -1.5355    
  15  Prefactor     .10000E-03    1.7725        .20594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8105        6.1138        .18342E-03   -1.5269    
  17  norm          .82715        .28019        .23818E-04   -1.5526    
  18  norm          9.6132        5.8126        .12924E-03   -1.5088    
  19  Prefactor     .10000E-03    5.8997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.446        13.588        .62013E-03   -1.5061    
  21  Prefactor     .10000E-03    39.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.0203        7.2466        .13345E-03   -1.5107    
  23  Prefactor     .10005E-03    18.313        .35775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.0220        .27032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.0328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.3710        3.6343        .13624E-03   -1.5290    
  27  Prefactor     19.214        26.044        .91657E-04   -1.4831    
  28  norm          1.4062        2.9535        .19555E-03   -1.5471    
  29  norm          .10000E-03    4.6244        .16821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1893        .21561        .23697E-03   -.86933    
  31  Prefactor     .71503        .22968        .33888E-03   -1.0294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66436e-08
Minuit parameter uncertainties:
  1  3.66207e-05
  2  11.7754
  3  5.10193
  4  0.91642
  5  17.7334
  6  2.17858
  7  21.43
  8  2.52676e-06
  9  1.94034
  10  4.99971
  11  5.49836e-05
  12  4.3927
  13  4.32791
  14  2.99449
  15  2.4896e-05
  16  6.11459
  17  0.280193
  18  5.81291
  19  1.60102e-05
  20  13.5924
  21  2.13149e-05
  22  7.24734
  23  0.00196955
  24  6.63987e-06
  25  1.49182e-06
  26  3.63445
  27  26.0591
  28  2.95383
  29  2.29293e-05
  30  0.215769
  31  0.22998
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.269e+01  4.393e+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.150e-01  2.300e-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.189e+00  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.13
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 3.82e-08
Energy Flux (Fixed Index): 9.84e-05 +/- 3.41e-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) = 6512.46393995
delta logL = 0.251139482267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6512.46075865
delta logL = 0.254320789418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.075       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0673       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73396       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=   6512.461     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.075        3.9801        .80354E-04    .38483E-04
   2  alpha         2.0673        .30217        .75519E-02    .34451E-04
   3  Normalizat    1.1585        .20493        .23932E-03    .11586E-03
   4  Prefactor     .73399        .22865        .33458E-03    .10258E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0751
  alpha      = 2.06729
  Normalizat = 1.15851
  Prefactor  = 0.73399
 **********
 **   18 **HESSE 
 **********

 FCN=   6512.461     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.075        3.9320        .32142E-05   -1.5013    
   2  alpha         2.0673        .29825        .30207E-03   -.17396    
   3  Normalizat    1.1585        .20498        .95729E-05   -.87895    
   4  Prefactor     .73399        .22878        .13383E-04   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51749e-11
Minuit parameter uncertainties:
  1  3.93205
  2  0.29898
  3  0.205117
  4  0.229075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460220': 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) = 6512.46075817
delta logL = 0.254321268902

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.208e+01  3.932e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.067e+00  2.990e-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.340e-01  2.291e-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.159e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.96
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.07 +/- 0.30
Photon Flux (Free Index): 1.39e-07 +/- 5.79e-08
Energy Flux (Free Index): 7.79e-05 +/- 3.20e-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/460220/cmap_HighResolution_516931201_517190401_4FGL_J1217.9+3007_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='7.79e-05', photon_flux_error='3.82e-08', dlogl='2.54e-01', energy_flux='9.84e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-05 06:40:30.186383', photon_index_error2='0.30', photon_index2='2.07', ts='37.13', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='3.20e-05', EG='1.19', time_epoch_completed='1630849230.19', return_code='0', job_id='460220', GAL2='0.73', EG2='1.16', return_code2='0', energy_flux_error='3.41e-05', photon_flux_error2='5.79e-08', ts2='37.96', photon_index='1.85' WHERE bin_id='1071' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:40:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 460220: <4FGL_J1217.9+3007_daily_bin1071> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1071 184.476 30.1177 516931201 517190401 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 :                                   862.00 sec.
    Max Memory :                                 1254 MB
    Average Memory :                             339.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

