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


Performing analysis on: 4FGL_J0505.6+6405_daily_bin1694
RA = 76.4244, Dec = 64.0877
tmin = 678412801, tmax = 678672001
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='638842', job_status='RUN', time_executed='2022-07-05 02:35:41.814897', time_epoch_executed='1657013741.81' WHERE source_name='4FGL J0505.6+6405' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638842

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638842/ft1_4FGL_J0505.6+6405_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638842/ft2_4FGL_J0505.6+6405_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638842/ft1_4FGL_J0505.6+6405_daily_bin1694.fits outfile=/scratch/kocevski/638842/ft1_filteredMKT_4FGL_J0505.6+6405_daily_bin1694.fits ra=76.4244 dec=64.0877 rad=12.0 tmin=678412801.0 tmax=678672001.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.68
user 3.43
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/638842/ft2_4FGL_J0505.6+6405_daily_bin1694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/638842/ft2_4FGL_J0505.6+6405_daily_bin1694.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/638842/ft1_filteredMKT_4FGL_J0505.6+6405_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/638842/ft1_filtered_4FGL_J0505.6+6405_daily_bin1694.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.54
user 0.34
sys 0.19

Number of photons that the gtmktime cut: 2193

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638842/ft1_filtered_4FGL_J0505.6+6405_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/638842/ft2_4FGL_J0505.6+6405_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/638842/ltcube_678412801_678672001_4FGL_J0505.6+6405_daily_bin1694.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/638842/ft2_4FGL_J0505.6+6405_daily_bin1694.fits
.....................!
real 14.72
user 14.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638842/ft1_filtered_4FGL_J0505.6+6405_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/638842/ft2_4FGL_J0505.6+6405_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/638842/ltcube_678412801_678672001_4FGL_J0505.6+6405_daily_bin1694.fits outfile=/scratch/kocevski/638842/expmap_678412801_678672001_4FGL_J0505.6+6405_daily_bin1694.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/638842/ltcube_678412801_678672001_4FGL_J0505.6+6405_daily_bin1694.fits
.....................!
real 192.53
user 187.16
sys 4.91

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 179 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0505.6+6405 @ 76.4244 64.0877

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/638842/ft1_filtered_4FGL_J0505.6+6405_daily_bin1694.fits scfile=/scratch/kocevski/638842/ft2_4FGL_J0505.6+6405_daily_bin1694.fits outfile=/scratch/kocevski/638842/cmap_678412801_678672001_4FGL_J0505.6+6405_daily_bin1694.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=76.4244 yref=64.0877 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.59
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638842/ft1_filtered_4FGL_J0505.6+6405_daily_bin1694.fits scfile=/scratch/kocevski/638842/ft2_4FGL_J0505.6+6405_daily_bin1694.fits outfile=/scratch/kocevski/638842/cmap_HighResolution_678412801_678672001_4FGL_J0505.6+6405_daily_bin1694.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=76.4244 yref=64.0877 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/638842/ft1_filtered_4FGL_J0505.6+6405_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/638842/ft2_4FGL_J0505.6+6405_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/638842/Model_4FGL_J0505.6+6405_daily_bin1694.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/scratch/kocevski/638842/ft1_filtered_4FGL_J0505.6+6405_daily_bin1694.fits.....................!
real 392.65
user 390.44
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/638842/ft1_filtered_4FGL_J0505.6+6405_daily_bin1694.fits', '/scratch/kocevski/638842/ft2_4FGL_J0505.6+6405_daily_bin1694.fits', expMap='/scratch/kocevski/638842/expmap_678412801_678672001_4FGL_J0505.6+6405_daily_bin1694.fits', expCube='/scratch/kocevski/638842/ltcube_678412801_678672001_4FGL_J0505.6+6405_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/638842/Model_4FGL_J0505.6+6405_daily_bin1694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0505.6+6405'

4FGL J0505.6+6405
   Spectrum: LogParabola
