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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin556
RA = 339.125, Dec = -23.1552
tmin = 383443201, tmax = 383702401
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='406010', job_status='RUN', time_executed='2021-09-28 17:08:37.688708', time_epoch_executed='1632874117.69' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406010

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406010/ft1_4FGL_J2236.4-2309_daily_bin556.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406010/ft2_4FGL_J2236.4-2309_daily_bin556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406010/ft1_4FGL_J2236.4-2309_daily_bin556.fits outfile=/scratch/kocevski/406010/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin556.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=383443201.0 tmax=383702401.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.39
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406010/ft1_filtered_4FGL_J2236.4-2309_daily_bin556.fits" evtable="EVENTS" scfile=/scratch/kocevski/406010/ft2_4FGL_J2236.4-2309_daily_bin556.fits sctable="SC_DATA" outfile=/scratch/kocevski/406010/ltcube_383443201_383702401_4FGL_J2236.4-2309_daily_bin556.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/406010/ft2_4FGL_J2236.4-2309_daily_bin556.fits
.....................!
real 11.77
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406010/ft1_filtered_4FGL_J2236.4-2309_daily_bin556.fits evtable="EVENTS" scfile=/scratch/kocevski/406010/ft2_4FGL_J2236.4-2309_daily_bin556.fits sctable="SC_DATA" expcube=/scratch/kocevski/406010/ltcube_383443201_383702401_4FGL_J2236.4-2309_daily_bin556.fits outfile=/scratch/kocevski/406010/expmap_383443201_383702401_4FGL_J2236.4-2309_daily_bin556.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/406010/ltcube_383443201_383702401_4FGL_J2236.4-2309_daily_bin556.fits
.....................!
real 191.35
user 185.30
sys 5.47

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/406010/ft1_filtered_4FGL_J2236.4-2309_daily_bin556.fits scfile=/scratch/kocevski/406010/ft2_4FGL_J2236.4-2309_daily_bin556.fits outfile=/scratch/kocevski/406010/cmap_383443201_383702401_4FGL_J2236.4-2309_daily_bin556.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/406010/ft1_filtered_4FGL_J2236.4-2309_daily_bin556.fits scfile=/scratch/kocevski/406010/ft2_4FGL_J2236.4-2309_daily_bin556.fits outfile=/scratch/kocevski/406010/cmap_HighResolution_383443201_383702401_4FGL_J2236.4-2309_daily_bin556.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406010/ft1_filtered_4FGL_J2236.4-2309_daily_bin556.fits evtable="EVENTS" scfile=/scratch/kocevski/406010/ft2_4FGL_J2236.4-2309_daily_bin556.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406010/Model_4FGL_J2236.4-2309_daily_bin556.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/406010/ft1_filtered_4FGL_J2236.4-2309_daily_bin556.fits.....................!
real 63.11
user 61.70
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.195       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2156       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7055       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3095       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.880       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9280       1.0000         .10000E-03   10000.    
    10 'norm      '    .74094       1.0000         .10000E-03   10000.    
    11 'norm      '    .86447       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7421       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4580       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3027       1.0000         .10000E-03   10000.    
    15 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.8617       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22435E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.295       1.0000         .10000E-03   10000.    
    20 'norm      '    .31084E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .52611E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.7795       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2823       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66948       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=   7860.188     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     3199 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.188        14.329        .39959E-06   -.12942E-04
   2  Prefactor     .10000E-03    33.625       -.17503E-05** at limit **
   3  norm          1.2156        .34799       -.41942E-08    .90867E-05
   4  Prefactor     5.7051        6.8398        .60119E-06   -.11095E-03
   5  Prefactor     .10000E-03    2.9237        .43331E-07** at limit **
   6  Prefactor     8.3093        11.640       -.18838E-06   -.69798E-05
   7  Prefactor     .10000E-03    18.170        .59249E-06** at limit **
   8  norm          10.881        11.296        .53798E-08    .47540E-05
   9  Prefactor     3.9260        8.8862       -.67882E-06    .21281E-04
  10  norm          .74092        .55961        .11399E-07    .35978E-04
  11  norm          .86356        1.8687        .64620E-07    .66392E-03
  12  Prefactor     9.7852        32.594        .68192E-07    .34804E-04
  13  Prefactor     8.4592        8.2243       -.15363E-06    .46730E-04
  14  Prefactor     3.3018        4.1708       -.10594E-05    .13189E-03
  15  norm          .10000E-03    .24155        .32368E-06** at limit **
  16  norm          9.8606        4.7236        .60125E-07    .55073E-03
  17  Prefactor     .10000E-03    15.945       -.62664E-07** at limit **
  18  Prefactor     .10001E-03    13.664       -.87062E-06** at limit **
  19  Prefactor     15.283        9.8131        .27879E-06    .78890E-03
  20  norm          .10000E-03    .41424       -.79632E-07** at limit **
  21  Prefactor     .10000E-03    56.258        .58605E-05** at limit **
  22  Prefactor     9.7832        7.7589        .83111E-07    .22961E-03
  23  Normalizat    1.2821        .16126        .31262E-06    .58271E-04
  24  Prefactor     .66958        .13545       -.34077E-06    .65052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1875
  Prefactor  = 0.0001
  norm       = 1.21561
  Prefactor  = 5.70508
  Prefactor  = 0.0001
  Prefactor  = 8.30927
  Prefactor  = 0.0001
  norm       = 10.8806
  Prefactor  = 3.92597
  norm       = 0.740918
  norm       = 0.863565
  Prefactor  = 9.78516
  Prefactor  = 8.45918
  Prefactor  = 3.30178
  norm       = 0.0001
  norm       = 9.86055
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 15.2828
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.78325
  Normalizat = 1.28211
  Prefactor  = 0.669583
 **********
 **   18 **HESSE 
 **********

 FCN=   7860.188     FROM HESSE     STATUS=OK           423 CALLS     3622 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.188        14.322        .93897E-04   -1.4855    
   2  Prefactor     .10000E-03    33.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2156        .34827        .27109E-04   -1.5487    
   4  Prefactor     5.7051        6.7744        .16816E-03   -1.5230    
   5  Prefactor     .10000E-03    2.9304        .14805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3093        11.623        .13907E-03   -1.5131    
   7  Prefactor     .10000E-03    18.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.881        11.290        .12146E-03   -1.5048    
   9  Prefactor     3.9260        8.8804        .20355E-03   -1.5312    
  10  norm          .74092        .54903        .55587E-04   -1.5536    
  11  norm          .86356        1.7749        .14254E-02   -1.5522    
  12  Prefactor     9.7852        35.176        .12839E-03   -1.5082    
  13  Prefactor     8.4592        8.2297        .13784E-03   -1.5126    
  14  Prefactor     3.3018        4.3493        .10337E-02   -1.5345    
  15  norm          .10000E-03    .38474        .81718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.8606        4.7301        .11690E-03   -1.5080    
  17  Prefactor     .10000E-03    16.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    18.528        .76813E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.283        9.5505        .10241E-03   -1.4926    
  20  norm          .10000E-03    1.7386        .95951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    54.305        .42578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.7832        7.7358        .12814E-03   -1.5082    
  23  Normalizat    1.2821        .18987        .22533E-03   -.84102    
  24  Prefactor     .66958        .15875        .26065E-03   -1.0473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68305e-10
