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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin690
RA = 339.125, Dec = -23.1552
tmin = 418176001, tmax = 418435201
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='406214', job_status='RUN', time_executed='2021-09-28 17:09:41.484498', time_epoch_executed='1632874181.48' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='690'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406214/ft1_4FGL_J2236.4-2309_daily_bin690.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406214/ft2_4FGL_J2236.4-2309_daily_bin690.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406214/ft1_4FGL_J2236.4-2309_daily_bin690.fits outfile=/scratch/kocevski/406214/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin690.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=418176001.0 tmax=418435201.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 4.90
user 4.66
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406214/ft1_filtered_4FGL_J2236.4-2309_daily_bin690.fits" evtable="EVENTS" scfile=/scratch/kocevski/406214/ft2_4FGL_J2236.4-2309_daily_bin690.fits sctable="SC_DATA" outfile=/scratch/kocevski/406214/ltcube_418176001_418435201_4FGL_J2236.4-2309_daily_bin690.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/406214/ft2_4FGL_J2236.4-2309_daily_bin690.fits
.....................!
real 12.01
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406214/ft1_filtered_4FGL_J2236.4-2309_daily_bin690.fits evtable="EVENTS" scfile=/scratch/kocevski/406214/ft2_4FGL_J2236.4-2309_daily_bin690.fits sctable="SC_DATA" expcube=/scratch/kocevski/406214/ltcube_418176001_418435201_4FGL_J2236.4-2309_daily_bin690.fits outfile=/scratch/kocevski/406214/expmap_418176001_418435201_4FGL_J2236.4-2309_daily_bin690.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/406214/ltcube_418176001_418435201_4FGL_J2236.4-2309_daily_bin690.fits
.....................!
real 192.63
user 187.66
sys 4.66

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/406214/ft1_filtered_4FGL_J2236.4-2309_daily_bin690.fits scfile=/scratch/kocevski/406214/ft2_4FGL_J2236.4-2309_daily_bin690.fits outfile=/scratch/kocevski/406214/cmap_418176001_418435201_4FGL_J2236.4-2309_daily_bin690.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406214/ft1_filtered_4FGL_J2236.4-2309_daily_bin690.fits scfile=/scratch/kocevski/406214/ft2_4FGL_J2236.4-2309_daily_bin690.fits outfile=/scratch/kocevski/406214/cmap_HighResolution_418176001_418435201_4FGL_J2236.4-2309_daily_bin690.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406214/ft1_filtered_4FGL_J2236.4-2309_daily_bin690.fits evtable="EVENTS" scfile=/scratch/kocevski/406214/ft2_4FGL_J2236.4-2309_daily_bin690.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406214/Model_4FGL_J2236.4-2309_daily_bin690.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/406214/ft1_filtered_4FGL_J2236.4-2309_daily_bin690.fits......................!
real 35.94
user 34.58
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.595       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5166       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.787       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .84378       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5676       1.0000         .10000E-03   10000.    
    10 'norm      '    .28184       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .48806       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.913       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5292       1.0000         .10000E-03   10000.    
    20 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2197       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82740       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=   3461.335     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2732 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.389       -.20277E-05** at limit **
   2  Prefactor     19.563        70.561       -.11383E-04   -.14550E-03
   3  norm          2.5166        .68666        .48084E-07    .12146E-03
   4  Prefactor     20.781        15.154        .10315E-05    .34528E-03
   5  Prefactor     .10000E-03    38.350       -.21029E-05** at limit **
   6  Prefactor     1.0217        17.189       -.78944E-06    .88548E-04
   7  Prefactor     .10000E-03    172.37       -.63668E-06** at limit **
   8  norm          .10000E-03    20.793        .77949E-06** at limit **
   9  Prefactor     4.5678        13.235        .47675E-05   -.33797E-03
  10  norm          .28188        1.0570        .41950E-06   -.19515E-03
  11  norm          .10000E-03    1.2103       -.56172E-07** at limit **
  12  Prefactor     .10000E-03    34.250        .17045E-05** at limit **
  13  Prefactor     .10000E-03    6.8491        .18145E-09** at limit **
  14  Prefactor     .10000E-03    12.013        .55314E-09** at limit **
  15  norm          .10000E-03    .58660        .97337E-08** at limit **
  16  norm          .49926        11.932        .36181E-05   -.11465E-03
  17  Prefactor     .10000E-03    17.540        .65853E-06** at limit **
  18  Prefactor     11.906        19.798       -.96210E-07    .12015E-03
  19  Prefactor     4.5384        16.630       -.11127E-05   -.20135E-04
  20  norm          .10000E-03    .58650       -.25225E-06** at limit **
  21  Prefactor     .10000E-03    3.7554        .12455E-08** at limit **
  22  Prefactor     .10000E-03    6.6763       -.15004E-07** at limit **
  23  Normalizat    1.2197        .27495       -.78847E-07    .30028E-04
  24  Prefactor     .82715        .22181       -.91035E-06    .55317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.5625
  norm       = 2.51659
  Prefactor  = 20.7806
  Prefactor  = 0.000100002
  Prefactor  = 1.0217
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.56781
  norm       = 0.28188
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.499262
  Prefactor  = 0.0001
  Prefactor  = 11.9059
  Prefactor  = 4.53844
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21974
  Prefactor  = 0.827153
 **********
 **   18 **HESSE 
 **********

 FCN=   3461.335     FROM HESSE     STATUS=OK           395 CALLS     3127 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.563        74.870        .90481E-04   -1.4823    
   3  norm          2.5166        .68779        .24430E-04   -1.5391    
   4  Prefactor     20.781        15.239        .87850E-04   -1.4796    
   5  Prefactor     .10000E-03    39.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0217        91.472        .45713E-02   -1.5506    
   7  Prefactor     .10000E-03    173.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    20.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5678        13.744        .94176E-03   -1.5280    
  10  norm          .28188        1.0423        .11129E-03   -1.5602    
  11  norm          .10000E-03    1.2156        .63208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.8548        .15038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .59955        .43969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .49926        11.819        .34945E-03   -1.5567    
  17  Prefactor     .10000E-03    17.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.906        19.736        .11606E-03   -1.5018    
  19  Prefactor     4.5384        16.013        .18917E-03   -1.5282    
  20  norm          .10000E-03    .79242        .79327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.7556        .11135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.6849        .14839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2197        .34080        .25659E-03   -.85995    
  24  Prefactor     .82715        .27371        .25019E-03   -.98735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95823e-09
