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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1258
RA = 184.476, Dec = 30.1177
tmin = 565401601, tmax = 565660801
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='461412', job_status='RUN', time_executed='2021-09-05 06:30:55.368423', time_epoch_executed='1630848655.37' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461412

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461412/ft1_4FGL_J1217.9+3007_daily_bin1258.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461412/ft2_4FGL_J1217.9+3007_daily_bin1258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461412/ft1_4FGL_J1217.9+3007_daily_bin1258.fits outfile=/scratch/kocevski/461412/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1258.fits ra=184.476 dec=30.1177 rad=12.0 tmin=565401601.0 tmax=565660801.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.86
user 3.45
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461412/ft1_filtered_4FGL_J1217.9+3007_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/461412/ft2_4FGL_J1217.9+3007_daily_bin1258.fits sctable="SC_DATA" expcube=/scratch/kocevski/461412/ltcube_565401601_565660801_4FGL_J1217.9+3007_daily_bin1258.fits outfile=/scratch/kocevski/461412/expmap_565401601_565660801_4FGL_J1217.9+3007_daily_bin1258.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/461412/ltcube_565401601_565660801_4FGL_J1217.9+3007_daily_bin1258.fits
.....................!
real 190.26
user 184.77
sys 5.07

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/461412/ft1_filtered_4FGL_J1217.9+3007_daily_bin1258.fits scfile=/scratch/kocevski/461412/ft2_4FGL_J1217.9+3007_daily_bin1258.fits outfile=/scratch/kocevski/461412/cmap_565401601_565660801_4FGL_J1217.9+3007_daily_bin1258.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=184.476 yref=30.1177 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461412/ft1_filtered_4FGL_J1217.9+3007_daily_bin1258.fits scfile=/scratch/kocevski/461412/ft2_4FGL_J1217.9+3007_daily_bin1258.fits outfile=/scratch/kocevski/461412/cmap_HighResolution_565401601_565660801_4FGL_J1217.9+3007_daily_bin1258.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2569       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5459       1.0000         .10000E-03   10000.    
     4 'norm      '    .77166       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.083       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2206       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    92.207       1.0000         .10000E-03   10000.    
     9 'norm      '    12.802       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .81270       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.599       1.0000         .10000E-03   10000.    
    12 'norm      '    5.0931       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7469       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .49279       1.0000         .10000E-03   10000.    
    18 'norm      '    6.6335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2988       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    53.935       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0071       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.766       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.955       1.0000         .10000E-03   10000.    
    26 'norm      '    .13769E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.2353       1.0000         .10000E-03   10000.    
    28 'norm      '    3.9193       1.0000         .10000E-03   10000.    
    29 'norm      '    5.0471       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .77209       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1050       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=   6828.025     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     4172 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2733        9.1088        .57510E-06   -.47272E-03
   2  Prefactor     .10000E-03    22.319       -.37197E-06** at limit **
   3  Prefactor     5.5463        4.9461        .14486E-06   -.85108E-03
   4  norm          .77144        1.1835       -.23299E-06   -.15719E-04
   5  Prefactor     29.084        22.267        .36063E-06    .24313E-04
   6  Prefactor     2.2208        1.9200       -.11525E-06   -.22249E-04
   7  Prefactor     .10000E-03    13.744       -.54170E-07** at limit **
   8  Prefactor     92.210        65.183        .25599E-05    .10559E-04
   9  norm          12.802        2.0788        .58662E-07    .13538E-03
  10  Prefactor     .81223        3.4830       -.60195E-06   -.16196E-03
  11  Prefactor     15.590        28.993       -.13904E-04   -.18451E-04
  12  norm          5.0927        3.1165        .92383E-07    .79940E-04
  13  Prefactor     .10000E-03    2.0917        .38023E-07** at limit **
  14  Prefactor     6.7464        2.9119        .15244E-07    .93191E-04
  15  Prefactor     .10000E-03    1.3796       -.81650E-07** at limit **
  16  Prefactor     .10000E-03    1.9786       -.16576E-07** at limit **
  17  norm          .49279        .22020       -.18743E-07    .18878E-03
  18  norm          6.6335        3.6267       -.94363E-07    .33466E-04
  19  Prefactor     2.2954        4.6585       -.97251E-08   -.98450E-03
  20  Prefactor     .10000E-03    8.0607        .15085E-07** at limit **
  21  Prefactor     53.936        43.987        .11856E-05    .75811E-05
  22  Prefactor     2.0087        5.4753       -.70356E-06   -.65643E-04
  23  Prefactor     13.765        8.1373       -.21730E-07   -.64532E-04
  24  norm          .10000E-03    1.6560        .26758E-07** at limit **
  25  Prefactor     14.952        19.916       -.23274E-05   -.55924E-05
  26  norm          .10000E-03    1.8866       -.44832E-07** at limit **
  27  Prefactor     9.2355        17.042        .33703E-06    .35856E-05
  28  norm          3.9215        4.4416        .32267E-07   -.43202E-03
  29  norm          5.0429        8.4087        .19111E-06   -.47324E-03
  30  Normalizat    .77197        .17070        .16454E-05    .26158E-04
  31  Prefactor     1.1052        .18946        .64766E-07    .97949E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.27329
  Prefactor  = 0.0001
  Prefactor  = 5.54631
  norm       = 0.771443
  Prefactor  = 29.0837
  Prefactor  = 2.22083
  Prefactor  = 0.0001
  Prefactor  = 92.2095
  norm       = 12.8018
  Prefactor  = 0.812233
  Prefactor  = 15.5904
  norm       = 5.09271
  Prefactor  = 0.0001
  Prefactor  = 6.74637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.492786
  norm       = 6.6335
  Prefactor  = 2.29545
  Prefactor  = 0.0001
  Prefactor  = 53.9359
  Prefactor  = 2.00875
  Prefactor  = 13.7651
  norm       = 0.0001
  Prefactor  = 14.9525
  norm       = 0.0001
  Prefactor  = 9.23546
  norm       = 3.92155
  norm       = 5.04286
  Normalizat = 0.771972
  Prefactor  = 1.10516
 **********
 **   18 **HESSE 
 **********

 FCN=   6828.025     FROM HESSE     STATUS=OK           634 CALLS     4806 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2733        12.484        .13673E-02   -1.5406    
   2  Prefactor     .10000E-03    22.840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5463        5.1658        .85301E-03   -1.5237    
   4  norm          .77144        1.1810        .49335E-04   -1.5532    
   5  Prefactor     29.084        22.273        .74291E-04   -1.4629    
   6  Prefactor     2.2208        1.9004        .96294E-04   -1.5410    
   7  Prefactor     .10000E-03    13.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     92.210        65.112        .41850E-04   -1.3784    
   9  norm          12.802        2.0801        .45031E-04   -1.4992    
  10  Prefactor     .81223        3.6047        .29413E-03   -1.5528    
  11  Prefactor     15.590        29.070        .10141E-03   -1.4918    
  12  norm          5.0927        3.1213        .10264E-03   -1.5257    
  13  Prefactor     .10000E-03    2.0982        .11671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7464        2.9151        .83366E-04   -1.5188    
  15  Prefactor     .10000E-03    2.9352        .18453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9861        .11346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .49279        .21924        .24790E-04   -1.5568    
  18  norm          6.6335        3.6227        .11252E-03   -1.5193    
  19  Prefactor     2.2954        6.4011        .13534E-02   -1.5405    
  20  Prefactor     .10000E-03    8.0649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     53.936        44.004        .54616E-04   -1.4238    
  22  Prefactor     2.0087        5.4488        .29225E-03   -1.5425    
  23  Prefactor     13.765        8.1447        .53978E-03   -1.4966    
  24  norm          .10000E-03    1.6800        .10371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.952        19.898        .10357E-03   -1.4934    
  26  norm          .10000E-03    3.9335        .22031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.2355        17.021        .13188E-03   -1.5100    
  28  norm          3.9215        4.5942        .67110E-03   -1.5312    
  29  norm          5.0429        8.8535        .89493E-03   -1.5259    
  30  Normalizat    .77197        .20280        .27669E-03   -1.0112    
  31  Prefactor     1.1052        .22492        .27699E-03   -.89302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50163e-09
