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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1728
RA = 339.096, Dec = 28.4832
tmin = 687225601, tmax = 687484801
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='304491', job_status='RUN', time_executed='2022-10-15 00:37:31.633215', time_epoch_executed='1665819451.63' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304491/ft1_4FGL_J2236.3+2828_daily_bin1728.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304491/ft2_4FGL_J2236.3+2828_daily_bin1728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304491/ft1_4FGL_J2236.3+2828_daily_bin1728.fits outfile=/scratch/kocevski/304491/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1728.fits ra=339.096 dec=28.4832 rad=12.0 tmin=687225601.0 tmax=687484801.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 2.70
user 2.49
sys 0.19

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

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

Number of photons that the gtmktime cut: 285

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304491/ft1_filtered_4FGL_J2236.3+2828_daily_bin1728.fits" evtable="EVENTS" scfile=/scratch/kocevski/304491/ft2_4FGL_J2236.3+2828_daily_bin1728.fits sctable="SC_DATA" outfile=/scratch/kocevski/304491/ltcube_687225601_687484801_4FGL_J2236.3+2828_daily_bin1728.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/304491/ft2_4FGL_J2236.3+2828_daily_bin1728.fits
.....................!
real 12.60
user 12.27
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304491/ft1_filtered_4FGL_J2236.3+2828_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304491/ft2_4FGL_J2236.3+2828_daily_bin1728.fits sctable="SC_DATA" expcube=/scratch/kocevski/304491/ltcube_687225601_687484801_4FGL_J2236.3+2828_daily_bin1728.fits outfile=/scratch/kocevski/304491/expmap_687225601_687484801_4FGL_J2236.3+2828_daily_bin1728.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/304491/ltcube_687225601_687484801_4FGL_J2236.3+2828_daily_bin1728.fits
.....................!
real 191.70
user 186.14
sys 5.06

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/304491/ft1_filtered_4FGL_J2236.3+2828_daily_bin1728.fits scfile=/scratch/kocevski/304491/ft2_4FGL_J2236.3+2828_daily_bin1728.fits outfile=/scratch/kocevski/304491/cmap_687225601_687484801_4FGL_J2236.3+2828_daily_bin1728.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304491/ft1_filtered_4FGL_J2236.3+2828_daily_bin1728.fits scfile=/scratch/kocevski/304491/ft2_4FGL_J2236.3+2828_daily_bin1728.fits outfile=/scratch/kocevski/304491/cmap_HighResolution_687225601_687484801_4FGL_J2236.3+2828_daily_bin1728.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304491/ft1_filtered_4FGL_J2236.3+2828_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304491/ft2_4FGL_J2236.3+2828_daily_bin1728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304491/Model_4FGL_J2236.3+2828_daily_bin1728.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/304491/ft1_filtered_4FGL_J2236.3+2828_daily_bin1728.fits.....................!
real 44.82
user 43.52
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/304491/ft1_filtered_4FGL_J2236.3+2828_daily_bin1728.fits', '/scratch/kocevski/304491/ft2_4FGL_J2236.3+2828_daily_bin1728.fits', expMap='/scratch/kocevski/304491/expmap_687225601_687484801_4FGL_J2236.3+2828_daily_bin1728.fits', expCube='/scratch/kocevski/304491/ltcube_687225601_687484801_4FGL_J2236.3+2828_daily_bin1728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/304491/Model_4FGL_J2236.3+2828_daily_bin1728.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/304491/ft1_filtered_4FGL_J2236.3+2828_daily_bin1728.fits
Spacecraft file(s): /scratch/kocevski/304491/ft2_4FGL_J2236.3+2828_daily_bin1728.fits
Exposure map: /scratch/kocevski/304491/expmap_687225601_687484801_4FGL_J2236.3+2828_daily_bin1728.fits
Exposure cube: /scratch/kocevski/304491/ltcube_687225601_687484801_4FGL_J2236.3+2828_daily_bin1728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/304491/Model_4FGL_J2236.3+2828_daily_bin1728.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) = 3180.77751244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28776E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .28524       1.0000          .0000       .10000E+07
     3 'Prefactor '    .19466E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.3676       1.0000          .0000       .10000E+07
     5 'norm      '    4.4318       1.0000          .0000       .10000E+07
     6 'Prefactor '    .97766E-02   1.0000          .0000       .10000E+07
     7 'norm      '    1.7695       1.0000          .0000       .10000E+07
     8 'norm      '    .77627E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .19947E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .11882E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11229E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .11657E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    220.91       1.0000          .0000       .10000E+07
    14 'Prefactor '    131.56       1.0000          .0000       .10000E+07
    15 'norm      '    12.751       1.0000          .0000       .10000E+07
    16 'Prefactor '    .66336E-03   1.0000          .0000       .10000E+07
    17 'Normalizat'    .72833       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .89716       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=   3180.774     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     1390 TOTAL
                     EDM=   .42E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.7054       -.14546E-07** at limit **
   2  norm          .28283        .87347       -.12787E-07    .58042E-04
   3  Prefactor      .0000        21.328       -.51755E-07** at limit **
   4  Prefactor     6.3691        20.512        .14108E-06   -.16525E-04
   5  norm          4.3460        8.0287        .11222E-07    .62117E-05
   6  Prefactor      .0000        12.115       -.79852E-07** at limit **
   7  norm          1.7694        1.7364        .11338E-07   -.12146E-04
   8  norm           .0000        .96555        .36558E-08** at limit **
   9  Prefactor      .0000        6.4838        .50331E-08** at limit **
  10  Prefactor      .0000        20.073       -.50871E-07** at limit **
  11  Prefactor      .0000        37.276       -.59526E-07** at limit **
  12  norm           .0000        1.9530       -.59416E-08** at limit **
  13  Prefactor     217.58        123.19        .62525E-08    .95927E-05
  14  Prefactor     134.41        155.14       -.19097E-06    .12150E-04
  15  norm          12.762        20.050        .75843E-07   -.10049E-04
  16  Prefactor     .55511E-10    114.30       -.18958E-05** at limit **
  17  Normalizat    .72888        .41533       -.62160E-05    .35573E-05
  18  Prefactor     .89730        .17409        .15170E-05    .50385E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.282835
  Prefactor  = 0
  Prefactor  = 6.36914
  norm       = 4.34595
  Prefactor  = 0
  norm       = 1.76935
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 217.579
  Prefactor  = 134.414
  norm       = 12.7617
  Prefactor  = 5.55112e-11
  Normalizat = 0.728876
  Prefactor  = 0.897298
 **********
 **   18 **HESSE 
 **********

 FCN=   3180.774     FROM HESSE     STATUS=OK           278 CALLS     1668 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        7.6940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .28283        .89243        .10421E-02   -1.5697    
   3  Prefactor      .0000        21.311        .17072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.3691        20.553        .39752E-03   -1.5657    
   5  norm          4.3460        8.0356        .47811E-03   -1.5666    
   6  Prefactor      .0000        12.121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7694        1.7331        .78696E-03   -1.5681    
   8  norm           .0000        .96759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        6.4833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        20.078        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        37.301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.9532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     217.58        123.19        .67289E-04   -1.5413    
  14  Prefactor     134.41        154.91        .87190E-04   -1.5476    
  15  norm          12.762        20.052        .28027E-03   -1.5637    
  16  Prefactor     .55511E-10    114.26        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .72888        .35609        .93352E-01   -1.0276    
  18  Prefactor     .89730        .14732        .44969E-01   -.96236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14671e-09
