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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 74 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 = 17171
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0521.7+2112_weekly_bin528
RA = 80.4445, Dec = 21.2131
tmin = 558316801, tmax = 558921601
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='959321', job_status='RUN', time_executed='2021-07-08 18:29:55.468785', time_epoch_executed='1625794195.47' WHERE source_name='4FGL J0521.7+2112' and cadence='weekly' and bin_id='528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/959321

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/959321/ft1_4FGL_J0521.7+2112_weekly_bin528.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/959321/ft2_4FGL_J0521.7+2112_weekly_bin528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/959321/ft1_4FGL_J0521.7+2112_weekly_bin528.fits outfile=/scratch/kocevski/959321/ft1_filteredMKT_4FGL_J0521.7+2112_weekly_bin528.fits ra=80.4445 dec=21.2131 rad=12.0 tmin=558316801.0 tmax=558921601.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.13
user 7.67
sys 0.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/959321/ft2_4FGL_J0521.7+2112_weekly_bin528.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/959321/ft1_filteredMKT_4FGL_J0521.7+2112_weekly_bin528.fits evtable="EVENTS" outfile="/scratch/kocevski/959321/ft1_filtered_4FGL_J0521.7+2112_weekly_bin528.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.64
user 0.37
sys 0.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/959321/ft1_filtered_4FGL_J0521.7+2112_weekly_bin528.fits" evtable="EVENTS" scfile=/scratch/kocevski/959321/ft2_4FGL_J0521.7+2112_weekly_bin528.fits sctable="SC_DATA" outfile=/scratch/kocevski/959321/ltcube_558316801_558921601_4FGL_J0521.7+2112_weekly_bin528.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/959321/ft2_4FGL_J0521.7+2112_weekly_bin528.fits
.....................!
real 29.47
user 28.82
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/959321/ft1_filtered_4FGL_J0521.7+2112_weekly_bin528.fits evtable="EVENTS" scfile=/scratch/kocevski/959321/ft2_4FGL_J0521.7+2112_weekly_bin528.fits sctable="SC_DATA" expcube=/scratch/kocevski/959321/ltcube_558316801_558921601_4FGL_J0521.7+2112_weekly_bin528.fits outfile=/scratch/kocevski/959321/expmap_558316801_558921601_4FGL_J0521.7+2112_weekly_bin528.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/959321/ltcube_558316801_558921601_4FGL_J0521.7+2112_weekly_bin528.fits
.....................!
real 189.73
user 183.92
sys 5.07

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_archive_v18/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/959321/ft1_filtered_4FGL_J0521.7+2112_weekly_bin528.fits scfile=/scratch/kocevski/959321/ft2_4FGL_J0521.7+2112_weekly_bin528.fits outfile=/scratch/kocevski/959321/cmap_558316801_558921601_4FGL_J0521.7+2112_weekly_bin528.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.69
user 0.44
sys 0.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/959321/ft1_filtered_4FGL_J0521.7+2112_weekly_bin528.fits scfile=/scratch/kocevski/959321/ft2_4FGL_J0521.7+2112_weekly_bin528.fits outfile=/scratch/kocevski/959321/cmap_HighResolution_558316801_558921601_4FGL_J0521.7+2112_weekly_bin528.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.69
user 0.42
sys 0.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/959321/ft1_filtered_4FGL_J0521.7+2112_weekly_bin528.fits evtable="EVENTS" scfile=/scratch/kocevski/959321/ft2_4FGL_J0521.7+2112_weekly_bin528.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/959321/Model_4FGL_J0521.7+2112_weekly_bin528.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/959321/ft1_filtered_4FGL_J0521.7+2112_weekly_bin528.fits.....................!
real 1869.07
user 1863.03
sys 1.74

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/959321/ft1_filtered_4FGL_J0521.7+2112_weekly_bin528.fits', '/scratch/kocevski/959321/ft2_4FGL_J0521.7+2112_weekly_bin528.fits', expMap='/scratch/kocevski/959321/expmap_558316801_558921601_4FGL_J0521.7+2112_weekly_bin528.fits', expCube='/scratch/kocevski/959321/ltcube_558316801_558921601_4FGL_J0521.7+2112_weekly_bin528.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/959321/Model_4FGL_J0521.7+2112_weekly_bin528.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  1.000e-04  1.000e+04 ( 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  0.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/959321/ft1_filtered_4FGL_J0521.7+2112_weekly_bin528.fits
Spacecraft file(s): /scratch/kocevski/959321/ft2_4FGL_J0521.7+2112_weekly_bin528.fits
Exposure map: /scratch/kocevski/959321/expmap_558316801_558921601_4FGL_J0521.7+2112_weekly_bin528.fits
Exposure cube: /scratch/kocevski/959321/ltcube_558316801_558921601_4FGL_J0521.7+2112_weekly_bin528.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/959321/Model_4FGL_J0521.7+2112_weekly_bin528.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) = 84136.5233218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.358       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6929       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0835       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3138       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2174       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.217       1.0000         .10000E-03   10000.    
     9 'norm      '    .99436       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3284       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0871       1.0000         .10000E-03   10000.    
    13 'norm      '    6.7408       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8011       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.469       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6044       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2098       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95587       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.

 FCN=   84136.51     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2068 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.4654         .0000    ** at limit **
   2  norm          15.359        13.677         .0000       -.84691E-03
   3  Prefactor     .10000E-03    3.8316         .0000    ** at limit **
   4  Prefactor     4.6928        1.9280         .0000        .29072E-02
   5  norm          2.0837        1.8965         .0000        .10230    
   6  Prefactor     1.3142        1.4886         .0000        .60026E-02
   7  Prefactor     3.2175        13.889         .0000        .13608E-03
   8  Prefactor     23.216        20.779         .0000        .20714E-02
   9  norm          .99438        .91795         .0000       -.20928E-02
  10  Prefactor     .10000E-03    2.4493         .0000    ** at limit **
  11  norm          1.3289        2.6940         .0000        .12125    
  12  Prefactor     1.0871        .72440E-01     .0000        .22519E-02
  13  norm          6.7402        1.9186         .0000        .54953E-01
  14  Prefactor     1.8010        .45698         .0000        .11178E-01
  15  Prefactor     21.468        16.339         .0000        .14256E-02
  16  Prefactor     .10000E-03    4.7433         .0000    ** at limit **
  17  Prefactor     .10000E-03    .75560         .0000    ** at limit **
  18  Prefactor     8.6043        3.5918         .0000        .11465E-01
  19  Normalizat    1.2098        .18930         .0000        .36513E-03
  20  Prefactor     .95587        .22593E-01     .0000       -.71860E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 15.3586
  Prefactor  = 0.0001
  Prefactor  = 4.69284
  norm       = 2.0837
  Prefactor  = 1.31417
  Prefactor  = 3.21755
  Prefactor  = 23.2164
  norm       = 0.994383
  Prefactor  = 0.0001
  norm       = 1.32892
  Prefactor  = 1.08714
  norm       = 6.74016
  Prefactor  = 1.80096
  Prefactor  = 21.4683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.60434
  Normalizat = 1.20977
  Prefactor  = 0.955868
 **********
 **   18 **HESSE 
 **********

 FCN=   84136.51     FROM HESSE     STATUS=OK           297 CALLS     2365 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.4843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.359        13.671        .10220E-03   -1.4924    
   3  Prefactor     .10000E-03    3.9666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6928        1.9246        .18576E-03   -1.5275    
   5  norm          2.0837        1.8860        .14303E-02   -1.5419    
   6  Prefactor     1.3142        1.4615        .36419E-03   -1.5479    
   7  Prefactor     3.2175        13.881        .22585E-03   -1.5349    
   8  Prefactor     23.216        20.746        .83131E-04   -1.4744    
   9  norm          .99438        .66274        .25761E-02   -1.5509    
  10  Prefactor     .10000E-03    2.4583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3289        2.6845        .19059E-02   -1.5477    
  12  Prefactor     1.0871        .79638E-01    .12789E-04   -1.5499    
  13  norm          6.7402        2.0667        .77273E-03   -1.5189    
  14  Prefactor     1.8010        .47399        .68570E-04   -1.5440    
  15  Prefactor     21.468        16.312        .86445E-04   -1.4781    
  16  Prefactor     .10000E-03    4.7731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .76728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.6043        3.5939        .68328E-03   -1.5121    
  19  Normalizat    1.2098        .18675        .92106E-03   -.86302    
  20  Prefactor     .95587        .23034E-01    .13031E-03   -.94215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52713e-08
