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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1364
RA = 339.125, Dec = -23.1552
tmin = 592876801, tmax = 593136001
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='409164', job_status='RUN', time_executed='2021-09-28 17:15:49.274812', time_epoch_executed='1632874549.27' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409164

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409164/ft1_4FGL_J2236.4-2309_daily_bin1364.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409164/ft2_4FGL_J2236.4-2309_daily_bin1364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409164/ft1_4FGL_J2236.4-2309_daily_bin1364.fits outfile=/scratch/kocevski/409164/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1364.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=592876801.0 tmax=593136001.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.83
user 3.60
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/409164/ft2_4FGL_J2236.4-2309_daily_bin1364.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/409164/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1364.fits evtable="EVENTS" outfile="/scratch/kocevski/409164/ft1_filtered_4FGL_J2236.4-2309_daily_bin1364.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/409164/ft1_filtered_4FGL_J2236.4-2309_daily_bin1364.fits" evtable="EVENTS" scfile=/scratch/kocevski/409164/ft2_4FGL_J2236.4-2309_daily_bin1364.fits sctable="SC_DATA" outfile=/scratch/kocevski/409164/ltcube_592876801_593136001_4FGL_J2236.4-2309_daily_bin1364.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/409164/ft2_4FGL_J2236.4-2309_daily_bin1364.fits
.....................!
real 11.89
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409164/ft1_filtered_4FGL_J2236.4-2309_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/409164/ft2_4FGL_J2236.4-2309_daily_bin1364.fits sctable="SC_DATA" expcube=/scratch/kocevski/409164/ltcube_592876801_593136001_4FGL_J2236.4-2309_daily_bin1364.fits outfile=/scratch/kocevski/409164/expmap_592876801_593136001_4FGL_J2236.4-2309_daily_bin1364.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/409164/ltcube_592876801_593136001_4FGL_J2236.4-2309_daily_bin1364.fits
.....................!
real 190.88
user 185.21
sys 5.34

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/409164/ft1_filtered_4FGL_J2236.4-2309_daily_bin1364.fits scfile=/scratch/kocevski/409164/ft2_4FGL_J2236.4-2309_daily_bin1364.fits outfile=/scratch/kocevski/409164/cmap_592876801_593136001_4FGL_J2236.4-2309_daily_bin1364.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/409164/ft1_filtered_4FGL_J2236.4-2309_daily_bin1364.fits scfile=/scratch/kocevski/409164/ft2_4FGL_J2236.4-2309_daily_bin1364.fits outfile=/scratch/kocevski/409164/cmap_HighResolution_592876801_593136001_4FGL_J2236.4-2309_daily_bin1364.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=339.125 yref=-23.1552 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409164/ft1_filtered_4FGL_J2236.4-2309_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/409164/ft2_4FGL_J2236.4-2309_daily_bin1364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409164/Model_4FGL_J2236.4-2309_daily_bin1364.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/409164/ft1_filtered_4FGL_J2236.4-2309_daily_bin1364.fits.....................!
real 50.00
user 48.64
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0469       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2433       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.424       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.717       1.0000         .10000E-03   10000.    
     8 'norm      '    23.414       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3661       1.0000         .10000E-03   10000.    
    10 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6605       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.839       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22568E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    113.16       1.0000         .10000E-03   10000.    
    15 'norm      '    .10960E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.666       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.655       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9961       1.0000         .10000E-03   10000.    
    20 'norm      '    .41657E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6958       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1482       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .60947       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=   6060.317     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2928 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9884       -.31679E-09** at limit **
   2  Prefactor     .10000E-03    16.312       -.11501E-06** at limit **
   3  norm          1.0469        .37006        .20404E-08    .11412E-04
   4  Prefactor     3.2441        7.2786        .27170E-06    .44715E-04
   5  Prefactor     .10000E-03    10.522       -.26629E-08** at limit **
   6  Prefactor     19.426        17.132        .22314E-07   -.73704E-05
   7  Prefactor     46.743        43.102       -.59021E-06   -.79459E-04
   8  norm          23.406        21.003        .66062E-07   -.18449E-04
   9  Prefactor     8.3540        15.980        .86680E-06   -.11925E-04
  10  norm          .10000E-03    .48019        .81249E-07** at limit **
  11  norm          1.6566        2.8110        .44655E-06   -.64784E-03
  12  Prefactor     28.984        71.842       -.36557E-05   -.97085E-04
  13  Prefactor     .10006E-03    6.1273        .49587E-06** at limit **
  14  Prefactor     113.16        30.934       -.91756E-06    .12627E-03
  15  norm          .10010E-03    .65916        .30624E-06** at limit **
  16  norm          .10000E-03    1.2274       -.81848E-09** at limit **
  17  Prefactor     39.660        59.704       -.23960E-06    .40167E-04
  18  Prefactor     10.657        13.388       -.24578E-06   -.94433E-04
  19  Prefactor     9.0142        10.319        .24671E-06   -.21281E-03
  20  norm          .40980E-01    .39079        .10557E-06   -.73357E-03
  21  Prefactor     .10000E-03    6.2126        .25620E-07** at limit **
  22  Prefactor     2.6971        8.8754        .32602E-06   -.33305E-04
  23  Normalizat    1.1478        .19171       -.91062E-06   -.68362E-04
  24  Prefactor     .60981        .15273        .99167E-06   -.85566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.04695
  Prefactor  = 3.2441
  Prefactor  = 0.0001
  Prefactor  = 19.4264
  Prefactor  = 46.7434
  norm       = 23.4065
  Prefactor  = 8.35398
  norm       = 0.0001
  norm       = 1.65656
  Prefactor  = 28.9836
  Prefactor  = 0.000100057
  Prefactor  = 113.157
  norm       = 0.000100103
  norm       = 0.0001
  Prefactor  = 39.6598
  Prefactor  = 10.657
  Prefactor  = 9.01416
  norm       = 0.0409804
  Prefactor  = 0.0001
  Prefactor  = 2.69711
  Normalizat = 1.14784
  Prefactor  = 0.609806
 **********
 **   18 **HESSE 
 **********

 FCN=   6060.317     FROM HESSE     STATUS=OK           407 CALLS     3335 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0469        .37049        .27343E-04   -1.5503    
   4  Prefactor     3.2441        7.2740        .11245E-02   -1.5348    
   5  Prefactor     .10000E-03    10.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.426        17.130        .90877E-04   -1.4826    
   7  Prefactor     46.743        43.367        .29331E-03   -1.4340    
   8  norm          23.406        20.982        .82781E-04   -1.4740    
   9  Prefactor     8.3540        15.985        .13860E-03   -1.5130    
  10  norm          .10000E-03    1.2004        .10394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6566        2.8423        .10825E-03   -1.5451    
  12  Prefactor     28.984        73.258        .74604E-04   -1.4631    
  13  Prefactor     .10006E-03    56.867        .35911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     113.16        31.142        .37817E-04   -1.3576    
  15  norm          .10010E-03    19.287        .10706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2367        .84157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.660        59.679        .63643E-04   -1.4448    
  18  Prefactor     10.657        13.404        .12274E-03   -1.5055    
  19  Prefactor     9.0142        10.076        .66815E-03   -1.5107    
  20  norm          .40980E-01    .76215        .78994E-03   -1.5668    
  21  Prefactor     .10000E-03    6.2642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.6971        8.9854        .12406E-02   -1.5379    
  23  Normalizat    1.1478        .21996        .23056E-03   -.88230    
  24  Prefactor     .60981        .17633        .26206E-03   -1.0717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11757e-08
