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


Performing analysis on: 4FGL_J0521.7+2112_monthly_bin171
RA = 80.4445, Dec = 21.2131
tmin = 680227201, tmax = 682819201
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='106830', job_status='RUN', time_executed='2022-09-16 16:25:44.118251', time_epoch_executed='1663370744.12' WHERE source_name='4FGL J0521.7+2112' and cadence='monthly' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106830

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106830/ft1_4FGL_J0521.7+2112_monthly_bin171.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106830/ft2_4FGL_J0521.7+2112_monthly_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106830/ft1_4FGL_J0521.7+2112_monthly_bin171.fits outfile=/scratch/kocevski/106830/ft1_filteredMKT_4FGL_J0521.7+2112_monthly_bin171.fits ra=80.4445 dec=21.2131 rad=12.0 tmin=680227201.0 tmax=682819201.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 28.95
user 28.22
sys 0.73

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/106830/ft2_4FGL_J0521.7+2112_monthly_bin171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/106830/ft2_4FGL_J0521.7+2112_monthly_bin171.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/106830/ft1_filteredMKT_4FGL_J0521.7+2112_monthly_bin171.fits evtable="EVENTS" outfile="/scratch/kocevski/106830/ft1_filtered_4FGL_J0521.7+2112_monthly_bin171.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.89
user 0.67
sys 0.19

