aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 9 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 = 17497
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0045.3+2128_weekly_bin321
RA = 11.3396, Dec = 21.4668
tmin = 433123201, tmax = 433728001
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='935709', job_status='RUN', time_executed='2021-07-03 08:21:21.903495', time_epoch_executed='1625325681.9' WHERE source_name='4FGL J0045.3+2128' and cadence='weekly' and bin_id='321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935709

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935709/ft1_4FGL_J0045.3+2128_weekly_bin321.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935709/ft2_4FGL_J0045.3+2128_weekly_bin321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935709/ft1_4FGL_J0045.3+2128_weekly_bin321.fits outfile=/scratch/kocevski/935709/ft1_filteredMKT_4FGL_J0045.3+2128_weekly_bin321.fits ra=11.3396 dec=21.4668 rad=12.0 tmin=433123201.0 tmax=433728001.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 13.21
user 12.71
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935709/ft1_filtered_4FGL_J0045.3+2128_weekly_bin321.fits" evtable="EVENTS" scfile=/scratch/kocevski/935709/ft2_4FGL_J0045.3+2128_weekly_bin321.fits sctable="SC_DATA" outfile=/scratch/kocevski/935709/ltcube_433123201_433728001_4FGL_J0045.3+2128_weekly_bin321.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/935709/ft2_4FGL_J0045.3+2128_weekly_bin321.fits
.....................!
real 27.29
user 26.70
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935709/ft1_filtered_4FGL_J0045.3+2128_weekly_bin321.fits evtable="EVENTS" scfile=/scratch/kocevski/935709/ft2_4FGL_J0045.3+2128_weekly_bin321.fits sctable="SC_DATA" expcube=/scratch/kocevski/935709/ltcube_433123201_433728001_4FGL_J0045.3+2128_weekly_bin321.fits outfile=/scratch/kocevski/935709/expmap_433123201_433728001_4FGL_J0045.3+2128_weekly_bin321.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/935709/ltcube_433123201_433728001_4FGL_J0045.3+2128_weekly_bin321.fits
.....................!
real 192.44
user 187.39
sys 4.66

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/935709/ft1_filtered_4FGL_J0045.3+2128_weekly_bin321.fits scfile=/scratch/kocevski/935709/ft2_4FGL_J0045.3+2128_weekly_bin321.fits outfile=/scratch/kocevski/935709/cmap_433123201_433728001_4FGL_J0045.3+2128_weekly_bin321.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.61
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935709/ft1_filtered_4FGL_J0045.3+2128_weekly_bin321.fits scfile=/scratch/kocevski/935709/ft2_4FGL_J0045.3+2128_weekly_bin321.fits outfile=/scratch/kocevski/935709/cmap_HighResolution_433123201_433728001_4FGL_J0045.3+2128_weekly_bin321.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.63
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95773E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .65809       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9054       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3220       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.996       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.663       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8102       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4499       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.245       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92956       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99728       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=   10628.93     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2077 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10727        .91709        .30254E-06   -.98079E-03
   2  Prefactor     .10000E-03    2.4498       -.10314E-06** at limit **
   3  Prefactor     .10000E-03    14.176        .27331E-05** at limit **
   4  Prefactor     .10000E-03    43.218       -.41916E-05** at limit **
   5  Prefactor     .65942        3.0164       -.49219E-08   -.71721E-03
   6  norm          .10000E-03    3.0755       -.54431E-07** at limit **
   7  Prefactor     6.9092        19.230        .17567E-05    .26161E-04
   8  Prefactor     .10000E-03    11.819       -.40092E-05** at limit **
   9  norm          3.3221        2.7588        .53108E-06   -.22053E-02
  10  Prefactor     .10000E-03    3.9017        .21999E-06** at limit **
  11  Prefactor     10.996        11.800       -.25899E-06   -.25015E-04
  12  Prefactor     .10000E-03    10.023        .23050E-05** at limit **
  13  Prefactor     26.658        30.262       -.37436E-05   -.10576E-03
  14  norm          3.8102        .76172        .49238E-07   -.50647E-03
  15  Prefactor     6.4508        6.6562       -.15309E-06   -.25446E-04
  16  Prefactor     .10000E-03    41.357        .80656E-05** at limit **
  17  Prefactor     .10000E-03    3.7989        .45224E-07** at limit **
  18  Prefactor     15.244        10.592        .94216E-07   -.53385E-04
  19  Normalizat    .92946        .15327       -.19244E-07   -.70191E-04
  20  Prefactor     .99730        .99149E-01    .64190E-07   -.10581E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.107271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.659423
  norm       = 0.0001
  Prefactor  = 6.90924
  Prefactor  = 0.0001
  norm       = 3.32213
  Prefactor  = 0.0001
  Prefactor  = 10.9961
  Prefactor  = 0.0001
  Prefactor  = 26.6581
  norm       = 3.81024
  Prefactor  = 6.45078
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.2441
  Normalizat = 0.92946
  Prefactor  = 0.997299
 **********
 **   18 **HESSE 
 **********

 FCN=   10628.93     FROM HESSE     STATUS=OK           289 CALLS     2366 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10727        8.4346        .18885E-02   -1.5642    
   2  Prefactor     .10000E-03    2.4545        .15757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.619        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    43.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .65942        3.3570        .34285E-03   -1.5546    
   6  norm          .10000E-03    3.0884        .17657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9092        19.106        .15267E-03   -1.5182    
   8  Prefactor     .10000E-03    12.081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3221        4.4359        .11105E-02   -1.5343    
  10  Prefactor     .10000E-03    4.0123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.996        11.973        .12082E-03   -1.5045    
  12  Prefactor     .10000E-03    10.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.658        30.541        .77582E-04   -1.4675    
  14  norm          3.8102        .76302        .36966E-04   -1.5318    
  15  Prefactor     6.4508        6.6608        .15803E-03   -1.5200    
  16  Prefactor     .10000E-03    42.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.8780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.244        10.585        .10258E-03   -1.4927    
  19  Normalizat    .92946        .17939        .30352E-03   -.95433    
  20  Prefactor     .99730        .11671        .19735E-03   -.92820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05877e-09
