/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 24 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 = 7375
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1285
RA = 339.125, Dec = -23.1552
tmin = 572400001, tmax = 572659201
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='408089', job_status='RUN', time_executed='2021-09-28 17:11:31.546298', time_epoch_executed='1632874291.55' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408089/ft1_4FGL_J2236.4-2309_daily_bin1285.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408089/ft2_4FGL_J2236.4-2309_daily_bin1285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408089/ft1_4FGL_J2236.4-2309_daily_bin1285.fits outfile=/scratch/kocevski/408089/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1285.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=572400001.0 tmax=572659201.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 3.63
user 3.38
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408089/ft2_4FGL_J2236.4-2309_daily_bin1285.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/408089/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1285.fits evtable="EVENTS" outfile="/scratch/kocevski/408089/ft1_filtered_4FGL_J2236.4-2309_daily_bin1285.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408089/ft1_filtered_4FGL_J2236.4-2309_daily_bin1285.fits" evtable="EVENTS" scfile=/scratch/kocevski/408089/ft2_4FGL_J2236.4-2309_daily_bin1285.fits sctable="SC_DATA" outfile=/scratch/kocevski/408089/ltcube_572400001_572659201_4FGL_J2236.4-2309_daily_bin1285.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/408089/ft2_4FGL_J2236.4-2309_daily_bin1285.fits
.....................!
real 12.05
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408089/ft1_filtered_4FGL_J2236.4-2309_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/408089/ft2_4FGL_J2236.4-2309_daily_bin1285.fits sctable="SC_DATA" expcube=/scratch/kocevski/408089/ltcube_572400001_572659201_4FGL_J2236.4-2309_daily_bin1285.fits outfile=/scratch/kocevski/408089/expmap_572400001_572659201_4FGL_J2236.4-2309_daily_bin1285.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/408089/ltcube_572400001_572659201_4FGL_J2236.4-2309_daily_bin1285.fits
.....................!
real 192.01
user 186.98
sys 4.71

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/408089/ft1_filtered_4FGL_J2236.4-2309_daily_bin1285.fits scfile=/scratch/kocevski/408089/ft2_4FGL_J2236.4-2309_daily_bin1285.fits outfile=/scratch/kocevski/408089/cmap_572400001_572659201_4FGL_J2236.4-2309_daily_bin1285.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408089/ft1_filtered_4FGL_J2236.4-2309_daily_bin1285.fits scfile=/scratch/kocevski/408089/ft2_4FGL_J2236.4-2309_daily_bin1285.fits outfile=/scratch/kocevski/408089/cmap_HighResolution_572400001_572659201_4FGL_J2236.4-2309_daily_bin1285.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408089/ft1_filtered_4FGL_J2236.4-2309_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/408089/ft2_4FGL_J2236.4-2309_daily_bin1285.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408089/Model_4FGL_J2236.4-2309_daily_bin1285.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/408089/ft1_filtered_4FGL_J2236.4-2309_daily_bin1285.fits....................!
real 48.29
user 46.98
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/408089/ft1_filtered_4FGL_J2236.4-2309_daily_bin1285.fits', '/scratch/kocevski/408089/ft2_4FGL_J2236.4-2309_daily_bin1285.fits', expMap='/scratch/kocevski/408089/expmap_572400001_572659201_4FGL_J2236.4-2309_daily_bin1285.fits', expCube='/scratch/kocevski/408089/ltcube_572400001_572659201_4FGL_J2236.4-2309_daily_bin1285.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/408089/Model_4FGL_J2236.4-2309_daily_bin1285.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  1.000e-04  1.000e+04 ( 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/408089/ft1_filtered_4FGL_J2236.4-2309_daily_bin1285.fits
Spacecraft file(s): /scratch/kocevski/408089/ft2_4FGL_J2236.4-2309_daily_bin1285.fits
Exposure map: /scratch/kocevski/408089/expmap_572400001_572659201_4FGL_J2236.4-2309_daily_bin1285.fits
Exposure cube: /scratch/kocevski/408089/ltcube_572400001_572659201_4FGL_J2236.4-2309_daily_bin1285.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/408089/Model_4FGL_J2236.4-2309_daily_bin1285.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) = 5390.81932414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3676       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2966       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9965       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4773       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2887       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    23.921       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.439       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6569       1.0000         .10000E-03   10000.    
    11 'norm      '    .11532E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    54.860       1.0000         .10000E-03   10000.    
    15 'norm      '    .13139E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26210       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6415       1.0000         .10000E-03   10000.    
    20 'norm      '    .98774       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5273       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17623E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0663       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0515       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=   5390.793     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     2430 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8212       -.64068E-07** at limit **
   2  Prefactor     6.2912        11.551       -.14461E-05   -.50623E-02
   3  norm          1.2966        .44923       -.12692E-07   -.25907E-04
   4  Prefactor     5.9962        8.3907       -.14810E-06    .31066E-03
   5  Prefactor     2.4734        1.5099        .28976E-06    .27685E-03
   6  Prefactor     3.2839        9.8204        .20972E-06   -.10636E-02
   7  Prefactor     .10010E-03    25.020        .25030E-05** at limit **
   8  norm          23.886        12.105        .11054E-05   -.68036E-02
   9  Prefactor     35.439        1.6545        .10937E-07    .23407E-02
  10  norm          1.6568        1.0474        .11792E-06    .22323E-03
  11  norm          .10000E-03    2.6775       -.57691E-07** at limit **
  12  Prefactor     .10011E-03    24.660       -.26605E-05** at limit **
  13  Prefactor     .10000E-03    10.323        .31913E-06** at limit **
  14  Prefactor     54.950        20.433       -.76838E-06   -.11467E-01
  15  norm          .10000E-03    6.0504        .32315E-06** at limit **
  16  norm          .10000E-03    2.7371       -.59145E-07** at limit **
  17  Prefactor     .14282E-03    7603.9       -.15528E-03** at limit **
  18  Prefactor     .10000E-03    7.0889       -.17741E-06** at limit **
  19  Prefactor     7.6387        12.419       -.54471E-06   -.30233E-02
  20  norm          .98772        .81092        .57789E-07    .14239E-03
  21  Prefactor     5.5304        2.2205        .61643E-06    .64995E-03
  22  Prefactor     .10001E-03    79.701       -.44227E-05** at limit **
  23  Normalizat    1.0664        .27584        .20386E-05    .92104E-04
  24  Prefactor     1.0515        .23054       -.54714E-06    .92175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.29125
  norm       = 1.29663
  Prefactor  = 5.9962
  Prefactor  = 2.47342
  Prefactor  = 3.2839
  Prefactor  = 0.0001001
  norm       = 23.8861
  Prefactor  = 35.4393
  norm       = 1.65678
  norm       = 0.0001
  Prefactor  = 0.000100109
  Prefactor  = 0.0001
  Prefactor  = 54.9498
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000142817
  Prefactor  = 0.0001
  Prefactor  = 7.6387
  norm       = 0.987721
  Prefactor  = 5.5304
  Prefactor  = 0.000100005
  Normalizat = 1.06639
  Prefactor  = 1.05147
 **********
 **   18 **HESSE 
 **********

 FCN=   5390.793     FROM HESSE     STATUS=OK           469 CALLS     2899 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8294        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2912        100.38        .39765E-02   -1.5206    
   3  norm          1.2966        .45112        .63605E-02   -1.5480    
   4  Prefactor     5.9962        8.4575        .40993E-02   -1.5218    
   5  Prefactor     2.4734        41.152        .64940E-02   -1.5393    
   6  Prefactor     3.2839        9.8695        .55817E-02   -1.5346    
   7  Prefactor     .10010E-03    25.127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          23.886        37.458        .20475E-02   -1.4730    
   9  Prefactor     35.439        18.829        .16830E-02   -1.4517    
  10  norm          1.6568        1.0524        .81961E-02   -1.5451    
  11  norm          .10000E-03    2.5753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10011E-03    24.775        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.260        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     54.950        36.686        .13539E-02   -1.4224    
  15  norm          .10000E-03    1.1851        .41085E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .14282E-03    142.33        .12926       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.0920        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.6387        12.829        .36267E-02   -1.5155    
  20  norm          .98772        .80655        .10847E-01   -1.5509    
  21  Prefactor     5.5304        12.495        .42723E-02   -1.5238    
  22  Prefactor     .10001E-03    7.9002        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0664        .23894        .64961E-01   -.90838    
  24  Prefactor     1.0515        .19359        .39825E-01   -.91033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73206e-06
