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 26 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1711
RA = 185.046, Dec = 34.5383
tmin = 682819201, tmax = 683078401
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='117631', job_status='RUN', time_executed='2022-09-16 16:42:15.272242', time_epoch_executed='1663371735.27' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117631

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117631/ft1_4FGL_J1220.1+3432_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117631/ft2_4FGL_J1220.1+3432_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117631/ft1_4FGL_J1220.1+3432_daily_bin1711.fits outfile=/scratch/kocevski/117631/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1711.fits ra=185.046 dec=34.5383 rad=12.0 tmin=682819201.0 tmax=683078401.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 4.66
user 4.35
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/117631/ft2_4FGL_J1220.1+3432_daily_bin1711.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117631/ft2_4FGL_J1220.1+3432_daily_bin1711.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/117631/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1711.fits evtable="EVENTS" outfile="/scratch/kocevski/117631/ft1_filtered_4FGL_J1220.1+3432_daily_bin1711.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.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 572

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117631/ft1_filtered_4FGL_J1220.1+3432_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/117631/ft2_4FGL_J1220.1+3432_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/117631/ltcube_682819201_683078401_4FGL_J1220.1+3432_daily_bin1711.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/117631/ft2_4FGL_J1220.1+3432_daily_bin1711.fits
.....................!
real 14.60
user 14.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117631/ft1_filtered_4FGL_J1220.1+3432_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/117631/ft2_4FGL_J1220.1+3432_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/117631/ltcube_682819201_683078401_4FGL_J1220.1+3432_daily_bin1711.fits outfile=/scratch/kocevski/117631/expmap_682819201_683078401_4FGL_J1220.1+3432_daily_bin1711.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/117631/ltcube_682819201_683078401_4FGL_J1220.1+3432_daily_bin1711.fits
.....................!
real 193.74
user 186.12
sys 6.26

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1220.1+3432 @ 185.046 34.5383

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/117631/ft1_filtered_4FGL_J1220.1+3432_daily_bin1711.fits scfile=/scratch/kocevski/117631/ft2_4FGL_J1220.1+3432_daily_bin1711.fits outfile=/scratch/kocevski/117631/cmap_682819201_683078401_4FGL_J1220.1+3432_daily_bin1711.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=185.046 yref=34.5383 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117631/ft1_filtered_4FGL_J1220.1+3432_daily_bin1711.fits scfile=/scratch/kocevski/117631/ft2_4FGL_J1220.1+3432_daily_bin1711.fits outfile=/scratch/kocevski/117631/cmap_HighResolution_682819201_683078401_4FGL_J1220.1+3432_daily_bin1711.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=185.046 yref=34.5383 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.58
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117631/ft1_filtered_4FGL_J1220.1+3432_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/117631/ft2_4FGL_J1220.1+3432_daily_bin1711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117631/Model_4FGL_J1220.1+3432_daily_bin1711.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/117631/ft1_filtered_4FGL_J1220.1+3432_daily_bin1711.fits.....................!
real 56.63
user 54.27
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/117631/ft1_filtered_4FGL_J1220.1+3432_daily_bin1711.fits', '/scratch/kocevski/117631/ft2_4FGL_J1220.1+3432_daily_bin1711.fits', expMap='/scratch/kocevski/117631/expmap_682819201_683078401_4FGL_J1220.1+3432_daily_bin1711.fits', expCube='/scratch/kocevski/117631/ltcube_682819201_683078401_4FGL_J1220.1+3432_daily_bin1711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/117631/Model_4FGL_J1220.1+3432_daily_bin1711.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1220.1+3432'

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.941e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/117631/ft1_filtered_4FGL_J1220.1+3432_daily_bin1711.fits
Spacecraft file(s): /scratch/kocevski/117631/ft2_4FGL_J1220.1+3432_daily_bin1711.fits
Exposure map: /scratch/kocevski/117631/expmap_682819201_683078401_4FGL_J1220.1+3432_daily_bin1711.fits
Exposure cube: /scratch/kocevski/117631/ltcube_682819201_683078401_4FGL_J1220.1+3432_daily_bin1711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/117631/Model_4FGL_J1220.1+3432_daily_bin1711.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) = 6245.95218683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4296       1.0000          .0000       .10000E+07
     2 'Prefactor '    .87442E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    15.735       1.0000          .0000       .10000E+07
     4 'norm      '    .16409E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.1759       1.0000          .0000       .10000E+07
     6 'Prefactor '    .43427E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.3088       1.0000          .0000       .10000E+07
     8 'norm      '    2.7537       1.0000          .0000       .10000E+07
     9 'Prefactor '    .28136E-02   1.0000          .0000       .10000E+07
    10 'norm      '    3.6425       1.0000          .0000       .10000E+07
    11 'Prefactor '    .24064E-03   1.0000          .0000       .10000E+07
    12 'norm      '    27.633       1.0000          .0000       .10000E+07
    13 'norm      '    9.5853       1.0000          .0000       .10000E+07
    14 'Prefactor '    .15220E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.4576       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.1274       1.0000          .0000       .10000E+07
    17 'Prefactor '    .18371E-03   1.0000          .0000       .10000E+07
    18 'norm      '    2.1117       1.0000          .0000       .10000E+07
    19 'Prefactor '    .36988E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    18.254       1.0000          .0000       .10000E+07
    21 'Prefactor '    .14121E-03   1.0000          .0000       .10000E+07
    22 'norm      '    1.4089       1.0000          .0000       .10000E+07
    23 'Prefactor '    .28737E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    11.686       1.0000          .0000       .10000E+07
    25 'norm      '    .20523E-02   1.0000          .0000       .10000E+07
    26 'norm      '    14.405       1.0000          .0000       .10000E+07
    27 'norm      '    .10375E-02   1.0000          .0000       .10000E+07
    28 'Prefactor '    4.0691       1.0000          .0000       .10000E+07
    29 'Normalizat'    1.3780       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .34639       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6245.922     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2214 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4320        3.1452       -.37990E-06   -.66870E-03
   2  Prefactor     .26645E-07    31.263        .27900E-06** at limit **
   3  Prefactor     15.712        1.0302        .30347E-08    .82041E-02
   4  norm           .0000        1.8275        .10419E-07** at limit **
   5  Prefactor     7.1728        1.0947        .56601E-08   -.71016E-04
   6  Prefactor      .0000        1.6518        .48943E-07** at limit **
   7  Prefactor     4.3643        2.7326        .15962E-06   -.24728E-01
   8  norm          2.7527        1.2695       -.14577E-06    .71234E-02
   9  Prefactor     .99643E-07    6.6339        .41365E-06** at limit **
  10  norm          3.6289        1.4100        .69948E-07    .74130E-02
  11  Prefactor     .29976E-08    41.606       -.16307E-05** at limit **
  12  norm          27.625        3.2183        .37193E-07   -.52039E-03
  13  norm          9.6238        4.3601       -.71158E-07    .20989E-02
  14  Prefactor     .73830E-08    8.1196        .53766E-06** at limit **
  15  Prefactor     2.4480        2.4535        .20767E-06   -.38704E-05
  16  Prefactor     1.1260        1.3731       -.29372E-06    .30508E-02
  17  Prefactor     .17208E-06    1.6006        .16246E-07** at limit **
  18  norm          2.1115        3.6497       -.17631E-06    .71792E-03
  19  Prefactor     .23648E-07    3.5942        .54028E-06** at limit **
  20  Prefactor     18.247        1.1127        .68497E-08    .38020E-02
  21  Prefactor     .95202E-07    2.2477       -.28852E-07** at limit **
  22  norm          1.3881        5.1576        .72289E-06   -.33155E-03
  23  Prefactor      .0000        32.423        .48937E-06** at limit **
  24  Prefactor     11.606        3.5796        .22338E-07   -.26952E-01
  25  norm          .25518E-06    4.0743        .40307E-06** at limit **
  26  norm          14.403        5.9421        .12071E-06   -.10616E-03
  27  norm          .77716E-08    4.1577        .77066E-06** at limit **
  28  Prefactor     4.0809        5.5875        .12875E-06   -.77421E-04
  29  Normalizat    1.3782        .23026       -.16021E-04    .96301E-04
  30  Prefactor     .34642        .24922        .24725E-04    .90246E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.43199
  Prefactor  = 2.66454e-08
  Prefactor  = 15.712
  norm       = 0
  Prefactor  = 7.1728
  Prefactor  = 0
  Prefactor  = 4.36432
  norm       = 2.75274
  Prefactor  = 9.96425e-08
  norm       = 3.62892
  Prefactor  = 2.9976e-09
  norm       = 27.6254
  norm       = 9.62383
  Prefactor  = 7.38298e-09
  Prefactor  = 2.44795
  Prefactor  = 1.12595
  Prefactor  = 1.72085e-07
  norm       = 2.11147
  Prefactor  = 2.36478e-08
  Prefactor  = 18.2469
  Prefactor  = 9.52016e-08
  norm       = 1.3881
  Prefactor  = 0
  Prefactor  = 11.6063
  norm       = 2.55185e-07
  norm       = 14.4032
  norm       = 7.77156e-09
  Prefactor  = 4.0809
  Normalizat = 1.37818
  Prefactor  = 0.346417
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.922     FROM HESSE     STATUS=OK           652 CALLS     2866 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4320        3.1699        .47823E-03   -1.5666    
   2  Prefactor     .26645E-07    31.479        .14280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.712        18.716        .25223E-03   -1.5629    
   4  norm           .0000        1.8108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.1728        10.095        .37422E-03   -1.5654    
   6  Prefactor      .0000        1.6474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3643        114.21        .48507E-03   -1.5666    
   8  norm          2.7527        1.3883        .61318E-03   -1.5675    
   9  Prefactor     .99643E-07    10.794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6289        9.0386        .52907E-03   -1.5670    
  11  Prefactor     .29976E-08    41.804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          27.625        3.2259        .19027E-03   -1.5603    
  13  norm          9.6238        4.3611        .32344E-03   -1.5646    
  14  Prefactor     .73830E-08    8.3694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4480        2.4567        .65216E-03   -1.5677    
  16  Prefactor     1.1260        1.3991        .11017E-02   -1.5687    
  17  Prefactor     .17208E-06    3.5246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1115        3.6887        .70963E-03   -1.5679    
  19  Prefactor     .23648E-07    3.9155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.247        19.584        .23415E-03   -1.5623    
  21  Prefactor     .95202E-07    3.4104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3881        5.1968        .91260E-03   -1.5684    
  23  Prefactor      .0000        32.610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.606        14.816        .29279E-03   -1.5640    
  25  norm          .25518E-06    11.065        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          14.403        5.9893        .26364E-03   -1.5632    
  27  norm          .77716E-08    4.2675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.0809        5.6332        .49959E-03   -1.5668    
  29  Normalizat    1.3782        .21730        .52825E-01   -.81262    
  30  Prefactor     .34642        .24334        .11006       -1.1964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11538e-07
