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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin967
RA = 184.476, Dec = 30.1177
tmin = 489974401, tmax = 490233601
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='460062', job_status='RUN', time_executed='2021-09-05 06:25:44.939177', time_epoch_executed='1630848344.94' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='967'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460062

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460062/ft1_4FGL_J1217.9+3007_daily_bin967.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460062/ft2_4FGL_J1217.9+3007_daily_bin967.fits


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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460062/ft1_filtered_4FGL_J1217.9+3007_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/460062/ft2_4FGL_J1217.9+3007_daily_bin967.fits sctable="SC_DATA" expcube=/scratch/kocevski/460062/ltcube_489974401_490233601_4FGL_J1217.9+3007_daily_bin967.fits outfile=/scratch/kocevski/460062/expmap_489974401_490233601_4FGL_J1217.9+3007_daily_bin967.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/460062/ltcube_489974401_490233601_4FGL_J1217.9+3007_daily_bin967.fits
.....................!
real 190.39
user 185.24
sys 4.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/460062/ft1_filtered_4FGL_J1217.9+3007_daily_bin967.fits scfile=/scratch/kocevski/460062/ft2_4FGL_J1217.9+3007_daily_bin967.fits outfile=/scratch/kocevski/460062/cmap_489974401_490233601_4FGL_J1217.9+3007_daily_bin967.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460062/ft1_filtered_4FGL_J1217.9+3007_daily_bin967.fits scfile=/scratch/kocevski/460062/ft2_4FGL_J1217.9+3007_daily_bin967.fits outfile=/scratch/kocevski/460062/cmap_HighResolution_489974401_490233601_4FGL_J1217.9+3007_daily_bin967.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=184.476 yref=30.1177 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4388       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8450       1.0000         .10000E-03   10000.    
     4 'norm      '    .10388E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7518       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.629       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3024       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.472       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.516       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2677       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9683       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7218       1.0000         .10000E-03   10000.    
    17 'norm      '    .86529       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.397       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .85619       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24888E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .45543E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .28330E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    10.525       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.8014       1.0000         .10000E-03   10000.    
    28 'norm      '    1.5224       1.0000         .10000E-03   10000.    
    29 'norm      '    .39677E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .65708       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2675       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=   5651.509     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     4248 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.943       -.95193E-07** at limit **
   2  Prefactor     2.4329        13.892        .56520E-06    .78032E-04
   3  Prefactor     4.8457        5.0707       -.18670E-05    .27067E-03
   4  norm          .10000E-03    .83730       -.21365E-06** at limit **
   5  Prefactor     .10000E-03    10.337        .36245E-06** at limit **
   6  Prefactor     .10000E-03    1.0734        .29609E-06** at limit **
   7  Prefactor     8.7558        22.466        .84780E-08    .30762E-04
   8  Prefactor     50.661        46.288        .17606E-05   -.99703E-05
   9  norm          3.3018        1.5078       -.48186E-07   -.14375E-04
  10  Prefactor     .10000E-03    4.2400        .53031E-06** at limit **
  11  Prefactor     .10000E-03    21.829        .88526E-06** at limit **
  12  norm          21.471        6.1663        .83574E-06    .49933E-04
  13  Prefactor     12.514        8.7439       -.11435E-06    .28084E-04
  14  Prefactor     1.2677        3.2868       -.21315E-05   -.53811E-03
  15  Prefactor     3.9678        2.5787        .96020E-08    .39779E-03
  16  Prefactor     4.7205        6.4492        .97498E-07   -.57800E-04
  17  norm          .86513        .34327       -.31517E-07   -.63674E-03
  18  norm          .10000E-03    3.1871       -.13498E-06** at limit **
  19  Prefactor     11.394        10.242        .11952E-06    .90918E-04
  20  Prefactor     .84723        17.861        .22016E-05   -.89283E-05
  21  Prefactor     .10001E-03    288.91       -.29956E-08** at limit **
  22  Prefactor     .10024E-03    50.822        .16494E-04** at limit **
  23  Prefactor     .10000E-03    9.7348        .84358E-06** at limit **
  24  norm          .10005E-03    9.2309        .63018E-05** at limit **
  25  Prefactor     .10000E-03    15.509       -.70103E-07** at limit **
  26  norm          10.523        6.4435        .30149E-06   -.34036E-03
  27  Prefactor     5.7983        18.510       -.81025E-06   -.14807E-04
  28  norm          1.5216        2.4981        .27766E-07    .34790E-03
  29  norm          .10002E-03    10.341       -.55489E-05** at limit **
  30  Normalizat    .65726        .19190        .91950E-06    .82194E-04
  31  Prefactor     1.2676        .21159       -.40565E-06    .10464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 2.43291
  Prefactor  = 4.84569
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.75578
  Prefactor  = 50.6607
  norm       = 3.30184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.4705
  Prefactor  = 12.5145
  Prefactor  = 1.26774
  Prefactor  = 3.96776
  Prefactor  = 4.72054
  norm       = 0.86513
  norm       = 0.0001
  Prefactor  = 11.3943
  Prefactor  = 0.84723
  Prefactor  = 0.000100012
  Prefactor  = 0.000100238
  Prefactor  = 0.0001
  norm       = 0.000100047
  Prefactor  = 0.0001
  norm       = 10.5225
  Prefactor  = 5.79833
  norm       = 1.52163
  norm       = 0.000100019
  Normalizat = 0.657259
  Prefactor  = 1.26755
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.509     FROM HESSE     STATUS=OK           644 CALLS     4892 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4329        13.788        .26200E-03   -1.5396    
   3  Prefactor     4.8457        5.0695        .82266E-03   -1.5268    
   4  norm          .10000E-03    1.5278        .13072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1089        .15203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.7558        22.463        .13549E-03   -1.5116    
   8  Prefactor     50.661        45.878        .28181E-03   -1.4283    
   9  norm          3.3018        1.5044        .59192E-04   -1.5345    
  10  Prefactor     .10000E-03    4.3741        .30223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.471        6.1197        .81326E-04   -1.4781    
  13  Prefactor     12.514        8.7430        .11322E-03   -1.5000    
  14  Prefactor     1.2677        3.2421        .18303E-03   -1.5483    
  15  Prefactor     3.9678        2.5705        .90983E-04   -1.5310    
  16  Prefactor     4.7205        6.4227        .18518E-03   -1.5273    
  17  norm          .86513        .34129        .25639E-04   -1.5522    
  18  norm          .10000E-03    3.2305        .13085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.394        10.234        .11867E-03   -1.5033    
  20  Prefactor     .84723        126.11        .58870E-02   -1.5524    
  21  Prefactor     .10001E-03    291.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10024E-03    94.891        .40932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.9184        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10005E-03    17.444        .22711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10.523        6.3659        .12350E-03   -1.5059    
  27  Prefactor     5.7983        18.408        .16675E-03   -1.5226    
  28  norm          1.5216        2.5487        .12994E-03   -1.5461    
  29  norm          .10002E-03    5.9290        .54172E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .65726        .22397        .29769E-03   -1.0561    
  31  Prefactor     1.2676        .25132        .25903E-03   -.84277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38641e-08
