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 178 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.4-2309_daily_bin1728
RA = 339.125, Dec = -23.1552
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='304492', job_status='RUN', time_executed='2022-10-15 00:39:07.593220', time_epoch_executed='1665819547.59' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304492

Creating custom pfile directory:
/scratch/kocevski/304492/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/304492/ft1_4FGL_J2236.4-2309_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/304492/ft2_4FGL_J2236.4-2309_daily_bin1728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304492/ft1_4FGL_J2236.4-2309_daily_bin1728.fits outfile=/scratch/kocevski/304492/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1728.fits ra=339.125 dec=-23.1552 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.76
user 2.56
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/304492/ft2_4FGL_J2236.4-2309_daily_bin1728.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304492/ft2_4FGL_J2236.4-2309_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/304492/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1728.fits evtable="EVENTS" outfile="/scratch/kocevski/304492/ft1_filtered_4FGL_J2236.4-2309_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.48
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 418

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304492/ft1_filtered_4FGL_J2236.4-2309_daily_bin1728.fits" evtable="EVENTS" scfile=/scratch/kocevski/304492/ft2_4FGL_J2236.4-2309_daily_bin1728.fits sctable="SC_DATA" outfile=/scratch/kocevski/304492/ltcube_687225601_687484801_4FGL_J2236.4-2309_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/304492/ft2_4FGL_J2236.4-2309_daily_bin1728.fits
.....................!
real 12.34
user 11.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304492/ft1_filtered_4FGL_J2236.4-2309_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304492/ft2_4FGL_J2236.4-2309_daily_bin1728.fits sctable="SC_DATA" expcube=/scratch/kocevski/304492/ltcube_687225601_687484801_4FGL_J2236.4-2309_daily_bin1728.fits outfile=/scratch/kocevski/304492/expmap_687225601_687484801_4FGL_J2236.4-2309_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/304492/ltcube_687225601_687484801_4FGL_J2236.4-2309_daily_bin1728.fits
.....................!
real 192.57
user 186.31
sys 5.92

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