Minuit parameter uncertainties:
  1  5.61427e-07
  2  0.892429
  3  1.97316e-06
  4  20.5536
  5  8.03564
  6  2.79914e-06
  7  1.73305
  8  3.01129e-08
  9  7.25797e-08
  10  2.07263e-06
  11  4.02083e-06
  12  8.76834e-08
  13  123.193
  14  154.919
  15  20.0524
  16  0.000179459
  17  0.357228
  18  0.14739
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.769e+00  1.733e+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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.973e-01  1.474e-01  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:  7.289e-01  3.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.40
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.68e-08 +/- 5.56e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 2.25e-05

TS (Fixed Index): 3.40
Ra Dec: 339.096 28.483
Photon Flux Upper Limit: 2.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304491/likelihoodResults_687225601_687484801_4FGL_J2236.3+2828_daily_bin1728.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): 0
logL (Free Index) = 3180.47614395
delta logL = 0.297827769615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3180.40949246
delta logL = 0.364479261093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6930       1.0000          .0000       .10000E+07
     2 'alpha     '    3.2091       1.0000          .0000       5.0000    
     3 'Normalizat'    .56288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94309       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=   3180.409     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6930        23.392        .80857E-03    .16261E-02
   2  alpha         3.2086        3.6080        .34066        .28907E-04
   3  Normalizat    .56308        .14908        .10524        .17868E-04
   4  Prefactor     .94301        .51501E-01    .45552E-01   -.11692E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.69301
  alpha      = 3.20859
  Normalizat = 0.563078
  Prefactor  = 0.943013
 **********
 **   18 **HESSE 
 **********

 FCN=   3180.409     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6930        1.8971        .47527E-05   -1.5682    
   2  alpha         3.2086        1.1332        .13596E-01    .28738    
   3  Normalizat    .56308        .44927        .46651E-03   -1.0958    
   4  Prefactor     .94301        .18254        .15486E-03   -.94654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84179e-12
Minuit parameter uncertainties:
  1  1.89711
  2  1.18029
  3  0.45222
  4  0.182656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304491': 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) = 3180.40949222
delta logL = 0.364479502251

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.693e+00  1.897e+00  0.000e+00  1.000e+06 ( 1.000e-11)
287        alpha:  3.209e+00  1.180e+00  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:  9.430e-01  1.827e-01  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:  5.631e-01  4.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.40
Ra Dec: 339.096 28.483
Photon Index (Free Index): 3.21 +/- 1.18
Photon Flux (Free Index): 1.74e-07 +/- 1.61e-07
Energy Flux (Free Index): 3.30e-05 +/- 2.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/304491/cmap_HighResolution_687225601_687484801_4FGL_J2236.3+2828_daily_bin1728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-05', comment='SUCCESS', photon_flux='5.68e-08', energy_flux2='3.30e-05', photon_flux_error='5.56e-08', dlogl='3.64e-01', energy_flux='2.30e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2022-10-15 00:44:22.070524', photon_index_error2='1.18', photon_index2='3.21', ts='3.40', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='2.12e-07', energy_flux_error2='2.39e-05', EG='0.73', time_epoch_completed='1665819862.07', return_code='0', job_id='304491', GAL2='0.94', EG2='0.56', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='1.61e-07', ts2='4.40', photon_index='2.15' WHERE bin_id='1728' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 00:44:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 304491: <4FGL_J2236.3+2828_daily_bin1728> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1728> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Oct 15 00:36:00 2022
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 15 00:36:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 15 00:36:01 2022
Terminated at Sat Oct 15 00:44:22 2022
Results reported at Sat Oct 15 00:44:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1728 339.096 28.4832 687225601 687484801 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 :                                   413.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             359.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   501 sec.
    Turnaround time :                            502 sec.

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

