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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin846
RA = 184.476, Dec = 30.1177
tmin = 458611201, tmax = 458870401
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='458362', job_status='RUN', time_executed='2021-09-05 06:21:02.563108', time_epoch_executed='1630848062.56' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='846'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458362/ft1_4FGL_J1217.9+3007_daily_bin846.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458362/ft2_4FGL_J1217.9+3007_daily_bin846.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458362/ft1_4FGL_J1217.9+3007_daily_bin846.fits outfile=/scratch/kocevski/458362/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin846.fits ra=184.476 dec=30.1177 rad=12.0 tmin=458611201.0 tmax=458870401.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.59
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/458362/ft2_4FGL_J1217.9+3007_daily_bin846.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/458362/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin846.fits evtable="EVENTS" outfile="/scratch/kocevski/458362/ft1_filtered_4FGL_J1217.9+3007_daily_bin846.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.48
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458362/ft1_filtered_4FGL_J1217.9+3007_daily_bin846.fits evtable="EVENTS" scfile=/scratch/kocevski/458362/ft2_4FGL_J1217.9+3007_daily_bin846.fits sctable="SC_DATA" expcube=/scratch/kocevski/458362/ltcube_458611201_458870401_4FGL_J1217.9+3007_daily_bin846.fits outfile=/scratch/kocevski/458362/expmap_458611201_458870401_4FGL_J1217.9+3007_daily_bin846.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/458362/ltcube_458611201_458870401_4FGL_J1217.9+3007_daily_bin846.fits
.....................!
real 190.69
user 185.92
sys 4.37

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/458362/ft1_filtered_4FGL_J1217.9+3007_daily_bin846.fits scfile=/scratch/kocevski/458362/ft2_4FGL_J1217.9+3007_daily_bin846.fits outfile=/scratch/kocevski/458362/cmap_458611201_458870401_4FGL_J1217.9+3007_daily_bin846.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458362/ft1_filtered_4FGL_J1217.9+3007_daily_bin846.fits scfile=/scratch/kocevski/458362/ft2_4FGL_J1217.9+3007_daily_bin846.fits outfile=/scratch/kocevski/458362/cmap_HighResolution_458611201_458870401_4FGL_J1217.9+3007_daily_bin846.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.477       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0403       1.0000         .10000E-03   10000.    
     4 'norm      '    2.6515       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.455       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .90221       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.480       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2630       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8613       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.258       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5495       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.643       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8905       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2656       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4770       1.0000         .10000E-03   10000.    
    17 'norm      '    .63426       1.0000         .10000E-03   10000.    
    18 'norm      '    30.536       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1466       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.535       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.9370       1.0000         .10000E-03   10000.    
    24 'norm      '    1.6863       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.3891       1.0000         .10000E-03   10000.    
    26 'norm      '    .19937E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.807       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    12.785       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1780       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93160       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=   7052.706     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4247 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.304        .82573E-07** at limit **
   2  Prefactor     34.474        18.166       -.63527E-06    .26857E-05
   3  Prefactor     2.0401        6.4800        .10068E-04   -.64116E-04
   4  norm          2.6507        2.3428        .94547E-06   -.32288E-04
   5  Prefactor     40.456        26.037        .54368E-06    .93839E-04
   6  Prefactor     .90122        1.7132       -.21480E-06   -.94254E-03
   7  Prefactor     .10000E-03    47.418        .89803E-06** at limit **
   8  Prefactor     24.573        89.762       -.22056E-04   -.18790E-04
   9  norm          1.2631        1.5320        .21230E-06    .18323E-03
  10  Prefactor     6.8617        4.5106        .11785E-06    .88484E-04
  11  Prefactor     24.270        54.938       -.36044E-05   -.19244E-04
  12  norm          4.5494        3.4026        .29681E-06   -.38525E-04
  13  Prefactor     13.642        11.647        .59035E-06    .19380E-04
  14  Prefactor     1.8905        2.4958       -.50949E-07    .13143E-03
  15  Prefactor     7.2655        3.2059        .13197E-07    .79462E-04
  16  Prefactor     3.4784        6.7808        .35089E-05    .49516E-05
  17  norm          .63425        .27004        .17293E-07    .39478E-03
  18  norm          30.535        8.5958       -.35230E-06    .47550E-04
  19  Prefactor     5.1458        6.1586        .55960E-07    .84561E-05
  20  Prefactor     .10000E-03    5.9348       -.23013E-07** at limit **
  21  Prefactor     .10000E-03    22.822       -.23496E-06** at limit **
  22  Prefactor     14.534        10.566        .33603E-06    .56482E-04
  23  Prefactor     7.9359        6.4609        .95780E-08   -.83156E-05
  24  norm          1.6864        5.5103        .55707E-06   -.94851E-04
  25  Prefactor     7.3844        42.727        .20555E-05    .79412E-05
  26  norm          .10000E-03    2.6349        .37291E-06** at limit **
  27  Prefactor     19.807        30.161        .33041E-06   -.30585E-05
  28  norm          .10000E-03    3.7012       -.32207E-06** at limit **
  29  norm          12.786        7.3567       -.36219E-07    .17252E-04
  30  Normalizat    1.1782        .21019       -.11673E-05    .73987E-04
  31  Prefactor     .93136        .21555       -.92186E-06    .39235E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 34.4744
  Prefactor  = 2.04007
  norm       = 2.6507
  Prefactor  = 40.4556
  Prefactor  = 0.901224
  Prefactor  = 0.0001
  Prefactor  = 24.5728
  norm       = 1.26308
  Prefactor  = 6.86174
  Prefactor  = 24.27
  norm       = 4.54939
  Prefactor  = 13.6416
  Prefactor  = 1.89053
  Prefactor  = 7.26553
  Prefactor  = 3.47838
  norm       = 0.634249
  norm       = 30.5348
  Prefactor  = 5.14582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5336
  Prefactor  = 7.93594
  norm       = 1.68644
  Prefactor  = 7.38439
  norm       = 0.0001
  Prefactor  = 19.8067
  norm       = 0.0001
  norm       = 12.7858
  Normalizat = 1.17822
  Prefactor  = 0.931365
 **********
 **   18 **HESSE 
 **********

 FCN=   7052.706     FROM HESSE     STATUS=OK           642 CALLS     4889 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.474        18.170        .68248E-04   -1.4533    
   3  Prefactor     2.0401        6.4849        .14476E-02   -1.5422    
   4  norm          2.6507        2.3412        .96251E-04   -1.5382    
   5  Prefactor     40.456        25.545        .63021E-04   -1.4435    
   6  Prefactor     .90122        1.4386        .14019E-02   -1.5518    
   7  Prefactor     .10000E-03    47.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.573        89.676        .80961E-04   -1.4716    
   9  norm          1.2631        1.4996        .10464E-03   -1.5483    
  10  Prefactor     6.8617        4.5057        .13860E-03   -1.5184    
  11  Prefactor     24.270        55.423        .81330E-04   -1.4722    
  12  norm          4.5494        3.4386        .11622E-03   -1.5281    
  13  Prefactor     13.642        11.630        .10844E-03   -1.4969    
  14  Prefactor     1.8905        2.5009        .13299E-03   -1.5433    
  15  Prefactor     7.2655        3.1991        .93137E-04   -1.5169    
  16  Prefactor     3.4784        6.7588        .10843E-02   -1.5335    
  17  norm          .63425        .26805        .27082E-04   -1.5549    
  18  norm          30.535        8.5819        .72507E-04   -1.4602    
  19  Prefactor     5.1458        6.1553        .17721E-03   -1.5254    
  20  Prefactor     .10000E-03    5.9360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.534        10.528        .10506E-03   -1.4945    
  23  Prefactor     7.9359        6.4536        .14232E-03   -1.5144    
  24  norm          1.6864        5.2903        .28727E-03   -1.5448    
  25  Prefactor     7.3844        39.961        .14755E-03   -1.5164    
  26  norm          .10000E-03    8.1646        .26328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     19.807        30.127        .89995E-04   -1.4818    
  28  norm          .10000E-03    3.7456        .15709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          12.786        7.3336        .11203E-03   -1.4993    
  30  Normalizat    1.1782        .25287        .27730E-03   -.87278    
  31  Prefactor     .93136        .25419        .34132E-03   -.95054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61522e-10
