/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 124 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 = 7659
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.4-2309_daily_bin240
RA = 339.125, Dec = -23.1552
tmin = 301536001, tmax = 301795201
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='403242', job_status='RUN', time_executed='2021-09-28 16:58:05.522920', time_epoch_executed='1632873485.52' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/403242

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/403242/ft1_4FGL_J2236.4-2309_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/403242/ft2_4FGL_J2236.4-2309_daily_bin240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/403242/ft1_4FGL_J2236.4-2309_daily_bin240.fits outfile=/scratch/kocevski/403242/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin240.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=301536001.0 tmax=301795201.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.65
user 4.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/403242/ft2_4FGL_J2236.4-2309_daily_bin240.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/403242/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin240.fits evtable="EVENTS" outfile="/scratch/kocevski/403242/ft1_filtered_4FGL_J2236.4-2309_daily_bin240.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/403242/ft1_filtered_4FGL_J2236.4-2309_daily_bin240.fits" evtable="EVENTS" scfile=/scratch/kocevski/403242/ft2_4FGL_J2236.4-2309_daily_bin240.fits sctable="SC_DATA" outfile=/scratch/kocevski/403242/ltcube_301536001_301795201_4FGL_J2236.4-2309_daily_bin240.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/403242/ft2_4FGL_J2236.4-2309_daily_bin240.fits
.....................!
real 11.64
user 11.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/403242/ft1_filtered_4FGL_J2236.4-2309_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/403242/ft2_4FGL_J2236.4-2309_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/403242/ltcube_301536001_301795201_4FGL_J2236.4-2309_daily_bin240.fits outfile=/scratch/kocevski/403242/expmap_301536001_301795201_4FGL_J2236.4-2309_daily_bin240.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/403242/ltcube_301536001_301795201_4FGL_J2236.4-2309_daily_bin240.fits
.....................!
real 192.35
user 186.53
sys 5.46

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/403242/ft1_filtered_4FGL_J2236.4-2309_daily_bin240.fits scfile=/scratch/kocevski/403242/ft2_4FGL_J2236.4-2309_daily_bin240.fits outfile=/scratch/kocevski/403242/cmap_301536001_301795201_4FGL_J2236.4-2309_daily_bin240.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/403242/ft1_filtered_4FGL_J2236.4-2309_daily_bin240.fits scfile=/scratch/kocevski/403242/ft2_4FGL_J2236.4-2309_daily_bin240.fits outfile=/scratch/kocevski/403242/cmap_HighResolution_301536001_301795201_4FGL_J2236.4-2309_daily_bin240.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/403242/ft1_filtered_4FGL_J2236.4-2309_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/403242/ft2_4FGL_J2236.4-2309_daily_bin240.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/403242/Model_4FGL_J2236.4-2309_daily_bin240.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/403242/ft1_filtered_4FGL_J2236.4-2309_daily_bin240.fits.....................!
real 46.83
user 45.50
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7624       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6448       1.0000         .10000E-03   10000.    
     3 'norm      '    .66945       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7214       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.834       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10832E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2994       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13405E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10909E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9418       1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.011       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9706       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.308       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3386       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87216       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=   5343.632     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2759 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7565        19.775        .90177E-06    .16283E-04
   2  Prefactor     5.6595        127.00       -.27131E-05   -.17349E-05
   3  norm          .66945        .33723        .10538E-07    .25645E-04
   4  Prefactor     2.7236        6.3264        .42596E-06    .24085E-04
   5  Prefactor     16.816        19.552        .10751E-06    .25958E-04
   6  Prefactor     .10000E-03    6.2565        .43402E-07** at limit **
   7  Prefactor     .10000E-03    85.895       -.50175E-05** at limit **
   8  norm          .10000E-03    7.0760        .38182E-07** at limit **
   9  Prefactor     .10000E-03    20.193        .34384E-06** at limit **
  10  norm          1.2983        1.2236       -.45678E-07    .55633E-03
  11  norm          .10000E-03    1.7991        .13608E-06** at limit **
  12  Prefactor     .10000E-03    28.002        .54336E-06** at limit **
  13  Prefactor     .10000E-03    14.313        .26370E-06** at limit **
  14  Prefactor     .10000E-03    60.260        .74695E-06** at limit **
  15  norm          .10000E-03    .84931       -.14989E-05** at limit **
  16  norm          1.9431        3.2225        .79001E-06    .44418E-03
  17  Prefactor     42.896        42.965        .97684E-06    .27397E-03
  18  Prefactor     .10000E-03    39.590       -.15353E-05** at limit **
  19  Prefactor     6.9671        14.451       -.89635E-06   -.11569E-03
  20  norm          .10000E-03    .35679       -.13204E-06** at limit **
  21  Prefactor     .10000E-03    4.8167       -.60638E-07** at limit **
  22  Prefactor     11.331        19.802        .35461E-06   -.93286E-04
  23  Normalizat    1.3387        .21496        .40548E-06    .95496E-04
  24  Prefactor     .87201        .18020       -.11401E-05    .11085E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.75646
  Prefactor  = 5.65945
  norm       = 0.669452
  Prefactor  = 2.72358
  Prefactor  = 16.8163
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.29828
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 1.94313
  Prefactor  = 42.8965
  Prefactor  = 0.0001
  Prefactor  = 6.96714
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3307
  Normalizat = 1.33869
  Prefactor  = 0.87201
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.632     FROM HESSE     STATUS=OK           399 CALLS     3158 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7565        19.279        .16732E-03   -1.5228    
   2  Prefactor     5.6595        120.78        .16908E-03   -1.5232    
   3  norm          .66945        .33405        .29221E-04   -1.5544    
   4  Prefactor     2.7236        6.3118        .24687E-03   -1.5378    
   5  Prefactor     16.816        19.555        .97617E-04   -1.4888    
   6  Prefactor     .10000E-03    6.2689        .17858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    85.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.0781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2983        1.1988        .73601E-04   -1.5480    
  11  norm          .10000E-03    1.8863        .19149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    59.827        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .90384        .10518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9431        3.3652        .82537E-03   -1.5429    
  17  Prefactor     42.896        41.741        .61128E-04   -1.4397    
  18  Prefactor     .10000E-03    39.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9671        13.946        .15195E-03   -1.5180    
  20  norm          .10000E-03    .47067        .77321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.8220        .15668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.331        19.438        .11914E-03   -1.5035    
  23  Normalizat    1.3387        .25497        .24770E-03   -.82419    
  24  Prefactor     .87201        .21181        .25405E-03   -.97126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68367e-10