291         norm:  5.624e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
292        alpha:  2.328e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  1.641e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  1.144e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/638842/ft1_filtered_4FGL_J0505.6+6405_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/638842/ft2_4FGL_J0505.6+6405_daily_bin1694.fits
Exposure map: /scratch/kocevski/638842/expmap_678412801_678672001_4FGL_J0505.6+6405_daily_bin1694.fits
Exposure cube: /scratch/kocevski/638842/ltcube_678412801_678672001_4FGL_J0505.6+6405_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/638842/Model_4FGL_J0505.6+6405_daily_bin1694.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) = 21495.6223087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27423E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2740       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.913       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .97651       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.631       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.154       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15594E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.285       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .86439       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21495.62     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1915 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.469       -.70790E-05** at limit **
   2  Prefactor     .10038E-03    1.6885        .42067E-06** at limit **
   3  Prefactor     7.2746        3.1389       -.49178E-07   -.13229E-03
   4  Prefactor     27.909        28.763       -.29022E-05    .31353E-04
   5  Prefactor     .10000E-03    50.825       -.24266E-04** at limit **
   6  Prefactor     .10000E-03    5.5314       -.62808E-07** at limit **
   7  Prefactor     .10000E-03    47.045       -.30990E-05** at limit **
   8  norm          .10000E-03    3.7835       -.67515E-08** at limit **
   9  norm          .10000E-03    7.2627        .52264E-07** at limit **
  10  Prefactor     .97731        5.7630       -.24716E-05   -.52581E-04
  11  Prefactor     .10000E-03    18.489        .12965E-05** at limit **
  12  norm          .10000E-03    38.951        .28260E-04** at limit **
  13  Prefactor     11.633        21.934        .64263E-06   -.86163E-05
  14  Prefactor     24.155        24.374        .55975E-06   -.28791E-04
  15  Prefactor     .10022E-03    4.7462        .92566E-06** at limit **
  16  Prefactor     19.287        21.904        .90652E-06   -.74751E-05
  17  Prefactor     .10000E-03    29.394       -.76142E-05** at limit **
  18  Normalizat    .86432        .18799       -.89799E-06    .11885E-04
  19  Prefactor     1.0239        .38171E-01    .22089E-06    .46546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100381
  Prefactor  = 7.27459
  Prefactor  = 27.9095
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.977305
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.6326
  Prefactor  = 24.1551
  Prefactor  = 0.000100218
  Prefactor  = 19.2867
  Prefactor  = 0.0001
  Normalizat = 0.864317
  Prefactor  = 1.02393
 **********
 **   18 **HESSE 
 **********

 FCN=   21495.62     FROM HESSE     STATUS=OK           286 CALLS     2201 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10038E-03    1.8681        .61953E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2746        3.1398        .14872E-03   -1.5168    
   4  Prefactor     27.909        28.825        .75829E-04   -1.4651    
   5  Prefactor     .10000E-03    51.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.7985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.2690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .97731        29.336        .68343E-02   -1.5510    
  11  Prefactor     .10000E-03    18.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    39.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.633        21.968        .11746E-03   -1.5026    
  14  Prefactor     24.155        24.455        .81505E-04   -1.4725    
  15  Prefactor     .10022E-03    4.6869        .10261       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.287        21.938        .91205E-04   -1.4829    
  17  Prefactor     .10000E-03    29.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .86432        .19253        .62422E-03   -.97726    
  19  Prefactor     1.0239        .39481E-01    .12325E-03   -.91936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58509e-07
Minuit parameter uncertainties:
  1  1.31249e-05
  2  0.00168777
  3  3.13989
  4  28.8396
  5  0.000411697
  6  5.10285e-06
  7  5.73169e-05
  8  3.84156e-07
  9  1.32405e-06
  10  10.7141
  11  3.33721e-07
  12  2.53329e-06
  13  21.9832
  14  24.4653
  15  0.00202153
  16  21.9467
  17  1.6872e-05
  18  0.192688
  19  0.0394818
Done.

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

Extracting fit parameters...

4FGL J0505.6+6405
   Spectrum: LogParabola
291         norm:  1.000e-04  1.324e-06  1.000e-04  1.000e+04 ( 1.000e-13)
292        alpha:  2.328e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  1.641e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  1.144e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.024e+00  3.948e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  8.643e-01  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 76.424 64.088
Photon Flux Upper Limit: 4.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/638842/likelihoodResults_678412801_678672001_4FGL_J0505.6+6405_daily_bin1694.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) = 21495.6185157
delta logL = -0.000655772175378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21495.6178602
delta logL = -2.50802258961e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3185       1.0000          .0000       5.0000    
     3 'Normalizat'    .86421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   21495.62     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    280.08        .18142E-01** at limit **
   2  alpha         1.9149        3.8681        .16516        .27534E-08
   3  Normalizat    .86432        .33801E-01    .62423E-03    .15838E-03
   4  Prefactor     1.0239        .72851E-02    .12325E-03    .66414E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91488
  Normalizat = 0.864319
  Prefactor  = 1.02393
 **********
 **   18 **HESSE 
 **********

 FCN=   21495.62     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9299        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9149        3.5829        .66063E-02   -.23624    
   3  Normalizat    .86432        .17462        .24969E-04   -.97726    
   4  Prefactor     1.0239        .37660E-01    .49299E-05   -.91936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85944e-11
Minuit parameter uncertainties:
  1  4.2199e-07
  2  410.097
  3  0.174739
  4  0.0376611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638842': 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) = 21495.6178594
delta logL = 5.04638592247e-07

Extracting fit parameters...

4FGL J0505.6+6405
   Spectrum: LogParabola
291         norm:  1.000e-04  4.220e-07  1.000e-04  1.000e+04 ( 1.000e-13)
292        alpha:  1.915e+00  4.101e+02  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  1.641e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  1.144e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.024e+00  3.766e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  8.643e-01  1.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 76.424 64.088

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/638842/cmap_HighResolution_678412801_678672001_4FGL_J0505.6+6405_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-05', job_status='DONE', photon_flux_upper_limit='4.61e-08', time_completed='2022-07-05 03:02:48.112877', job_id='638842', GAL2='1.02', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1657015368.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='5.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1694' AND source_name='4FGL J0505.6+6405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 03:02:48 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 638843: <4FGL_J0505.6+6405_daily_bin1694> in cluster <slac> Done

Job <4FGL_J0505.6+6405_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:05:29 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 02:33:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 02:33:57 2022
Terminated at Tue Jul  5 02:56:24 2022
Results reported at Tue Jul  5 02:56:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0505.6+6405_daily_bin1694 76.4244 64.0877 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0505.6+6405 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1324.55 sec.
    Max Memory :                                 1266 MB
    Average Memory :                             405.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2934 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1346 sec.
    Turnaround time :                            10255 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 638842: <4FGL_J0505.6+6405_daily_bin1694> in cluster <slac> Done

Job <4FGL_J0505.6+6405_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:05:29 2022
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 02:33:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 02:33:57 2022
Terminated at Tue Jul  5 03:02:49 2022
Results reported at Tue Jul  5 03:02:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0505.6+6405_daily_bin1694 76.4244 64.0877 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0505.6+6405 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1627.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             395.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1731 sec.
    Turnaround time :                            10640 sec.

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

