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


Performing analysis on: 4FGL_J2127.7+3612_monthly_bin168
RA = 321.931, Dec = 36.2125
tmin = 672451201, tmax = 675043201
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='650054', job_status='RUN', time_executed='2022-05-24 04:09:48.458496', time_epoch_executed='1653390588.46' WHERE source_name='4FGL J2127.7+3612' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650054

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650054/ft1_4FGL_J2127.7+3612_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650054/ft2_4FGL_J2127.7+3612_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650054/ft1_4FGL_J2127.7+3612_monthly_bin168.fits outfile=/scratch/kocevski/650054/ft1_filteredMKT_4FGL_J2127.7+3612_monthly_bin168.fits ra=321.931 dec=36.2125 rad=12.0 tmin=672451201.0 tmax=675043201.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 29.98
user 28.01
sys 0.78

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/650054/ft2_4FGL_J2127.7+3612_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/650054/ft2_4FGL_J2127.7+3612_monthly_bin168.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/650054/ft1_filteredMKT_4FGL_J2127.7+3612_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/650054/ft1_filtered_4FGL_J2127.7+3612_monthly_bin168.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.69
sys 0.20

Number of photons that the gtmktime cut: 36516

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/650054/ft1_filtered_4FGL_J2127.7+3612_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/650054/ft2_4FGL_J2127.7+3612_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/650054/ltcube_672451201_675043201_4FGL_J2127.7+3612_monthly_bin168.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/650054/ft2_4FGL_J2127.7+3612_monthly_bin168.fits
.....................!
real 132.51
user 131.71
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650054/ft1_filtered_4FGL_J2127.7+3612_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/650054/ft2_4FGL_J2127.7+3612_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/650054/ltcube_672451201_675043201_4FGL_J2127.7+3612_monthly_bin168.fits outfile=/scratch/kocevski/650054/expmap_672451201_675043201_4FGL_J2127.7+3612_monthly_bin168.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/650054/ltcube_672451201_675043201_4FGL_J2127.7+3612_monthly_bin168.fits
.....................!
real 192.32
user 185.62
sys 5.62

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 Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 190 point sources and 4 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 J2127.7+3612 @ 321.931 36.2125

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/650054/ft1_filtered_4FGL_J2127.7+3612_monthly_bin168.fits scfile=/scratch/kocevski/650054/ft2_4FGL_J2127.7+3612_monthly_bin168.fits outfile=/scratch/kocevski/650054/cmap_672451201_675043201_4FGL_J2127.7+3612_monthly_bin168.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=321.931 yref=36.2125 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.87
user 0.67
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650054/ft1_filtered_4FGL_J2127.7+3612_monthly_bin168.fits scfile=/scratch/kocevski/650054/ft2_4FGL_J2127.7+3612_monthly_bin168.fits outfile=/scratch/kocevski/650054/cmap_HighResolution_672451201_675043201_4FGL_J2127.7+3612_monthly_bin168.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=321.931 yref=36.2125 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.89
user 0.70
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/650054/ft1_filtered_4FGL_J2127.7+3612_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/650054/ft2_4FGL_J2127.7+3612_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/650054/Model_4FGL_J2127.7+3612_monthly_bin168.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/650054/ft1_filtered_4FGL_J2127.7+3612_monthly_bin168.fits.....................!
real 7073.73
user 7052.03
sys 2.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/650054/ft1_filtered_4FGL_J2127.7+3612_monthly_bin168.fits', '/scratch/kocevski/650054/ft2_4FGL_J2127.7+3612_monthly_bin168.fits', expMap='/scratch/kocevski/650054/expmap_672451201_675043201_4FGL_J2127.7+3612_monthly_bin168.fits', expCube='/scratch/kocevski/650054/ltcube_672451201_675043201_4FGL_J2127.7+3612_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/650054/Model_4FGL_J2127.7+3612_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2127.7+3612'

4FGL J2127.7+3612
   Spectrum: LogParabola
