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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin467
RA = 184.476, Dec = 30.1177
tmin = 360374401, tmax = 360633601
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='456414', job_status='RUN', time_executed='2021-09-05 06:15:55.751756', time_epoch_executed='1630847755.75' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='467'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456414

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456414/ft1_4FGL_J1217.9+3007_daily_bin467.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456414/ft2_4FGL_J1217.9+3007_daily_bin467.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456414/ft1_4FGL_J1217.9+3007_daily_bin467.fits outfile=/scratch/kocevski/456414/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin467.fits ra=184.476 dec=30.1177 rad=12.0 tmin=360374401.0 tmax=360633601.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.73
user 3.12
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456414/ft2_4FGL_J1217.9+3007_daily_bin467.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/456414/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin467.fits evtable="EVENTS" outfile="/scratch/kocevski/456414/ft1_filtered_4FGL_J1217.9+3007_daily_bin467.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.94
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456414/ft1_filtered_4FGL_J1217.9+3007_daily_bin467.fits" evtable="EVENTS" scfile=/scratch/kocevski/456414/ft2_4FGL_J1217.9+3007_daily_bin467.fits sctable="SC_DATA" outfile=/scratch/kocevski/456414/ltcube_360374401_360633601_4FGL_J1217.9+3007_daily_bin467.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/456414/ft2_4FGL_J1217.9+3007_daily_bin467.fits
.....................!
real 13.32
user 12.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456414/ft1_filtered_4FGL_J1217.9+3007_daily_bin467.fits evtable="EVENTS" scfile=/scratch/kocevski/456414/ft2_4FGL_J1217.9+3007_daily_bin467.fits sctable="SC_DATA" expcube=/scratch/kocevski/456414/ltcube_360374401_360633601_4FGL_J1217.9+3007_daily_bin467.fits outfile=/scratch/kocevski/456414/expmap_360374401_360633601_4FGL_J1217.9+3007_daily_bin467.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/456414/ltcube_360374401_360633601_4FGL_J1217.9+3007_daily_bin467.fits
.....................!
real 192.08
user 185.25
sys 5.84

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/456414/ft1_filtered_4FGL_J1217.9+3007_daily_bin467.fits scfile=/scratch/kocevski/456414/ft2_4FGL_J1217.9+3007_daily_bin467.fits outfile=/scratch/kocevski/456414/cmap_360374401_360633601_4FGL_J1217.9+3007_daily_bin467.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456414/ft1_filtered_4FGL_J1217.9+3007_daily_bin467.fits scfile=/scratch/kocevski/456414/ft2_4FGL_J1217.9+3007_daily_bin467.fits outfile=/scratch/kocevski/456414/cmap_HighResolution_360374401_360633601_4FGL_J1217.9+3007_daily_bin467.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .72069       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9720       1.0000         .10000E-03   10000.    
     4 'norm      '    .40709       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9546       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .72886       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9700       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.1443       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4385       1.0000         .10000E-03   10000.    
    11 'Prefactor '    46.687       1.0000         .10000E-03   10000.    
    12 'norm      '    .86387       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2226       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5594       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3041       1.0000         .10000E-03   10000.    
    18 'norm      '    4.6318       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .67987E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.515       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10969E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.861       1.0000         .10000E-03   10000.    
    26 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .17074E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .77713       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0507       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=   5835.851     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4206 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5637        .36761E-06** at limit **
   2  Prefactor     .71154        8.2543       -.23219E-06   -.14322E-03
   3  Prefactor     2.9761        5.9002        .47394E-05   -.46916E-04
   4  norm          .40671        .81626        .30115E-07    .43611E-04
   5  Prefactor     8.9546        14.022        .75066E-06    .12771E-04
   6  Prefactor     .72692        1.3768       -.84231E-07   -.31763E-03
   7  Prefactor     1.9713        54.001       -.29786E-05   -.68016E-05
   8  Prefactor     .10000E-03    13.783       -.12905E-06** at limit **
   9  norm          4.1449        1.3448        .19945E-07    .18114E-03
  10  Prefactor     2.4408        4.3315        .27688E-06    .12775E-04
  11  Prefactor     46.677        28.276        .41228E-06    .23761E-04
  12  norm          .86433        6.0456       -.87146E-06   -.20593E-03
  13  Prefactor     .10000E-03    2.6812       -.14244E-06** at limit **
  14  Prefactor     9.2255        4.4696        .25833E-06    .51159E-03
  15  Prefactor     3.5602        2.5763        .36339E-06    .26518E-03
  16  Prefactor     .10000E-03    2.4814       -.96894E-08** at limit **
  17  norm          1.3042        .32845        .21116E-07    .17352E-03
  18  norm          4.6317        3.1926        .52473E-07   -.15719E-04
  19  Prefactor     .10106E-03    5.7802        .12375E-05** at limit **
  20  Prefactor     .10000E-03    8.9998        .47063E-06** at limit **
  21  Prefactor     44.598        50.169       -.95846E-05   -.10656E-04
  22  Prefactor     .10000E-03    1.9873       -.99569E-07** at limit **
  23  Prefactor     .10000E-03    1.9580        .43241E-08** at limit **
  24  norm          .10000E-03    1.6783        .11351E-06** at limit **
  25  Prefactor     23.844        26.809        .23681E-05    .60578E-04
  26  norm          .10000E-03    1.5678       -.16733E-06** at limit **
  27  Prefactor     .10000E-03    8.2190       -.76947E-06** at limit **
  28  norm          .10000E-03    2.5487        .65032E-07** at limit **
  29  norm          .10000E-03    2.9490       -.79974E-07** at limit **
  30  Normalizat    .77662        .17980       -.19020E-05    .77112E-04
  31  Prefactor     1.0512        .19367        .10412E-05    .35883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.711538
  Prefactor  = 2.9761
  norm       = 0.406708
  Prefactor  = 8.9546
  Prefactor  = 0.726918
  Prefactor  = 1.97132
  Prefactor  = 0.0001
  norm       = 4.1449
  Prefactor  = 2.44079
  Prefactor  = 46.6771
  norm       = 0.864334
  Prefactor  = 0.0001
  Prefactor  = 9.2255
  Prefactor  = 3.56018
  Prefactor  = 0.0001
  norm       = 1.3042
  norm       = 4.63166
  Prefactor  = 0.000101065
  Prefactor  = 0.0001
  Prefactor  = 44.5978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.8442
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.776622
  Prefactor  = 1.05125
 **********
 **   18 **HESSE 
 **********

 FCN=   5835.851     FROM HESSE     STATUS=OK           644 CALLS     4850 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5699        .17593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .71154        25.826        .41485E-02   -1.5539    
   3  Prefactor     2.9761        5.9289        .11776E-02   -1.5363    
   4  norm          .40671        .67580        .94217E-03   -1.5580    
   5  Prefactor     8.9546        13.837        .66970E-03   -1.5109    
   6  Prefactor     .72692        1.1540        .11551E-02   -1.5537    
   7  Prefactor     1.9713        53.690        .29543E-03   -1.5427    
   8  Prefactor     .10000E-03    13.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.1449        1.3425        .48116E-04   -1.5301    
  10  Prefactor     2.4408        4.3051        .19928E-03   -1.5395    
  11  Prefactor     46.677        28.186        .58682E-04   -1.4340    
  12  norm          .86433        5.0230        .26029E-03   -1.5522    
  13  Prefactor     .10000E-03    2.7005        .12215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.2255        4.1108        .81335E-04   -1.5100    
  15  Prefactor     3.5602        2.5302        .92847E-04   -1.5331    
  16  Prefactor     .10000E-03    2.4955        .11748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3042        .32826        .20812E-04   -1.5480    
  18  norm          4.6317        3.1926        .10993E-03   -1.5278    
  19  Prefactor     .10106E-03    10.076        .59778E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.0146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     44.598        49.878        .30045E-03   -1.4371    
  22  Prefactor     .10000E-03    1.9912        .10517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9618        .10438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.6818        .96443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.844        26.252        .82003E-04   -1.4731    
  26  norm          .10000E-03    3.0344        .18630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.2343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.9583        .22924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.9662        .12800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .77662        .20787        .25279E-03   -1.0094    
  31  Prefactor     1.0512        .22736        .26363E-03   -.91040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25292e-08
