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


Performing analysis on: 4FGL_J0521.7+2112_monthly_bin167
RA = 80.4445, Dec = 21.2131
tmin = 669859201, tmax = 672451201
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='879032', job_status='RUN', time_executed='2022-04-24 01:05:38.856090', time_epoch_executed='1650787538.86' WHERE source_name='4FGL J0521.7+2112' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/879032

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/879032/ft1_4FGL_J0521.7+2112_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/879032/ft2_4FGL_J0521.7+2112_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/879032/ft1_4FGL_J0521.7+2112_monthly_bin167.fits outfile=/scratch/kocevski/879032/ft1_filteredMKT_4FGL_J0521.7+2112_monthly_bin167.fits ra=80.4445 dec=21.2131 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.11
user 37.30
sys 0.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/879032/ft2_4FGL_J0521.7+2112_monthly_bin167.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/879032/ft1_filteredMKT_4FGL_J0521.7+2112_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/879032/ft1_filtered_4FGL_J0521.7+2112_monthly_bin167.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.86
user 0.65
sys 0.20

Number of photons that the gtmktime cut: 26057

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/879032/ft1_filtered_4FGL_J0521.7+2112_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/879032/ft2_4FGL_J0521.7+2112_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/879032/ltcube_669859201_672451201_4FGL_J0521.7+2112_monthly_bin167.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/879032/ft2_4FGL_J0521.7+2112_monthly_bin167.fits
.....................!
real 113.60
user 112.97
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/879032/ft1_filtered_4FGL_J0521.7+2112_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/879032/ft2_4FGL_J0521.7+2112_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/879032/ltcube_669859201_672451201_4FGL_J0521.7+2112_monthly_bin167.fits outfile=/scratch/kocevski/879032/expmap_669859201_672451201_4FGL_J0521.7+2112_monthly_bin167.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/879032/ltcube_669859201_672451201_4FGL_J0521.7+2112_monthly_bin167.fits
.....................!
real 194.08
user 188.05
sys 5.65

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/879032/ft1_filtered_4FGL_J0521.7+2112_monthly_bin167.fits scfile=/scratch/kocevski/879032/ft2_4FGL_J0521.7+2112_monthly_bin167.fits outfile=/scratch/kocevski/879032/cmap_669859201_672451201_4FGL_J0521.7+2112_monthly_bin167.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.82
user 0.65
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/879032/ft1_filtered_4FGL_J0521.7+2112_monthly_bin167.fits scfile=/scratch/kocevski/879032/ft2_4FGL_J0521.7+2112_monthly_bin167.fits outfile=/scratch/kocevski/879032/cmap_HighResolution_669859201_672451201_4FGL_J0521.7+2112_monthly_bin167.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.83
user 0.64
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/879032/ft1_filtered_4FGL_J0521.7+2112_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/879032/ft2_4FGL_J0521.7+2112_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/879032/Model_4FGL_J0521.7+2112_monthly_bin167.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/879032/ft1_filtered_4FGL_J0521.7+2112_monthly_bin167.fits.....................!
real 5469.88
user 5455.69
sys 4.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.313       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0238       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .67718       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .73279       1.0000         .10000E-03   10000.    
     5 'norm      '    .84976       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4967       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.981       1.0000         .10000E-03   10000.    
     9 'norm      '    6.5814       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2347       1.0000         .10000E-03   10000.    
    11 'norm      '    .11195E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1802       1.0000         .10000E-03   10000.    
    13 'norm      '    7.3540       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0734       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4158       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .88003       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34453       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2766       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97997       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=   251549.0     FROM MIGRAD    STATUS=CONVERGED     53 CALLS     1497 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.312        1.2948       -.27188E-06    .29969E-02
   2  norm          3.0285        1.2970       -.48644E-06    .40437E-03
   3  Prefactor     .68018        1.5561        .82891E-07    .76478E-04
   4  Prefactor     .73433        .76410        .53925E-07    .54035E-03
   5  norm          .84992        1.2439       -.20378E-06    .82583E-03
   6  Prefactor     1.4967        1.0167        .85878E-07    .13133E-03
   7  Prefactor     .10000E-03    5.7117       -.72696E-06** at limit **
   8  Prefactor     32.982        1.5355        .24655E-06   -.72432E-02
   9  norm          6.5814        .87987       -.20302E-08   -.12866E-02
  10  Prefactor     3.2418        3.8958       -.17245E-05   -.12939E-02
  11  norm          .10000E-03    1.4326       -.24013E-05** at limit **
  12  Prefactor     1.1802        .51947E-01   -.14512E-07   -.94523E-02
  13  norm          7.3538        1.3593        .23735E-06   -.20805E-02
  14  Prefactor     2.0734        .31680        .42317E-07   -.13269E-02
  15  Prefactor     1.4124        1.9476       -.16174E-05    .12999E-02
  16  Prefactor     .10000E-03    1.4042        .11643E-05** at limit **
  17  Prefactor     .88340        1.4111       -.37081E-07   -.45296E-03
  18  Prefactor     .34528        .68619       -.16404E-06   -.22698E-03
  19  Normalizat    1.2765        .11598        .16897E-06    .67679E-04
  20  Prefactor     .97997        .13862E-01    .39355E-07    .88196E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.3124
  norm       = 3.02846
  Prefactor  = 0.680181
  Prefactor  = 0.734327
  norm       = 0.849921
  Prefactor  = 1.49665
  Prefactor  = 0.000100001
  Prefactor  = 32.9822
  norm       = 6.58138
  Prefactor  = 3.24182
  norm       = 0.000100001
  Prefactor  = 1.18018
  norm       = 7.35383
  Prefactor  = 2.07341
  Prefactor  = 1.41242
  Prefactor  = 0.0001
  Prefactor  = 0.883397
  Prefactor  = 0.345281
  Normalizat = 1.27653
  Prefactor  = 0.979974
 **********
 **   18 **HESSE 
 **********

 FCN=   251549.0     FROM HESSE     STATUS=OK           349 CALLS     1846 TOTAL
                     EDM=   .16E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.312        11.220        .27445E-02   -1.4978    
   2  norm          3.0285        4.9516        .58343E-02   -1.5360    
   3  Prefactor     .68018        1.5976        .11974E-01   -1.5543    
   4  Prefactor     .73433        .79039        .12187E-01   -1.5537    
   5  norm          .84992        1.2616        .12624E-01   -1.5524    
   6  Prefactor     1.4967        1.0258        .87542E-02   -1.5463    
   7  Prefactor     .10000E-03    5.6770        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.982        17.121        .17444E-02   -1.4559    
   9  norm          6.5814        .88149        .39107E-02   -1.5195    
  10  Prefactor     3.2418        4.0718        .56305E-02   -1.5348    
  11  norm          .10000E-03    .24037        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1802        .46677E-01    .30979E-02   -1.5491    
  13  norm          7.3538        1.2459        .36975E-03   -1.5166    
  14  Prefactor     2.0734        .30546        .71715E-02   -1.5420    
  15  Prefactor     1.4124        10.471        .90956E-02   -1.5470    
  16  Prefactor     .10000E-03    1.4364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .88340        1.4385        .12735E-01   -1.5520    
  18  Prefactor     .34528        .64928        .10619       -1.5590    
  19  Normalizat    1.2765        .12110        .21721       -.84270    
  20  Prefactor     .97997        .13729E-01    .30545E-01   -.93400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00016315
