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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin854
RA = 339.125, Dec = -23.1552
tmin = 460684801, tmax = 460944001
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='406459', job_status='RUN', time_executed='2021-09-28 17:07:52.813932', time_epoch_executed='1632874072.81' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406459

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406459/ft1_4FGL_J2236.4-2309_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406459/ft2_4FGL_J2236.4-2309_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406459/ft1_4FGL_J2236.4-2309_daily_bin854.fits outfile=/scratch/kocevski/406459/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin854.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=460684801.0 tmax=460944001.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.34
user 3.09
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406459/ft1_filtered_4FGL_J2236.4-2309_daily_bin854.fits" evtable="EVENTS" scfile=/scratch/kocevski/406459/ft2_4FGL_J2236.4-2309_daily_bin854.fits sctable="SC_DATA" outfile=/scratch/kocevski/406459/ltcube_460684801_460944001_4FGL_J2236.4-2309_daily_bin854.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/406459/ft2_4FGL_J2236.4-2309_daily_bin854.fits
.....................!
real 12.19
user 11.84
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406459/ft1_filtered_4FGL_J2236.4-2309_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/406459/ft2_4FGL_J2236.4-2309_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/406459/ltcube_460684801_460944001_4FGL_J2236.4-2309_daily_bin854.fits outfile=/scratch/kocevski/406459/expmap_460684801_460944001_4FGL_J2236.4-2309_daily_bin854.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/406459/ltcube_460684801_460944001_4FGL_J2236.4-2309_daily_bin854.fits
.....................!
real 190.77
user 185.33
sys 5.12

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/406459/ft1_filtered_4FGL_J2236.4-2309_daily_bin854.fits scfile=/scratch/kocevski/406459/ft2_4FGL_J2236.4-2309_daily_bin854.fits outfile=/scratch/kocevski/406459/cmap_460684801_460944001_4FGL_J2236.4-2309_daily_bin854.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406459/ft1_filtered_4FGL_J2236.4-2309_daily_bin854.fits scfile=/scratch/kocevski/406459/ft2_4FGL_J2236.4-2309_daily_bin854.fits outfile=/scratch/kocevski/406459/cmap_HighResolution_460684801_460944001_4FGL_J2236.4-2309_daily_bin854.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406459/ft1_filtered_4FGL_J2236.4-2309_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/406459/ft2_4FGL_J2236.4-2309_daily_bin854.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406459/Model_4FGL_J2236.4-2309_daily_bin854.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/406459/ft1_filtered_4FGL_J2236.4-2309_daily_bin854.fits.....................!
real 52.94
user 51.58
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406459/ft1_filtered_4FGL_J2236.4-2309_daily_bin854.fits', '/scratch/kocevski/406459/ft2_4FGL_J2236.4-2309_daily_bin854.fits', expMap='/scratch/kocevski/406459/expmap_460684801_460944001_4FGL_J2236.4-2309_daily_bin854.fits', expCube='/scratch/kocevski/406459/ltcube_460684801_460944001_4FGL_J2236.4-2309_daily_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406459/Model_4FGL_J2236.4-2309_daily_bin854.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/406459/ft1_filtered_4FGL_J2236.4-2309_daily_bin854.fits
Spacecraft file(s): /scratch/kocevski/406459/ft2_4FGL_J2236.4-2309_daily_bin854.fits
Exposure map: /scratch/kocevski/406459/expmap_460684801_460944001_4FGL_J2236.4-2309_daily_bin854.fits
Exposure cube: /scratch/kocevski/406459/ltcube_460684801_460944001_4FGL_J2236.4-2309_daily_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406459/Model_4FGL_J2236.4-2309_daily_bin854.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) = 6404.70293874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .93471       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8097       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.145       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.696       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.829       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3846       1.0000         .10000E-03   10000.    
    11 'norm      '    .85178       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2959       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2193       1.0000         .10000E-03   10000.    
    15 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12417E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.631       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .20972       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1264       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .61123       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.

 FCN=   6404.679     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2735 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1540        .38421E-06** at limit **
   2  Prefactor     .10000E-03    13.473       -.59804E-07** at limit **
   3  norm          .93470        .31010        .74525E-08   -.31959E-03
   4  Prefactor     6.8079        8.2684        .21467E-06   -.15734E-04
   5  Prefactor     15.143        12.682        .35408E-06   -.35197E-04
   6  Prefactor     20.682        15.441        .20475E-06   -.31546E-04
   7  Prefactor     .10000E-03    30.572       -.64729E-06** at limit **
   8  norm          .10000E-03    4.6030        .17246E-06** at limit **
   9  Prefactor     28.829        11.864        .22799E-06    .22630E-05
  10  norm          3.3850        1.0244       -.10256E-06   -.12515E-02
  11  norm          .85159        1.1986        .21577E-07    .45060E-04
  12  Prefactor     .10000E-03    38.428        .86779E-06** at limit **
  13  Prefactor     2.2932        7.9968        .47532E-05   -.20562E-03
  14  Prefactor     2.1898        38.053        .84003E-05    .64608E-04
  15  norm          .10000E-03    .49737       -.28522E-06** at limit **
  16  norm          .10000E-03    1.8107       -.16452E-06** at limit **
  17  Prefactor     20.670        33.456       -.59724E-05    .52754E-04
  18  Prefactor     .10000E-03    4.2109       -.53821E-06** at limit **
  19  Prefactor     .10000E-03    8.6749        .45098E-07** at limit **
  20  norm          .20966        .22783        .32815E-08    .23780E-04
  21  Prefactor     .10000E-03    3.1986        .81403E-07** at limit **
  22  Prefactor     .10000E-03    2.3941        .11591E-07** at limit **
  23  Normalizat    1.1264        .16724       -.16883E-05   -.27262E-03
  24  Prefactor     .61126        .14130        .47645E-06   -.23328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.9347
  Prefactor  = 6.80794
  Prefactor  = 15.143
  Prefactor  = 20.6824
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 28.8292
  norm       = 3.38505
  norm       = 0.851586
  Prefactor  = 0.000100002
  Prefactor  = 2.29318
  Prefactor  = 2.18978
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 20.6696
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.209663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12641
  Prefactor  = 0.61126
 **********
 **   18 **HESSE 
 **********

 FCN=   6404.679     FROM HESSE     STATUS=OK           401 CALLS     3136 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1741        .15966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .93470        .31131        .24969E-04   -1.5515    
   4  Prefactor     6.8079        8.2603        .15375E-03   -1.5186    
   5  Prefactor     15.143        12.675        .51458E-03   -1.4929    
   6  Prefactor     20.682        15.440        .88044E-04   -1.4798    
   7  Prefactor     .10000E-03    30.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.6085        .16776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.829        11.874        .74618E-04   -1.4634    
  10  norm          3.3850        1.0254        .21993E-04   -1.5340    
  11  norm          .85159        1.0235        .10031E-02   -1.5523    
  12  Prefactor     .10000E-03    38.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2932        7.8125        .13544E-02   -1.5405    
  14  Prefactor     2.1898        32.462        .27605E-03   -1.5412    
  15  norm          .10000E-03    .60852        .95209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.9330        .20236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.670        33.445        .88182E-04   -1.4798    
  18  Prefactor     .10000E-03    4.2516        .16093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.9354        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .20966        .22113        .38205E-04   -1.5616    
  21  Prefactor     .10000E-03    3.2160        .13978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.3994        .12090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1264        .18891        .21568E-03   -.88908    
  24  Prefactor     .61126        .16135        .24840E-03   -1.0711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21841e-10