Minuit parameter uncertainties:
  1  10.6579
  2  9.57289e-05
  3  5.16624
  4  1.18101
  5  22.2796
  6  1.90043
  7  5.10674e-05
  8  65.1621
  9  2.0801
  10  3.42233
  11  29.0962
  12  3.12138
  13  7.43316e-06
  14  2.91513
  15  3.88651e-06
  16  1.26176e-06
  17  0.219236
  18  3.62286
  19  6.40304
  20  2.49443e-06
  21  44.0303
  22  5.45015
  23  8.14532
  24  3.42232e-06
  25  19.9065
  26  1.57574e-05
  27  17.0295
  28  4.5946
  29  8.85583
  30  0.202999
  31  0.225109
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.093e+00  3.121e+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:  1.105e+00  2.251e-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:  7.720e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.49
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 4.44e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 3.95e-05 +/- 2.42e-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) = 6827.47635811
delta logL = 0.54884276774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6827.31018262
delta logL = 0.715018251191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7677       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2243       1.0000          .0000       5.0000    
     3 'Normalizat'    .79074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1011       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=   6827.310     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      220 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7656        2.1844        .61161E-02   -.23456E-03
   2  alpha         1.2235        .33814        .27168       -.32085E-04
   3  Normalizat    .79045        .16128        .43489E-01    .15032E-03
   4  Prefactor     1.1014        .19115        .62842E-01    .70916E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.76562
  alpha      = 1.2235
  Normalizat = 0.79045
  Prefactor  = 1.10143
 **********
 **   18 **HESSE 
 **********

 FCN=   6827.310     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7656        3.5216        .94522E-04   -1.5375    
   2  alpha         1.2235        .57122        .11373E-01   -.53588    
   3  Normalizat    .79045        .18728        .27386E-03   -1.0042    
   4  Prefactor     1.1014        .22214        .27794E-03   -.89421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46056e-09