Minuit parameter uncertainties:
  1  5.53583e-06
  2  8.57685
  3  5.93009
  4  0.675817
  5  13.8415
  6  1.15404
  7  20.5957
  8  3.26923e-06
  9  1.34252
  10  4.3056
  11  28.1939
  12  4.16758
  13  1.38521e-06
  14  4.11094
  15  2.53031
  16  3.95188e-06
  17  0.328259
  18  3.19276
  19  0.00655251
  20  4.47656e-06
  21  49.9245
  22  6.08717e-07
  23  2.65792e-06
  24  2.56051e-06
  25  26.2643
  26  1.49496e-05
  27  1.11382e-05
  28  2.68111e-05
  29  4.4543e-06
  30  0.208079
  31  0.227566
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  8.643e-01  4.168e+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.051e+00  2.276e-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.766e-01  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 184.476 30.118
Photon Flux Upper Limit: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/456414/likelihoodResults_360374401_360633601_4FGL_J1217.9+3007_daily_bin467.txt

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) = 5834.65912858
delta logL = 1.19190373882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5834.59990293
delta logL = 1.25112938967

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1957       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0745       1.0000          .0000       5.0000    
     3 'Normalizat'    .71596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0848       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=   5834.600     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1979        12.647        .10395E-01    .77472E-03
   2  alpha         3.0737        3.8105        .24555        .67198E-04
   3  Normalizat    .71578        .43715E-01    .42503E-01    .30809E-04
   4  Prefactor     1.0850        .51938E-01    .58602E-01   -.67439E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.19787
  alpha      = 3.07369
  Normalizat = 0.715777
  Prefactor  = 1.08499
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.600     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1979        2.4365        .55929E-04   -1.5489    
   2  alpha         3.0737        1.0422        .93582E-02    .23154    
   3  Normalizat    .71578        .19204        .26130E-03   -1.0327    
   4  Prefactor     1.0850        .22708        .25914E-03   -.89948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47731e-08