Minuit parameter uncertainties:
  1  11.2214
  2  4.95225
  3  1.59768
  4  0.790402
  5  1.26163
  6  1.02584
  7  0.000114442
  8  17.1235
  9  0.881492
  10  4.07211
  11  2.78033e-05
  12  0.0466768
  13  1.24592
  14  0.305457
  15  7.69292
  16  2.75901e-05
  17  1.43852
  18  0.649294
  19  0.121127
  20  0.0137286
Done.

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

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  6.581e+00  8.815e-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.800e-01  1.373e-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.277e+00  1.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 202.88
Ra Dec: 80.445 21.213
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 1.39e-08
Energy Flux (Fixed Index): 1.00e-04 +/- 1.34e-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) = 251548.496812
delta logL = 0.50662860836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 251548.486961
delta logL = 0.516479688871

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5084       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7379       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97986       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=   251548.5     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      250 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5084        .89753        .15731E-03    .56427E-03
   2  alpha         1.7379        .11087        .15880E-01    .31702E-03
   3  Normalizat    1.2859        .10859        .96645E-03    .11105E-03
   4  Prefactor     .97986        .13623E-01    .13501E-03    .88652E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.50836
  alpha      = 1.73789
  Normalizat = 1.28587
  Prefactor  = 0.979861
 **********
 **   18 **HESSE 
 **********

 FCN=   251548.5     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5084        .90268        .62925E-05   -1.5198    
   2  alpha         1.7379        .11151        .63519E-03   -.30977    
   3  Normalizat    1.2859        .10857        .38658E-04   -.83989    
   4  Prefactor     .97986        .13623E-01    .54004E-05   -.93404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88937e-10
Minuit parameter uncertainties:
  1  0.902683
  2  0.111547
  3  0.108589
  4  0.0136232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/879032': 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) = 251548.486961
delta logL = 0.516479688871

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  6.508e+00  9.027e-01  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  1.738e+00  1.115e-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.799e-01  1.362e-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.286e+00  1.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 204.23
Ra Dec: 80.445 21.213
Photon Index (Free Index): 1.74 +/- 0.11
Photon Flux (Free Index): 8.70e-08 +/- 1.94e-08
Energy Flux (Free Index): 1.14e-04 +/- 2.12e-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/879032/cmap_HighResolution_669859201_672451201_4FGL_J0521.7+2112_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='1.14e-04', photon_flux_error='1.39e-08', dlogl='5.16e-01', energy_flux='1.00e-04', photon_flux2='8.70e-08', job_status='DONE', time_completed='2022-04-24 04:42:22.380247', photon_index_error2='0.11', photon_index2='1.74', ts='202.88', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='1.28', time_epoch_completed='1650800542.38', return_code='0', job_id='879032', GAL2='0.98', EG2='1.29', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='1.94e-08', ts2='204.23', photon_index='1.85' WHERE bin_id='167' AND source_name='4FGL J0521.7+2112' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 04:42:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 879032: <4FGL_J0521.7+2112_monthly_bin167> in cluster <slac> Done

Job <4FGL_J0521.7+2112_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 00:55:44 2022
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 01:02:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 01:02:48 2022
Terminated at Sun Apr 24 04:42:24 2022
Results reported at Sun Apr 24 04:42:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.7+2112_monthly_bin167 80.4445 21.2131 669859201 672451201 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 :                                   12978.00 sec.
    Max Memory :                                 673 MB
    Average Memory :                             622.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13175 sec.
    Turnaround time :                            13600 sec.

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

