aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 27 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 = 7530
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1674
RA = 184.476, Dec = 30.1177
tmin = 673228801, tmax = 673488001
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='670176', job_status='RUN', time_executed='2022-05-06 02:50:26.783308', time_epoch_executed='1651830626.78' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670176

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670176/ft1_4FGL_J1217.9+3007_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670176/ft2_4FGL_J1217.9+3007_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670176/ft1_4FGL_J1217.9+3007_daily_bin1674.fits outfile=/scratch/kocevski/670176/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1674.fits ra=184.476 dec=30.1177 rad=12.0 tmin=673228801.0 tmax=673488001.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 2.78
user 2.55
sys 0.21

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

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

Number of photons that the gtmktime cut: 869

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670176/ft1_filtered_4FGL_J1217.9+3007_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/670176/ft2_4FGL_J1217.9+3007_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/670176/ltcube_673228801_673488001_4FGL_J1217.9+3007_daily_bin1674.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/670176/ft2_4FGL_J1217.9+3007_daily_bin1674.fits
.....................!
real 14.82
user 14.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670176/ft1_filtered_4FGL_J1217.9+3007_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670176/ft2_4FGL_J1217.9+3007_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/670176/ltcube_673228801_673488001_4FGL_J1217.9+3007_daily_bin1674.fits outfile=/scratch/kocevski/670176/expmap_673228801_673488001_4FGL_J1217.9+3007_daily_bin1674.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/670176/ltcube_673228801_673488001_4FGL_J1217.9+3007_daily_bin1674.fits
.....................!
real 192.03
user 186.77
sys 4.90

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/670176/ft1_filtered_4FGL_J1217.9+3007_daily_bin1674.fits scfile=/scratch/kocevski/670176/ft2_4FGL_J1217.9+3007_daily_bin1674.fits outfile=/scratch/kocevski/670176/cmap_673228801_673488001_4FGL_J1217.9+3007_daily_bin1674.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670176/ft1_filtered_4FGL_J1217.9+3007_daily_bin1674.fits scfile=/scratch/kocevski/670176/ft2_4FGL_J1217.9+3007_daily_bin1674.fits outfile=/scratch/kocevski/670176/cmap_HighResolution_673228801_673488001_4FGL_J1217.9+3007_daily_bin1674.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.60
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.9034       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3707       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3235       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .73829       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.421       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17499E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.9198       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11418E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0135       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7057       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18744E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1135       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.2440       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8245       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24355E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .25133E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .31254       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1130       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.099       1.0000         .10000E-03   10000.    
    26 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    31.416       1.0000         .10000E-03   10000.    
    29 'norm      '    49.322       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1808       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1001       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=   9565.002     FROM MIGRAD    STATUS=CONVERGED    845 CALLS     4243 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5190       -.81684E-07** at limit **
   2  Prefactor     3.9029        5.1142        .95599E-06   -.11779E-02
   3  Prefactor     .10000E-03    2.6349        .23966E-06** at limit **
   4  norm          1.3695        1.1008        .55203E-07   -.49792E-03
   5  Prefactor     5.3220        14.757       -.30341E-06   -.30285E-04
   6  Prefactor     .73856        1.3999        .88479E-07   -.42418E-03
   7  Prefactor     10.421        24.705       -.38326E-05   -.87152E-04
   8  Prefactor     .10000E-03    111.06        .68641E-05** at limit **
   9  norm          8.9196        1.7521        .18846E-07   -.12587E-03
  10  Prefactor     .10000E-03    4.2144        .69002E-07** at limit **
  11  Prefactor     4.0630        40.019        .63384E-05    .22613E-04
  12  norm          3.7054        2.1898        .85404E-08   -.19031E-04
  13  Prefactor     .10000E-03    3.6743       -.47775E-07** at limit **
  14  Prefactor     .10000E-03    .49935        .12940E-07** at limit **
  15  Prefactor     9.1133        2.9147        .87589E-07   -.66139E-03
  16  Prefactor     .10000E-03    3.8196        .10931E-06** at limit **
  17  norm          .10000E-03    .75340E-01    .15612E-07** at limit **
  18  norm          9.2515        5.3792       -.10281E-06   -.87691E-04
  19  Prefactor     3.8244        7.6684       -.15388E-05   -.13996E-03
  20  Prefactor     .10000E-03    7.0046       -.19708E-06** at limit **
  21  Prefactor     .10000E-03    66.568       -.86706E-06** at limit **
  22  Prefactor     .10000E-03    4.9872        .45062E-07** at limit **
  23  Prefactor     .31506        2.5091        .73558E-07   -.47656E-03
  24  norm          1.1063        2.9227       -.40350E-06   -.49356E-03
  25  Prefactor     12.133        27.735        .51290E-05    .76846E-04
  26  norm          .10000E-03    1.6368        .39026E-07** at limit **
  27  Prefactor     .10000E-03    6.3914       -.75578E-07** at limit **
  28  norm          31.433        12.737        .88104E-06    .13738E-03
  29  norm          49.288        23.977       -.13774E-05    .22330E-04
  30  Normalizat    1.1809        .17028       -.53461E-06   -.59612E-04
  31  Prefactor     1.0999        .18238        .10050E-06   -.91502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.90291
  Prefactor  = 0.0001
  norm       = 1.36951
  Prefactor  = 5.32198
  Prefactor  = 0.738557
  Prefactor  = 10.4211
  Prefactor  = 0.0001
  norm       = 8.91961
  Prefactor  = 0.0001
  Prefactor  = 4.06297
  norm       = 3.70538
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.1133
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.25147
  Prefactor  = 3.82438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.315057
  norm       = 1.1063
  Prefactor  = 12.1333
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 31.4329
  norm       = 49.2879
  Normalizat = 1.18089
  Prefactor  = 1.09989  **********
 **   18 **HESSE 
 **********

 FCN=   9565.002     FROM HESSE     STATUS=OK           638 CALLS     4881 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.9029        8.9221        .10211E-02   -1.5313    
   3  Prefactor     .10000E-03    7.9647        .30251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3695        1.0877        .87688E-04   -1.5474    
   5  Prefactor     5.3220        14.626        .17419E-03   -1.5247    
   6  Prefactor     .73856        1.3662        .15129E-03   -1.5536    
   7  Prefactor     10.421        24.788        .12412E-03   -1.5062    
   8  Prefactor     .10000E-03    111.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.9196        1.7505        .53984E-04   -1.5111    
  10  Prefactor     .10000E-03    4.4081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0630        39.422        .20130E-03   -1.5305    
  12  norm          3.7054        2.1853        .10690E-03   -1.5323    
  13  Prefactor     .10000E-03    19.027        .35433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .50061        .67440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.1133        2.9295        .44284E-03   -1.5104    
  16  Prefactor     .10000E-03    3.8464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .63680        .51858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.2515        5.3662        .13182E-03   -1.5100    
  19  Prefactor     3.8244        7.6601        .20638E-03   -1.5317    
  20  Prefactor     .10000E-03    7.0222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    66.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    41.455        .42120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .31506        6.7390        .30261E-02   -1.5596    
  24  norm          1.1063        2.9072        .26102E-03   -1.5498    
  25  Prefactor     12.133        27.744        .11516E-03   -1.5011    
  26  norm          .10000E-03    3.7643        .24336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.3995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          31.433        12.890        .71486E-04   -1.4586    
  29  norm          49.288        24.278        .57100E-04   -1.4303    
  30  Normalizat    1.1809        .20358        .27149E-03   -.87195    
  31  Prefactor     1.0999        .21977        .32039E-03   -.89470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51267e-09
