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 128 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_J0456.2+2702_monthly_bin167
RA = 74.0673, Dec = 27.0403
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='878988', job_status='RUN', time_executed='2022-04-24 01:04:13.197707', time_epoch_executed='1650787453.2' WHERE source_name='4FGL J0456.2+2702' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/878988

Creating custom pfile directory:
/scratch/kocevski/878988/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/878988/ft1_4FGL_J0456.2+2702_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/878988/ft2_4FGL_J0456.2+2702_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/878988/ft1_4FGL_J0456.2+2702_monthly_bin167.fits outfile=/scratch/kocevski/878988/ft1_filteredMKT_4FGL_J0456.2+2702_monthly_bin167.fits ra=74.0673 dec=27.0403 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.14
sys 0.88

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/878988/ft2_4FGL_J0456.2+2702_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/878988/ft2_4FGL_J0456.2+2702_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/878988/ft1_filteredMKT_4FGL_J0456.2+2702_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/878988/ft1_filtered_4FGL_J0456.2+2702_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.89
user 0.69
sys 0.18

Number of photons that the gtmktime cut: 25536

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/878988/ft1_filtered_4FGL_J0456.2+2702_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/878988/ft2_4FGL_J0456.2+2702_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/878988/ltcube_669859201_672451201_4FGL_J0456.2+2702_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/878988/ft2_4FGL_J0456.2+2702_monthly_bin167.fits
.....................!
real 127.95
user 127.20
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/878988/ft1_filtered_4FGL_J0456.2+2702_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/878988/ft2_4FGL_J0456.2+2702_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/878988/ltcube_669859201_672451201_4FGL_J0456.2+2702_monthly_bin167.fits outfile=/scratch/kocevski/878988/expmap_669859201_672451201_4FGL_J0456.2+2702_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/878988/ltcube_669859201_672451201_4FGL_J0456.2+2702_monthly_bin167.fits
.....................!
real 192.01
user 186.31
sys 5.34

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 HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 161 point sources and 3 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 J0456.2+2702 @ 74.0673 27.0403

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/878988/ft1_filtered_4FGL_J0456.2+2702_monthly_bin167.fits scfile=/scratch/kocevski/878988/ft2_4FGL_J0456.2+2702_monthly_bin167.fits outfile=/scratch/kocevski/878988/cmap_669859201_672451201_4FGL_J0456.2+2702_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=74.0673 yref=27.0403 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.85
user 0.66
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/878988/ft1_filtered_4FGL_J0456.2+2702_monthly_bin167.fits scfile=/scratch/kocevski/878988/ft2_4FGL_J0456.2+2702_monthly_bin167.fits outfile=/scratch/kocevski/878988/cmap_HighResolution_669859201_672451201_4FGL_J0456.2+2702_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=74.0673 yref=27.0403 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.84
user 0.67
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/878988/ft1_filtered_4FGL_J0456.2+2702_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/878988/ft2_4FGL_J0456.2+2702_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/878988/Model_4FGL_J0456.2+2702_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 HB 9
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/878988/ft1_filtered_4FGL_J0456.2+2702_monthly_bin167.fits.....................!
real 6702.93
user 6689.14
sys 1.94

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/878988/ft1_filtered_4FGL_J0456.2+2702_monthly_bin167.fits', '/scratch/kocevski/878988/ft2_4FGL_J0456.2+2702_monthly_bin167.fits', expMap='/scratch/kocevski/878988/expmap_669859201_672451201_4FGL_J0456.2+2702_monthly_bin167.fits', expCube='/scratch/kocevski/878988/ltcube_669859201_672451201_4FGL_J0456.2+2702_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/878988/Model_4FGL_J0456.2+2702_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0456.2+2702'

4FGL J0456.2+2702
   Spectrum: LogParabola
