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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin782
RA = 339.125, Dec = -23.1552
tmin = 442022401, tmax = 442281601
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='406351', job_status='RUN', time_executed='2021-09-28 17:09:04.832422', time_epoch_executed='1632874144.83' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='782'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406351

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406351/ft1_4FGL_J2236.4-2309_daily_bin782.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406351/ft2_4FGL_J2236.4-2309_daily_bin782.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406351/ft1_4FGL_J2236.4-2309_daily_bin782.fits outfile=/scratch/kocevski/406351/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin782.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=442022401.0 tmax=442281601.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.75
user 3.56
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406351/ft2_4FGL_J2236.4-2309_daily_bin782.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/406351/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin782.fits evtable="EVENTS" outfile="/scratch/kocevski/406351/ft1_filtered_4FGL_J2236.4-2309_daily_bin782.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/406351/ft1_filtered_4FGL_J2236.4-2309_daily_bin782.fits" evtable="EVENTS" scfile=/scratch/kocevski/406351/ft2_4FGL_J2236.4-2309_daily_bin782.fits sctable="SC_DATA" outfile=/scratch/kocevski/406351/ltcube_442022401_442281601_4FGL_J2236.4-2309_daily_bin782.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/406351/ft2_4FGL_J2236.4-2309_daily_bin782.fits
.....................!
real 12.23
user 11.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406351/ft1_filtered_4FGL_J2236.4-2309_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/406351/ft2_4FGL_J2236.4-2309_daily_bin782.fits sctable="SC_DATA" expcube=/scratch/kocevski/406351/ltcube_442022401_442281601_4FGL_J2236.4-2309_daily_bin782.fits outfile=/scratch/kocevski/406351/expmap_442022401_442281601_4FGL_J2236.4-2309_daily_bin782.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/406351/ltcube_442022401_442281601_4FGL_J2236.4-2309_daily_bin782.fits
.....................!
real 191.45
user 186.23
sys 4.88

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406351/ft1_filtered_4FGL_J2236.4-2309_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/406351/ft2_4FGL_J2236.4-2309_daily_bin782.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406351/Model_4FGL_J2236.4-2309_daily_bin782.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/406351/ft1_filtered_4FGL_J2236.4-2309_daily_bin782.fits.....................!
real 47.15
user 45.80
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .92050       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1762       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5255       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5403       1.0000         .10000E-03   10000.    
     7 'Prefactor '    100.86       1.0000         .10000E-03   10000.    
     8 'norm      '    .62775       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1659       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3811       1.0000         .10000E-03   10000.    
    11 'norm      '    .39229       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27419E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4974       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.838       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4133       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3910       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1274       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72590       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=   5549.739     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2835 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9372        .82987E-07** at limit **
   2  Prefactor     1.4082        84.373        .81668E-05   -.21415E-04
   3  norm          1.1759        .38351       -.49870E-08    .16321E-03
   4  Prefactor     .10000E-03    3.3400       -.11901E-06** at limit **
   5  Prefactor     2.5290        6.4136       -.27774E-06   -.74669E-04
   6  Prefactor     5.5474        14.026        .15079E-05   -.53982E-04
   7  Prefactor     100.79        62.214       -.24237E-05    .67018E-04
   8  norm          .65831        106.77       -.11254E-04    .14422E-05
   9  Prefactor     3.1712        12.024       -.21253E-05   -.28853E-05
  10  norm          1.3814        .84209        .50395E-07    .74394E-04
  11  norm          .39142        2.2289       -.11142E-05   -.11249E-03
  12  Prefactor     .10001E-03    264.52       -.19165E-04** at limit **
  13  Prefactor     .10000E-03    5.3022        .88009E-07** at limit **
  14  Prefactor     .10000E-03    9.1083        .19524E-06** at limit **
  15  norm          .10000E-03    .46389        .31958E-06** at limit **
  16  norm          1.5002        3.3064       -.80023E-06    .64874E-04
  17  Prefactor     40.846        27.195       -.21645E-05   -.32107E-03
  18  Prefactor     .10000E-03    9.2284       -.26250E-06** at limit **
  19  Prefactor     .10000E-03    7.2186       -.42557E-06** at limit **
  20  norm          .10000E-03    .22771       -.23921E-06** at limit **
  21  Prefactor     5.4143        7.1911       -.14149E-06   -.52320E-04
  22  Prefactor     5.3894        8.8856       -.19320E-06    .27265E-03
  23  Normalizat    1.1273        .18386        .85092E-06    .78982E-04
  24  Prefactor     .72589        .15744       -.68353E-06    .84985E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.40825
  norm       = 1.17586
  Prefactor  = 0.0001
  Prefactor  = 2.529
  Prefactor  = 5.54737
  Prefactor  = 100.788
  norm       = 0.658313
  Prefactor  = 3.17122
  norm       = 1.3814
  norm       = 0.391416
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.50016
  Prefactor  = 40.8456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.41431
  Prefactor  = 5.38938
  Normalizat = 1.12727
  Prefactor  = 0.725887
 **********
 **   18 **HESSE 
 **********

 FCN=   5549.739     FROM HESSE     STATUS=OK           409 CALLS     3244 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4082        389.17        .95732E-02   -1.5471    
   3  norm          1.1759        .38423        .25395E-04   -1.5491    
   4  Prefactor     .10000E-03    3.3482        .13296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5290        6.3967        .25705E-03   -1.5390    
   6  Prefactor     5.5474        13.974        .17069E-03   -1.5237    
   7  Prefactor     100.79        62.033        .20016E-03   -1.3697    
   8  norm          .65831        118.79        .54912E-02   -1.5546    
   9  Prefactor     3.1712        11.876        .22778E-03   -1.5352    
  10  norm          1.3814        .83159        .50948E-04   -1.5473    
  11  norm          .39142        2.2383        .20793E-03   -1.5583    
  12  Prefactor     .10001E-03    258.09        .39848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.3340        .16749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.1549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .64025        .94498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5002        3.2175        .18781E-03   -1.5463    
  17  Prefactor     40.846        26.805        .62726E-04   -1.4429    
  18  Prefactor     .10000E-03    9.2462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.2807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .24764        .65202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4143        7.1857        .17271E-03   -1.5243    
  22  Prefactor     5.3894        8.6047        .17308E-03   -1.5244    
  23  Normalizat    1.1273        .21313        .22323E-03   -.88881    
  24  Prefactor     .72589        .18243        .23853E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6199e-08