Minuit parameter uncertainties:
  1  1.79749e-05
  2  18.1731
  3  6.48713
  4  2.34124
  5  25.5516
  6  1.43869
  7  0.000159203
  8  90.1737
  9  1.49969
  10  4.50591
  11  55.5405
  12  3.43878
  13  11.6317
  14  2.50102
  15  3.19916
  16  6.76031
  17  0.268047
  18  8.58224
  19  6.15603
  20  4.34777e-06
  21  2.944e-05
  22  10.5298
  23  6.45414
  24  5.29177
  25  34.3916
  26  2.23596e-05
  27  30.1504
  28  3.25763e-05
  29  7.33415
  30  0.253132
  31  0.254515
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  4.549e+00  3.439e+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:  9.314e-01  2.545e-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.178e+00  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.26
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 3.96e-08 +/- 2.99e-08
Energy Flux (Fixed Index): 3.53e-05 +/- 2.67e-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) = 7052.62625276
delta logL = 0.0795140574173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7052.62186648
delta logL = 0.0839003338069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2744       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6579       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92886       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=   7052.622     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      211 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2744        3.3116        .48718E-02   -.11423E-02
   2  alpha         1.6579        .43158        .34809       -.26673E-04
   3  Normalizat    1.1855        .19034        .62542E-01    .81634E-05
   4  Prefactor     .92886        .21140        .77242E-01    .20574E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.27445
  alpha      = 1.65794
  Normalizat = 1.18548
  Prefactor  = 0.92886
 **********
 **   18 **HESSE 
 **********

 FCN=   7052.622     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2744        3.1466        .11654E-03   -1.5294    
   2  alpha         1.6579        .46964        .13358E-01   -.34354    
   3  Normalizat    1.1855        .22277        .27663E-03   -.87053    
   4  Prefactor     .92886        .24773        .34184E-03   -.95140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55064e-10
