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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1049
RA = 339.125, Dec = -23.1552
tmin = 511228801, tmax = 511488001
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='407742', job_status='RUN', time_executed='2021-09-28 17:13:42.497988', time_epoch_executed='1632874422.5' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407742

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407742/ft1_4FGL_J2236.4-2309_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407742/ft2_4FGL_J2236.4-2309_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407742/ft1_4FGL_J2236.4-2309_daily_bin1049.fits outfile=/scratch/kocevski/407742/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1049.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=511228801.0 tmax=511488001.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.47
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407742/ft2_4FGL_J2236.4-2309_daily_bin1049.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/407742/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1049.fits evtable="EVENTS" outfile="/scratch/kocevski/407742/ft1_filtered_4FGL_J2236.4-2309_daily_bin1049.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407742/ft1_filtered_4FGL_J2236.4-2309_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/407742/ft2_4FGL_J2236.4-2309_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/407742/ltcube_511228801_511488001_4FGL_J2236.4-2309_daily_bin1049.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/407742/ft2_4FGL_J2236.4-2309_daily_bin1049.fits
.....................!
real 11.63
user 11.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407742/ft1_filtered_4FGL_J2236.4-2309_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/407742/ft2_4FGL_J2236.4-2309_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/407742/ltcube_511228801_511488001_4FGL_J2236.4-2309_daily_bin1049.fits outfile=/scratch/kocevski/407742/expmap_511228801_511488001_4FGL_J2236.4-2309_daily_bin1049.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/407742/ltcube_511228801_511488001_4FGL_J2236.4-2309_daily_bin1049.fits
.....................!
real 191.04
user 185.35
sys 5.23

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/407742/ft1_filtered_4FGL_J2236.4-2309_daily_bin1049.fits scfile=/scratch/kocevski/407742/ft2_4FGL_J2236.4-2309_daily_bin1049.fits outfile=/scratch/kocevski/407742/cmap_511228801_511488001_4FGL_J2236.4-2309_daily_bin1049.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407742/ft1_filtered_4FGL_J2236.4-2309_daily_bin1049.fits scfile=/scratch/kocevski/407742/ft2_4FGL_J2236.4-2309_daily_bin1049.fits outfile=/scratch/kocevski/407742/cmap_HighResolution_511228801_511488001_4FGL_J2236.4-2309_daily_bin1049.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.58
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407742/ft1_filtered_4FGL_J2236.4-2309_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/407742/ft2_4FGL_J2236.4-2309_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407742/Model_4FGL_J2236.4-2309_daily_bin1049.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/407742/ft1_filtered_4FGL_J2236.4-2309_daily_bin1049.fits.....................!
real 61.83
user 60.25
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    106.03       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2112       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.950       1.0000         .10000E-03   10000.    
     7 'Prefactor '    83.093       1.0000         .10000E-03   10000.    
     8 'norm      '    20.663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .31062       1.0000         .10000E-03   10000.    
    11 'norm      '    .73373       1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.940       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.4050       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14835E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .37761       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.671       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.799       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .40883       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3871       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=   8081.770     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2803 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5299        .47949E-06** at limit **
   2  Prefactor     106.06        56.699        .45562E-05    .99919E-04
   3  norm          3.2111        .51302       -.44229E-07   -.68310E-04
   4  Prefactor     .10000E-03    2.6132        .10902E-06** at limit **
   5  Prefactor     .10009E-03    3.1912        .13541E-05** at limit **
   6  Prefactor     24.955        16.235        .31970E-07   -.13507E-04
   7  Prefactor     83.107        50.405        .15577E-05   -.11843E-05
   8  norm          20.644        20.748        .14682E-05    .35842E-05
   9  Prefactor     .10000E-03    5.8898       -.10619E-05** at limit **
  10  norm          .31078        .53059        .22023E-06    .57563E-04
  11  norm          .74000        1.6148       -.36007E-05   -.66493E-03
  12  Prefactor     40.887        35.927        .23080E-06   -.15632E-03
  13  Prefactor     .10000E-03    2.0308       -.44472E-08** at limit **
  14  Prefactor     .10000E-03    16.160       -.19630E-05** at limit **
  15  norm          3.4030        1.0646       -.60199E-07    .36180E-03
  16  norm          .10000E-03    .72749       -.22471E-07** at limit **
  17  Prefactor     .10000E-03    30.848        .19966E-05** at limit **
  18  Prefactor     .10000E-03    3.1388       -.79961E-07** at limit **
  19  Prefactor     .10000E-03    1.4975       -.12997E-06** at limit **
  20  norm          .37760        .35417       -.39350E-07   -.71134E-04
  21  Prefactor     10.670        6.9732       -.32528E-07   -.21467E-04
  22  Prefactor     11.799        8.2796        .13743E-05   -.45983E-03
  23  Normalizat    .40884        .17375        .33715E-05   -.81265E-04
  24  Prefactor     1.3870        .15716       -.12481E-05    .13824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 106.065
  norm       = 3.21109
  Prefactor  = 0.0001
  Prefactor  = 0.000100089
  Prefactor  = 24.9548
  Prefactor  = 83.1075
  norm       = 20.6443
  Prefactor  = 0.0001
  norm       = 0.310779
  norm       = 0.740002
  Prefactor  = 40.8866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.40301
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.377603
  Prefactor  = 10.6704
  Prefactor  = 11.7991
  Normalizat = 0.408836
  Prefactor  = 1.38704
 **********
 **   18 **HESSE 
 **********

 FCN=   8081.770     FROM HESSE     STATUS=OK           405 CALLS     3208 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     106.06        56.627        .19527E-03   -1.3645    
   3  norm          3.2111        .51365        .24754E-04   -1.5350    
   4  Prefactor     .10000E-03    2.6208        .14189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10009E-03    12.796        .30881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.955        16.210        .80197E-04   -1.4708    
   7  Prefactor     83.107        50.196        .22033E-03   -1.3882    
   8  norm          20.644        20.812        .88114E-04   -1.4799    
   9  Prefactor     .10000E-03    5.9221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .31078        .42836        .81791E-03   -1.5596    
  11  norm          .74000        1.6079        .15890E-02   -1.5536    
  12  Prefactor     40.887        35.779        .62648E-04   -1.4428    
  13  Prefactor     .10000E-03    2.0362        .12510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.4030        1.0545        .49620E-04   -1.5339    
  16  norm          .10000E-03    .73054        .74857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1461        .15549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5015        .10730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .37760        .32861        .47804E-03   -1.5585    
  21  Prefactor     10.670        6.9718        .12265E-03   -1.5055    
  22  Prefactor     11.799        8.1410        .58312E-03   -1.5021    
  23  Normalizat    .40884        .19052        .37403E-03   -1.1685    
  24  Prefactor     1.3870        .17572        .20040E-03   -.80754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61541e-09