429         norm:  3.781e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
430        alpha:  1.812e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
431         beta:  1.274e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
432           Eb:  1.863e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/650054/ft1_filtered_4FGL_J2127.7+3612_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/650054/ft2_4FGL_J2127.7+3612_monthly_bin168.fits
Exposure map: /scratch/kocevski/650054/expmap_672451201_675043201_4FGL_J2127.7+3612_monthly_bin168.fits
Exposure cube: /scratch/kocevski/650054/ltcube_672451201_675043201_4FGL_J2127.7+3612_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/650054/Model_4FGL_J2127.7+3612_monthly_bin168.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) = 335938.684558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3307       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5623       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.254       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .74688       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4248       1.0000         .10000E-03   10000.    
     6 'norm      '    .66660E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    4.0249       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12127E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.580       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6153       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    .87522       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0152       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   335938.6     FROM MIGRAD    STATUS=CONVERGED    294 CALLS     1236 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3285        1.5792         .0000        .95782E-01
   2  norm          3.5514        3.4683         .0000       -.13630E-02
   3  Prefactor     11.169        7.3826         .0000        .32462E-03
   4  Prefactor     .74581        1.2349         .0000        .10085E-01
   5  norm          2.4250        1.1929         .0000        .24223    
   6  norm          .66691E-01    .10788         .0000        .81727E-01
   7  norm          4.0252        2.3312         .0000       -.30774E-02
   8  Prefactor     .10000E-03    .13141         .0000    ** at limit **
   9  Prefactor     .10000E-03    .35772         .0000    ** at limit **
  10  norm          .10000E-03    .20247E-01     .0000    ** at limit **
  11  norm          10.580        .36485         .0000        .78803E-02
  12  Prefactor     2.6005        3.9016         .0000        .34523E-02
  13  Prefactor     .10000E-03    2.8517         .0000    ** at limit **
  14  Normalizat    .87534        .63056E-01     .0000        .21459E-02
  15  Prefactor     1.0152        .95120E-02     .0000        .81793E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.32846
  norm       = 3.55139
  Prefactor  = 11.1686
  Prefactor  = 0.745807
  norm       = 2.42497
  norm       = 0.0666914
  norm       = 4.02519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.5802
  Prefactor  = 2.6005
  Prefactor  = 0.0001
  Normalizat = 0.875343
  Prefactor  = 1.01521
 **********
 **   18 **HESSE 
 **********

 FCN=   335938.6     FROM HESSE     STATUS=OK           192 CALLS     1428 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3285        1.5851        .65600E-03   -1.5097    
   2  norm          3.5514        3.4636        .21413E-03   -1.5331    
   3  Prefactor     11.169        7.3437        .11942E-03   -1.5039    
   4  Prefactor     .74581        1.2144        .24481E-03   -1.5535    
   5  norm          2.4250        1.1713        .13141E-02   -1.5397    
   6  norm          .66691E-01    .14381        .23482E-02   -1.5656    
   7  norm          4.0252        2.3283        .20100E-03   -1.5307    
   8  Prefactor     .10000E-03    1.0621        .40138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .36304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .50853E-01    .15857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.580        .36276        .60920E-04   -1.5057    
  12  Prefactor     2.6005        3.8641        .25222E-03   -1.5385    
  13  Prefactor     .10000E-03    2.9377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .87534        .60678E-01    .86801E-03   -.97332    
  15  Prefactor     1.0152        .95187E-02    .12774E-03   -.92224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69633e-08
Minuit parameter uncertainties:
  1  1.58509
  2  3.46375
  3  7.34427
  4  1.21448
  5  1.1713
  6  0.143809
  7  2.32837
  8  9.03881e-06
  9  1.4499e-06
  10  9.40347e-08
  11  0.362763
  12  3.86452
  13  1.24103e-05
  14  0.0606827
  15  0.00951867
Done.

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

Extracting fit parameters...

4FGL J2127.7+3612
   Spectrum: LogParabola