Setting source of interest to:
4FGL J2236.4-2309 @ 339.125 -23.1552

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/304492/ft1_filtered_4FGL_J2236.4-2309_daily_bin1728.fits scfile=/scratch/kocevski/304492/ft2_4FGL_J2236.4-2309_daily_bin1728.fits outfile=/scratch/kocevski/304492/cmap_687225601_687484801_4FGL_J2236.4-2309_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.125 yref=-23.1552 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304492/ft1_filtered_4FGL_J2236.4-2309_daily_bin1728.fits scfile=/scratch/kocevski/304492/ft2_4FGL_J2236.4-2309_daily_bin1728.fits outfile=/scratch/kocevski/304492/cmap_HighResolution_687225601_687484801_4FGL_J2236.4-2309_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.125 yref=-23.1552 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304492/ft1_filtered_4FGL_J2236.4-2309_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304492/ft2_4FGL_J2236.4-2309_daily_bin1728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304492/Model_4FGL_J2236.4-2309_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/304492/ft1_filtered_4FGL_J2236.4-2309_daily_bin1728.fits.....................!
real 41.71
user 40.38
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/304492/ft1_filtered_4FGL_J2236.4-2309_daily_bin1728.fits', '/scratch/kocevski/304492/ft2_4FGL_J2236.4-2309_daily_bin1728.fits', expMap='/scratch/kocevski/304492/expmap_687225601_687484801_4FGL_J2236.4-2309_daily_bin1728.fits', expCube='/scratch/kocevski/304492/ltcube_687225601_687484801_4FGL_J2236.4-2309_daily_bin1728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/304492/Model_4FGL_J2236.4-2309_daily_bin1728.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.4-2309'

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.382e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/304492/ft1_filtered_4FGL_J2236.4-2309_daily_bin1728.fits
Spacecraft file(s): /scratch/kocevski/304492/ft2_4FGL_J2236.4-2309_daily_bin1728.fits
Exposure map: /scratch/kocevski/304492/expmap_687225601_687484801_4FGL_J2236.4-2309_daily_bin1728.fits
Exposure cube: /scratch/kocevski/304492/ltcube_687225601_687484801_4FGL_J2236.4-2309_daily_bin1728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/304492/Model_4FGL_J2236.4-2309_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) = 4814.10024906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54455E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .22518E-03   1.0000          .0000       .10000E+07
     3 'norm      '    1.2021       1.0000          .0000       .10000E+07
     4 'Prefactor '    .22725E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .45034E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .29088E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .77455E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .15132E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    10.053       1.0000          .0000       .10000E+07
    10 'norm      '    3.0476       1.0000          .0000       .10000E+07
    11 'norm      '    .12823E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.1858       1.0000          .0000       .10000E+07
    13 'Prefactor '    60.048       1.0000          .0000       .10000E+07
    14 'Prefactor '    30.738       1.0000          .0000       .10000E+07
    15 'norm      '    .43648E-06   1.0000          .0000       .10000E+07
    16 'norm      '    1.0478       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12089E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .64638E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .15518E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .91149       1.0000          .0000       .10000E+07
    21 'Prefactor '    .23948E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    6.3758       1.0000          .0000       .10000E+07
    23 'Normalizat'    .69904       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1150       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4813.758     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     2008 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83267E-09    7.4653       -.36336E-06** at limit **
   2  Prefactor     .40122E-05    62.942        .48527E-06** at limit **
   3  norm          1.2020        .40077        .12086E-07   -.16021E-03
   4  Prefactor     .66613E-09    5.5016        .57443E-07** at limit **
   5  Prefactor     .55511E-10    41.985        .16225E-05** at limit **
   6  Prefactor     .11102E-09    8.7998        .92429E-07** at limit **
   7  Prefactor     .28447E-05    43.680        .12094E-05** at limit **
   8  norm          .13323E-08    5.2207       -.24967E-06** at limit **
   9  Prefactor     9.9201        2.5085       -.81633E-07    .12660E-01
  10  norm          3.0471        1.4160        .11559E-06    .67182E-03
  11  norm           .0000        .79757        .34193E-06** at limit **
  12  Prefactor     4.3646        21.619        .11691E-05   -.47627E-01
  13  Prefactor     59.722        5.0084        .23191E-07    .35848E-01
  14  Prefactor     30.763        17.514        .24767E-06    .30084E-01
  15  norm           .0000        2.5767       -.61619E-06** at limit **
  16  norm          1.0534        3.6089        .18411E-06   -.81877E-04
  17  Prefactor     .11323E-05    23.685       -.12212E-05** at limit **
  18  Prefactor     .66613E-09    4.9168       -.14597E-06** at limit **
  19  Prefactor     .75168E-06    21.519        .21950E-06** at limit **
  20  norm          .91087        .66272        .10940E-06    .50118E-04
  21  Prefactor     .33307E-09    4.8135       -.50181E-06** at limit **
  22  Prefactor     6.4111        6.4294       -.43579E-06    .20429E-03
  23  Normalizat    .70039        .25019        .76897E-05    .42018E-05
  24  Prefactor     1.1144        .21677       -.93169E-05   -.80798E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32667e-10
  Prefactor  = 4.01218e-06
  norm       = 1.20196
  Prefactor  = 6.66134e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 2.84467e-06
  norm       = 1.33227e-09
  Prefactor  = 9.92005
  norm       = 3.04711
  norm       = 0
  Prefactor  = 4.36458
  Prefactor  = 59.7223
  Prefactor  = 30.7626
  norm       = 0
  norm       = 1.05336
  Prefactor  = 1.13226e-06
  Prefactor  = 6.66134e-10
  Prefactor  = 7.51676e-07
  norm       = 0.910874
  Prefactor  = 3.33067e-10
  Prefactor  = 6.41112
  Normalizat = 0.70039
  Prefactor  = 1.11438
 **********
 **   18 **HESSE 
 **********

 FCN=   4813.758     FROM HESSE     STATUS=OK           449 CALLS     2457 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83267E-09    7.4655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .40122E-05    64.530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2020        .40053        .55637E-03   -1.5686    
   4  Prefactor     .66613E-09    5.5025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    12.673        .80877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11102E-09    8.8032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .28447E-05    44.873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .13323E-08    5.2247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.9201        19.594        .31578E-03   -1.5645    
  10  norm          3.0471        1.4184        .58092E-03   -1.5673    
  11  norm           .0000        .79754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3646        256.54        .49236E-03   -1.5666    
  13  Prefactor     59.722        19.782        .12906E-03   -1.5553    
  14  Prefactor     30.763        18.154        .18040E-03   -1.5597    
  15  norm           .0000        2.5318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0534        3.7643        .12124E-02   -1.5687    
  17  Prefactor     .11323E-05    24.507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .66613E-09    4.9181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .75168E-06    22.120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .91087        .67622        .44969E-03   -1.5689    
  21  Prefactor     .33307E-09    4.8144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.4111        6.4335        .39727E-03   -1.5657    
  23  Normalizat    .70039        .23054        .69828E-01   -1.0388    
  24  Prefactor     1.1144        .18676        .37044E-01   -.89008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68466e-06