Minuit parameter uncertainties:
  1  1.65176e-07
  2  47.1316
  3  0.384235
  4  7.99213e-06
  5  6.39847
  6  13.9822
  7  62.0726
  8  17.7206
  9  11.8846
  10  0.831592
  11  1.87189
  12  0.00285924
  13  5.02545e-06
  14  6.31159e-05
  15  2.04465e-05
  16  3.21788
  17  26.813
  18  2.8279e-05
  19  6.38967e-05
  20  6.26509e-06
  21  7.18683
  22  8.60663
  23  0.213289
  24  0.182584
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.171e+00  1.188e+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:  7.259e-01  1.826e-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.127e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/406351/likelihoodResults_442022401_442281601_4FGL_J2236.4-2309_daily_bin782.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) = 5549.73199352
delta logL = 0.00712686758561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5549.73158149
delta logL = 0.00753889351017

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9245       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9838       1.0000          .0000       10.000    
     3 'Normalizat'    1.1242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72787       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=   5549.732     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      285 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9212        11.588        .23755E-03    .19933E-03
   2  Index         2.9761        2.0284        .12938E-01    .67630E-04
   3  Normalizat    1.1248        .20907        .22345E-03   -.44161E-04
   4  Prefactor     .72739        .18046        .23830E-03    .15343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92118
  Index      = 2.97609
  Normalizat = 1.12477
  Prefactor  = 0.727389
 **********
 **   18 **HESSE 
 **********

 FCN=   5549.732     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9212        10.971        .95018E-05   -1.5366    
   2  Index         2.9761        1.9274        .51752E-03   -.41674    
   3  Normalizat    1.1248        .20940        .89381E-05   -.88960    
   4  Prefactor     .72739        .18067        .95321E-05   -1.0246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16443e-10
Minuit parameter uncertainties:
  1  10.9785
  2  1.98957
  3  0.209558
  4  0.180812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406351': 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) = 5549.73156887
delta logL = 0.00755152023248

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.921e+00  1.098e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.976e+00  1.990e+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:  7.274e-01  1.808e-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.125e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/406351/cmap_HighResolution_442022401_442281601_4FGL_J2236.4-2309_daily_bin782.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-28 17:19:16.828663', job_id='406351', GAL2='0.73', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1632874756.83', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='7.55e-03', ts2='0.10', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='782' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:19:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 406351: <4FGL_J2236.4-2309_daily_bin782> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin782 339.125 -23.1552 442022401 442281601 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 :                                   613.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             297.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