Minuit parameter uncertainties:
  1  1.90179
  2  3.57065e-06
  3  2.1389e-05
  4  0.00020779
  5  2.97571
  6  1.51538e-06
  7  19.1234
  8  7.43859e-05
  9  4.43634
  10  3.75148e-06
  11  11.9758
  12  5.55182e-05
  13  30.559
  14  0.763021
  15  6.66152
  16  0.000416744
  17  1.58961e-05
  18  10.5861
  19  0.179502
  20  0.116736
Done.

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

Extracting fit parameters...

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  3.322e+00  4.436e+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

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.973e-01  1.167e-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:  9.295e-01  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/935709/likelihoodResults_433123201_433728001_4FGL_J0045.3+2128_weekly_bin321.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) = 10626.8626037
delta logL = 2.06624226956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10626.6663446
delta logL = 2.26250136714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23146E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .76072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0717       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=   10626.67     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      368 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23114E-01    .23234        .15999E-02    .10552E-01
   2  alpha         5.0000        3.2372        .46268    ** at limit **
   3  Normalizat    .76145        .90725E-01    .74926E-01    .64930E-04
   4  Prefactor     1.0713        .60373E-01    .38778E-01   -.25200E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0231143
  alpha      = 5
  Normalizat = 0.761446
  Prefactor  = 1.07133
 **********
 **   18 **HESSE 
 **********

 FCN=   10626.67     FROM HESSE     STATUS=OK            33 CALLS      401 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23114E-01    .14396E-01    .71694E-05   -1.5678    
   2  alpha         5.0000        .39585        .38286        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .76145        .19020        .33165E-03   -1.0152    
   4  Prefactor     1.0713        .12218        .19113E-03   -.90388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65356e-11
Minuit parameter uncertainties:
  1  0.0143964
  2  3.8343e-05
  3  0.190364
  4  0.122212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935709': 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) = 10626.6663286
delta logL = 2.26251735112

Extracting fit parameters...

4FGL J0045.3+2128
   Spectrum: LogParabola
170         norm:  2.311e-02  1.440e-02  1.000e-04  1.000e+04 ( 1.000e-13)
171        alpha:  5.000e+00  3.834e-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.071e+00  1.222e-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.614e-01  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.24
Ra Dec: 11.340 21.467
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.37e-07 +/- 8.52e-08
Energy Flux (Free Index): 1.89e-05 +/- 1.18e-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/935709/cmap_HighResolution_433123201_433728001_4FGL_J0045.3+2128_weekly_bin321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-05', comment='SUCCESS', energy_flux2='1.89e-05', dlogl='2.26e+00', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-07-03 08:37:33.281792', photon_index_error2='0.00', photon_index2='5.00', ts='0.92', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.88e-08', energy_flux_error2='1.18e-05', EG='0.93', time_epoch_completed='1625326653.28', return_code='0', job_id='935709', GAL2='1.07', EG2='0.76', return_code2='0', photon_flux_error2='8.52e-08', ts2='6.24', photon_index='1.67' WHERE bin_id='321' AND source_name='4FGL J0045.3+2128' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 08:37:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 935709: <4FGL_J0045.3+2128_weekly_bin321> in cluster <slac> Done

Job <4FGL_J0045.3+2128_weekly_bin321> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Jul  3 08:20:58 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 08:21:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 08:21:00 2021
Terminated at Sat Jul  3 08:37:34 2021
Results reported at Sat Jul  3 08:37:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.3+2128_weekly_bin321 11.3396 21.4668 433123201 433728001 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 :                                   837.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            996 sec.

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