Minuit parameter uncertainties:
  1  0.000159719
  2  0.0321815
  3  0.400531
  4  0.000121564
  5  3.90533e-05
  6  5.66071e-05
  7  0.0225966
  8  0.000166318
  9  19.5946
  10  1.41836
  11  2.58941e-06
  12  66.926
  13  19.7819
  14  18.1544
  15  9.22686e-06
  16  3.76435
  17  0.0105353
  18  0.000116006
  19  0.00815542
  20  0.676218
  21  7.93841e-05
  22  6.43349
  23  0.230862
  24  0.186868
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  9.920e+00  1.959e+01  0.000e+00  1.000e+06 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.114e+00  1.869e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  7.004e-01  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304492/likelihoodResults_687225601_687484801_4FGL_J2236.4-2309_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): 102
logL (Free Index) = 4813.1315254
delta logL = 0.626324842305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4812.91257049
delta logL = 0.845279753821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16272E-02   1.0000          .0000       .10000E+07
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .65916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1496       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4812.913     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      471 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16264E-02    .15731E-02    .42118E-04** at limit **
   2  Index        10.0000        1.1140        .50000    ** at limit **
   3  Normalizat    .65914        .22071        .71733E-01    .21863E-03
   4  Prefactor     1.1499        .18871        .35947E-01    .34809E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0016264
  Index      = 10
  Normalizat = 0.659141
  Prefactor  = 1.14986
 **********
 **   18 **HESSE 
 **********

 FCN=   4812.913     FROM HESSE     STATUS=OK            33 CALLS      504 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16264E-02    .19026E-02    .25923E-06   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.7988        .45233        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .65914        .25508        .31751E-03   -1.0553    
   4  Prefactor     1.1499        .21996        .21371E-03   -.87889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73028e-10
Minuit parameter uncertainties:
  1  0.00190256
  2  4.30297e-05
  3  0.255534
  4  0.220133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304492': 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) = 4812.91256746
delta logL = 0.845282790503

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.626e-03  1.903e-03  0.000e+00  1.000e+06 ( 1.000e-12)
248        Index:  1.000e+01  4.303e-05  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.150e+00  2.201e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  6.591e-01  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 6.13e-08 +/- 6.94e-08
Energy Flux (Free Index): 6.85e-06 +/- 7.81e-06

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/304492/cmap_HighResolution_687225601_687484801_4FGL_J2236.4-2309_daily_bin1728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', energy_flux2='6.85e-06', dlogl='8.45e-01', photon_flux2='6.13e-08', job_status='DONE', time_completed='2022-10-15 00:47:35.852656', photon_index_error2='0.00', photon_index2='10.00', ts='0.41', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='7.81e-06', EG='0.70', time_epoch_completed='1665820055.85', return_code='0', job_id='304492', GAL2='1.15', EG2='0.66', return_code2='0', photon_flux_error2='6.94e-08', ts2='2.17', photon_index='2.74' WHERE bin_id='1728' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 00:47:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 304492: <4FGL_J2236.4-2309_daily_bin1728> in cluster <slac> Done

Job <4FGL_J2236.4-2309_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) <bullet0224>, 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:47:36 2022
Results reported at Sat Oct 15 00:47:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1728 339.125 -23.1552 687225601 687484801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.4-2309 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   510.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            696 sec.

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

