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


Performing analysis on: 4FGL_J0521.7+2112_monthly_bin169
RA = 80.4445, Dec = 21.2131
tmin = 675043201, tmax = 677635201
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='161331', job_status='RUN', time_executed='2022-06-23 01:57:06.438722', time_epoch_executed='1655974626.44' WHERE source_name='4FGL J0521.7+2112' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161331

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161331/ft1_4FGL_J0521.7+2112_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161331/ft2_4FGL_J0521.7+2112_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161331/ft1_4FGL_J0521.7+2112_monthly_bin169.fits outfile=/scratch/kocevski/161331/ft1_filteredMKT_4FGL_J0521.7+2112_monthly_bin169.fits ra=80.4445 dec=21.2131 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.98
user 27.17
sys 0.72

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

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

Number of photons that the gtmktime cut: 12983

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/161331/ft1_filtered_4FGL_J0521.7+2112_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/161331/ft2_4FGL_J0521.7+2112_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/161331/ltcube_675043201_677635201_4FGL_J0521.7+2112_monthly_bin169.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/161331/ft2_4FGL_J0521.7+2112_monthly_bin169.fits
.....................!
real 148.65
user 147.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161331/ft1_filtered_4FGL_J0521.7+2112_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/161331/ft2_4FGL_J0521.7+2112_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/161331/ltcube_675043201_677635201_4FGL_J0521.7+2112_monthly_bin169.fits outfile=/scratch/kocevski/161331/expmap_675043201_677635201_4FGL_J0521.7+2112_monthly_bin169.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/161331/ltcube_675043201_677635201_4FGL_J0521.7+2112_monthly_bin169.fits
.....................!
real 193.08
user 187.61
sys 5.05

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/161331/ft1_filtered_4FGL_J0521.7+2112_monthly_bin169.fits scfile=/scratch/kocevski/161331/ft2_4FGL_J0521.7+2112_monthly_bin169.fits outfile=/scratch/kocevski/161331/cmap_675043201_677635201_4FGL_J0521.7+2112_monthly_bin169.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.90
user 0.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161331/ft1_filtered_4FGL_J0521.7+2112_monthly_bin169.fits scfile=/scratch/kocevski/161331/ft2_4FGL_J0521.7+2112_monthly_bin169.fits outfile=/scratch/kocevski/161331/cmap_HighResolution_675043201_677635201_4FGL_J0521.7+2112_monthly_bin169.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.82
user 0.65
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/161331/ft1_filtered_4FGL_J0521.7+2112_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/161331/ft2_4FGL_J0521.7+2112_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/161331/Model_4FGL_J0521.7+2112_monthly_bin169.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/161331/ft1_filtered_4FGL_J0521.7+2112_monthly_bin169.fits.....................!
real 2910.29
user 2903.18
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/161331/ft1_filtered_4FGL_J0521.7+2112_monthly_bin169.fits', '/scratch/kocevski/161331/ft2_4FGL_J0521.7+2112_monthly_bin169.fits', expMap='/scratch/kocevski/161331/expmap_675043201_677635201_4FGL_J0521.7+2112_monthly_bin169.fits', expCube='/scratch/kocevski/161331/ltcube_675043201_677635201_4FGL_J0521.7+2112_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/161331/Model_4FGL_J0521.7+2112_monthly_bin169.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/161331/ft1_filtered_4FGL_J0521.7+2112_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/161331/ft2_4FGL_J0521.7+2112_monthly_bin169.fits
Exposure map: /scratch/kocevski/161331/expmap_675043201_677635201_4FGL_J0521.7+2112_monthly_bin169.fits
Exposure cube: /scratch/kocevski/161331/ltcube_675043201_677635201_4FGL_J0521.7+2112_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/161331/Model_4FGL_J0521.7+2112_monthly_bin169.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) = 127815.760198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.554       1.0000         .10000E-03   10000.    
     2 'norm      '    .38271       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6694       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9402       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.294       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.214       1.0000         .10000E-03   10000.    
     9 'norm      '    4.7155       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7601       1.0000         .10000E-03   10000.    
    11 'norm      '    .13059E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1236       1.0000         .10000E-03   10000.    
    13 'norm      '    6.9898       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4956       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7428       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6791       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3410       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5612       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99758       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=   127815.7     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2188 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.596        23.435         .0000       -.40488E-03
   2  norm          .22219        3.0437         .0000        .15635E-02
   3  Prefactor     2.6686        2.8019         .0000        .25041E-01
   4  Prefactor     .10000E-03    .41735         .0000    ** at limit **
   5  norm          1.9402        1.5824         .0000        .57044E-02
   6  Prefactor     .10000E-03    .32498         .0000    ** at limit **
   7  Prefactor     26.293        16.507         .0000        .13532E-03
   8  Prefactor     20.204        18.959         .0000       -.15602E-02
   9  norm          4.7154        1.3242         .0000        .31077E-02
  10  Prefactor     1.7596        9.6383         .0000        .10668E-01
  11  norm          .10000E-03    .58964         .0000    ** at limit **
  12  Prefactor     1.1235        .66641E-01     .0000        .45056E-02
  13  norm          6.9899        1.5831         .0000        .55289E-01
  14  Prefactor     3.4956        .49106         .0000        .10688E-01
  15  Prefactor     3.7382        14.035         .0000       -.10523E-02
  16  Prefactor     .10000E-03    15.136         .0000    ** at limit **
  17  Prefactor     1.6792        2.4720         .0000        .13689    
  18  Prefactor     8.3396        4.5553         .0000        .63178E-03
  19  Normalizat    1.5613        .16780         .0000        .52469E-03
  20  Prefactor     .99759        .19570E-01     .0000        .25411E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 32.5962
  norm       = 0.222187
  Prefactor  = 2.66859
  Prefactor  = 0.0001
  norm       = 1.94023
  Prefactor  = 0.0001
  Prefactor  = 26.2934
  Prefactor  = 20.2041
  norm       = 4.71537
  Prefactor  = 1.75955
  norm       = 0.0001
  Prefactor  = 1.12355
  norm       = 6.98992
  Prefactor  = 3.49555
  Prefactor  = 3.73821
  Prefactor  = 0.0001
  Prefactor  = 1.67922
  Prefactor  = 8.33956
  Normalizat = 1.56126
  Prefactor  = 0.997593
 **********
 **   18 **HESSE 
 **********

 FCN=   127815.7     FROM HESSE     STATUS=OK           319 CALLS     2507 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.596        23.432        .70229E-04   -1.4565    
   2  norm          .22219        2.9605        .19502       -1.5614    
   3  Prefactor     2.6686        2.7942        .12472E-02   -1.5381    
   4  Prefactor     .10000E-03    .42292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9402        1.5720        .29806E-03   -1.5429    
   6  Prefactor     .10000E-03    1.1630        .39171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.293        16.505        .78123E-04   -1.4682    
   8  Prefactor     20.204        18.871        .89085E-04   -1.4809    
   9  norm          4.7154        1.3215        .18531E-03   -1.5274    
  10  Prefactor     1.7596        9.6228        .15792E-02   -1.5443    
  11  norm          .10000E-03    .79457        .81717E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1235        .72717E-01    .15345E-04   -1.5496    
  13  norm          6.9899        1.6798        .75870E-03   -1.5179    
  14  Prefactor     3.4956        .51387        .69488E-04   -1.5334    
  15  Prefactor     3.7382        14.016        .20871E-03   -1.5321    
  16  Prefactor     .10000E-03    15.711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6792        2.4536        .16256E-02   -1.5449    
  18  Prefactor     8.3396        4.5612        .13881E-03   -1.5130    
  19  Normalizat    1.5613        .17169        .93655E-03   -.76071    
  20  Prefactor     .99759        .20686E-01    .14085E-03   -.92810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63112e-08
