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


Performing analysis on: 4FGL_J0045.3+2128_daily_bin1703
RA = 11.3396, Dec = 21.4668
tmin = 680745601, tmax = 681004801
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='302359', job_status='RUN', time_executed='2022-08-01 00:08:35.167563', time_epoch_executed='1659337715.17' WHERE source_name='4FGL J0045.3+2128' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302359

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302359/ft1_4FGL_J0045.3+2128_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302359/ft2_4FGL_J0045.3+2128_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302359/ft1_4FGL_J0045.3+2128_daily_bin1703.fits outfile=/scratch/kocevski/302359/ft1_filteredMKT_4FGL_J0045.3+2128_daily_bin1703.fits ra=11.3396 dec=21.4668 rad=12.0 tmin=680745601.0 tmax=681004801.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.02
user 2.73
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/302359/ft2_4FGL_J0045.3+2128_daily_bin1703.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/302359/ft2_4FGL_J0045.3+2128_daily_bin1703.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/302359/ft1_filteredMKT_4FGL_J0045.3+2128_daily_bin1703.fits evtable="EVENTS" outfile="/scratch/kocevski/302359/ft1_filtered_4FGL_J0045.3+2128_daily_bin1703.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.61
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 877

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302359/ft1_filtered_4FGL_J0045.3+2128_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/302359/ft2_4FGL_J0045.3+2128_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/302359/ltcube_680745601_681004801_4FGL_J0045.3+2128_daily_bin1703.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/302359/ft2_4FGL_J0045.3+2128_daily_bin1703.fits
.....................!
real 16.27
user 15.80
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302359/ft1_filtered_4FGL_J0045.3+2128_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/302359/ft2_4FGL_J0045.3+2128_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/302359/ltcube_680745601_681004801_4FGL_J0045.3+2128_daily_bin1703.fits outfile=/scratch/kocevski/302359/expmap_680745601_681004801_4FGL_J0045.3+2128_daily_bin1703.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/302359/ltcube_680745601_681004801_4FGL_J0045.3+2128_daily_bin1703.fits
.....................!
real 193.36
user 186.83
sys 5.51

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

Setting source of interest to:
4FGL J0045.3+2128 @ 11.3396 21.4668

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/302359/ft1_filtered_4FGL_J0045.3+2128_daily_bin1703.fits scfile=/scratch/kocevski/302359/ft2_4FGL_J0045.3+2128_daily_bin1703.fits outfile=/scratch/kocevski/302359/cmap_680745601_681004801_4FGL_J0045.3+2128_daily_bin1703.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=11.3396 yref=21.4668 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.79
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302359/ft1_filtered_4FGL_J0045.3+2128_daily_bin1703.fits scfile=/scratch/kocevski/302359/ft2_4FGL_J0045.3+2128_daily_bin1703.fits outfile=/scratch/kocevski/302359/cmap_HighResolution_680745601_681004801_4FGL_J0045.3+2128_daily_bin1703.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=11.3396 yref=21.4668 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.79
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302359/ft1_filtered_4FGL_J0045.3+2128_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/302359/ft2_4FGL_J0045.3+2128_daily_bin1703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302359/Model_4FGL_J0045.3+2128_daily_bin1703.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/302359/ft1_filtered_4FGL_J0045.3+2128_daily_bin1703.fits.....................!
real 94.13
user 91.56
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/302359/ft1_filtered_4FGL_J0045.3+2128_daily_bin1703.fits', '/scratch/kocevski/302359/ft2_4FGL_J0045.3+2128_daily_bin1703.fits', expMap='/scratch/kocevski/302359/expmap_680745601_681004801_4FGL_J0045.3+2128_daily_bin1703.fits', expCube='/scratch/kocevski/302359/ltcube_680745601_681004801_4FGL_J0045.3+2128_daily_bin1703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/302359/Model_4FGL_J0045.3+2128_daily_bin1703.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0045.3+2128'

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  3.310e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
171        alpha:  1.669e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
172         beta:  7.630e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
173           Eb:  2.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/302359/ft1_filtered_4FGL_J0045.3+2128_daily_bin1703.fits
Spacecraft file(s): /scratch/kocevski/302359/ft2_4FGL_J0045.3+2128_daily_bin1703.fits
Exposure map: /scratch/kocevski/302359/expmap_680745601_681004801_4FGL_J0045.3+2128_daily_bin1703.fits
Exposure cube: /scratch/kocevski/302359/ltcube_680745601_681004801_4FGL_J0045.3+2128_daily_bin1703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/302359/Model_4FGL_J0045.3+2128_daily_bin1703.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) = 9801.99797092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6465       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16970E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.7022       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7102       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2786       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6458       1.0000         .10000E-03   10000.    
    14 'norm      '    .48837       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.053       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.840       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77684       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2088       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9801.934     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1752 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .76560       -.14257E-07** at limit **
   2  Prefactor     7.6505        8.6715       -.36579E-06   -.91484E-04
   3  Prefactor     .10000E-03    4.5177       -.42264E-07** at limit **
   4  Prefactor     .10000E-03    15.005       -.27475E-05** at limit **
   5  Prefactor     .10000E-03    1.3215       -.12411E-06** at limit **
   6  norm          2.7007        10.160       -.16059E-05   -.22337E-03
   7  Prefactor     .10000E-03    6.9766        .35361E-05** at limit **
   8  Prefactor     .10000E-03    12.641        .20090E-05** at limit **
   9  norm          .10000E-03    7.4407       -.44494E-05** at limit **
  10  Prefactor     5.7098        4.0073        .15129E-05    .12324E-03
  11  Prefactor     1.2741        17.174       -.27076E-05   -.40647E-03
  12  Prefactor     .10000E-03    13.584        .22414E-05** at limit **
  13  Prefactor     7.6347        18.196       -.18531E-04   -.37539E-04
  14  norm          .48849        .34605        .26563E-06    .14153E-03
  15  Prefactor     18.052        10.789       -.46662E-06   -.24778E-04
  16  Prefactor     .10000E-03    7.2402        .24737E-06** at limit **
  17  Prefactor     .10000E-03    1.6764        .14933E-06** at limit **
  18  Prefactor     15.838        10.406       -.16400E-06   -.52181E-04
  19  Normalizat    .77696        .16390        .79511E-06    .45814E-04
  20  Prefactor     1.2088        .11206        .41258E-06    .13523E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.65048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.70072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.7098
  Prefactor  = 1.27412
  Prefactor  = 0.0001
  Prefactor  = 7.6347
  norm       = 0.488489
  Prefactor  = 18.0518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8377
  Normalizat = 0.776962
  Prefactor  = 1.20882
 **********
 **   18 **HESSE 
 **********

 FCN=   9801.934     FROM HESSE     STATUS=OK           293 CALLS     2045 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .77512        .84532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6505        8.6468        .14502E-03   -1.5155    
   3  Prefactor     .10000E-03    4.5385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.9249        .21641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.7007        10.205        .24781E-03   -1.5379    
   7  Prefactor     .10000E-03    6.9782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.6983        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7098        4.0084        .16144E-03   -1.5230    
  11  Prefactor     1.2741        17.912        .39271E-03   -1.5482    
  12  Prefactor     .10000E-03    13.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.6347        18.051        .14503E-03   -1.5155    
  14  norm          .48849        .35606        .46477E-03   -1.5568    
  15  Prefactor     18.052        10.790        .94264E-04   -1.4858    
  16  Prefactor     .10000E-03    7.2443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.7063        .12516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.838        10.387        .10063E-03   -1.4912    
  19  Normalizat    .77696        .18475        .32444E-03   -1.0093    
  20  Prefactor     1.2088        .12844        .18697E-03   -.86060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54026e-09
