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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin500
RA = 339.125, Dec = -23.1552
tmin = 368928001, tmax = 369187201
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='404697', job_status='RUN', time_executed='2021-09-28 17:02:08.484477', time_epoch_executed='1632873728.48' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404697

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404697/ft1_4FGL_J2236.4-2309_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404697/ft2_4FGL_J2236.4-2309_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404697/ft1_4FGL_J2236.4-2309_daily_bin500.fits outfile=/scratch/kocevski/404697/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin500.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=368928001.0 tmax=369187201.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.37
user 3.15
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404697/ft1_filtered_4FGL_J2236.4-2309_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/404697/ft2_4FGL_J2236.4-2309_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/404697/ltcube_368928001_369187201_4FGL_J2236.4-2309_daily_bin500.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/404697/ft2_4FGL_J2236.4-2309_daily_bin500.fits
.....................!
real 11.98
user 11.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404697/ft1_filtered_4FGL_J2236.4-2309_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/404697/ft2_4FGL_J2236.4-2309_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/404697/ltcube_368928001_369187201_4FGL_J2236.4-2309_daily_bin500.fits outfile=/scratch/kocevski/404697/expmap_368928001_369187201_4FGL_J2236.4-2309_daily_bin500.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/404697/ltcube_368928001_369187201_4FGL_J2236.4-2309_daily_bin500.fits
.....................!
real 190.07
user 185.79
sys 3.96

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/404697/ft1_filtered_4FGL_J2236.4-2309_daily_bin500.fits scfile=/scratch/kocevski/404697/ft2_4FGL_J2236.4-2309_daily_bin500.fits outfile=/scratch/kocevski/404697/cmap_368928001_369187201_4FGL_J2236.4-2309_daily_bin500.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/404697/ft1_filtered_4FGL_J2236.4-2309_daily_bin500.fits scfile=/scratch/kocevski/404697/ft2_4FGL_J2236.4-2309_daily_bin500.fits outfile=/scratch/kocevski/404697/cmap_HighResolution_368928001_369187201_4FGL_J2236.4-2309_daily_bin500.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.57
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6650       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4231       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.327       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5329       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6030       1.0000         .10000E-03   10000.    
    11 'norm      '    6.7737       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2270       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.959       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4346       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .49199E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9763       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.472       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8956       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8010       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87066       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86596       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=   7700.038     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2828 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6109        .11845E-07** at limit **
   2  Prefactor     .10000E-03    18.952        .68146E-06** at limit **
   3  norm          1.6650        .38746       -.18707E-07    .58902E-04
   4  Prefactor     2.4215        5.8050        .23848E-05   -.44358E-03
   5  Prefactor     13.325        9.3265       -.60215E-06   -.81272E-03
   6  Prefactor     .10000E-03    4.2523        .12638E-05** at limit **
   7  Prefactor     .10000E-03    37.459        .53451E-07** at limit **
   8  norm          .10000E-03    9.2098       -.10092E-05** at limit **
   9  Prefactor     8.5290        10.501       -.20653E-06   -.11065E-03
  10  norm          3.6029        .98569       -.46169E-08   -.41051E-04
  11  norm          6.7742        3.2679        .54510E-06   -.28937E-02
  12  Prefactor     7.2087        85.634       -.22114E-04   -.68496E-04
  13  Prefactor     15.957        10.075       -.93973E-06   -.11102E-03
  14  Prefactor     .10000E-03    9.2011        .10848E-05** at limit **
  15  norm          .10000E-03    .41993       -.16270E-07** at limit **
  16  norm          1.4347        1.8411        .19504E-07    .37247E-05
  17  Prefactor     .10000E-03    14.229       -.24157E-07** at limit **
  18  Prefactor     8.9770        8.9288       -.15131E-05   -.64848E-04
  19  Prefactor     15.473        11.725        .16078E-05    .64826E-04
  20  norm          2.8952        .93386       -.11311E-06    .73497E-03
  21  Prefactor     5.8041        6.9742       -.10141E-05   -.22062E-03
  22  Prefactor     .10000E-03    4.2414       -.13192E-05** at limit **
  23  Normalizat    .87077        .16714        .10470E-05   -.10817E-04
  24  Prefactor     .86593        .14107       -.12239E-06    .68151E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66498
  Prefactor  = 2.4215
  Prefactor  = 13.3253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.52898
  norm       = 3.60287
  norm       = 6.7742
  Prefactor  = 7.20868
  Prefactor  = 15.9571
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.43466
  Prefactor  = 0.000100001
  Prefactor  = 8.97699
  Prefactor  = 15.4731
  norm       = 2.89518
  Prefactor  = 5.80413
  Prefactor  = 0.0001
  Normalizat = 0.870768
  Prefactor  = 0.865926
 **********
 **   18 **HESSE 
 **********

 FCN=   7700.038     FROM HESSE     STATUS=OK           415 CALLS     3243 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6650        .38847        .25583E-04   -1.5450    
   4  Prefactor     2.4215        5.5245        .26293E-03   -1.5397    
   5  Prefactor     13.325        9.4805        .54861E-03   -1.4978    
   6  Prefactor     .10000E-03    4.2599        .17664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.2357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5290        10.482        .13723E-03   -1.5124    
  10  norm          3.6029        .98540        .43704E-04   -1.5328    
  11  norm          6.7742        3.1105        .42643E-03   -1.5187    
  12  Prefactor     7.2087        74.831        .14921E-03   -1.5171    
  13  Prefactor     15.957        10.125        .10026E-03   -1.4909    
  14  Prefactor     .10000E-03    9.3151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .71906        .10617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4347        1.8209        .12968E-03   -1.5468    
  17  Prefactor     .10000E-03    16.318        .97051E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.9770        8.8990        .13378E-03   -1.5109    
  19  Prefactor     15.473        12.094        .10183E-03   -1.4921    
  20  norm          2.8952        .96410        .36136E-04   -1.5368    
  21  Prefactor     5.8041        7.0106        .16675E-03   -1.5226    
  22  Prefactor     .10000E-03    4.2593        .17641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .87077        .19786        .26258E-03   -.97495    
  24  Prefactor     .86593        .16662        .23326E-03   -.97342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77341e-09