Minuit parameter uncertainties:
  1  19.2995
  2  52.4099
  3  0.33405
  4  6.31336
  5  19.5627
  6  5.06741e-06
  7  0.00045567
  8  3.78175e-06
  9  6.01363e-05
  10  1.19884
  11  6.23807e-06
  12  1.3496e-05
  13  3.457e-05
  14  0.000754048
  15  1.06321e-05
  16  3.36553
  17  41.7691
  18  0.000200646
  19  13.9526
  20  3.10252e-06
  21  1.71038e-06
  22  19.449
  23  0.255209
  24  0.212013
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  6.014e-05  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.720e-01  2.120e-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.339e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/403242/likelihoodResults_301536001_301795201_4FGL_J2236.4-2309_daily_bin240.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): 102
logL (Free Index) = 5343.63243147
delta logL = -0.00023209743631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5343.63219962
delta logL = -2.52259269473e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11518E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7760       1.0000          .0000       10.000    
     3 'Normalizat'    1.3387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87199       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=   5343.632     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.921        .90712E-02** at limit **
   2  Index         2.8130        6.3623        .22672       -.16310E-04
   3  Normalizat    1.3387        .20511        .56015E-01   -.18099E-03
   4  Prefactor     .87201        .17482        .44647E-01   -.78142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.81302
  Normalizat = 1.33869
  Prefactor  = 0.872011
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.632     FROM HESSE     STATUS=OK            25 CALLS      229 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8130        6.3898        .90690E-02   -.45270    
   3  Normalizat    1.3387        .24165        .24769E-03   -.82419    
   4  Prefactor     .87201        .20612        .25405E-03   -.97126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46945e-10
Minuit parameter uncertainties:
  1  0.000136168
  2  4.50784
  3  0.241853
  4  0.206299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/403242': 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) = 5343.63219912
delta logL = 2.5036297302e-07

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.362e-04  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.813e+00  4.508e+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.720e-01  2.063e-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.339e+00  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/403242/cmap_HighResolution_301536001_301795201_4FGL_J2236.4-2309_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.77e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-28 17:07:51.335375', job_id='403242', GAL2='0.87', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1632874071.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='240' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:07:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 403242: <4FGL_J2236.4-2309_daily_bin240> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin240> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 16:55:51 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:55:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:55:52 2021
Terminated at Tue Sep 28 17:07:53 2021
Results reported at Tue Sep 28 17:07:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin240 339.125 -23.1552 301536001 301795201 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 :                                   585.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             321.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            722 sec.

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

