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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1177
RA = 339.125, Dec = -23.1552
tmin = 544406401, tmax = 544665601
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='407931', job_status='RUN', time_executed='2021-09-28 17:11:37.888061', time_epoch_executed='1632874297.89' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407931

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407931/ft1_4FGL_J2236.4-2309_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407931/ft2_4FGL_J2236.4-2309_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407931/ft1_4FGL_J2236.4-2309_daily_bin1177.fits outfile=/scratch/kocevski/407931/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1177.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.86
user 7.58
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407931/ft1_filtered_4FGL_J2236.4-2309_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/407931/ft2_4FGL_J2236.4-2309_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/407931/ltcube_544406401_544665601_4FGL_J2236.4-2309_daily_bin1177.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/407931/ft2_4FGL_J2236.4-2309_daily_bin1177.fits
.....................!
real 7.65
user 7.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407931/ft1_filtered_4FGL_J2236.4-2309_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/407931/ft2_4FGL_J2236.4-2309_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/407931/ltcube_544406401_544665601_4FGL_J2236.4-2309_daily_bin1177.fits outfile=/scratch/kocevski/407931/expmap_544406401_544665601_4FGL_J2236.4-2309_daily_bin1177.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/407931/ltcube_544406401_544665601_4FGL_J2236.4-2309_daily_bin1177.fits
.....................!
real 191.40
user 185.88
sys 5.21

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/407931/ft1_filtered_4FGL_J2236.4-2309_daily_bin1177.fits scfile=/scratch/kocevski/407931/ft2_4FGL_J2236.4-2309_daily_bin1177.fits outfile=/scratch/kocevski/407931/cmap_544406401_544665601_4FGL_J2236.4-2309_daily_bin1177.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.51
user 0.34
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407931/ft1_filtered_4FGL_J2236.4-2309_daily_bin1177.fits scfile=/scratch/kocevski/407931/ft2_4FGL_J2236.4-2309_daily_bin1177.fits outfile=/scratch/kocevski/407931/cmap_HighResolution_544406401_544665601_4FGL_J2236.4-2309_daily_bin1177.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=339.125 yref=-23.1552 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407931/ft1_filtered_4FGL_J2236.4-2309_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/407931/ft2_4FGL_J2236.4-2309_daily_bin1177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407931/Model_4FGL_J2236.4-2309_daily_bin1177.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/407931/ft1_filtered_4FGL_J2236.4-2309_daily_bin1177.fits.....................!
real 61.62
user 60.44
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2421       1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.600       1.0000         .10000E-03   10000.    
     3 'norm      '    .58936       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7899       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1166       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28881       1.0000         .10000E-03   10000.    
     8 'norm      '    22.150       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.341       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9450       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9158       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1024       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5893       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.766       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9165       1.0000         .10000E-03   10000.    
    16 'norm      '    11.179       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.560       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.686       1.0000         .10000E-03   10000.    
    20 'norm      '    .50729       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0969       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .42333E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1954       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7876.745     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     2376 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2416        8.4515        .16659E-07   -.29402E-02
   2  Prefactor     49.588        2.3908       -.90029E-07   -.19019E-02
   3  norm          .58934        .25408       -.99733E-08   -.43473E-03
   4  Prefactor     .10000E-03    3.3652       -.51035E-06** at limit **
   5  Prefactor     2.7731        13.404       -.96050E-07   -.13809E-02
   6  Prefactor     1.0956        22.864       -.38811E-06    .15619E-02
   7  Prefactor     .14224E-03    1538.0       -.62185E-04** at limit **
   8  norm          22.154        9.6487       -.75899E-07    .96356E-02
   9  Prefactor     12.339        3.2877        .10286E-07    .19053E-02
  10  norm          3.9448        1.3416       -.85022E-07   -.48498E-03
  11  norm          1.9160        1.7342        .65182E-08   -.23142E-03
  12  Prefactor     3.0924        46.493       -.12230E-05    .27292E-02
  13  Prefactor     5.5883        4.0786       -.51228E-07    .14284E-02
  14  Prefactor     31.911        26.397        .17155E-05    .84068E-02
  15  norm          4.9037        2.9238       -.22599E-06    .20027E-03
  16  norm          11.178        4.4488        .77068E-07   -.12419E-02
  17  Prefactor     39.588        12.731        .35653E-06    .39619E-02
  18  Prefactor     .10000E-03    5.7297       -.67913E-06** at limit **
  19  Prefactor     11.699        6.7994       -.76786E-08    .74153E-02
  20  norm          .50719        .48420       -.23571E-06   -.20572E-02
  21  Prefactor     2.0924        8.6602       -.11048E-06   -.19855E-03
  22  Prefactor     .10000E-03    22.264       -.31248E-05** at limit **
  23  Normalizat    1.1954        .21258        .66675E-07   -.17165E-03
  24  Prefactor     .87380        .18121       -.46627E-06   -.19427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.2416
  Prefactor  = 49.5884
  norm       = 0.589337
  Prefactor  = 0.0001
  Prefactor  = 2.77308
  Prefactor  = 1.09563
  Prefactor  = 0.000142236
  norm       = 22.1537
  Prefactor  = 12.3388
  norm       = 3.94476
  norm       = 1.91602
  Prefactor  = 3.09236
  Prefactor  = 5.58834
  Prefactor  = 31.9109
  norm       = 4.90368
  norm       = 11.1778
  Prefactor  = 39.5884
  Prefactor  = 0.0001
  Prefactor  = 11.6986
  norm       = 0.507193
  Prefactor  = 2.09237
  Prefactor  = 0.000100001
  Normalizat = 1.19538
  Prefactor  = 0.873795
 **********
 **   18 **HESSE 
 **********

 FCN=   7876.745     FROM HESSE     STATUS=OK           473 CALLS     2849 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2416        18.940        .43890E-02   -1.5250    
   2  Prefactor     49.588        63.474        .14235E-02   -1.4298    
   3  norm          .58934        .25353        .64404E-02   -1.5554    
   4  Prefactor     .10000E-03    3.3377        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7731        14.672        .60899E-02   -1.5375    
   6  Prefactor     1.0956        30.232        .11135E-01   -1.5499    
   7  Prefactor     .14224E-03    60.378        .16945       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          22.154        18.004        .21277E-02   -1.4766    
   9  Prefactor     12.339        11.114        .28507E-02   -1.5005    
  10  norm          3.9448        1.3620        .50774E-02   -1.5311    
  11  norm          1.9160        1.8114        .75069E-02   -1.5431    
  12  Prefactor     3.0924        81.425        .57557E-02   -1.5356    
  13  Prefactor     5.5883        11.117        .42482E-02   -1.5235    
  14  Prefactor     31.911        43.879        .17773E-02   -1.4578    
  15  norm          4.9037        3.5295        .45349E-02   -1.5265    
  16  norm          11.178        4.5723        .29956E-02   -1.5039    
  17  Prefactor     39.588        56.940        .15932E-02   -1.4449    
  18  Prefactor     .10000E-03    5.7349        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.699        10.372        .29296E-02   -1.5024    
  20  norm          .50719        .56798        .11301E-01   -1.5566    
  21  Prefactor     2.0924        8.7485        .71256E-02   -1.5419    
  22  Prefactor     .10000E-03    6.3221        .74671E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1954        .18727        .59700E-01   -.86746    
  24  Prefactor     .87380        .15348        .44669E-01   -.97063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09452e-06
