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


Performing analysis on: 4FGL_J0245.4+2408_daily_bin1742
RA = 41.3545, Dec = 24.1498
tmin = 690854401, tmax = 691113601
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='217480', job_status='RUN', time_executed='2022-11-26 00:13:51.944214', time_epoch_executed='1669450431.94' WHERE source_name='4FGL J0245.4+2408' and cadence='daily' and bin_id='1742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217480

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217480/ft1_4FGL_J0245.4+2408_daily_bin1742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217480/ft2_4FGL_J0245.4+2408_daily_bin1742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217480/ft1_4FGL_J0245.4+2408_daily_bin1742.fits outfile=/scratch/kocevski/217480/ft1_filteredMKT_4FGL_J0245.4+2408_daily_bin1742.fits ra=41.3545 dec=24.1498 rad=12.0 tmin=690854401.0 tmax=691113601.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.93
user 2.69
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/217480/ft2_4FGL_J0245.4+2408_daily_bin1742.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217480/ft2_4FGL_J0245.4+2408_daily_bin1742.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/217480/ft1_filteredMKT_4FGL_J0245.4+2408_daily_bin1742.fits evtable="EVENTS" outfile="/scratch/kocevski/217480/ft1_filtered_4FGL_J0245.4+2408_daily_bin1742.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: 99

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217480/ft1_filtered_4FGL_J0245.4+2408_daily_bin1742.fits" evtable="EVENTS" scfile=/scratch/kocevski/217480/ft2_4FGL_J0245.4+2408_daily_bin1742.fits sctable="SC_DATA" outfile=/scratch/kocevski/217480/ltcube_690854401_691113601_4FGL_J0245.4+2408_daily_bin1742.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/217480/ft2_4FGL_J0245.4+2408_daily_bin1742.fits
.....................!
real 16.84
user 16.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217480/ft1_filtered_4FGL_J0245.4+2408_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217480/ft2_4FGL_J0245.4+2408_daily_bin1742.fits sctable="SC_DATA" expcube=/scratch/kocevski/217480/ltcube_690854401_691113601_4FGL_J0245.4+2408_daily_bin1742.fits outfile=/scratch/kocevski/217480/expmap_690854401_691113601_4FGL_J0245.4+2408_daily_bin1742.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/217480/ltcube_690854401_691113601_4FGL_J0245.4+2408_daily_bin1742.fits
.....................!
real 192.15
user 186.53
sys 5.14

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

