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 72 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1771
RA = 339.096, Dec = 28.4832
tmin = 698371201, tmax = 698630401
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='572086', job_status='RUN', time_executed='2023-02-21 02:26:42.764934', time_epoch_executed='1676975202.76' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572086

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572086/ft1_4FGL_J2236.3+2828_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572086/ft2_4FGL_J2236.3+2828_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572086/ft1_4FGL_J2236.3+2828_daily_bin1771.fits outfile=/scratch/kocevski/572086/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1771.fits ra=339.096 dec=28.4832 rad=12.0 tmin=698371201.0 tmax=698630401.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 4.34
user 2.86
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/572086/ft2_4FGL_J2236.3+2828_daily_bin1771.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572086/ft2_4FGL_J2236.3+2828_daily_bin1771.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/572086/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1771.fits evtable="EVENTS" outfile="/scratch/kocevski/572086/ft1_filtered_4FGL_J2236.3+2828_daily_bin1771.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.53
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 1282

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572086/ft1_filtered_4FGL_J2236.3+2828_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/572086/ft2_4FGL_J2236.3+2828_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/572086/ltcube_698371201_698630401_4FGL_J2236.3+2828_daily_bin1771.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/572086/ft2_4FGL_J2236.3+2828_daily_bin1771.fits
.....................!
real 12.76
user 12.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572086/ft1_filtered_4FGL_J2236.3+2828_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/572086/ft2_4FGL_J2236.3+2828_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/572086/ltcube_698371201_698630401_4FGL_J2236.3+2828_daily_bin1771.fits outfile=/scratch/kocevski/572086/expmap_698371201_698630401_4FGL_J2236.3+2828_daily_bin1771.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/572086/ltcube_698371201_698630401_4FGL_J2236.3+2828_daily_bin1771.fits
.....................!
real 190.12
user 185.49
sys 4.14

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
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.3+2828 @ 339.096 28.4832

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/572086/ft1_filtered_4FGL_J2236.3+2828_daily_bin1771.fits scfile=/scratch/kocevski/572086/ft2_4FGL_J2236.3+2828_daily_bin1771.fits outfile=/scratch/kocevski/572086/cmap_698371201_698630401_4FGL_J2236.3+2828_daily_bin1771.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=339.096 yref=28.4832 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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572086/ft1_filtered_4FGL_J2236.3+2828_daily_bin1771.fits scfile=/scratch/kocevski/572086/ft2_4FGL_J2236.3+2828_daily_bin1771.fits outfile=/scratch/kocevski/572086/cmap_HighResolution_698371201_698630401_4FGL_J2236.3+2828_daily_bin1771.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=339.096 yref=28.4832 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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/572086/ft1_filtered_4FGL_J2236.3+2828_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/572086/ft2_4FGL_J2236.3+2828_daily_bin1771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/572086/Model_4FGL_J2236.3+2828_daily_bin1771.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
Working on...
/scratch/kocevski/572086/ft1_filtered_4FGL_J2236.3+2828_daily_bin1771.fits.....................!
real 139.01
user 137.55
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/572086/ft1_filtered_4FGL_J2236.3+2828_daily_bin1771.fits', '/scratch/kocevski/572086/ft2_4FGL_J2236.3+2828_daily_bin1771.fits', expMap='/scratch/kocevski/572086/expmap_698371201_698630401_4FGL_J2236.3+2828_daily_bin1771.fits', expCube='/scratch/kocevski/572086/ltcube_698371201_698630401_4FGL_J2236.3+2828_daily_bin1771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/572086/Model_4FGL_J2236.3+2828_daily_bin1771.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.3+2828'

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.238e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/572086/ft1_filtered_4FGL_J2236.3+2828_daily_bin1771.fits
Spacecraft file(s): /scratch/kocevski/572086/ft2_4FGL_J2236.3+2828_daily_bin1771.fits
Exposure map: /scratch/kocevski/572086/expmap_698371201_698630401_4FGL_J2236.3+2828_daily_bin1771.fits
Exposure cube: /scratch/kocevski/572086/ltcube_698371201_698630401_4FGL_J2236.3+2828_daily_bin1771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/572086/Model_4FGL_J2236.3+2828_daily_bin1771.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) = 13817.607193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12473E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .69791       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.9038       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.3344       1.0000          .0000       .10000E+07
     5 'norm      '    .17881E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.2150       1.0000          .0000       .10000E+07
     7 'norm      '    1.3754       1.0000          .0000       .10000E+07
     8 'norm      '    1.7240       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53041E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .46011E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    9.2181       1.0000          .0000       .10000E+07
    12 'norm      '    .47255E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.9966       1.0000          .0000       .10000E+07
    14 'Prefactor '    .76669E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .68170E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.2347       1.0000          .0000       .10000E+07
    17 'Normalizat'    .85606       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0374       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13817.06     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1021 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.8693        .38223E-08** at limit **
   2  norm          .69616        .46337        .35609E-08    .23666E-02
   3  Prefactor     1.8902        152.57        .47675E-06    .64287E-03
   4  Prefactor     2.1026        7.4933       -.23883E-06    .30445E-01
   5  norm          .28422E-07    11.223       -.10421E-06** at limit **
   6  Prefactor     3.1236        7.3505       -.16566E-06   -.28098E-02
   7  norm          1.3731        .76955        .30213E-07    .84054E-02
   8  norm          1.7237        1.1462        .88891E-08    .14984E-02
   9  Prefactor     .14094E-06    2.6718        .38329E-07** at limit **
  10  Prefactor     .10142E-06    2.9776       -.22555E-07** at limit **
  11  Prefactor     9.2633        6.7091        .67169E-07   -.66672E-02
  12  norm           .0000        1.0309        .82871E-07** at limit **
  13  Prefactor     3.6022        26.950       -.46930E-06   -.82834E-02
  14  Prefactor     .19929E-07    8.7160       -.32405E-07** at limit **
  15  norm          .52180E-08    3.8794       -.13816E-06** at limit **
  16  Prefactor     2.1623        11.577       -.16287E-06    .54607E-02
  17  Normalizat    .85848        .19725       -.28160E-06   -.69579E-05
  18  Prefactor     1.0375        .87278E-01    .44844E-06    .79473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.696159
  Prefactor  = 1.89021
  Prefactor  = 2.10262
  norm       = 2.84217e-08
  Prefactor  = 3.12361
  norm       = 1.37311
  norm       = 1.72366
  Prefactor  = 1.40943e-07
  Prefactor  = 1.01419e-07
  Prefactor  = 9.2633
  norm       = 0
  Prefactor  = 3.60217
  Prefactor  = 1.99285e-08
  norm       = 5.21805e-09
  Prefactor  = 2.16228
  Normalizat = 0.858482
  Prefactor  = 1.03755
 **********
 **   18 **HESSE 
 **********

 FCN=   13817.06     FROM HESSE     STATUS=OK           288 CALLS     1309 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.8661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .69616        .46785        .60878E-03   -1.5691    
   3  Prefactor     1.8902        153.17        .41306E-03   -1.5680    
   4  Prefactor     2.1026        19.548        .67087E-03   -1.5679    
   5  norm          .28422E-07    11.280        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1236        7.4223        .56476E-03   -1.5673    
   7  norm          1.3731        .77880        .92852E-03   -1.5685    
   8  norm          1.7237        1.1452        .79958E-03   -1.5682    
   9  Prefactor     .14094E-06    3.9883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10142E-06    3.9258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.2633        11.388        .32985E-03   -1.5647    
  12  norm           .0000        .30607        .23406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.6022        27.908        .50424E-03   -1.5670    
  14  Prefactor     .19929E-07    8.9290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .52180E-08    3.8922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1623        11.784        .68735E-03   -1.5679    
  17  Normalizat    .85848        .17336        .88250E-01   -.97935    
  18  Prefactor     1.0375        .75518E-01    .40713E-01   -.91488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19325e-07