Minuit parameter uncertainties:
  1  6.91031e-05
  2  1.47102e-05
  3  0.311313
  4  8.26171
  5  12.6771
  6  15.4433
  7  0.000296948
  8  3.29866e-05
  9  11.8752
  10  1.02542
  11  1.02351
  12  0.000494508
  13  7.81597
  14  16.8729
  15  4.78529e-07
  16  6.78431e-05
  17  33.4754
  18  9.25595e-05
  19  3.53907e-05
  20  0.22113
  21  8.43579e-06
  22  3.96206e-06
  23  0.189028
  24  0.161469
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.883e+01  1.188e+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:  6.113e-01  1.615e-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.126e+00  1.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.31
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 4.17e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 9.74e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6400.83715071
delta logL = 3.84138076055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6400.83195175
delta logL = 3.84657971745

Fit tolerance = 1e-08

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

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

 FCN=   6400.832     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      213 TOTAL
                     EDM=   .43E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.442        15.426       -.17081E-05   -.75689E-04
   2  Index         1.7684        .32146       -.11381E-04    .12689E-04
   3  Normalizat    1.1979        .16105        .91317E-06    .50470E-04
   4  Prefactor     .56939        .13950       -.53329E-06    .59182E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4421
  Index      = 1.76837
  Normalizat = 1.19789
  Prefactor  = 0.569394
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.832     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.442        15.150        .38234E-03   -1.4660    
   2  Index         1.7684        .31658        .49033E-02   -.70276    
   3  Normalizat    1.1979        .18255        .21005E-03   -.86668    
   4  Prefactor     .56939        .15834        .25631E-03   -1.0889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2773e-10
Minuit parameter uncertainties:
  1  15.1525
  2  0.31694
  3  0.182644
  4  0.158463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406459': 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) = 6400.83195153
delta logL = 3.84657993297

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.744e+01  1.515e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.768e+00  3.169e-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:  5.694e-01  1.585e-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.198e+00  1.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.95
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 1.77 +/- 0.32
Photon Flux (Free Index): 5.05e-08 +/- 3.03e-08
Energy Flux (Free Index): 6.65e-05 +/- 4.79e-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/406459/cmap_HighResolution_460684801_460944001_4FGL_J2236.4-2309_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='6.65e-05', photon_flux_error='4.17e-08', dlogl='3.85e+00', energy_flux='2.36e-05', photon_flux2='5.05e-08', job_status='DONE', time_completed='2021-09-28 17:17:42.881010', photon_index_error2='0.32', photon_index2='1.77', ts='15.31', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='4.79e-05', EG='1.13', time_epoch_completed='1632874662.88', return_code='0', job_id='406459', GAL2='0.57', EG2='1.20', return_code2='0', energy_flux_error='9.74e-06', photon_flux_error2='3.03e-08', ts2='22.95', photon_index='2.74' WHERE bin_id='854' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:17:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 406459: <4FGL_J2236.4-2309_daily_bin854> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin854> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:05:51 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:05:52 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:05:52 2021
Terminated at Tue Sep 28 17:17:43 2021
Results reported at Tue Sep 28 17:17:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin854 339.125 -23.1552 460684801 460944001 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 :                                   590.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            712 sec.

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

