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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1300
RA = 184.476, Dec = 30.1177
tmin = 576288001, tmax = 576547201
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='461485', job_status='RUN', time_executed='2021-09-05 06:30:58.871530', time_epoch_executed='1630848658.87' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461485

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461485/ft1_4FGL_J1217.9+3007_daily_bin1300.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461485/ft2_4FGL_J1217.9+3007_daily_bin1300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461485/ft1_4FGL_J1217.9+3007_daily_bin1300.fits outfile=/scratch/kocevski/461485/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1300.fits ra=184.476 dec=30.1177 rad=12.0 tmin=576288001.0 tmax=576547201.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.90
user 3.07
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461485/ft2_4FGL_J1217.9+3007_daily_bin1300.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/461485/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1300.fits evtable="EVENTS" outfile="/scratch/kocevski/461485/ft1_filtered_4FGL_J1217.9+3007_daily_bin1300.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/461485/ft1_filtered_4FGL_J1217.9+3007_daily_bin1300.fits" evtable="EVENTS" scfile=/scratch/kocevski/461485/ft2_4FGL_J1217.9+3007_daily_bin1300.fits sctable="SC_DATA" outfile=/scratch/kocevski/461485/ltcube_576288001_576547201_4FGL_J1217.9+3007_daily_bin1300.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/461485/ft2_4FGL_J1217.9+3007_daily_bin1300.fits
.....................!
real 10.44
user 10.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461485/ft1_filtered_4FGL_J1217.9+3007_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/461485/ft2_4FGL_J1217.9+3007_daily_bin1300.fits sctable="SC_DATA" expcube=/scratch/kocevski/461485/ltcube_576288001_576547201_4FGL_J1217.9+3007_daily_bin1300.fits outfile=/scratch/kocevski/461485/expmap_576288001_576547201_4FGL_J1217.9+3007_daily_bin1300.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/461485/ltcube_576288001_576547201_4FGL_J1217.9+3007_daily_bin1300.fits
.....................!
real 190.22
user 185.20
sys 4.46

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461485/ft1_filtered_4FGL_J1217.9+3007_daily_bin1300.fits scfile=/scratch/kocevski/461485/ft2_4FGL_J1217.9+3007_daily_bin1300.fits outfile=/scratch/kocevski/461485/cmap_HighResolution_576288001_576547201_4FGL_J1217.9+3007_daily_bin1300.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9155       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1447       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4923       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12791E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .30787       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5646       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.995       1.0000         .10000E-03   10000.    
    12 'norm      '    7.2682       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8536       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .81841E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    8.9335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.332       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11123E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .60306E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.319       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.5960       1.0000         .10000E-03   10000.    
    29 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .98379       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99454       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=   4668.562     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     4160 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5350       -.30426E-06** at limit **
   2  Prefactor     .10000E-03    3.3993       -.13181E-07** at limit **
   3  Prefactor     5.9149        4.9758        .16317E-05   -.12428E-02
   4  norm          .10000E-03    .34185        .49419E-08** at limit **
   5  Prefactor     9.1500        19.996        .99946E-06    .16909E-04
   6  Prefactor     .10000E-03    .95922        .30063E-07** at limit **
   7  Prefactor     8.4692        19.176        .52575E-05    .39430E-03
   8  Prefactor     .10000E-03    37.825       -.25712E-05** at limit **
   9  norm          .30804        .86245        .44883E-06   -.36356E-03
  10  Prefactor     4.5638        5.6343        .39378E-06   -.12771E-03
  11  Prefactor     36.011        29.484        .48684E-06    .93750E-04
  12  norm          7.2680        4.0556        .97334E-07    .15622E-05
  13  Prefactor     .10000E-03    6.4088        .33791E-06** at limit **
  14  Prefactor     3.8541        3.0373       -.24198E-07   -.91358E-04
  15  Prefactor     .10000E-03    .97906       -.89618E-08** at limit **
  16  Prefactor     .10000E-03    3.0920       -.72052E-07** at limit **
  17  norm          .81847E-01    .19919        .10731E-06    .10827E-03
  18  norm          8.9328        5.9165        .74190E-06   -.59621E-03
  19  Prefactor     12.332        11.265        .19655E-06    .16985E-06
  20  Prefactor     .10000E-03    7.0236        .18113E-07** at limit **
  21  Prefactor     .10000E-03    33.946        .19972E-05** at limit **
  22  Prefactor     .10000E-03    2.6089        .18509E-08** at limit **
  23  Prefactor     .10000E-03    2.9807        .34337E-07** at limit **
  24  norm          .10000E-03    4.5662        .80690E-07** at limit **
  25  Prefactor     17.445        39.396        .88600E-06    .58645E-04
  26  norm          .10000E-03    1.9204        .64564E-08** at limit **
  27  Prefactor     .10000E-03    11.662        .10558E-06** at limit **
  28  norm          2.5960        4.5545        .18578E-06   -.90477E-04
  29  norm          .10000E-03    5.2447       -.84629E-07** at limit **
  30  Normalizat    .98397        .20564       -.29728E-05   -.79939E-05
  31  Prefactor     .99440        .22292        .62421E-06   -.14770E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.91495
  norm       = 0.0001
  Prefactor  = 9.15005
  Prefactor  = 0.0001
  Prefactor  = 8.46918
  Prefactor  = 0.000100002
  norm       = 0.308039
  Prefactor  = 4.56383
  Prefactor  = 36.011
  norm       = 7.26805
  Prefactor  = 0.0001
  Prefactor  = 3.8541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.081847
  norm       = 8.93277
  Prefactor  = 12.3319
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 17.4453
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.59599
  norm       = 0.0001
  Normalizat = 0.983967
  Prefactor  = 0.994396
 **********
 **   18 **HESSE 
 **********

 FCN=   4668.562     FROM HESSE     STATUS=OK           624 CALLS     4784 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5612        .17065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.4020        .12303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9149        5.3046        .71210E-03   -1.5222    
   4  norm          .10000E-03    .35278        .78004E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1500        19.875        .13253E-03   -1.5103    
   6  Prefactor     .10000E-03    .98580        .13046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.4692        20.618        .13756E-03   -1.5126    
   8  Prefactor     .10000E-03    38.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .30804        .79492        .10088E-02   -1.5597    
  10  Prefactor     4.5638        5.6254        .17069E-03   -1.5281    
  11  Prefactor     36.011        29.471        .66798E-04   -1.4507    
  12  norm          7.2680        4.0591        .91450E-04   -1.5169    
  13  Prefactor     .10000E-03    6.4985        .16899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8541        3.0433        .94437E-04   -1.5315    
  15  Prefactor     .10000E-03    .98829        .65937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0989        .11727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .81847E-01    .17895        .44916E-03   -1.5651    
  18  norm          8.9328        5.9262        .64607E-03   -1.5110    
  19  Prefactor     12.332        11.258        .11407E-03   -1.5005    
  20  Prefactor     .10000E-03    7.0256        .17686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.6131        .10778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9901        .11519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    19.775        .23971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.445        34.549        .96239E-04   -1.4872    
  26  norm          .10000E-03    1.9296        .92466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.5960        4.4910        .17628E-03   -1.5386    
  29  norm          .10000E-03    5.2660        .15205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .98397        .23884        .23234E-03   -.93569    
  31  Prefactor     .99440        .26224        .27218E-03   -.92917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00387e-09