Number of photons that the gtmktime cut: 28358

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106830/ft1_filtered_4FGL_J0521.7+2112_monthly_bin171.fits" evtable="EVENTS" scfile=/scratch/kocevski/106830/ft2_4FGL_J0521.7+2112_monthly_bin171.fits sctable="SC_DATA" outfile=/scratch/kocevski/106830/ltcube_680227201_682819201_4FGL_J0521.7+2112_monthly_bin171.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/106830/ft2_4FGL_J0521.7+2112_monthly_bin171.fits
.....................!
real 129.36
user 128.87
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106830/ft1_filtered_4FGL_J0521.7+2112_monthly_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/106830/ft2_4FGL_J0521.7+2112_monthly_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/106830/ltcube_680227201_682819201_4FGL_J0521.7+2112_monthly_bin171.fits outfile=/scratch/kocevski/106830/expmap_680227201_682819201_4FGL_J0521.7+2112_monthly_bin171.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/106830/ltcube_680227201_682819201_4FGL_J0521.7+2112_monthly_bin171.fits
.....................!
real 192.25
user 186.95
sys 5.30

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 164 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0521.7+2112 @ 80.4445 21.2131

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/106830/ft1_filtered_4FGL_J0521.7+2112_monthly_bin171.fits scfile=/scratch/kocevski/106830/ft2_4FGL_J0521.7+2112_monthly_bin171.fits outfile=/scratch/kocevski/106830/cmap_680227201_682819201_4FGL_J0521.7+2112_monthly_bin171.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=80.4445 yref=21.2131 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.87
user 0.67
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106830/ft1_filtered_4FGL_J0521.7+2112_monthly_bin171.fits scfile=/scratch/kocevski/106830/ft2_4FGL_J0521.7+2112_monthly_bin171.fits outfile=/scratch/kocevski/106830/cmap_HighResolution_680227201_682819201_4FGL_J0521.7+2112_monthly_bin171.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=80.4445 yref=21.2131 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.89
user 0.66
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/106830/ft1_filtered_4FGL_J0521.7+2112_monthly_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/106830/ft2_4FGL_J0521.7+2112_monthly_bin171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/106830/Model_4FGL_J0521.7+2112_monthly_bin171.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
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/106830/ft1_filtered_4FGL_J0521.7+2112_monthly_bin171.fits.....................!
real 6092.61
user 6090.35
sys 2.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/106830/ft1_filtered_4FGL_J0521.7+2112_monthly_bin171.fits', '/scratch/kocevski/106830/ft2_4FGL_J0521.7+2112_monthly_bin171.fits', expMap='/scratch/kocevski/106830/expmap_680227201_682819201_4FGL_J0521.7+2112_monthly_bin171.fits', expCube='/scratch/kocevski/106830/ltcube_680227201_682819201_4FGL_J0521.7+2112_monthly_bin171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/106830/Model_4FGL_J0521.7+2112_monthly_bin171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0521.7+2112'

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  4.785e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
235        alpha:  1.851e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  4.583e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  1.542e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/106830/ft1_filtered_4FGL_J0521.7+2112_monthly_bin171.fits
Spacecraft file(s): /scratch/kocevski/106830/ft2_4FGL_J0521.7+2112_monthly_bin171.fits
Exposure map: /scratch/kocevski/106830/expmap_680227201_682819201_4FGL_J0521.7+2112_monthly_bin171.fits
Exposure cube: /scratch/kocevski/106830/ltcube_680227201_682819201_4FGL_J0521.7+2112_monthly_bin171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/106830/Model_4FGL_J0521.7+2112_monthly_bin171.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) = 270126.443622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4389       1.0000          .0000       .10000E+07
     2 'norm      '    21.498       1.0000          .0000       .10000E+07
     3 'Prefactor '    .81559       1.0000          .0000       .10000E+07
     4 'Prefactor '    .20725       1.0000          .0000       .10000E+07
     5 'norm      '    .11491E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .63190       1.0000          .0000       .10000E+07
     7 'Prefactor '    15.183       1.0000          .0000       .10000E+07
     8 'norm      '    3.6293       1.0000          .0000       .10000E+07
     9 'norm      '    .29655       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1944       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5374       1.0000          .0000       .10000E+07
    12 'Prefactor '    .20450E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .87160       1.0000          .0000       .10000E+07
    14 'Prefactor '    .28463       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.5376       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .96923       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   270126.0     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      953 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1925        8.8729        .28577E-06    .12967E-02
   2  norm          21.537        1.5575       -.47084E-08    .10693    
   3  Prefactor     .77858        1.9405       -.12725E-06    .19505E-02
   4  Prefactor     .20731        .91906        .11743E-06** at limit **
   5  norm           .0000        .44821       -.57267E-07** at limit **
   6  Prefactor     .63240        .60979       -.79776E-07    .34260E-02
   7  Prefactor     15.009        11.794       -.41994E-07    .86322E-02
   8  norm          3.6294        .68323        .49679E-07   -.14198E-01
   9  norm          .29855        1.1834        .15181E-06   -.68464E-03
  10  Prefactor     1.1944        .38548E-01   -.20960E-07    .29380E-02
  11  Prefactor     2.5374        .29107        .90288E-08   -.21988E-02
  12  Prefactor      .0000        2.8704        .46086E-07** at limit **
  13  Prefactor     .86574        1.0823       -.19102E-07    .66453E-03
  14  Prefactor     .27688        4.3580       -.81662E-07   -.39406E-04
  15  Normalizat    1.5379        .10878       -.25802E-05   -.66321E-05
  16  Prefactor     .96924        .13557E-01    .46503E-06   -.10165E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.19247
  norm       = 21.537
  Prefactor  = 0.77858
  Prefactor  = 0.207308
  norm       = 0
  Prefactor  = 0.632395
  Prefactor  = 15.0094
  norm       = 3.62936
  norm       = 0.298546
  Prefactor  = 1.19436
  Prefactor  = 2.53742
  Prefactor  = 0
  Prefactor  = 0.865745
  Prefactor  = 0.276881
  Normalizat = 1.53793
  Prefactor  = 0.96924
 **********
 **   18 **HESSE 
 **********

 FCN=   270126.0     FROM HESSE     STATUS=OK           255 CALLS     1208 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1925        8.8793        .65488E-03   -1.5678    
   2  norm          21.537        8.0488        .21574E-03   -1.5615    
   3  Prefactor     .77858        1.9432        .51780E-03   -1.5690    
   4  Prefactor     .20731        .34963        .64924E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .43531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .63240        .61033        .66417E-03   -1.5692    
   7  Prefactor     15.009        11.959        .25678E-03   -1.5630    
   8  norm          3.6294        .68421        .53007E-03   -1.5670    
   9  norm          .29855        .44455        .10261E-01   -1.5697    
  10  Prefactor     1.1944        .37524E-01    .30993E-02   -1.5489    
  11  Prefactor     2.5374        .28559        .64088E-03   -1.5676    
  12  Prefactor      .0000        2.8574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .86574        1.0927        .47743E-03   -1.5689    
  14  Prefactor     .27688        .60751        .10430E-01   -1.5697    
  15  Normalizat    1.5379        .10592        .19592       -.76718    
  16  Prefactor     .96924        .12811E-01    .30928E-01   -.93762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86759e-07