Minuit parameter uncertainties:
  1  2.43672
  2  1.07706
  3  0.192219
  4  0.227279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456414': 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) = 5834.59990173
delta logL = 1.25113059076

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.198e+00  2.437e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  3.074e+00  1.077e+00  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.085e+00  2.273e-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.158e-01  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 184.476 30.118
Photon Index (Free Index): 3.07 +/- 1.08
Photon Flux (Free Index): 7.57e-08 +/- 5.38e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.22e-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/456414/cmap_HighResolution_360374401_360633601_4FGL_J1217.9+3007_daily_bin467.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.82e-05', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='1.25e+00', photon_flux2='7.57e-08', job_status='DONE', time_completed='2021-09-05 06:31:28.837210', photon_index_error2='1.08', photon_index2='3.07', ts='0.07', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='7.66e-08', energy_flux_error2='1.22e-05', EG='0.78', time_epoch_completed='1630848688.84', return_code='0', job_id='456414', GAL2='1.08', EG2='0.72', return_code2='0', photon_flux_error2='5.38e-08', ts2='2.64', photon_index='1.85' WHERE bin_id='467' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:31:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 456414: <4FGL_J1217.9+3007_daily_bin467> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin467 184.476 30.1177 360374401 360633601 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 :                                   923.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            956 sec.

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