Minuit parameter uncertainties:
  1  18.962
  2  63.5604
  3  0.253535
  4  2.83659e-05
  5  12.7619
  6  11.5164
  7  0.1011
  8  18.0081
  9  11.1156
  10  1.36204
  11  1.81143
  12  31.7838
  13  11.1213
  14  43.9233
  15  3.52965
  16  4.57245
  17  57.0187
  18  5.08046e-05
  19  10.3734
  20  0.567982
  21  8.55885
  22  0.000117069
  23  0.187377
  24  0.153561
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.234e+01  1.112e+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.738e-01  1.536e-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.195e+00  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 4.34e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 9.12e-06

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

Saving results to:
/scratch/kocevski/407931/likelihoodResults_544406401_544665601_4FGL_J2236.4-2309_daily_bin1177.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) = 7876.62215405
delta logL = 0.123062283206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7876.6187644
delta logL = 0.12645194176

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.188       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3325       1.0000          .0000       10.000    
     3 'Normalizat'    1.2120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86337       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=   7876.619     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.188        20.454        .27575E-02    .80733E-03
   2  Index         2.3324        1.0196        .24172       -.35980E-04
   3  Normalizat    1.2120        .17617        .59345E-01    .91692E-05
   4  Prefactor     .86336        .15203        .44536E-01    .17412E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1882
  Index      = 2.33245
  Normalizat = 1.21204
  Prefactor  = 0.863362
 **********
 **   18 **HESSE 
 **********

 FCN=   7876.619     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.188        11.970        .11030E-03   -1.4981    
   2  Index         2.3324        .74992        .12031E-01   -.56275    
   3  Normalizat    1.2120        .20781        .26246E-03   -.86232    
   4  Prefactor     .86336        .17775        .26265E-03   -.97433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64605e-10
Minuit parameter uncertainties:
  1  11.9725
  2  0.753909
  3  0.207956
  4  0.177873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407931': 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) = 7876.61876439
delta logL = 0.126451947976

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.319e+01  1.197e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.332e+00  7.539e-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:  8.634e-01  1.779e-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.212e+00  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.33 +/- 0.75
Photon Flux (Free Index): 3.28e-08 +/- 3.69e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.19e-05

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/407931/cmap_HighResolution_544406401_544665601_4FGL_J2236.4-2309_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.34e-08', energy_flux2='1.18e-05', photon_flux_error='3.91e-08', dlogl='1.26e-01', energy_flux='1.01e-05', photon_flux2='3.28e-08', job_status='DONE', time_completed='2021-09-28 17:23:36.935288', photon_index_error2='0.75', photon_index2='2.33', ts='2.06', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.19e-05', EG='1.20', time_epoch_completed='1632875016.94', return_code='0', job_id='407931', GAL2='0.86', EG2='1.21', return_code2='0', energy_flux_error='9.12e-06', photon_flux_error2='3.69e-08', ts2='2.30', photon_index='2.74' WHERE bin_id='1177' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:23:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 407931: <4FGL_J2236.4-2309_daily_bin1177> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1177 339.125 -23.1552 544406401 544665601 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 :                                   718.00 sec.
    Max Memory :                                 1044 MB
    Average Memory :                             285.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