Minuit parameter uncertainties:
  1  8.82441
  2  8.04878
  3  1.94325
  4  0.349626
  5  1.60672e-06
  6  0.610334
  7  11.9592
  8  0.684207
  9  0.444545
  10  0.0375245
  11  0.28559
  12  3.25106e-06
  13  1.09273
  14  0.607513
  15  0.105935
  16  0.0128113
Done.

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

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  3.629e+00  6.842e-01  0.000e+00  1.000e+06 ( 1.000e-12)
235        alpha:  1.851e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  4.583e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  1.542e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.692e-01  1.281e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.538e+00  1.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 94.05
Ra Dec: 80.445 21.213
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 5.71e-08 +/- 1.08e-08
Energy Flux (Fixed Index): 5.53e-05 +/- 1.04e-05

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) = 270125.993999
delta logL = 0.00603002944263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 270125.993707
delta logL = 0.00632193667116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6445       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8707       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96925       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   270126.0     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      261 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6445        .68514        .90164E-04   -.39517E-01
   2  alpha         1.8707        .17023        .22535E-01   -.28276E-03
   3  Normalizat    1.5369        .10209        .87329E-03    .31994E-04
   4  Prefactor     .96924        .13200E-01    .13667E-03   -.13842E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64449
  alpha      = 1.87068
  Normalizat = 1.53686
  Prefactor  = 0.969243
 **********
 **   18 **HESSE 
 **********

 FCN=   270126.0     FROM HESSE     STATUS=OK            27 CALLS      288 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6445        .69023        .36066E-05   -1.5670    
   2  alpha         1.8707        .17156        .45069E-02   -.25447    
   3  Normalizat    1.5369        .10208        .17466E-03   -.76748    
   4  Prefactor     .96924        .13202E-01    .27334E-04   -.93762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17268e-10
Minuit parameter uncertainties:
  1  0.690234
  2  0.1717
  3  0.102094
  4  0.0132025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106830': 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) = 270125.993707
delta logL = 0.00632199674146

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  3.644e+00  6.902e-01  0.000e+00  1.000e+06 ( 1.000e-12)
235        alpha:  1.871e+00  1.717e-01  0.000e+00  5.000e+00 ( 1.000e+00)
236         beta:  4.583e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  1.542e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.692e-01  1.320e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.537e+00  1.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 94.16
Ra Dec: 80.445 21.213
Photon Index (Free Index): 1.87 +/- 0.17
Photon Flux (Free Index): 5.90e-08 +/- 2.05e-08
Energy Flux (Free Index): 5.45e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/106830/cmap_HighResolution_680227201_682819201_4FGL_J0521.7+2112_monthly_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.71e-08', energy_flux2='5.45e-05', photon_flux_error='1.08e-08', dlogl='6.32e-03', energy_flux='5.53e-05', photon_flux2='5.90e-08', job_status='DONE', time_completed='2022-09-16 19:45:09.783262', photon_index_error2='0.17', photon_index2='1.87', ts='94.05', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.54', time_epoch_completed='1663382709.78', return_code='0', job_id='106830', GAL2='0.97', EG2='1.54', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.05e-08', ts2='94.16', photon_index='1.85' WHERE bin_id='171' AND source_name='4FGL J0521.7+2112' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:45:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 106830: <4FGL_J0521.7+2112_monthly_bin171> in cluster <slac> Done

Job <4FGL_J0521.7+2112_monthly_bin171> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 16:05:46 2022
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:25:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:25:26 2022
Terminated at Fri Sep 16 19:45:11 2022
Results reported at Fri Sep 16 19:45:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.7+2112_monthly_bin171 80.4445 21.2131 680227201 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0521.7+2112 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11952.00 sec.
    Max Memory :                                 1279 MB
    Average Memory :                             644.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11985 sec.
    Turnaround time :                            13165 sec.

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