Minuit parameter uncertainties:
  1  3.52189
  2  0.578164
  3  0.18743
  4  0.222331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461412': 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) = 6827.31017953
delta logL = 0.715021345944

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  2.766e+00  3.522e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.223e+00  5.782e-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:  1.101e+00  2.223e-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:  7.905e-01  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.01
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.22 +/- 0.58
Photon Flux (Free Index): 1.57e-08 +/- 1.98e-08
Energy Flux (Free Index): 8.42e-05 +/- 7.99e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/461412/cmap_HighResolution_565401601_565660801_4FGL_J1217.9+3007_daily_bin1258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.44e-08', energy_flux2='8.42e-05', photon_flux_error='2.72e-08', dlogl='7.15e-01', energy_flux='3.95e-05', photon_flux2='1.57e-08', job_status='DONE', time_completed='2021-09-05 06:46:00.360460', photon_index_error2='0.58', photon_index2='1.22', ts='19.49', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='7.99e-05', EG='0.77', time_epoch_completed='1630849560.36', return_code='0', job_id='461412', GAL2='1.10', EG2='0.79', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='1.98e-08', ts2='21.01', photon_index='1.85' WHERE bin_id='1258' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:46:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 461412: <4FGL_J1217.9+3007_daily_bin1258> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1258> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 06:30:26 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:30:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 06:30:27 2021
Terminated at Sun Sep  5 06:46:01 2021
Results reported at Sun Sep  5 06:46:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1258 184.476 30.1177 565401601 565660801 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 :                                   889.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