Minuit parameter uncertainties:
  1  23.4385
  2  1.62181
  3  2.79435
  4  5.54467e-08
  5  1.57202
  6  3.39344e-06
  7  16.508
  8  18.8767
  9  1.32155
  10  8.23145
  11  1.56196e-06
  12  0.0727168
  13  1.67985
  14  0.513876
  15  14.0287
  16  9.47581e-06
  17  2.45376
  18  4.56142
  19  0.17175
  20  0.0206859
Done.

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

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  4.715e+00  1.322e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.976e-01  2.069e-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.561e+00  1.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.38
Ra Dec: 80.445 21.213
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 7.41e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 7.19e-05 +/- 2.02e-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) = 127813.786214
delta logL = 1.96214967182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 127813.776706
delta logL = 1.97165745325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3845       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3084       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99859       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=   127813.8     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      293 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3845        1.3465        .19234E-04   -.42556E-03
   2  alpha         2.3084        .23981        .17108E-01    .16680E-03
   3  Normalizat    1.5188        .16162        .94614E-03    .70461E-03
   4  Prefactor     .99859        .20024E-01    .14070E-03    .56105E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 4.38452
  alpha      = 2.30841
  Normalizat = 1.51877
  Prefactor  = 0.99859
 **********
 **   18 **HESSE 
 **********

 FCN=   127813.8     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3845        1.2562        .76938E-06   -1.5289    
   2  alpha         2.3084        .22358        .68432E-03   -.76712E-01
   3  Normalizat    1.5188        .16122        .37846E-04   -.77252    
   4  Prefactor     .99859        .20011E-01    .28140E-04   -.92777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44527e-10
Minuit parameter uncertainties:
  1  1.25621
  2  0.223881
  3  0.161274
  4  0.0200114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161331': 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) = 127813.776706
delta logL = 1.97165745782

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  4.385e+00  1.256e+00  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  2.308e+00  2.239e-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.986e-01  2.001e-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.519e+00  1.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.46
Ra Dec: 80.445 21.213
Photon Index (Free Index): 2.31 +/- 0.22
Photon Flux (Free Index): 1.52e-07 +/- 5.35e-08
Energy Flux (Free Index): 5.99e-05 +/- 1.45e-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/161331/cmap_HighResolution_675043201_677635201_4FGL_J0521.7+2112_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.41e-08', energy_flux2='5.99e-05', photon_flux_error='2.08e-08', dlogl='1.97e+00', energy_flux='7.19e-05', photon_flux2='1.52e-07', job_status='DONE', time_completed='2022-06-23 04:11:57.609147', photon_index_error2='0.22', photon_index2='2.31', ts='28.38', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.56', time_epoch_completed='1655982717.61', return_code='0', job_id='161331', GAL2='1.00', EG2='1.52', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='5.35e-08', ts2='32.46', photon_index='1.85' WHERE bin_id='169' AND source_name='4FGL J0521.7+2112' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 04:11:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 161331: <4FGL_J0521.7+2112_monthly_bin169> in cluster <slac> Done

Job <4FGL_J0521.7+2112_monthly_bin169> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 01:20:44 2022
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:56:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 01:56:18 2022
Terminated at Thu Jun 23 04:11:58 2022
Results reported at Thu Jun 23 04:11:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.7+2112_monthly_bin169 80.4445 21.2131 675043201 677635201 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 :                                   8063.00 sec.
    Max Memory :                                 1268 MB
    Average Memory :                             518.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   8141 sec.
    Turnaround time :                            10274 sec.

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