Minuit parameter uncertainties:
  1  3.14672
  2  0.47281
  3  0.222952
  4  0.248031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458362': 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) = 7052.62186648
delta logL = 0.0839003367719

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  4.274e+00  3.147e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.658e+00  4.728e-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:  9.289e-01  2.480e-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.185e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.46
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.66 +/- 0.47
Photon Flux (Free Index): 3.01e-08 +/- 2.96e-08
Energy Flux (Free Index): 4.50e-05 +/- 4.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/458362/cmap_HighResolution_458611201_458870401_4FGL_J1217.9+3007_daily_bin846.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.96e-08', energy_flux2='4.50e-05', photon_flux_error='2.99e-08', dlogl='8.39e-02', energy_flux='3.53e-05', photon_flux2='3.01e-08', job_status='DONE', time_completed='2021-09-05 06:35:48.782874', photon_index_error2='0.47', photon_index2='1.66', ts='7.26', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='4.20e-05', EG='1.18', time_epoch_completed='1630848948.78', return_code='0', job_id='458362', GAL2='0.93', EG2='1.19', return_code2='0', energy_flux_error='2.67e-05', photon_flux_error2='2.96e-08', ts2='7.46', photon_index='1.85' WHERE bin_id='846' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:35:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 458362: <4FGL_J1217.9+3007_daily_bin846> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin846> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 06:20:28 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:20:30 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:20:30 2021
Terminated at Sun Sep  5 06:35:49 2021
Results reported at Sun Sep  5 06:35:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin846 184.476 30.1177 458611201 458870401 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 :                                   882.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