Minuit parameter uncertainties:
  1  2.80256e-05
  2  3.06764e-06
  3  5.305
  4  8.26077e-07
  5  19.8897
  6  9.11541e-07
  7  20.6351
  8  0.000554851
  9  0.794945
  10  5.62606
  11  29.4827
  12  4.05922
  13  3.45883e-05
  14  3.04346
  15  3.02885e-07
  16  2.73241e-06
  17  0.178946
  18  5.92656
  19  11.2602
  20  4.20191e-06
  21  0.000442732
  22  1.6511e-06
  23  3.42182e-06
  24  0.0002557
  25  34.5884
  26  3.31359e-06
  27  1.55011e-05
  28  4.49156
  29  7.94791e-07
  30  0.239095
  31  0.262578
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  7.268e+00  4.059e+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.944e-01  2.626e-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:  9.840e-01  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.79
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 6.33e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 5.64e-05 +/- 3.15e-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) = 4668.54143791
delta logL = 0.0203359171246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4668.54009693
delta logL = 0.0216768959754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1017       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9369       1.0000          .0000       5.0000    
     3 'Normalizat'    .97860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99757       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=   4668.540     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      199 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1017        87.859        .37632E-02    .56308E-03
   2  alpha         1.9369        3.2461        .23213        .46233E-04
   3  Normalizat    .97859        .16199        .45898E-01   -.39178E-03
   4  Prefactor     .99758        .14886        .46237E-01   -.23751E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.10168
  alpha      = 1.9369
  Normalizat = 0.978588
  Prefactor  = 0.997582
 **********
 **   18 **HESSE 
 **********

 FCN=   4668.540     FROM HESSE     STATUS=OK            29 CALLS      228 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1017        3.7853        .88740E-04   -1.5175    
   2  alpha         1.9369        .40229        .91429E-02   -.22719    
   3  Normalizat    .97859        .22019        .23284E-03   -.93751    
   4  Prefactor     .99758        .25869        .27175E-03   -.92810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06552e-10
Minuit parameter uncertainties:
  1  3.78547
  2  0.404139
  3  0.220393
  4  0.25901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461485': 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) = 4668.54009693
delta logL = 0.0216768969403

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  7.102e+00  3.785e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.937e+00  4.041e-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.976e-01  2.590e-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:  9.786e-01  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.97
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.94 +/- 0.40
Photon Flux (Free Index): 6.86e-08 +/- 4.20e-08
Energy Flux (Free Index): 5.03e-05 +/- 3.77e-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/461485/cmap_HighResolution_576288001_576547201_4FGL_J1217.9+3007_daily_bin1300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.33e-08', energy_flux2='5.03e-05', photon_flux_error='3.53e-08', dlogl='2.17e-02', energy_flux='5.64e-05', photon_flux2='6.86e-08', job_status='DONE', time_completed='2021-09-05 06:42:33.055333', photon_index_error2='0.40', photon_index2='1.94', ts='7.79', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.77e-05', EG='0.98', time_epoch_completed='1630849353.06', return_code='0', job_id='461485', GAL2='1.00', EG2='0.98', return_code2='0', energy_flux_error='3.15e-05', photon_flux_error2='4.20e-08', ts2='7.97', photon_index='1.85' WHERE bin_id='1300' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:42:33 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1300 184.476 30.1177 576288001 576547201 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 :                                   686.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             332.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            724 sec.

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