Minuit parameter uncertainties:
  1  6.37082e-07
  2  8.64823
  3  1.60821e-06
  4  3.73124e-06
  5  2.2604e-05
  6  10.2114
  7  1.39214e-06
  8  6.66398e-05
  9  7.99047e-05
  10  4.00854
  11  9.55749
  12  6.6141e-06
  13  18.0642
  14  0.356063
  15  10.7914
  16  1.29907e-05
  17  1.71137e-05
  18  10.3882
  19  0.184901
  20  0.128473
Done.

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

Extracting fit parameters...

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  1.000e-04  7.990e-05  1.000e-04  1.000e+04 ( 1.000e-13)
171        alpha:  1.669e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
172         beta:  7.630e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
173           Eb:  2.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.209e+00  1.285e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  7.770e-01  1.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 11.340 21.467
Photon Flux Upper Limit: 2.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302359/likelihoodResults_680745601_681004801_4FGL_J0045.3+2128_daily_bin1703.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) = 9801.93415986
delta logL = -0.000620436976533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9801.93353825
delta logL = 1.17565105029e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10376E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7453       1.0000          .0000       5.0000    
     3 'Normalizat'    .77692       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2088       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+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=   9801.744     FROM MIGRAD    STATUS=CONVERGED    151 CALLS      313 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37348E-02    .61228E-02    .22745E-02   -.14542E-01
   2  alpha         5.0000        3.3561        .50000    ** at limit **
   3  Normalizat    .74197        .18724        .32444E-03    .11493E-03
   4  Prefactor     1.2246        .12994        .18697E-03    .38458E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00373477
  alpha      = 5
  Normalizat = 0.741971
  Prefactor  = 1.22463
 **********
 **   18 **HESSE 
 **********

 FCN=   9801.744     FROM HESSE     STATUS=OK            31 CALLS      344 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37348E-02    .68095E-02    .98173E-05   -1.5720    
   2  alpha         5.0000        3.4024        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .74197        .19266        .12978E-04   -1.0226    
   4  Prefactor     1.2246        .13157        .37394E-04   -.85577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46635e-10
Minuit parameter uncertainties:
  1  0.00680953
  2  4.32252e-05
  3  0.192833
  4  0.131603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302359': 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) = 9801.7438869
delta logL = 0.18965252525

Extracting fit parameters...

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  3.735e-03  6.810e-03  1.000e-04  1.000e+04 ( 1.000e-13)
171        alpha:  5.000e+00  4.323e-05  0.000e+00  5.000e+00 ( 1.000e+00)
172         beta:  7.630e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
173           Eb:  2.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.225e+00  1.316e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  7.420e-01  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 11.340 21.467

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/302359/cmap_HighResolution_680745601_681004801_4FGL_J0045.3+2128_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-05', job_status='DONE', photon_flux_upper_limit='2.64e-08', time_completed='2022-08-01 00:20:30.628011', job_id='302359', GAL2='1.22', fit_tolerance='1e-08', EG2='0.74', EG='0.78', time_epoch_completed='1659338430.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.90e-01', ts2='0.41', photon_index_error='0.00', photon_index='1.67' WHERE bin_id='1703' AND source_name='4FGL J0045.3+2128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 00:20:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 302359: <4FGL_J0045.3+2128_daily_bin1703> in cluster <slac> Done

Job <4FGL_J0045.3+2128_daily_bin1703> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug  1 00:05:00 2022
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 00:05:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 00:05:43 2022
Terminated at Mon Aug  1 00:20:31 2022
Results reported at Mon Aug  1 00:20:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.3+2128_daily_bin1703 11.3396 21.4668 680745601 681004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0045.3+2128 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   709.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            931 sec.

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