Minuit parameter uncertainties:
  1  1.80102e-05
  2  13.6736
  3  4.04222e-06
  4  1.92464
  5  1.88602
  6  1.46155
  7  13.3713
  8  20.7527
  9  0.662741
  10  1.36571e-07
  11  2.6847
  12  0.0796382
  13  2.06676
  14  0.473995
  15  16.3154
  16  5.56783e-07
  17  1.09968e-06
  18  3.59404
  19  0.186853
  20  0.0230345
Done.

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

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  9.944e-01  6.627e-01  1.000e-04  1.000e+04 ( 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  0.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.559e-01  2.303e-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.210e+00  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.53
Ra Dec: 80.445 21.213
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.56e-08 +/- 1.04e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.01e-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) = 84135.7469442
delta logL = 0.759046552339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 84135.742085
delta logL = 0.763905733445

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54096       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1743       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95621       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.

 FCN=   84135.74     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54094        .64202        .52728E-01   -.11250E-01
   2  alpha         1.1742        .36330        .50000       -.45824E-03
   3  Normalizat    1.2137        .17211        .20634        .34368E-03
   4  Prefactor     .95621        .22058E-01    .29485E-01   -.12145E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.540938
  alpha      = 1.17423
  Normalizat = 1.21373
  Prefactor  = 0.956212
 **********
 **   18 **HESSE 
 **********

 FCN=   84135.74     FROM HESSE     STATUS=OK            35 CALLS      281 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54094        .61167        .21494E-02   -1.5561    
   2  alpha         1.1742        .53992        .42430E-01   -.55896    
   3  Normalizat    1.2137        .17371        .91990E-03   -.86179    
   4  Prefactor     .95621        .22465E-01    .13030E-03   -.94204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34345e-07