Setting source of interest to:
4FGL J0245.4+2408 @ 41.3545 24.1498

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/217480/ft1_filtered_4FGL_J0245.4+2408_daily_bin1742.fits scfile=/scratch/kocevski/217480/ft2_4FGL_J0245.4+2408_daily_bin1742.fits outfile=/scratch/kocevski/217480/cmap_690854401_691113601_4FGL_J0245.4+2408_daily_bin1742.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=41.3545 yref=24.1498 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217480/ft1_filtered_4FGL_J0245.4+2408_daily_bin1742.fits scfile=/scratch/kocevski/217480/ft2_4FGL_J0245.4+2408_daily_bin1742.fits outfile=/scratch/kocevski/217480/cmap_HighResolution_690854401_691113601_4FGL_J0245.4+2408_daily_bin1742.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=41.3545 yref=24.1498 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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217480/ft1_filtered_4FGL_J0245.4+2408_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217480/ft2_4FGL_J0245.4+2408_daily_bin1742.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217480/Model_4FGL_J0245.4+2408_daily_bin1742.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/217480/ft1_filtered_4FGL_J0245.4+2408_daily_bin1742.fits.........................!
real 26.78
user 25.49
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217480/ft1_filtered_4FGL_J0245.4+2408_daily_bin1742.fits', '/scratch/kocevski/217480/ft2_4FGL_J0245.4+2408_daily_bin1742.fits', expMap='/scratch/kocevski/217480/expmap_690854401_691113601_4FGL_J0245.4+2408_daily_bin1742.fits', expCube='/scratch/kocevski/217480/ltcube_690854401_691113601_4FGL_J0245.4+2408_daily_bin1742.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217480/Model_4FGL_J0245.4+2408_daily_bin1742.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0245.4+2408'

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  3.151e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/217480/ft1_filtered_4FGL_J0245.4+2408_daily_bin1742.fits
Spacecraft file(s): /scratch/kocevski/217480/ft2_4FGL_J0245.4+2408_daily_bin1742.fits
Exposure map: /scratch/kocevski/217480/expmap_690854401_691113601_4FGL_J0245.4+2408_daily_bin1742.fits
Exposure cube: /scratch/kocevski/217480/ltcube_690854401_691113601_4FGL_J0245.4+2408_daily_bin1742.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217480/Model_4FGL_J0245.4+2408_daily_bin1742.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) = 1169.48069041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0240       1.0000          .0000       .10000E+07
     2 'Prefactor '    .52298E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.8579       1.0000          .0000       .10000E+07
     4 'norm      '    .26902E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.976       1.0000          .0000       .10000E+07
     6 'Prefactor '    .26552E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    83.906       1.0000          .0000       .10000E+07
     8 'norm      '    .18393E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .28042E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .52064E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .13251E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .31583E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .40602       1.0000          .0000       .10000E+07
    14 'Prefactor '    .46768E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .39464       1.0000          .0000       .10000E+07
    16 'Prefactor '    .55829       1.0000          .0000       .10000E+07
    17 'norm      '    .28006       1.0000          .0000       .10000E+07
    18 'norm      '    .11758E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13505E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    72.359       1.0000          .0000       .10000E+07
    21 'norm      '    81.501       1.0000          .0000       .10000E+07
    22 'Normalizat'    .99517       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1169.271     FROM MIGRAD    STATUS=CONVERGED    251 CALLS     1919 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72850        19.840        .12873E-06   -.50236E-03
   2  Prefactor      .0000        36.540       -.21793E-06** at limit **
   3  Prefactor     3.3352        18.728       -.26604E-06   -.29533E-04
   4  norm          .11102E-09    77.783       -.15372E-05** at limit **
   5  Prefactor     .17191E-02    256.23        .32577E-05** at limit **
   6  Prefactor     .11102E-09    46.876        .11465E-05** at limit **
   7  Prefactor     84.765        13.631       -.11847E-06    .99398E-01
   8  norm           .0000        1.9050       -.19220E-07** at limit **
   9  Prefactor     .27756E-09    64.532        .15938E-06** at limit **
  10  norm           .0000        .97517       -.11941E-08** at limit **
  11  Prefactor     .11514E-05    142.14       -.21501E-06** at limit **
  12  Prefactor     .74385E-08    99.860       -.23393E-05** at limit **
  13  Prefactor      .0000        174.42       -.14697E-05** at limit **
  14  Prefactor      .0000        12.578        .72549E-07** at limit **
  15  Prefactor     .72164E-09    145.99        .22459E-05** at limit **
  16  Prefactor     .80048E-02    386.04        .28332E-06** at limit **
  17  norm           .0000        76.435       -.18702E-06** at limit **
  18  norm          .96852E-03    523.49        .45287E-06** at limit **
  19  Prefactor     .55511E-10    79.035        .15948E-05** at limit **
  20  Prefactor     135.70        297.55       -.25525E-05   -.29749E-02
  21  norm          80.713        79.129       -.21089E-06   -.14895E-02
  22  Normalizat    1.0311        .64004        .17782E-04   -.61741E-04
  23  Prefactor     .86461        .26945        .87749E-05   -.13310E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.7285
  Prefactor  = 0
  Prefactor  = 3.33524
  norm       = 1.11022e-10
  Prefactor  = 0.00171911
  Prefactor  = 1.11022e-10
  Prefactor  = 84.7652
  norm       = 0
  Prefactor  = 2.77556e-10
  norm       = 0
  Prefactor  = 1.15141e-06
  Prefactor  = 7.43849e-09
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.21645e-10
  Prefactor  = 0.00800477
  norm       = 0
  norm       = 0.00096852
  Prefactor  = 5.55112e-11
  Prefactor  = 135.704
  norm       = 80.7134
  Normalizat = 1.03114
  Prefactor  = 0.86461
 **********
 **   18 **HESSE 
 **********

 FCN=   1169.271     FROM HESSE     STATUS=OK           406 CALLS     2325 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72850        11.747        .40750E-02   -1.5691    
   2  Prefactor      .0000        36.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3352        18.813        .60110E-03   -1.5671    
   4  norm          .11102E-09    78.285        .16619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .17191E-02    17774.        .24281E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11102E-09    47.198        .16639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     84.765        60.574        .10918E-03   -1.5524    
   8  norm           .0000        1.9027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    64.893        .16556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .99359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11514E-05    146.01        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .74385E-08    99.873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        174.42        .88792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        12.662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .72164E-09    146.23        .90110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .80048E-02    1677.4        .73050E-03   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        76.655        .10495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .96852E-03    688.50        .42118E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    78.741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     135.70        296.84        .11757E-03   -1.5475    
  21  norm          80.713        79.690        .11078E-03   -1.5528    
  22  Normalizat    1.0311        .56764        .82897E-01   -.91994    
  23  Prefactor     .86461        .23519        .44686E-01   -.97389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76566e-06