Minuit parameter uncertainties:
  1  1.03786e-05
  2  50.3604
  3  0.451123
  4  8.45916
  5  20.1937
  6  9.87442
  7  0.00317463
  8  37.4949
  9  18.8317
  10  1.0524
  11  2.89801e-07
  12  0.00329305
  13  2.86716e-05
  14  36.7011
  15  6.88055e-06
  16  3.95475e-07
  17  0.156501
  18  7.8049e-07
  19  12.8339
  20  0.806561
  21  12.5013
  22  0.000397853
  23  0.239177
  24  0.193724
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.544e+01  1.883e+01  1.000e-04  1.000e+04 ( 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.051e+00  1.937e-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:  1.066e+00  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.43
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 1.25e-07 +/- 6.62e-08
Energy Flux (Fixed Index): 2.91e-05 +/- 1.54e-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) = 5390.79268197
delta logL = 6.05755485594e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5390.79268073
delta logL = 7.29106795916e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.462       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7403       1.0000          .0000       10.000    
     3 'Normalizat'    1.0664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0515       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5390.793     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      259 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.466        20.407        .67296E-04    .44092E-04
   2  Index         2.7404        .57774        .71408E-02    .11374E-04
   3  Normalizat    1.0666        .27416        .28733E-03    .95552E-04
   4  Prefactor     1.0513        .22834        .24538E-03   -.10332E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.466
  Index      = 2.74042
  Normalizat = 1.06661
  Prefactor  = 1.05134
 **********
 **   18 **HESSE 
 **********

 FCN=   5390.793     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.466        20.137        .26918E-05   -1.4516    
   2  Index         2.7404        .56967        .28563E-03   -.46891    
   3  Normalizat    1.0666        .27448        .11493E-04   -.90831    
   4  Prefactor     1.0513        .22855        .98151E-05   -.91037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18449e-11