Minuit parameter uncertainties:
  1  0.611678
  2  0.545935
  3  0.173796
  4  0.0224657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/959321': 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) = 84135.742085
delta logL = 0.763905739732

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  5.409e-01  6.117e-01  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  1.174e+00  5.459e-01  0.000e+00  5.000e+00 ( 1.000e+00)
236         beta:  4.583e-02  0.000e+00  0.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.562e-01  2.247e-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.214e+00  1.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.05
Ra Dec: 80.445 21.213
Photon Index (Free Index): 1.17 +/- 0.55
Photon Flux (Free Index): 4.62e-09 +/- 5.38e-09
Energy Flux (Free Index): 3.14e-05 +/- 3.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/959321/cmap_HighResolution_558316801_558921601_4FGL_J0521.7+2112_weekly_bin528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.56e-08', energy_flux2='3.14e-05', photon_flux_error='1.04e-08', dlogl='7.64e-01', energy_flux='1.52e-05', photon_flux2='4.62e-09', job_status='DONE', time_completed='2021-07-08 19:58:43.458338', photon_index_error2='0.55', photon_index2='1.17', ts='10.53', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='3.01e-05', EG='1.21', time_epoch_completed='1625799523.46', return_code='0', job_id='959321', GAL2='0.96', EG2='1.21', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='5.38e-09', ts2='12.05', photon_index='1.85' WHERE bin_id='528' AND source_name='4FGL J0521.7+2112' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  8 19:58:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 959321: <4FGL_J0521.7+2112_weekly_bin528> in cluster <slac> Done

Job <4FGL_J0521.7+2112_weekly_bin528> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Jul  8 06:42:06 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul  8 07:26:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul  8 07:26:48 2021
Terminated at Thu Jul  8 19:58:44 2021
Results reported at Thu Jul  8 19:58:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.7+2112_weekly_bin528 80.4445 21.2131 558316801 558921601 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 :                                   5126.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             97.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   45116 sec.
    Turnaround time :                            47798 sec.

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