Minuit parameter uncertainties:
  1  9.4646e-05
  2  75.2325
  3  0.687789
  4  15.2418
  5  0.000521635
  6  19.3643
  7  0.00040447
  8  0.000137621
  9  13.7537
  10  1.04239
  11  2.60886e-06
  12  0.000405258
  13  1.34202e-06
  14  6.92056e-06
  15  3.43451e-07
  16  4.85897
  17  0.000105026
  18  19.7471
  19  16.028
  20  4.4117e-06
  21  3.30334e-07
  22  4.00137e-06
  23  0.341427
  24  0.274164
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.568e+00  1.375e+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.272e-01  2.742e-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.220e+00  3.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/406214/likelihoodResults_418176001_418435201_4FGL_J2236.4-2309_daily_bin690.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) = 3461.33057477
delta logL = 0.00425216079293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3461.33004547
delta logL = 0.00478146352179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0375       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5857       1.0000          .0000       10.000    
     3 'Normalizat'    1.2209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82609       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=   3461.330     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      274 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0360        15.150        .17916E-03    .48341E-03
   2  Index         2.5860        1.5339        .13505E-01    .14337E-03
   3  Normalizat    1.2206        .32105        .25650E-03   -.23129E-03
   4  Prefactor     .82635        .26355        .25030E-03   -.20001E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.03602
  Index      = 2.58601
  Normalizat = 1.22062
  Prefactor  = 0.82635
 **********
 **   18 **HESSE 
 **********

 FCN=   3461.330     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0360        14.940        .71664E-05   -1.5259    
   2  Index         2.5860        1.5140        .54018E-03   -.50385    
   3  Normalizat    1.2206        .32144        .51300E-04   -.85968    
   4  Prefactor     .82635        .26382        .50059E-04   -.98764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23534e-09
Minuit parameter uncertainties:
  1  14.9514
  2  1.54596
  3  0.321959
  4  0.264229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406214': 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) = 3461.33004493
delta logL = 0.00478200122507

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  5.036e+00  1.495e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.586e+00  1.546e+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:  8.263e-01  2.642e-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.221e+00  3.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 339.125 -23.155

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/406214/cmap_HighResolution_418176001_418435201_4FGL_J2236.4-2309_daily_bin690.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.61e-07', time_completed='2021-09-28 17:17:52.115035', job_id='406214', GAL2='0.83', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632874672.12', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.78e-03', ts2='0.14', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='690' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:17:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 406214: <4FGL_J2236.4-2309_daily_bin690> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin690 339.125 -23.1552 418176001 418435201 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 :                                   490.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             224.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            740 sec.

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