237         norm:  6.481e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  2.319e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  1.733e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.269e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/878988/ft1_filtered_4FGL_J0456.2+2702_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/878988/ft2_4FGL_J0456.2+2702_monthly_bin167.fits
Exposure map: /scratch/kocevski/878988/expmap_669859201_672451201_4FGL_J0456.2+2702_monthly_bin167.fits
Exposure cube: /scratch/kocevski/878988/ltcube_669859201_672451201_4FGL_J0456.2+2702_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/878988/Model_4FGL_J0456.2+2702_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) = 247460.481522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1948       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.112       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6866       1.0000         .10000E-03   10000.    
     7 'norm      '    .41952       1.0000         .10000E-03   10000.    
     8 'norm      '    .61427       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.464       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5323       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0450       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1995       1.0000         .10000E-03   10000.    
    14 'norm      '    7.1332       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9897       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3160       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98265       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   247460.3     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1455 TOTAL
                     EDM=   .45E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6658         .0000    ** at limit **
   2  Prefactor     2.1950        3.5679         .0000        .18585E-02
   3  norm          .10000E-03    1.2457         .0000    ** at limit **
   4  Prefactor     .10000E-03    .22038         .0000    ** at limit **
   5  norm          12.113        10.927         .0000       -.18609E-02
   6  norm          2.6860        4.7422         .0000        .58874E-03
   7  norm          .42123        .56235         .0000        .17763E-01
   8  norm          .61451        1.1889         .0000        .62795    
   9  Prefactor     .10000E-03    5.0957         .0000    ** at limit **
  10  Prefactor     33.464        22.170         .0000        .10350E-02
  11  norm          6.5323        .87814         .0000        .21860E-02
  12  Prefactor     3.0450        4.0169         .0000        .99843E-03
  13  Prefactor     1.1995        .47185E-01     .0000        .18686E-01
  14  norm          7.1329        1.2339         .0000        .18312E-03
  15  Prefactor     1.9896        .31666         .0000        .33451E-01
  16  Normalizat    1.3160        .10720         .0000        .15777E-02
  17  Prefactor     .98265        .13308E-01     .0000        .22758E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.19503
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.113
  norm       = 2.686
  norm       = 0.421227
  norm       = 0.614513
  Prefactor  = 0.0001
  Prefactor  = 33.4636
  norm       = 6.53227
  Prefactor  = 3.045
  Prefactor  = 1.1995
  norm       = 7.13287
  Prefactor  = 1.98958
  Normalizat = 1.31601
  Prefactor  = 0.982651
 **********
 **   18 **HESSE 
 **********

 FCN=   247460.3     FROM HESSE     STATUS=OK           231 CALLS     1686 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1950        3.5591        .27777E-03   -1.5412    
   3  norm          .10000E-03    1.2765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1268        .44886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.113        10.920        .11510E-03   -1.5012    
   6  norm          2.6860        4.7249        .24858E-03   -1.5380    
   7  norm          .42123        1.2010        .41030E-02   -1.5578    
   8  norm          .61451        1.1934        .23458E-02   -1.5551    
   9  Prefactor     .10000E-03    5.1462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.464        22.129        .69271E-04   -1.4550    
  11  norm          6.5323        .87742        .15702E-03   -1.5197    
  12  Prefactor     3.0450        4.0053        .23251E-03   -1.5359    
  13  Prefactor     1.1995        .52739E-01    .13910E-04   -1.5489    
  14  norm          7.1329        1.3493        .15019E-04   -1.5174    
  15  Prefactor     1.9896        .33253        .82126E-04   -1.5426    
  16  Normalizat    1.3160        .10891        .90528E-03   -.83090    
  17  Prefactor     .98265        .13895E-01    .13117E-03   -.93310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2824e-09
Minuit parameter uncertainties:
  1  4.67962e-06
  2  3.55947
  3  1.12692e-05
  4  1.39108e-05
  5  10.9217
  6  4.72551
  7  1.20108
  8  1.19344
  9  1.28575e-05
  10  22.1346
  11  0.877417
  12  4.00569
  13  0.0527388
  14  1.34935
  15  0.332534
  16  0.108932
  17  0.0138955
Done.

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

Extracting fit parameters...