Minuit parameter uncertainties:
  1  14.3244
  2  4.04958e-05
  3  0.348275
  4  6.77534
  5  1.18421e-06
  6  11.6259
  7  2.89071e-05
  8  11.2927
  9  8.88336
  10  0.549033
  11  1.77501
  12  35.2509
  13  8.23083
  14  4.34974
  15  2.34092e-06
  16  4.73032
  17  3.55439e-05
  18  0.000682231
  19  9.5515
  20  1.26461e-06
  21  0.000372469
  22  7.73664
  23  0.18997
  24  0.158858
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.926e+00  8.883e+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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  6.696e-01  1.589e-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.282e+00  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406010/likelihoodResults_383443201_383702401_4FGL_J2236.4-2309_daily_bin556.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) = 7859.46530379
delta logL = 0.722767148294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7859.40236106
delta logL = 0.78570988242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42365       1.0000         .10000E-03   10000.    
     2 'Index     '    5.8053       1.0000          .0000       10.000    
     3 'Normalizat'    1.2233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70529       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=   7859.402     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      263 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42294        4.6256        .10240E-01    .17236E-02
   2  Index         5.8066        3.5012        .20418        .11570E-03
   3  Normalizat    1.2232        .33187E-01    .51957E-01    .25042E-05
   4  Prefactor     .70541        .28842E-01    .42472E-01    .22740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.422941
  Index      = 5.80656
  Normalizat = 1.22318
  Prefactor  = 0.705411
 **********
 **   18 **HESSE 
 **********

 FCN=   7859.402     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      298 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42294        14.225        .46924E-03   -1.5578    
   2  Index         5.8066        7.8995        .86043E-02    .16202    
   3  Normalizat    1.2232        .13750        .22972E-03   -.85889    
   4  Prefactor     .70541        .11733        .25455E-03   -1.0332    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.75813e-08
Minuit parameter uncertainties:
  1  4.90628
  2  8.82234
  3  0.137544
  4  0.11737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406010': 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): 102
logL (Free Index) = 7859.40236063
delta logL = 0.785710310721

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.229e-01  4.906e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  5.807e+00  8.822e+00  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:  7.054e-01  1.174e-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.223e+00  1.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 5.81 +/- 8.82
Photon Flux (Free Index): 5.40e-08 +/- 4.31e-08
Energy Flux (Free Index): 6.79e-06 +/- 6.91e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/406010/cmap_HighResolution_383443201_383702401_4FGL_J2236.4-2309_daily_bin556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.64e-03', comment='SUCCESS', energy_flux2='6.79e-06', dlogl='7.86e-01', photon_flux2='5.40e-08', job_status='DONE', time_completed='2021-09-28 17:21:41.859221', photon_index_error2='8.82', photon_index2='5.81', ts='0.24', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='8.41e-08', energy_flux_error2='6.91e-06', EG='1.28', time_epoch_completed='1632874901.86', return_code='0', job_id='406010', GAL2='0.71', EG2='1.22', return_code2='102', photon_flux_error2='4.31e-08', ts2='1.92', photon_index='2.74' WHERE bin_id='556' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:21:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 406010: <4FGL_J2236.4-2309_daily_bin556> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin556 339.125 -23.1552 383443201 383702401 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 :                                   784.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

