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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1014
RA = 339.125, Dec = -23.1552
tmin = 502156801, tmax = 502416001
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='407691', job_status='RUN', time_executed='2021-09-28 17:11:59.567838', time_epoch_executed='1632874319.57' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407691

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407691/ft1_4FGL_J2236.4-2309_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407691/ft2_4FGL_J2236.4-2309_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407691/ft1_4FGL_J2236.4-2309_daily_bin1014.fits outfile=/scratch/kocevski/407691/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1014.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=502156801.0 tmax=502416001.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.13
user 3.88
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407691/ft1_filtered_4FGL_J2236.4-2309_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/407691/ft2_4FGL_J2236.4-2309_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/407691/ltcube_502156801_502416001_4FGL_J2236.4-2309_daily_bin1014.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/407691/ft2_4FGL_J2236.4-2309_daily_bin1014.fits
.....................!
real 11.80
user 11.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407691/ft1_filtered_4FGL_J2236.4-2309_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/407691/ft2_4FGL_J2236.4-2309_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/407691/ltcube_502156801_502416001_4FGL_J2236.4-2309_daily_bin1014.fits outfile=/scratch/kocevski/407691/expmap_502156801_502416001_4FGL_J2236.4-2309_daily_bin1014.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/407691/ltcube_502156801_502416001_4FGL_J2236.4-2309_daily_bin1014.fits
.....................!
real 193.33
user 187.35
sys 5.57

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/407691/ft1_filtered_4FGL_J2236.4-2309_daily_bin1014.fits scfile=/scratch/kocevski/407691/ft2_4FGL_J2236.4-2309_daily_bin1014.fits outfile=/scratch/kocevski/407691/cmap_502156801_502416001_4FGL_J2236.4-2309_daily_bin1014.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407691/ft1_filtered_4FGL_J2236.4-2309_daily_bin1014.fits scfile=/scratch/kocevski/407691/ft2_4FGL_J2236.4-2309_daily_bin1014.fits outfile=/scratch/kocevski/407691/cmap_HighResolution_502156801_502416001_4FGL_J2236.4-2309_daily_bin1014.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12240E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.1302       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4050       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0438       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1564       1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.404       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    46.862       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1315       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22853       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.716       1.0000         .10000E-03   10000.    
    15 'norm      '    9.0561       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.950       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.936       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6954       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92511       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85583       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=   8198.157     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2808 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.445       -.26553E-06** at limit **
   2  Prefactor     9.1841        49.619        .31863E-06   -.15681E-05
   3  norm          1.4051        .36947       -.21046E-08   -.12190E-03
   4  Prefactor     6.0436        5.0065        .39167E-08   -.15697E-04
   5  Prefactor     3.1575        10.120        .93158E-06    .57124E-04
   6  Prefactor     71.404        19.198       -.28758E-06   -.56915E-03
   7  Prefactor     .10000E-03    9.9829        .84394E-08** at limit **
   8  norm          46.857        18.661        .13303E-07    .10443E-04
   9  Prefactor     .10000E-03    12.109       -.69327E-07** at limit **
  10  norm          .10000E-03    .24077        .27724E-07** at limit **
  11  norm          2.1258        1.7177       -.98403E-07   -.79249E-03
  12  Prefactor     .42720        28.066        .25551E-05   -.22346E-03
  13  Prefactor     .10000E-03    9.7091        .23789E-06** at limit **
  14  Prefactor     48.956        41.783       -.34761E-05    .22637E-04
  15  norm          9.0339        3.9335        .94821E-06    .31489E-03
  16  norm          .10000E-03    1.2126        .48796E-07** at limit **
  17  Prefactor     27.930        51.151       -.23327E-05   -.25687E-04
  18  Prefactor     17.936        9.5526       -.81098E-07   -.13741E-03
  19  Prefactor     .10000E-03    3.7074        .13875E-06** at limit **
  20  norm          .10000E-03    .99621E-01    .29152E-07** at limit **
  21  Prefactor     4.6958        8.3959        .29731E-06   -.26828E-04
  22  Prefactor     .10000E-03    2.3616        .49329E-07** at limit **
  23  Normalizat    .92485        .15543        .54054E-06   -.25130E-03
  24  Prefactor     .85596        .13620       -.69149E-06   -.16520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.18414
  norm       = 1.40505
  Prefactor  = 6.04356
  Prefactor  = 3.15745
  Prefactor  = 71.4042
  Prefactor  = 0.0001
  norm       = 46.8575
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.12578
  Prefactor  = 0.427203
  Prefactor  = 0.0001
  Prefactor  = 48.9563
  norm       = 9.03394
  norm       = 0.0001
  Prefactor  = 27.93
  Prefactor  = 17.9361
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.69584
  Prefactor  = 0.0001
  Normalizat = 0.92485
  Prefactor  = 0.855961
 **********
 **   18 **HESSE 
 **********

 FCN=   8198.157     FROM HESSE     STATUS=OK           409 CALLS     3217 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1841        48.587        .13264E-03   -1.5102    
   3  norm          1.4051        .36971        .27192E-04   -1.5471    
   4  Prefactor     6.0436        5.0048        .16332E-03   -1.5216    
   5  Prefactor     3.1575        10.151        .22814E-03   -1.5353    
   6  Prefactor     71.404        19.621        .23754E-03   -1.4016    
   7  Prefactor     .10000E-03    9.9845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          46.857        18.687        .58573E-04   -1.4338    
   9  Prefactor     .10000E-03    12.398        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .35533        .85943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1258        1.7330        .94517E-04   -1.5416    
  12  Prefactor     .42720        28.669        .11843       -1.5577    
  13  Prefactor     .10000E-03    9.9134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     48.956        41.533        .57453E-04   -1.4307    
  15  norm          9.0339        3.9074        .25857E-03   -1.5107    
  16  norm          .10000E-03    1.2645        .19427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.930        50.908        .75779E-04   -1.4650    
  18  Prefactor     17.936        9.4311        .94571E-04   -1.4861    
  19  Prefactor     .10000E-03    3.7527        .16928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .10158        .55430E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.6958        8.3912        .18571E-03   -1.5275    
  22  Prefactor     .10000E-03    2.3685        .13583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92485        .18084        .25646E-03   -.95592    
  24  Prefactor     .85596        .15811        .23772E-03   -.97697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41488e-10
