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


Performing analysis on: 4FGL_J0045.3+2128_daily_bin1679
RA = 11.3396, Dec = 21.4668
tmin = 674524801, tmax = 674784001
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='424626', job_status='RUN', time_executed='2022-05-21 00:09:26.876730', time_epoch_executed='1653116966.88' WHERE source_name='4FGL J0045.3+2128' and cadence='daily' and bin_id='1679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424626/ft1_4FGL_J0045.3+2128_daily_bin1679.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424626/ft2_4FGL_J0045.3+2128_daily_bin1679.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424626/ft1_4FGL_J0045.3+2128_daily_bin1679.fits outfile=/scratch/kocevski/424626/ft1_filteredMKT_4FGL_J0045.3+2128_daily_bin1679.fits ra=11.3396 dec=21.4668 rad=12.0 tmin=674524801.0 tmax=674784001.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.70
user 3.35
sys 0.20

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

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

Number of photons that the gtmktime cut: 645

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424626/ft1_filtered_4FGL_J0045.3+2128_daily_bin1679.fits" evtable="EVENTS" scfile=/scratch/kocevski/424626/ft2_4FGL_J0045.3+2128_daily_bin1679.fits sctable="SC_DATA" outfile=/scratch/kocevski/424626/ltcube_674524801_674784001_4FGL_J0045.3+2128_daily_bin1679.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/424626/ft2_4FGL_J0045.3+2128_daily_bin1679.fits
.....................!
real 14.97
user 14.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424626/ft1_filtered_4FGL_J0045.3+2128_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424626/ft2_4FGL_J0045.3+2128_daily_bin1679.fits sctable="SC_DATA" expcube=/scratch/kocevski/424626/ltcube_674524801_674784001_4FGL_J0045.3+2128_daily_bin1679.fits outfile=/scratch/kocevski/424626/expmap_674524801_674784001_4FGL_J0045.3+2128_daily_bin1679.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/424626/ltcube_674524801_674784001_4FGL_J0045.3+2128_daily_bin1679.fits
.....................!
real 191.96
user 187.24
sys 4.06

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/424626/ft1_filtered_4FGL_J0045.3+2128_daily_bin1679.fits scfile=/scratch/kocevski/424626/ft2_4FGL_J0045.3+2128_daily_bin1679.fits outfile=/scratch/kocevski/424626/cmap_674524801_674784001_4FGL_J0045.3+2128_daily_bin1679.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424626/ft1_filtered_4FGL_J0045.3+2128_daily_bin1679.fits scfile=/scratch/kocevski/424626/ft2_4FGL_J0045.3+2128_daily_bin1679.fits outfile=/scratch/kocevski/424626/cmap_HighResolution_674524801_674784001_4FGL_J0045.3+2128_daily_bin1679.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/424626/ft1_filtered_4FGL_J0045.3+2128_daily_bin1679.fits', '/scratch/kocevski/424626/ft2_4FGL_J0045.3+2128_daily_bin1679.fits', expMap='/scratch/kocevski/424626/expmap_674524801_674784001_4FGL_J0045.3+2128_daily_bin1679.fits', expCube='/scratch/kocevski/424626/ltcube_674524801_674784001_4FGL_J0045.3+2128_daily_bin1679.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/424626/Model_4FGL_J0045.3+2128_daily_bin1679.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/424626/ft1_filtered_4FGL_J0045.3+2128_daily_bin1679.fits
Spacecraft file(s): /scratch/kocevski/424626/ft2_4FGL_J0045.3+2128_daily_bin1679.fits
Exposure map: /scratch/kocevski/424626/expmap_674524801_674784001_4FGL_J0045.3+2128_daily_bin1679.fits
Exposure cube: /scratch/kocevski/424626/ltcube_674524801_674784001_4FGL_J0045.3+2128_daily_bin1679.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/424626/Model_4FGL_J0045.3+2128_daily_bin1679.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) = 7227.32466398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43513E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.165       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.766       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.7232       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5848       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .51626       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14371E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89526       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0776       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=   7227.321     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2022 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44234E-01    1.3607        .45726E-06   -.61581E-05
   2  Prefactor     31.187        12.764       -.19378E-05   -.16825E-03
   3  Prefactor     .10000E-03    2.9238        .92051E-08** at limit **
   4  Prefactor     .10000E-03    18.850       -.18082E-04** at limit **
   5  Prefactor     .10000E-03    1.8587       -.28834E-06** at limit **
   6  norm          .10000E-03    4.0874       -.88202E-07** at limit **
   7  Prefactor     42.789        28.404        .14391E-04   -.80386E-05
   8  Prefactor     .10000E-03    10.179       -.20087E-05** at limit **
   9  norm          .10000E-03    2.1614       -.38107E-07** at limit **
  10  Prefactor     9.7166        5.8585        .15499E-05    .13490E-04
  11  Prefactor     7.5910        10.045       -.75085E-06   -.10521E-03
  12  Prefactor     .10000E-03    22.445        .10113E-04** at limit **
  13  Prefactor     .10000E-03    21.353       -.24977E-06** at limit **
  14  norm          .51620        .41938        .30282E-07   -.83788E-04
  15  Prefactor     .10000E-03    13.202        .65615E-05** at limit **
  16  Prefactor     .10000E-03    21.855        .49334E-05** at limit **
  17  Prefactor     .10000E-03    1.8776        .21032E-07** at limit **
  18  Prefactor     .10002E-03    8.9028        .51708E-06** at limit **
  19  Normalizat    .89504        .18684       -.31624E-05   -.14317E-03
  20  Prefactor     1.0775        .12485        .11621E-06   -.37401E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0442335
  Prefactor  = 31.187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.7895
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.71661
  Prefactor  = 7.59098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.516201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Normalizat = 0.895037
  Prefactor  = 1.07755
 **********
 **   18 **HESSE 
 **********

 FCN=   7227.321     FROM HESSE     STATUS=OK           287 CALLS     2309 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44234E-01    51.851        .18532E-02   -1.5666    
   2  Prefactor     31.187        12.928        .71773E-04   -1.4590    
   3  Prefactor     .10000E-03    2.9288        .14194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.8986        .11313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.0939        .16786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     42.789        28.470        .61301E-04   -1.4399    
   8  Prefactor     .10000E-03    10.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1623        .12205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.7166        5.8609        .12851E-03   -1.5084    
  11  Prefactor     7.5910        10.056        .14561E-03   -1.5157    
  12  Prefactor     .10000E-03    22.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .51620        .41218        .47866E-04   -1.5564    
  15  Prefactor     .10000E-03    13.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.8969        .11373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    61.318        .48173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89504        .21637        .30482E-03   -.96635    
  20  Prefactor     1.0775        .14522        .19277E-03   -.90187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62479e-08