4FGL J0456.2+2702
   Spectrum: LogParabola
237         norm:  2.686e+00  4.726e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  2.319e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  1.733e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.269e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.827e-01  1.390e-02  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.316e+00  1.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.45
Ra Dec: 74.067 27.040
Photon Flux Upper Limit: 2.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/878988/likelihoodResults_669859201_672451201_4FGL_J0456.2+2702_monthly_bin167.txt

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): 102
logL (Free Index) = 247459.434199
delta logL = 0.874746786634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 247459.359128
delta logL = 0.949817840679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13529       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98583       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   247459.4     FROM MIGRAD    STATUS=FAILED       112 CALLS      357 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13535        .12283        .91010E-03    .34978    
   2  alpha         5.0000        .86034        .50000    ** at limit **
   3  Normalizat    1.2671        .11172        .92023E-03    .37320E-04
   4  Prefactor     .98582        .13835E-01    .13098E-03   -.55550E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   247459.4     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      484 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13535        .12283        .70921E-07   -1.5634    
   2  alpha         5.0000        .86034        .78977E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2671        .11172        .14319E-05   -.84554    
   4  Prefactor     .98582        .13835E-01    .50791E-07   -.93204    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   247459.4     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      522 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13535        .10367        .18202E-03    .13961E-01
   2  alpha         5.0000        .62921        .50000    ** at limit **
   3  Normalizat    1.2671        .11221        .18405E-03    .79067E-06
   4  Prefactor     .98582        .13852E-01    .52392E-05   -.55550E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.135346
  alpha      = 5
  Normalizat = 1.26711
  Prefactor  = 0.985823
 **********
 **   18 **HESSE 
 **********

 FCN=   247459.4     FROM HESSE     STATUS=OK            31 CALLS      553 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13535        .10151        .36404E-04   -1.5634    
   2  alpha         5.0000        .60546        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2671        .11231        .36809E-04   -.84554    
   4  Prefactor     .98582        .13854E-01    .52392E-05   -.93204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78729e-12
Minuit parameter uncertainties:
  1  0.101509
  2  7.92842e-06
  3  0.112331
  4  0.0138543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/878988': 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) = 247459.359124
delta logL = 0.949822349037

Extracting fit parameters...

4FGL J0456.2+2702
   Spectrum: LogParabola
237         norm:  1.353e-01  1.015e-01  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  5.000e+00  7.928e-06  0.000e+00  5.000e+00 ( 1.000e+00)
239         beta:  1.733e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.269e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.858e-01  1.385e-02  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.267e+00  1.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 74.067 27.040
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.53e-08 +/- 3.38e-08
Energy Flux (Free Index): 6.44e-06 +/- 4.82e-06

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/878988/cmap_HighResolution_669859201_672451201_4FGL_J0456.2+2702_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-05', comment='SUCCESS', energy_flux2='6.44e-06', dlogl='9.50e-01', photon_flux2='4.53e-08', job_status='DONE', time_completed='2022-04-24 05:29:27.771320', photon_index_error2='0.00', photon_index2='5.00', ts='0.45', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='2.32e-08', energy_flux_error2='4.82e-06', EG='1.32', time_epoch_completed='1650803367.77', return_code='0', job_id='878988', GAL2='0.99', EG2='1.27', return_code2='0', photon_flux_error2='3.38e-08', ts2='2.55', photon_index='2.32' WHERE bin_id='167' AND source_name='4FGL J0456.2+2702' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 05:29:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 878988: <4FGL_J0456.2+2702_monthly_bin167> in cluster <slac> Done

Job <4FGL_J0456.2+2702_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 00:55:39 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 01:01:56 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:01:56 2022
Terminated at Sun Apr 24 05:29:29 2022
Results reported at Sun Apr 24 05:29:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0456.2+2702_monthly_bin167 74.0673 27.0403 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0456.2+2702 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   15877.00 sec.
    Max Memory :                                 668 MB
    Average Memory :                             629.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   16053 sec.
    Turnaround time :                            16430 sec.

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