Minuit parameter uncertainties:
  1  0.000265863
  2  11.5872
  3  5.06998
  4  2.40179e-05
  5  2.22751e-05
  6  1.00155e-05
  7  22.4842
  8  45.9104
  9  1.5044
  10  3.48767e-05
  11  0.000124161
  12  6.11991
  13  8.74393
  14  3.24256
  15  2.57061
  16  6.42365
  17  0.341289
  18  9.33373e-06
  19  10.2351
  20  20.7161
  21  0.0038087
  22  0.0095159
  23  0.000120884
  24  0.00181753
  25  0.000126544
  26  6.36634
  27  18.4257
  28  2.5489
  29  0.000672386
  30  0.224284
  31  0.251561
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  2.147e+01  6.120e+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.268e+00  2.516e-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:  6.573e-01  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 54.75
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.87e-07 +/- 5.33e-08
Energy Flux (Fixed Index): 1.66e-04 +/- 4.75e-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) = 5651.49411573
delta logL = 0.0144651161099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5651.49186325
delta logL = 0.0167175956594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.242       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8897       1.0000          .0000       5.0000    
     3 'Normalizat'    .65207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2705       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=   5651.492     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.242        6.8655        .21726E-02   -.39512E-02
   2  alpha         1.8899        .24707        .12621        .28605E-04
   3  Normalizat    .65210        .18159        .67496E-01    .23998E-04
   4  Prefactor     1.2704        .21146        .58508E-01    .29635E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 21.2418
  alpha      = 1.88988
  Normalizat = 0.652104
  Prefactor  = 1.2704
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.492     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.242        5.3276        .80310E-04   -1.4786    
   2  alpha         1.8899        .19676        .54267E-02   -.24654    
   3  Normalizat    .65210        .21443        .29869E-03   -1.0582    
   4  Prefactor     1.2704        .25078        .25872E-03   -.84192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44381e-09
Minuit parameter uncertainties:
  1  5.32777
  2  0.196982
  3  0.214708
  4  0.251014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460062': 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) = 5651.49186278
delta logL = 0.0167180663366

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  2.124e+01  5.328e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.890e+00  1.970e-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.270e+00  2.510e-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:  6.521e-01  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 55.55
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.89 +/- 0.20
Photon Flux (Free Index): 1.93e-07 +/- 5.73e-08
Energy Flux (Free Index): 1.58e-04 +/- 5.93e-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/460062/cmap_HighResolution_489974401_490233601_4FGL_J1217.9+3007_daily_bin967.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.87e-07', energy_flux2='1.58e-04', photon_flux_error='5.33e-08', dlogl='1.67e-02', energy_flux='1.66e-04', photon_flux2='1.93e-07', job_status='DONE', time_completed='2021-09-05 06:38:44.760909', photon_index_error2='0.20', photon_index2='1.89', ts='54.75', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='5.93e-05', EG='0.66', time_epoch_completed='1630849124.76', return_code='0', job_id='460062', GAL2='1.27', EG2='0.65', return_code2='0', energy_flux_error='4.75e-05', photon_flux_error2='5.73e-08', ts2='55.55', photon_index='1.85' WHERE bin_id='967' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:38:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 460062: <4FGL_J1217.9+3007_daily_bin967> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin967 184.476 30.1177 489974401 490233601 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 :                                   772.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