Minuit parameter uncertainties:
  1  3.35063e-05
  2  42.3021
  3  0.369715
  4  5.00515
  5  10.157
  6  19.6228
  7  2.50023e-08
  8  18.6889
  9  3.12548e-05
  10  1.69705e-06
  11  1.73302
  12  7.00193
  13  1.12763e-05
  14  41.5572
  15  3.90749
  16  1.03917e-06
  17  50.9869
  18  9.43187
  19  1.81814e-06
  20  1.43479e-07
  21  8.3933
  22  5.66053e-07
  23  0.180955
  24  0.158192
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  3.125e-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.560e-01  1.582e-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:  9.248e-01  1.810e-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: 6.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407691/likelihoodResults_502156801_502416001_4FGL_J2236.4-2309_daily_bin1014.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) = 8198.15782785
delta logL = -0.000384888260669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8198.15744319
delta logL = -2.23531969823e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7802       1.0000          .0000       10.000    
     3 'Normalizat'    .92491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85592       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8198.154     FROM MIGRAD    STATUS=FAILED       163 CALLS      317 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23657        201.65        .36285E-02   -.95089E-02
   2  Index         4.0430        6.7409        .50000        .21700E-04
   3  Normalizat    .92031        .21313E-01    .25646E-03   -.78107E-04
   4  Prefactor     .85823        .19168E-01    .23772E-03   -.23529E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8198.154     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      407 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23657        201.65        .42285E-03   -.95089E-02
   2  Index         4.0430        6.7409        .41973E-02    .21700E-04
   3  Normalizat    .92031        .21313E-01    .82922E-04   -.78107E-04
   4  Prefactor     .85823        .19168E-01    .15925E-04   -.23529E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8198.154     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      443 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23657        13.811        .72569E-03   -.37825E-03
   2  Index         4.0430        7.0214        .29742E-01    .48376E-05
   3  Normalizat    .92031        .18072        .10259E-04   -.78018E-04
   4  Prefactor     .85823        .15844        .95088E-05   -.23912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.236568
  Index      = 4.04301
  Normalizat = 0.920313
  Prefactor  = 0.858229
 **********
 **   18 **HESSE 
 **********

 FCN=   8198.154     FROM HESSE     STATUS=OK            27 CALLS      470 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23657        10.046        .14514E-03   -1.5805    
   2  Index         4.0430        6.9652        .11897E-02   -.19259    
   3  Normalizat    .92031        .18076        .20517E-05   -.95750    
   4  Prefactor     .85823        .15828        .19018E-05   -.97616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98806e-11
Minuit parameter uncertainties:
  1  3.08311
  2  5.72033
  3  0.180878
  4  0.15836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407691': 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) = 8198.15352692
delta logL = 0.00391604005927

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.366e-01  3.083e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.043e+00  5.720e+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.582e-01  1.584e-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:  9.203e-01  1.809e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/407691/cmap_HighResolution_502156801_502416001_4FGL_J2236.4-2309_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-09-28 17:25:07.523331', job_id='407691', GAL2='0.86', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632875107.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.92e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1014' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:25:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 407691: <4FGL_J2236.4-2309_daily_bin1014> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1014> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:27 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:29 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:29 2021
Terminated at Tue Sep 28 17:25:08 2021
Results reported at Tue Sep 28 17:25:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1014 339.125 -23.1552 502156801 502416001 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 :                                   785.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            881 sec.

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

