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


Performing analysis on: 4FGL_J0045.3+2128_weekly_bin759
RA = 11.3396, Dec = 21.4668
tmin = 698025601, tmax = 698630401
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='547668', job_status='RUN', time_executed='2023-02-21 00:50:57.941730', time_epoch_executed='1676969457.94' WHERE source_name='4FGL J0045.3+2128' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547668

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547668/ft1_4FGL_J0045.3+2128_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547668/ft2_4FGL_J0045.3+2128_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547668/ft1_4FGL_J0045.3+2128_weekly_bin759.fits outfile=/scratch/kocevski/547668/ft1_filteredMKT_4FGL_J0045.3+2128_weekly_bin759.fits ra=11.3396 dec=21.4668 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.58
user 8.21
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/547668/ft2_4FGL_J0045.3+2128_weekly_bin759.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/547668/ft1_filteredMKT_4FGL_J0045.3+2128_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/547668/ft1_filtered_4FGL_J0045.3+2128_weekly_bin759.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.39
sys 0.14

Number of photons that the gtmktime cut: 1718

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/547668/ft1_filtered_4FGL_J0045.3+2128_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/547668/ft2_4FGL_J0045.3+2128_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/547668/ltcube_698025601_698630401_4FGL_J0045.3+2128_weekly_bin759.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/547668/ft2_4FGL_J0045.3+2128_weekly_bin759.fits
.....................!
real 26.93
user 26.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547668/ft1_filtered_4FGL_J0045.3+2128_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/547668/ft2_4FGL_J0045.3+2128_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/547668/ltcube_698025601_698630401_4FGL_J0045.3+2128_weekly_bin759.fits outfile=/scratch/kocevski/547668/expmap_698025601_698630401_4FGL_J0045.3+2128_weekly_bin759.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/547668/ltcube_698025601_698630401_4FGL_J0045.3+2128_weekly_bin759.fits
.....................!
real 190.79
user 185.26
sys 5.21

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/547668/ft1_filtered_4FGL_J0045.3+2128_weekly_bin759.fits scfile=/scratch/kocevski/547668/ft2_4FGL_J0045.3+2128_weekly_bin759.fits outfile=/scratch/kocevski/547668/cmap_698025601_698630401_4FGL_J0045.3+2128_weekly_bin759.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547668/ft1_filtered_4FGL_J0045.3+2128_weekly_bin759.fits scfile=/scratch/kocevski/547668/ft2_4FGL_J0045.3+2128_weekly_bin759.fits outfile=/scratch/kocevski/547668/cmap_HighResolution_698025601_698630401_4FGL_J0045.3+2128_weekly_bin759.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.61
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/547668/ft1_filtered_4FGL_J0045.3+2128_weekly_bin759.fits', '/scratch/kocevski/547668/ft2_4FGL_J0045.3+2128_weekly_bin759.fits', expMap='/scratch/kocevski/547668/expmap_698025601_698630401_4FGL_J0045.3+2128_weekly_bin759.fits', expCube='/scratch/kocevski/547668/ltcube_698025601_698630401_4FGL_J0045.3+2128_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/547668/Model_4FGL_J0045.3+2128_weekly_bin759.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  0.000e+00  1.000e+06 ( 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 -5.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/547668/ft1_filtered_4FGL_J0045.3+2128_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/547668/ft2_4FGL_J0045.3+2128_weekly_bin759.fits
Exposure map: /scratch/kocevski/547668/expmap_698025601_698630401_4FGL_J0045.3+2128_weekly_bin759.fits
Exposure cube: /scratch/kocevski/547668/ltcube_698025601_698630401_4FGL_J0045.3+2128_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/547668/Model_4FGL_J0045.3+2128_weekly_bin759.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) = 19247.5886541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68819       1.0000          .0000       .10000E+07
     2 'Prefactor '    18.174       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10083E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.810       1.0000          .0000       .10000E+07
     5 'norm      '    5.0823       1.0000          .0000       .10000E+07
     6 'Prefactor '    .20536E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .45450E-03   1.0000          .0000       .10000E+07
     8 'norm      '    1.5969       1.0000          .0000       .10000E+07
     9 'Prefactor '    .32622E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .24793E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .42408E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .75470       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6978       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.4572       1.0000          .0000       .10000E+07
    15 'Prefactor '    .82200       1.0000          .0000       .10000E+07
    16 'Prefactor '    13.851       1.0000          .0000       .10000E+07
    17 'Normalizat'    .75456       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19247.52     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     1299 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68891        1.1681       -.34925E-07    .49993E-02
   2  Prefactor     18.166        1.3118        .38877E-08   -.87131E-01
   3  Prefactor      .0000        1.1457        .16898E-06** at limit **
   4  Prefactor     21.814        3.3474       -.17954E-07    .35753E-02
   5  norm          5.0545        4.6630       -.14053E-05   -.57966E-02
   6  Prefactor     .11102E-08    2.4879        .19963E-05** at limit **
   7  Prefactor      .0000        2.9930       -.15881E-06** at limit **
   8  norm          1.5974        1.9516       -.84011E-06   -.34948E-02
   9  Prefactor     .44409E-09    1.9978        .39566E-06** at limit **
  10  Prefactor     .98810E-08    16.831        .48283E-06** at limit **
  11  Prefactor      .0000        5.5140        .23336E-05** at limit **
  12  norm          .75433        .35404        .61443E-07    .29273E-01
  13  Prefactor     1.7067        4.6769       -.35156E-05    .12125E-02
  14  Prefactor     .98495        2.3469        .45592E-07   -.71760E-02
  15  Prefactor     .87820        2.0233       -.95298E-06    .10073E-02
  16  Prefactor     13.886        1.1368       -.31096E-07   -.52603E-03
  17  Normalizat    .75463        .13429       -.39119E-04    .18100E-03
  18  Prefactor     1.1496        .92393E-01    .11301E-04    .72337E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.688909
  Prefactor  = 18.1659
  Prefactor  = 0
  Prefactor  = 21.8144
  norm       = 5.05447
  Prefactor  = 1.11022e-09
  Prefactor  = 0
  norm       = 1.59737
  Prefactor  = 4.44089e-10
  Prefactor  = 9.88098e-09
  Prefactor  = 0
  norm       = 0.754335
  Prefactor  = 1.70675
  Prefactor  = 0.984947
  Prefactor  = 0.878201
  Prefactor  = 13.8863
  Normalizat = 0.754631
  Prefactor  = 1.1496
 **********
 **   18 **HESSE 
 **********

 FCN=   19247.52     FROM HESSE     STATUS=OK           284 CALLS     1583 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68891        1.2061        .61672E-03   -1.5691    
   2  Prefactor     18.166        6.9592        .23466E-03   -1.5623    
   3  Prefactor      .0000        1.1448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.814        3.3586        .21418E-03   -1.5615    
   5  norm          5.0545        4.6720        .44576E-03   -1.5663    
   6  Prefactor     .11102E-08    2.5238        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.0073        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5974        1.9603        .83889E-03   -1.5683    
   9  Prefactor     .44409E-09    2.0120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .98810E-08    16.849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        5.5394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .75433        .35963        .56375E-03   -1.5691    
  13  Prefactor     1.7067        4.7089        .80714E-03   -1.5682    
  14  Prefactor     .98495        77.116        .89137E-03   -1.5688    
  15  Prefactor     .87820        2.2008        .51309E-03   -1.5689    
  16  Prefactor     13.886        7.8280        .26887E-03   -1.5633    
  17  Normalizat    .75463        .11875        .75536E-01   -1.0177    
  18  Prefactor     1.1496        .80636E-01    .35946E-01   -.87897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92299e-08