Minuit parameter uncertainties:
  1  3.16986
  2  0.00183214
  3  18.7163
  4  1.25854e-05
  5  10.0947
  6  1.14452e-05
  7  44.6534
  8  1.38829
  9  0.00207408
  10  9.0386
  11  0.000710433
  12  3.22594
  13  4.36112
  14  0.000497916
  15  2.45669
  16  1.39913
  17  0.00155769
  18  3.68873
  19  0.000608645
  20  19.5845
  21  0.0011395
  22  5.19685
  23  5.95186e-05
  24  14.8159
  25  0.00336091
  26  5.98927
  27  0.000364093
  28  5.63319
  29  0.217441
  30  0.244063
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  7.383e-09  4.979e-04  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  3.464e-01  2.441e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.378e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.046 34.538
Photon Flux Upper Limit: 6.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117631/likelihoodResults_682819201_683078401_4FGL_J1220.1+3432_daily_bin1711.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): 102
logL (Free Index) = 6245.98418445
delta logL = -0.0626440206261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6245.90489681
delta logL = 0.0166436157506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24528       1.0000          .0000       .10000E+07
     2 'Index     '    3.1218       1.0000          .0000       10.000    
     3 'Normalizat'    1.3696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .35115       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6245.905     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      240 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24578        4.0446        .28286E-02** at limit **
   2  Index         3.1207        .54124        .40941       -.65727E-05
   3  Normalizat    1.3697        .92954E-02    .52964E-01    .18912E-04
   4  Prefactor     .35108        .10346E-01    .10935        .43153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.245778
  Index      = 3.12067
  Normalizat = 1.36967
  Prefactor  = 0.351075
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.905     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24578        397.89        .15573E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1207        6.0080        .45331E-02   -.38533    
   3  Normalizat    1.3697        .23600        .23416E-03   -.81510    
   4  Prefactor     .35108        .21664        .48504E-03   -1.1938    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.41067e-06
Minuit parameter uncertainties:
  1  19.7793
  2  27.2003
  3  0.236192
  4  0.217147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117631': 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): 102
logL (Free Index) = 6245.90489664
delta logL = 0.0166437885791

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  2.458e-01  1.978e+01  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  3.121e+00  2.720e+01  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  3.511e-01  2.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.370e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.046 34.538

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/117631/cmap_HighResolution_682819201_683078401_4FGL_J1220.1+3432_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2022-09-16 16:54:23.412070', job_id='117631', GAL2='0.35', fit_tolerance='1e-08', EG2='1.37', EG='1.38', time_epoch_completed='1663372463.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.35', dlogl='1.66e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1711' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:54:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 117631: <4FGL_J1220.1+3432_daily_bin1711> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin1711> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:40:35 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:41:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:41:40 2022
Terminated at Fri Sep 16 16:54:24 2022
Results reported at Fri Sep 16 16:54:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1711 185.046 34.5383 682819201 683078401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1220.1+3432 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   726.00 sec.
    Max Memory :                                 1016 MB
    Average Memory :                             330.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            829 sec.

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