Minuit parameter uncertainties:
  1  3.01675e-06
  2  5.32046e-06
  3  0.388466
  4  5.52565
  5  9.48161
  6  1.32e-05
  7  6.36298e-06
  8  1.07159e-05
  9  10.4843
  10  0.985402
  11  3.11058
  12  46.526
  13  10.126
  14  1.63989e-05
  15  2.30616e-06
  16  1.82096
  17  0.000263899
  18  8.90035
  19  12.0955
  20  0.96411
  21  7.01162
  22  2.27806e-05
  23  0.198027
  24  0.166722
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  8.529e+00  1.048e+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:  8.659e-01  1.667e-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:  8.708e-01  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.91
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404697/likelihoodResults_368928001_369187201_4FGL_J2236.4-2309_daily_bin500.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) = 7699.81944512
delta logL = 0.218069402623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7699.44493552
delta logL = 0.592578997785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11287E-02   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .84070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89350       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=   7699.445     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      434 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11290E-02    .11301E-02    .27157E-04** at limit **
   2  Index        10.0000        1.3646        .50000    ** at limit **
   3  Normalizat    .84055        .18775        .26664E-03    .84591E-04
   4  Prefactor     .89362        .16480        .23014E-03    .88919E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00112901
  Index      = 10
  Normalizat = 0.840547
  Prefactor  = 0.893619
 **********
 **   18 **HESSE 
 **********

 FCN=   7699.445     FROM HESSE     STATUS=OK            31 CALLS      465 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11290E-02    .10927E-02    .10863E-05   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.2809        .50000        1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .84055        .18813        .10666E-04   -.98582    
   4  Prefactor     .89362        .16506        .92056E-05   -.96364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10666e-10
Minuit parameter uncertainties:
  1  0.00109268
  2  0.000563571
  3  0.18828
  4  0.165151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404697': 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) = 7699.44493469
delta logL = 0.592579834752

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.129e-03  1.093e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.000e+01  5.636e-04  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:  8.936e-01  1.652e-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:  8.405e-01  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 4.25e-08 +/- 3.99e-08
Energy Flux (Free Index): 4.75e-06 +/- 4.49e-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/404697/cmap_HighResolution_368928001_369187201_4FGL_J2236.4-2309_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.26e-03', comment='SUCCESS', energy_flux2='4.75e-06', dlogl='5.93e-01', photon_flux2='4.25e-08', job_status='DONE', time_completed='2021-09-28 17:14:31.686504', photon_index_error2='0.00', photon_index2='10.00', ts='0.91', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='4.49e-06', EG='0.87', time_epoch_completed='1632874471.69', return_code='0', job_id='404697', GAL2='0.89', EG2='0.84', return_code2='0', photon_flux_error2='3.99e-08', ts2='2.16', photon_index='2.74' WHERE bin_id='500' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:14:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 404697: <4FGL_J2236.4-2309_daily_bin500> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin500> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:00:40 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:00:41 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:00:41 2021
Terminated at Tue Sep 28 17:14:32 2021
Results reported at Tue Sep 28 17:14:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin500 339.125 -23.1552 368928001 369187201 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