Minuit parameter uncertainties:
  1  1.20611
  2  6.95915
  3  3.7844e-06
  4  3.35862
  5  4.67196
  6  0.000104994
  7  1.45434e-05
  8  1.96035
  9  5.80406e-05
  10  0.000816001
  11  1.88241e-05
  12  0.359629
  13  4.70892
  14  17.4307
  15  2.20075
  16  7.82801
  17  0.118788
  18  0.0806447
Done.

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

Extracting fit parameters...

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  1.597e+00  1.960e+00  0.000e+00  1.000e+06 ( 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 -5.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.150e+00  8.064e-02  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.546e-01  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 11.340 21.467
Photon Index (Fixed Index): 1.67 +/- 0.00
Photon Flux (Fixed Index): 2.84e-09 +/- 3.49e-09
Energy Flux (Fixed Index): 4.79e-06 +/- 5.88e-06

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

Saving results to:
/scratch/kocevski/547668/likelihoodResults_698025601_698630401_4FGL_J0045.3+2128_weekly_bin759.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) = 19247.1792332
delta logL = 0.34364510814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19247.1541237
delta logL = 0.368754589967

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1677       1.0000          .0000       .10000E+07
     2 'alpha     '    .94401       1.0000          .0000       5.0000    
     3 'Normalizat'    .75565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1496       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.

 FCN=   19247.15     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1754        1.3410        .10628E-02   -.77727E-02
   2  alpha         .94605        .61017        .50000       -.90081E-04
   3  Normalizat    .75555        .11570        .75492E-01    .71069E-04
   4  Prefactor     1.1497        .80209E-01    .35947E-01   -.10382E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.17541
  alpha      = 0.94605
  Normalizat = 0.755551
  Prefactor  = 1.14967
 **********
 **   18 **HESSE 
 **********

 FCN=   19247.15     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .86E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1754        1.7053        .16707E-04   -1.5686    
   2  alpha         .94605        .76670        .42792E-02   -.67076    
   3  Normalizat    .75555        .13272        .33416E-03   -1.0174    
   4  Prefactor     1.1497        .92213E-01    .19063E-03   -.87895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64562e-13
