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


Performing analysis on: 4FGL_J0521.7+2112_monthly_bin170
RA = 80.4445, Dec = 21.2131
tmin = 677635201, tmax = 680227201
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='87325', job_status='RUN', time_executed='2022-07-23 00:54:31.276247', time_epoch_executed='1658562871.28' WHERE source_name='4FGL J0521.7+2112' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87325

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87325/ft1_4FGL_J0521.7+2112_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87325/ft2_4FGL_J0521.7+2112_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87325/ft1_4FGL_J0521.7+2112_monthly_bin170.fits outfile=/scratch/kocevski/87325/ft1_filteredMKT_4FGL_J0521.7+2112_monthly_bin170.fits ra=80.4445 dec=21.2131 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.16
user 31.33
sys 0.76

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87325/ft2_4FGL_J0521.7+2112_monthly_bin170.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/87325/ft1_filteredMKT_4FGL_J0521.7+2112_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/87325/ft1_filtered_4FGL_J0521.7+2112_monthly_bin170.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.67
sys 0.18

Number of photons that the gtmktime cut: 26425

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87325/ft1_filtered_4FGL_J0521.7+2112_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/87325/ft2_4FGL_J0521.7+2112_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/87325/ltcube_677635201_680227201_4FGL_J0521.7+2112_monthly_bin170.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/87325/ft2_4FGL_J0521.7+2112_monthly_bin170.fits
.....................!
real 109.62
user 109.05
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87325/ft1_filtered_4FGL_J0521.7+2112_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/87325/ft2_4FGL_J0521.7+2112_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/87325/ltcube_677635201_680227201_4FGL_J0521.7+2112_monthly_bin170.fits outfile=/scratch/kocevski/87325/expmap_677635201_680227201_4FGL_J0521.7+2112_monthly_bin170.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/87325/ltcube_677635201_680227201_4FGL_J0521.7+2112_monthly_bin170.fits
.....................!
real 194.23
user 189.56
sys 4.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_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/87325/ft1_filtered_4FGL_J0521.7+2112_monthly_bin170.fits scfile=/scratch/kocevski/87325/ft2_4FGL_J0521.7+2112_monthly_bin170.fits outfile=/scratch/kocevski/87325/cmap_677635201_680227201_4FGL_J0521.7+2112_monthly_bin170.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.83
user 0.65
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87325/ft1_filtered_4FGL_J0521.7+2112_monthly_bin170.fits scfile=/scratch/kocevski/87325/ft2_4FGL_J0521.7+2112_monthly_bin170.fits outfile=/scratch/kocevski/87325/cmap_HighResolution_677635201_680227201_4FGL_J0521.7+2112_monthly_bin170.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/87325/ft1_filtered_4FGL_J0521.7+2112_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/87325/ft2_4FGL_J0521.7+2112_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/87325/Model_4FGL_J0521.7+2112_monthly_bin170.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/87325/ft1_filtered_4FGL_J0521.7+2112_monthly_bin170.fits.....................!
real 5768.05
user 5755.32
sys 3.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.9920       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15726       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8046       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1105       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9851       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3888       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .87224       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2026       1.0000         .10000E-03   10000.    
    13 'norm      '    7.0287       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1738       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .43585E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18871       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1174       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3080       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99076       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=   259346.2     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     1859 TOTAL
                     EDM=   .37E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3489         .0000    ** at limit **
   2  norm          3.9911        6.9164         .0000        .84511E-02
   3  Prefactor     .10000E-03    .58514         .0000    ** at limit **
   4  Prefactor     .15976        .30894         .0000        .15852E-01
   5  norm          1.8046        1.0612         .0000       -.21328E-03
   6  Prefactor     2.1104        1.0119         .0000        .31463E-03
   7  Prefactor     3.9854        10.171         .0000        .16294E-02
   8  Prefactor     .10000E-03    5.6910         .0000    ** at limit **
   9  norm          4.3888        .80575         .0000        .34796E-02
  10  Prefactor     .10000E-03    2.1042         .0000    ** at limit **
  11  norm          .87287        1.7905         .0000        .44915    
  12  Prefactor     1.2026        .49298E-01     .0000        .96756E-02
  13  norm          7.0290        1.2441         .0000        .40487E-03
  14  Prefactor     5.1739        .36151         .0000        .14122E-01
  15  Prefactor     .10005E-03    1.7550         .0000    ** at limit **
  16  Prefactor     .10000E-03    1.8975         .0000    ** at limit **
  17  Prefactor     .19026        .37685         .0000        .82619E-02
  18  Prefactor     2.1174        2.4155         .0000        .37485E-02
  19  Normalizat    1.3081        .12055         .0000        .15267E-02
  20  Prefactor     .99076        .13904E-01     .0000        .19837E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.99112
  Prefactor  = 0.0001
  Prefactor  = 0.159763
  norm       = 1.80457
  Prefactor  = 2.11044
  Prefactor  = 3.98535
  Prefactor  = 0.0001
  norm       = 4.38879
  Prefactor  = 0.0001
  norm       = 0.872873
  Prefactor  = 1.20262
  norm       = 7.02902
  Prefactor  = 5.17386
  Prefactor  = 0.000100051
  Prefactor  = 0.0001
  Prefactor  = 0.190258
  Prefactor  = 2.11735
  Normalizat = 1.30811
  Prefactor  = 0.990756
 **********
 **   18 **HESSE 
 **********

 FCN=   259346.2     FROM HESSE     STATUS=OK           309 CALLS     2168 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9911        6.9138        .10093E-02   -1.5308    
   3  Prefactor     .10000E-03    .59359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15976        1.2869        .37593E-02   -1.5628    
   5  norm          1.8046        1.0606        .31112E-04   -1.5439    
   6  Prefactor     2.1104        1.0116        .28398E-04   -1.5417    
   7  Prefactor     3.9854        10.168        .20204E-03   -1.5309    
   8  Prefactor     .10000E-03    5.7066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3888        .80530        .18975E-03   -1.5289    
  10  Prefactor     .10000E-03    2.1180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .87287        1.8029        .25413E-02   -1.5521    
  12  Prefactor     1.2026        .55321E-01    .15032E-04   -1.5489    
  13  norm          7.0290        1.3570        .15132E-04   -1.5178    
  14  Prefactor     5.1739        .38291        .59449E-04   -1.5253    
  15  Prefactor     .10005E-03    1.5747        .20733       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19026        3.0220        .40113E-02   -1.5621    
  18  Prefactor     2.1174        2.4120        .28345E-03   -1.5417    
  19  Normalizat    1.3081        .11986        .99904E-03   -.83325    
  20  Prefactor     .99076        .14261E-01    .13952E-03   -.93038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16204e-06