429         norm:  4.025e+00  2.328e+00  1.000e-04  1.000e+04 ( 1.000e-13)
430        alpha:  1.812e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
431         beta:  1.274e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
432           Eb:  1.863e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
690    Prefactor:  1.015e+00  9.519e-03  0.000e+00  1.000e+01 ( 1.000e+00)
691        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
692        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
689   Normalization:  8.753e-01  6.068e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.43
Ra Dec: 321.931 36.212
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 6.08e-09 +/- 3.51e-09
Energy Flux (Fixed Index): 6.82e-06 +/- 3.95e-06

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) = 335938.040421
delta logL = 0.576582104492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 335938.037507
delta logL = 0.579495842452

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8402       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7292       1.0000          .0000       5.0000    
     3 'Normalizat'    .85908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0157       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   335938.0     FROM MIGRAD    STATUS=FAILED        88 CALLS      342 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8402        27.559        .12064E-02   -.14968E-01
   2  alpha         2.7292        3.8380        .31502E-01   -.67181E-03
   3  Normalizat    .85908        .96038E-01    .87524E-03   -.41258E-02
   4  Prefactor     1.0157        .78189E-02    .12771E-03   -.83632E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   335938.0     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      435 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8402        27.559        .47433E-04   -.14968E-01
   2  alpha         2.7292        3.8380        .97878E-03   -.67181E-03
   3  Normalizat    .85908        .96038E-01    .92158E-04   -.41258E-02
   4  Prefactor     1.0157        .78189E-02    .12029E-04   -.83632E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   335938.0     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      469 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8402        3.1127        .48256E-04    .30156E-04
   2  alpha         2.7292        .81442        .12601E-02    .40419E-05
   3  Normalizat    .85908        .60805E-01    .35010E-04    .20783E-03
   4  Prefactor     1.0157        .91598E-02    .51086E-05    .37031E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.84024
  alpha      = 2.72919
  Normalizat = 0.859081
  Prefactor  = 1.01566
 **********
 **   18 **HESSE 
 **********

 FCN=   335938.0     FROM HESSE     STATUS=OK            23 CALLS      492 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8402        2.9588        .19302E-05   -1.5371    
   2  alpha         2.7292        .77532        .50403E-04    .91805E-01
   3  Normalizat    .85908        .60550E-01    .70019E-05   -.97913    
   4  Prefactor     1.0157        .91560E-02    .10217E-05   -.92209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01009e-11
Minuit parameter uncertainties:
  1  2.95892
  2  0.788431
  3  0.0605544
  4  0.00915601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650054': 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) = 335938.037507
delta logL = 0.579495850659

Extracting fit parameters...

4FGL J2127.7+3612
   Spectrum: LogParabola
429         norm:  2.840e+00  2.959e+00  1.000e-04  1.000e+04 ( 1.000e-13)
430        alpha:  2.729e+00  7.884e-01  0.000e+00  5.000e+00 ( 1.000e+00)
431         beta:  1.274e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
432           Eb:  1.863e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
690    Prefactor:  1.016e+00  9.156e-03  0.000e+00  1.000e+01 ( 1.000e+00)
691        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
692        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
689   Normalization:  8.591e-01  6.055e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.68
Ra Dec: 321.931 36.212
Photon Index (Free Index): 2.73 +/- 0.79
Photon Flux (Free Index): 2.38e-08 +/- 2.13e-08
Energy Flux (Free Index): 7.12e-06 +/- 3.28e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -5.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  5.550e+00 [aplpy.core]
Saving /scratch/kocevski/650054/cmap_HighResolution_672451201_675043201_4FGL_J2127.7+3612_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.08e-09', energy_flux2='7.12e-06', photon_flux_error='3.51e-09', dlogl='5.79e-01', energy_flux='6.82e-06', photon_flux2='2.38e-08', job_status='DONE', time_completed='2022-05-24 09:09:51.282469', photon_index_error2='0.79', photon_index2='2.73', ts='5.43', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.28e-06', EG='0.88', time_epoch_completed='1653408591.28', return_code='0', job_id='650054', GAL2='1.02', EG2='0.86', return_code2='0', energy_flux_error='3.95e-06', photon_flux_error2='2.13e-08', ts2='6.68', photon_index='1.81' WHERE bin_id='168' AND source_name='4FGL J2127.7+3612' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 09:09:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 650054: <4FGL_J2127.7+3612_monthly_bin168> in cluster <slac> Done

Job <4FGL_J2127.7+3612_monthly_bin168> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 04:05:37 2022
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 04:06:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 04:06:30 2022
Terminated at Tue May 24 09:09:54 2022
Results reported at Tue May 24 09:09:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2127.7+3612_monthly_bin168 321.931 36.2125 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2127.7+3612 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   17953.00 sec.
    Max Memory :                                 993 MB
    Average Memory :                             781.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   18203 sec.
    Turnaround time :                            18257 sec.

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