Minuit parameter uncertainties:
  1  1.82758e-06
  2  2.68353e-05
  3  0.37049
  4  7.27599
  5  1.79645e-06
  6  17.1341
  7  43.3965
  8  20.9886
  9  15.993
  10  8.86559e-07
  11  2.84256
  12  73.4863
  13  0.00359421
  14  31.1468
  15  0.00281476
  16  1.36122e-06
  17  59.7688
  18  13.4076
  19  10.0775
  20  0.353032
  21  8.22674e-07
  22  8.98992
  23  0.220137
  24  0.176491
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  8.354e+00  1.599e+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.098e-01  1.765e-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.148e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/409164/likelihoodResults_592876801_593136001_4FGL_J2236.4-2309_daily_bin1364.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) = 6059.95829884
delta logL = 0.359005859942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6059.93929591
delta logL = 0.378008788679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0047       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3358       1.0000          .0000       10.000    
     3 'Normalizat'    1.1018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63899       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=   6059.939     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      243 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0047        66.067        .58539E-02    .24916E-03
   2  Index         4.3358        7.0710        .20326        .13562E-03
   3  Normalizat    1.1018        .48756E-01    .37928E-01    .41702E-05
   4  Prefactor     .63899        .41622E-01    .41583E-01    .22103E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.00475
  Index      = 4.3358
  Normalizat = 1.10178
  Prefactor  = 0.638994
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.939     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0047        140.93        .12607E-03   -1.5361    
   2  Index         4.3358        6.5037        .89669E-02   -.13323    
   3  Normalizat    1.1018        .20407        .23445E-03   -.89695    
   4  Prefactor     .63899        .17149        .25623E-03   -1.0597    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.1742e-08
Minuit parameter uncertainties:
  1  41.2597
  2  10.8217
  3  0.204221
  4  0.171628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409164': 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) = 6059.9392959
delta logL = 0.378008798092

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.005e+00  4.126e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.336e+00  1.082e+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:  6.390e-01  1.716e-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.102e+00  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 4.34 +/- 10.82
Photon Flux (Free Index): 6.05e-08 +/- 7.47e-08
Energy Flux (Free Index): 8.62e-06 +/- 2.00e-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/409164/cmap_HighResolution_592876801_593136001_4FGL_J2236.4-2309_daily_bin1364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='8.62e-06', dlogl='3.78e-01', photon_flux2='6.05e-08', job_status='DONE', time_completed='2021-09-28 17:26:38.805642', photon_index_error2='10.82', photon_index2='4.34', ts='0.40', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='2.00e-05', EG='1.15', time_epoch_completed='1632875198.81', return_code='0', job_id='409164', GAL2='0.64', EG2='1.10', return_code2='102', photon_flux_error2='7.47e-08', ts2='1.23', photon_index='2.74' WHERE bin_id='1364' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:26:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 409164: <4FGL_J2236.4-2309_daily_bin1364> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1364> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:15:14 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:15:16 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:15:16 2021
Terminated at Tue Sep 28 17:26:39 2021
Results reported at Tue Sep 28 17:26:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1364 339.125 -23.1552 592876801 593136001 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 :                                   646.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            685 sec.

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