Minuit parameter uncertainties:
  1  20.141
  2  0.571235
  3  0.274847
  4  0.228764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408089': 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) = 5390.7926804
delta logL = 7.6271535363e-06

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.547e+01  2.014e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.740e+00  5.712e-01  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.051e+00  2.288e-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:  1.067e+00  2.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.38
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.74 +/- 0.57
Photon Flux (Free Index): 1.25e-07 +/- 7.75e-08
Energy Flux (Free Index): 2.91e-05 +/- 1.57e-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/408089/cmap_HighResolution_572400001_572659201_4FGL_J2236.4-2309_daily_bin1285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.25e-07', energy_flux2='2.91e-05', photon_flux_error='6.62e-08', dlogl='7.63e-06', energy_flux='2.91e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-28 17:20:20.854606', photon_index_error2='0.57', photon_index2='2.74', ts='6.43', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.07', time_epoch_completed='1632874820.85', return_code='0', job_id='408089', GAL2='1.05', EG2='1.07', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='7.75e-08', ts2='6.38', photon_index='2.74' WHERE bin_id='1285' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:20:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 408089: <4FGL_J2236.4-2309_daily_bin1285> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1285> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:57 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:10:59 2021
Terminated at Tue Sep 28 17:20:21 2021
Results reported at Tue Sep 28 17:20:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1285 339.125 -23.1552 572400001 572659201 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 :                                   528.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            564 sec.

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