Minuit parameter uncertainties:
  1  1.70531
  2  0.787779
  3  0.132773
  4  0.0922255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547668': 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) = 19247.1541131
delta logL = 0.368765267332

Extracting fit parameters...

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  1.175e+00  1.705e+00  0.000e+00  1.000e+06 ( 1.000e-13)
171        alpha:  9.461e-01  7.878e-01  0.000e+00  5.000e+00 ( 1.000e+00)
172         beta:  7.630e-02  0.000e+00 -5.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.150e+00  9.223e-02  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.556e-01  1.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 11.340 21.467
Photon Index (Free Index): 0.95 +/- 0.79
Photon Flux (Free Index): 1.33e-09 +/- 1.71e-09
Energy Flux (Free Index): 1.51e-05 +/- 2.44e-05

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/547668/cmap_HighResolution_698025601_698630401_4FGL_J0045.3+2128_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', comment='SUCCESS', photon_flux='2.84e-09', energy_flux2='1.51e-05', photon_flux_error='3.49e-09', dlogl='3.69e-01', energy_flux='4.79e-06', photon_flux2='1.33e-09', job_status='DONE', time_completed='2023-02-21 01:06:58.037542', photon_index_error2='0.79', photon_index2='0.95', ts='1.71', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.52e-08', energy_flux_error2='2.44e-05', EG='0.75', time_epoch_completed='1676970418.04', return_code='0', job_id='547668', GAL2='1.15', EG2='0.76', return_code2='0', energy_flux_error='5.88e-06', photon_flux_error2='1.71e-09', ts2='2.44', photon_index='1.67' WHERE bin_id='759' AND source_name='4FGL J0045.3+2128' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 01:06:58 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 547668: <4FGL_J0045.3+2128_weekly_bin759> in cluster <slac> Done

Job <4FGL_J0045.3+2128_weekly_bin759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 00:50:31 2023
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:50:32 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:50:32 2023
Terminated at Tue Feb 21 01:06:58 2023
Results reported at Tue Feb 21 01:06:58 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.3+2128_weekly_bin759 11.3396 21.4668 698025601 698630401 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 :                                   961.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