Minuit parameter uncertainties:
  1  3.02809
  2  12.929
  3  5.47151e-06
  4  2.01525e-05
  5  4.17643e-05
  6  1.38279e-05
  7  28.4793
  8  3.50913e-05
  9  2.33172e-06
  10  5.86124
  11  10.058
  12  2.75026e-06
  13  2.47087e-05
  14  0.412184
  15  1.01475e-05
  16  2.12256e-05
  17  2.26109e-06
  18  0.00205587
  19  0.216582
  20  0.145277
Done.

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

Extracting fit parameters...

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  1.000e-04  2.332e-06  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.078e+00  1.453e-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:  8.950e-01  2.166e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424626/likelihoodResults_674524801_674784001_4FGL_J0045.3+2128_daily_bin1679.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): 0
logL (Free Index) = 7227.32290496
delta logL = -0.00203536186473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7227.32086965
delta logL = -5.06261130795e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6641       1.0000          .0000       5.0000    
     3 'Normalizat'    .89499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0776       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7227.321     FROM MIGRAD    STATUS=FAILED        91 CALLS      230 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    524.29        .12218E-02** at limit **
   2  alpha         1.5169        2.6398        .17808        .11095E-06
   3  Normalizat    .89504        .17404        .30482E-03    .18685E-04
   4  Prefactor     1.0776        .12045        .19277E-03    .30243E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7227.321     FROM SIMPLEX   STATUS=UNCHANGED    186 CALLS      416 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    524.29        .23078E-03** at limit **
   2  alpha         1.5169        2.6398        .99308E-06    .11095E-06
   3  Normalizat    .89504        .17404        .10006E-06    .18685E-04
   4  Prefactor     1.0776        .12045        .56394E-07    .30243E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7227.321     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      444 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1993        .24437E-03** at limit **
   2  alpha         1.5151        3.5657        .71233E-02   -.28409E-07
   3  Normalizat    .89504        .20935        .12193E-04    .18648E-04
   4  Prefactor     1.0776        .14491        .38553E-04    .30019E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.51511
  Normalizat = 0.895036
  Prefactor  = 1.07755
 **********
 **   18 **HESSE 
 **********

 FCN=   7227.321     FROM HESSE     STATUS=OK            23 CALLS      467 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1992        .48874E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5151        3.7693        .14247E-02   -.40493    
   3  Normalizat    .89504        .20927        .24386E-05   -.96635    
   4  Prefactor     1.0776        .14487        .77107E-05   -.90187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64435e-12
Minuit parameter uncertainties:
  1  5.52919e-06
  2  170.78
  3  0.209462
  4  0.144925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424626': 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) = 7227.32086921
delta logL = 3.87288309867e-07

Extracting fit parameters...

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  1.000e-04  5.529e-06  1.000e-04  1.000e+04 ( 1.000e-13)
171        alpha:  1.515e+00  1.708e+02  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.078e+00  1.449e-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:  8.950e-01  2.095e-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/424626/cmap_HighResolution_674524801_674784001_4FGL_J0045.3+2128_daily_bin1679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-05', job_status='DONE', photon_flux_upper_limit='2.20e-08', time_completed='2022-05-21 00:19:59.875697', job_id='424626', GAL2='1.08', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1653117599.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.67' WHERE bin_id='1679' AND source_name='4FGL J0045.3+2128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 21 00:19:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 424626: <4FGL_J0045.3+2128_daily_bin1679> in cluster <slac> Done

Job <4FGL_J0045.3+2128_daily_bin1679> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat May 21 00:04:57 2022
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat May 21 00:06:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat May 21 00:06:44 2022
Terminated at Sat May 21 00:20:00 2022
Results reported at Sat May 21 00:20:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.3+2128_daily_bin1679 11.3396 21.4668 674524801 674784001 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 :                                   630.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            903 sec.

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