Minuit parameter uncertainties:
  1  3.27814e-07
  2  8.92509
  3  8.80593e-05
  4  1.08769
  5  14.6361
  6  1.36622
  7  24.8124
  8  0.000457636
  9  1.75051
  10  3.04299e-06
  11  25.3332
  12  2.18535
  13  0.000220248
  14  2.29934e-07
  15  2.92952
  16  6.04049e-06
  17  2.0862e-06
  18  5.36645
  19  7.66211
  20  6.37138e-06
  21  9.86263e-05
  22  0.000146012
  23  2.91412
  24  2.9076
  25  27.7733
  26  7.03925e-06
  27  1.11911e-05
  28  12.8912
  29  24.283
  30  0.20372
  31  0.219952
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  3.705e+00  2.185e+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.100e+00  2.200e-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.181e+00  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.47
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 3.23e-08 +/- 1.90e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 1.69e-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) = 9564.96162725
delta logL = 0.0408281624659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9564.96128313
delta logL = 0.0411722757326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6935       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0101       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1038       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=   9564.961     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      238 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6913        45.118        .52536E-02    .13930E-03
   2  alpha         2.0092        3.3381        .42197        .16991E-04
   3  Normalizat    1.1741        .10718        .61520E-01    .11842E-04
   4  Prefactor     1.1039        .76710E-01    .72282E-01   -.90229E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.69127
  alpha      = 2.0092
  Normalizat = 1.17408
  Prefactor  = 1.10392
 **********
 **   18 **HESSE 
 **********

 FCN=   9564.961     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6913        2.1573        .10453E-03   -1.5324    
   2  alpha         2.0092        .55047        .14620E-01   -.19760    
   3  Normalizat    1.1741        .19075        .27210E-03   -.87408    
   4  Prefactor     1.1039        .21729        .31983E-03   -.89341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.49555e-12
Minuit parameter uncertainties:
  1  2.15731
  2  0.555201
  3  0.19086
  4  0.217467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670176': 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) = 9564.96128054
delta logL = 0.0411748678798

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  3.691e+00  2.157e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.009e+00  5.552e-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.104e+00  2.175e-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.174e+00  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.55
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.01 +/- 0.56
Photon Flux (Free Index): 3.92e-08 +/- 3.37e-08
Energy Flux (Free Index): 2.47e-05 +/- 1.88e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.23e-08', energy_flux2='2.47e-05', photon_flux_error='1.90e-08', dlogl='4.12e-02', energy_flux='2.87e-05', photon_flux2='3.92e-08', job_status='DONE', time_completed='2022-05-06 03:09:09.756026', photon_index_error2='0.56', photon_index2='2.01', ts='7.47', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.18', time_epoch_completed='1651831749.76', return_code='0', job_id='670176', GAL2='1.10', EG2='1.17', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='3.37e-08', ts2='7.55', photon_index='1.85' WHERE bin_id='1674' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:09:09 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 670122: <4FGL_J1217.9+3007_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:07:19 2022
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:49:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:49:32 2022
Terminated at Fri May  6 03:08:16 2022
Results reported at Fri May  6 03:08:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1674 184.476 30.1177 673228801 673488001 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 :                                   1111.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1123 sec.
    Turnaround time :                            10857 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 670176: <4FGL_J1217.9+3007_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:07:22 2022
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:49:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:49:51 2022
Terminated at Fri May  6 03:09:11 2022
Results reported at Fri May  6 03:09:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1674 184.476 30.1177 673228801 673488001 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 :                                   1122.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1159 sec.
    Turnaround time :                            10909 sec.

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