Minuit parameter uncertainties:
  1  1.07005e-05
  2  0.467846
  3  34.0318
  4  12.8224
  5  0.00113202
  6  7.42236
  7  0.778803
  8  1.14521
  9  0.00149959
  10  0.0012619
  11  11.3885
  12  5.80025e-06
  13  20.053
  14  0.000843105
  15  0.000284364
  16  10.0956
  17  0.173468
  18  0.0755262
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.373e+00  7.788e-01  0.000e+00  1.000e+06 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.038e+00  7.553e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  8.585e-01  1.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.85
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.41e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.01e-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) = 13817.0555328
delta logL = 4.9756908993e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13817.0555327
delta logL = 5.0824128266e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3731       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1443       1.0000          .0000       5.0000    
     3 'Normalizat'    .85849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13817.06     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      190 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3731        20.181        .92966E-03   -.15255E-01
   2  alpha         2.1442        3.1746        .41691       -.17253E-04
   3  Normalizat    .85857        .10618        .88246E-01    .56218E-04
   4  Prefactor     1.0375        .48340E-01    .40701E-01   -.78118E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.37312
  alpha      = 2.14423
  Normalizat = 0.858565
  Prefactor  = 1.03752
 **********
 **   18 **HESSE 
 **********

 FCN=   13817.06     FROM HESSE     STATUS=OK            33 CALLS      223 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3731        .77136        .75002E-05   -1.5685    
   2  alpha         2.1442        .47800        .18736E-01   -.14279    
   3  Normalizat    .85857        .19154        .39081E-03   -.97932    
   4  Prefactor     1.0375        .87097E-01    .16335E-03   -.91489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08705e-10
Minuit parameter uncertainties:
  1  0.771357
  2  0.481027
  3  0.191696
  4  0.0871089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572086': 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) = 13817.0555326
delta logL = 5.15841566084e-06

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.373e+00  7.714e-01  0.000e+00  1.000e+06 ( 1.000e-11)
287        alpha:  2.144e+00  4.810e-01  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  1.046e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.038e+00  8.711e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  8.586e-01  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.85
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.14 +/- 0.48
Photon Flux (Free Index): 4.40e-08 +/- 2.99e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/572086/cmap_HighResolution_698371201_698630401_4FGL_J2236.3+2828_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.41e-08', energy_flux2='1.79e-05', photon_flux_error='2.50e-08', dlogl='5.16e-06', energy_flux='1.79e-05', photon_flux2='4.40e-08', job_status='DONE', time_completed='2023-02-21 02:37:42.516743', photon_index_error2='0.48', photon_index2='2.14', ts='6.85', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='0.86', time_epoch_completed='1676975862.52', return_code='0', job_id='572086', GAL2='1.04', EG2='0.86', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.99e-08', ts2='6.85', photon_index='2.15' WHERE bin_id='1771' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 02:37:42 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 572086: <4FGL_J2236.3+2828_daily_bin1771> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1771> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 02:25:19 2023
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 02:25:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 02:25:20 2023
Terminated at Tue Feb 21 02:37:43 2023
Results reported at Tue Feb 21 02:37:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1771 339.096 28.4832 698371201 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.3+2828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   660.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             387.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