Minuit parameter uncertainties:
  1  0.000127162
  2  56.6562
  3  0.513654
  4  1.37286e-05
  5  0.00213578
  6  16.2132
  7  50.2216
  8  20.819
  9  9.15027e-05
  10  0.428365
  11  1.60795
  12  35.7975
  13  2.27156e-06
  14  6.8294e-05
  15  1.05447
  16  2.79891e-06
  17  5.6803e-05
  18  7.66388e-07
  19  9.81911e-07
  20  0.328612
  21  6.97238
  22  8.14178
  23  0.190826
  24  0.175791
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  9.150e-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:  1.387e+00  1.758e-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:  4.088e-01  1.908e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407742/likelihoodResults_511228801_511488001_4FGL_J2236.4-2309_daily_bin1049.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) = 8081.7704313
delta logL = -0.000804495709417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8081.76962698
delta logL = -1.66960489878e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7478       1.0000          .0000       10.000    
     3 'Normalizat'    .40879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3871       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=   8081.765     FROM MIGRAD    STATUS=FAILED       210 CALLS      367 TOTAL
                     EDM=   .22E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .14033E-01    .12732E-02** at limit **
   2  Index         9.5884        5.0019        .50000        .15386E-03
   3  Normalizat    .40543        .17846E-01    .37402E-03   -.61734E-04
   4  Prefactor     1.3892        .16942E-01    .20040E-03   -.58773E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8081.765     FROM SIMPLEX   STATUS=UNCHANGED    117 CALLS      484 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .14033E-01    .79393E-04** at limit **
   2  Index         9.5884        5.0019        .14643E-01    .15386E-03
   3  Normalizat    .40543        .17846E-01    .66306E-04   -.61734E-04
   4  Prefactor     1.3892        .16942E-01    .22351E-04   -.58773E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8081.765     FROM MIGRAD    STATUS=FAILED        92 CALLS      576 TOTAL
                     EDM=   .33E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .32413E-01    .88049E-03** at limit **
   2  Index         9.5884        5.1627        .50000        .15418E-03
   3  Normalizat    .40543        .22145E-01    .29921E-05   -.56993E-04
   4  Prefactor     1.3892        .21023E-01    .16032E-05   -.52476E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.58843
  Normalizat = 0.405427
  Prefactor  = 1.38922
 **********
 **   18 **HESSE 
 **********

 FCN=   8081.765     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      613 TOTAL
                     EDM=   .34E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .34099E-01    .86221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.5884        5.2675        .50000        1.1622    
   3  Normalizat    .40543        .22452E-01    .59843E-06   -1.1702    
   4  Prefactor     1.3892        .21357E-01    .32064E-06   -.80691    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.41476e-05
Minuit parameter uncertainties:
  1  1.9297e-06
  2  75.3218
  3  0.0224525
  4  0.0213568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407742': 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): 1
logL (Free Index) = 8081.76548474
delta logL = 0.00414207106223

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.930e-06  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  9.588e+00  7.532e+01  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.389e+00  2.136e-02  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:  4.054e-01  2.245e-02  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/407742/cmap_HighResolution_511228801_511488001_4FGL_J2236.4-2309_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-09-28 17:26:34.493720', job_id='407742', GAL2='1.39', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1632875194.49', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='4.14e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1049' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:26:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 407742: <4FGL_J2236.4-2309_daily_bin1049> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1049> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:32 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:34 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:34 2021
Terminated at Tue Sep 28 17:26:35 2021
Results reported at Tue Sep 28 17:26:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1049 339.125 -23.1552 511228801 511488001 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 :                                   771.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