Minuit parameter uncertainties:
  1  3.42448e-05
  2  6.9152
  3  3.21579e-06
  4  0.906605
  5  1.06063
  6  1.01159
  7  10.1728
  8  9.57874e-06
  9  0.805302
  10  4.12159e-05
  11  1.80304
  12  0.055321
  13  1.35701
  14  0.382913
  15  0.000567085
  16  2.57812e-05
  17  1.51621
  18  2.41212
  19  0.119884
  20  0.0142609
Done.

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

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  4.389e+00  8.053e-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.908e-01  1.426e-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.308e+00  1.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 109.14
Ra Dec: 80.445 21.213
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 6.90e-08 +/- 1.27e-08
Energy Flux (Fixed Index): 6.69e-05 +/- 1.23e-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) = 259345.667691
delta logL = 0.482553428184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 259345.667206
delta logL = 0.483038306586

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4902       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0065       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99083       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=   259345.7     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      276 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4898        8.5173        .47502E-02    .46839E-02
   2  alpha         2.0064        1.0196        .42213        .38280E-03
   3  Normalizat    1.2971        .67876E-01    .22447        .99921E-03
   4  Prefactor     .99083        .51812E-02    .31565E-01   -.36293E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.48977
  alpha      = 2.00638
  Normalizat = 1.29707
  Prefactor  = 0.990831
 **********
 **   18 **HESSE 
 **********

 FCN=   259345.7     FROM HESSE     STATUS=OK            33 CALLS      309 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4898        .78289        .18209E-03   -1.5284    
   2  alpha         2.0064        .15630        .19303E-01   -.19875    
   3  Normalizat    1.2971        .11091        .10023E-02   -.83654    
   4  Prefactor     .99083        .13824E-01    .13949E-03   -.93036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55949e-11
Minuit parameter uncertainties:
  1  0.782891
  2  0.156401
  3  0.110931
  4  0.0138244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87325': 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) = 259345.667205
delta logL = 0.483038774459

Extracting fit parameters...

4FGL J0521.7+2112
   Spectrum: LogParabola
234         norm:  4.490e+00  7.829e-01  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  2.006e+00  1.564e-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.908e-01  1.382e-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.297e+00  1.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 110.29
Ra Dec: 80.445 21.213
Photon Index (Free Index): 2.01 +/- 0.16
Photon Flux (Free Index): 9.03e-08 +/- 2.73e-08
Energy Flux (Free Index): 6.11e-05 +/- 1.19e-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/87325/cmap_HighResolution_677635201_680227201_4FGL_J0521.7+2112_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.90e-08', energy_flux2='6.11e-05', photon_flux_error='1.27e-08', dlogl='4.83e-01', energy_flux='6.69e-05', photon_flux2='9.03e-08', job_status='DONE', time_completed='2022-07-23 04:56:05.121173', photon_index_error2='0.16', photon_index2='2.01', ts='109.14', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='1.31', time_epoch_completed='1658577365.12', return_code='0', job_id='87325', GAL2='0.99', EG2='1.30', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='2.73e-08', ts2='110.29', photon_index='1.85' WHERE bin_id='170' AND source_name='4FGL J0521.7+2112' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 04:56:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 87325: <4FGL_J0521.7+2112_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0521.7+2112_monthly_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:50:33 2022
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:50:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:50:34 2022
Terminated at Sat Jul 23 04:56:07 2022
Results reported at Sat Jul 23 04:56:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.7+2112_monthly_bin170 80.4445 21.2131 677635201 680227201 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 :                                   14474.00 sec.
    Max Memory :                                 678 MB
    Average Memory :                             630.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14732 sec.
    Turnaround time :                            14734 sec.

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