Minuit parameter uncertainties:
  1  5.8507
  2  2.71288e-05
  3  15.8424
  4  0.000205181
  5  11.0883
  6  0.00016003
  7  60.5743
  8  1.60183e-06
  9  0.000265591
  10  1.93764e-08
  11  0.0259334
  12  0.0017212
  13  9.86994e-05
  14  1.39778e-05
  15  0.00065343
  16  7.33076
  17  8.56336e-05
  18  1.63338
  19  0.000151332
  20  296.877
  21  79.6914
  22  0.57102
  23  0.235469
Done.

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

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  0.000e+00  1.398e-05  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.646e-01  2.355e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.031e+00  5.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 41.355 24.150
Photon Flux Upper Limit: 4.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217480/likelihoodResults_690854401_691113601_4FGL_J0245.4+2408_daily_bin1742.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) = 1169.27172736
delta logL = -0.000783620983157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1169.27094375
delta logL = -2.0663946998e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11136E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.1051       1.0000          .0000       10.000    
     3 'Normalizat'    1.0312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1169.271     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      235 TOTAL
                     EDM=   .70E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.817        .42118E-03** at limit **
   2  Index         1.7135        .94018        .15495E-04     .0000    
   3  Normalizat    1.0311        1.2354        .25703E-05   -.57079E-05
   4  Prefactor     .86461        1.2111       -.58794E-05   -.34164E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.71347
  Normalizat = 1.03114
  Prefactor  = 0.86461
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1169.271     FROM HESSE     STATUS=FAILED         9 CALLS      244 TOTAL
                     EDM=   .70E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        13.817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .29219        1.5252        .15495E-04   -.71724    
   3  Normalizat    1.0311        1.2354        .25703E-05   -.91994    
   4  Prefactor     .86461        1.2111       -.58794E-05   -.97389    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.04255e-12
Minuit parameter uncertainties:
  1  3.26078e-05
  2  0.950222
  3  1.27255
  4  1.2521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217480': 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): 101
logL (Free Index) = 1169.27094373
delta logL = 2.27373675443e-11

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  0.000e+00  3.261e-05  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  1.713e+00  9.502e-01  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.646e-01  1.252e+00  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.031e+00  1.273e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 41.355 24.150

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/217480/cmap_HighResolution_690854401_691113601_4FGL_J0245.4+2408_daily_bin1742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-02', job_status='DONE', photon_flux_upper_limit='4.10e-07', time_completed='2022-11-26 00:20:02.454552', job_id='217480', GAL2='0.86', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1669450802.45', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.27e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1742' AND source_name='4FGL J0245.4+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov 26 00:20:02 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 217480: <4FGL_J0245.4+2408_daily_bin1742> in cluster <slac> Done

Job <4FGL_J0245.4+2408_daily_bin1742> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Nov 26 00:05:05 2022
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov 26 00:13:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov 26 00:13:40 2022
Terminated at Sat Nov 26 00:20:03 2022
Results reported at Sat Nov 26 00:20:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.4+2408_daily_bin1742 41.3545 24.1498 690854401 691113601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0245.4+2408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   373.04 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             356.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   382 sec.
    Turnaround time :                            898 sec.

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

