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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1090
RA = 339.125, Dec = -23.1552
tmin = 521856001, tmax = 522115201
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='407803', job_status='RUN', time_executed='2021-09-28 17:14:01.291768', time_epoch_executed='1632874441.29' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407803

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407803/ft1_4FGL_J2236.4-2309_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407803/ft2_4FGL_J2236.4-2309_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407803/ft1_4FGL_J2236.4-2309_daily_bin1090.fits outfile=/scratch/kocevski/407803/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1090.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=521856001.0 tmax=522115201.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.72
user 3.47
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407803/ft2_4FGL_J2236.4-2309_daily_bin1090.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/407803/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1090.fits evtable="EVENTS" outfile="/scratch/kocevski/407803/ft1_filtered_4FGL_J2236.4-2309_daily_bin1090.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407803/ft1_filtered_4FGL_J2236.4-2309_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/407803/ft2_4FGL_J2236.4-2309_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/407803/ltcube_521856001_522115201_4FGL_J2236.4-2309_daily_bin1090.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/407803/ft2_4FGL_J2236.4-2309_daily_bin1090.fits
.....................!
real 12.02
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407803/ft1_filtered_4FGL_J2236.4-2309_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/407803/ft2_4FGL_J2236.4-2309_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/407803/ltcube_521856001_522115201_4FGL_J2236.4-2309_daily_bin1090.fits outfile=/scratch/kocevski/407803/expmap_521856001_522115201_4FGL_J2236.4-2309_daily_bin1090.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/407803/ltcube_521856001_522115201_4FGL_J2236.4-2309_daily_bin1090.fits
.....................!
real 191.56
user 186.10
sys 5.09

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/407803/ft1_filtered_4FGL_J2236.4-2309_daily_bin1090.fits scfile=/scratch/kocevski/407803/ft2_4FGL_J2236.4-2309_daily_bin1090.fits outfile=/scratch/kocevski/407803/cmap_521856001_522115201_4FGL_J2236.4-2309_daily_bin1090.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407803/ft1_filtered_4FGL_J2236.4-2309_daily_bin1090.fits scfile=/scratch/kocevski/407803/ft2_4FGL_J2236.4-2309_daily_bin1090.fits outfile=/scratch/kocevski/407803/cmap_HighResolution_521856001_522115201_4FGL_J2236.4-2309_daily_bin1090.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407803/ft1_filtered_4FGL_J2236.4-2309_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/407803/ft2_4FGL_J2236.4-2309_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407803/Model_4FGL_J2236.4-2309_daily_bin1090.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/407803/ft1_filtered_4FGL_J2236.4-2309_daily_bin1090.fits.....................!
real 51.51
user 50.13
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5544       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .81015       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9612       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.911       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14499E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5884       1.0000         .10000E-03   10000.    
    11 'norm      '    .11619E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    76.590       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11456E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6196       1.0000         .10000E-03   10000.    
    16 'norm      '    5.6211       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.174       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9231       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18033E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .59005       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7829       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3725       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .68952       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=   6055.331     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2738 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.372       -.89635E-07** at limit **
   2  Prefactor     .10000E-03    26.867       -.18540E-06** at limit **
   3  norm          1.5544        .45237       -.47191E-08    .18724E-03
   4  Prefactor     .80396        11.627       -.39982E-05    .42464E-03
   5  Prefactor     1.9615        6.3743        .13356E-05    .19617E-03
   6  Prefactor     14.876        24.492        .31220E-06    .83076E-05
   7  Prefactor     .10000E-03    18.197       -.26856E-06** at limit **
   8  norm          .10000E-03    16.545        .45715E-06** at limit **
   9  Prefactor     .10000E-03    26.678        .25374E-05** at limit **
  10  norm          1.5885        .85259        .18268E-08    .49462E-04
  11  norm          .10000E-03    2.1610        .18676E-05** at limit **
  12  Prefactor     76.610        50.522       -.38987E-06   -.87696E-04
  13  Prefactor     .10000E-03    3.8803        .35154E-07** at limit **
  14  Prefactor     .10000E-03    45.555        .18641E-05** at limit **
  15  norm          2.6198        1.4623       -.17141E-06   -.51377E-03
  16  norm          5.6210        4.7926        .83774E-08   -.74178E-04
  17  Prefactor     20.193        42.191        .16830E-05    .53975E-04
  18  Prefactor     8.9222        19.809        .11954E-06   -.13052E-04
  19  Prefactor     .10000E-03    16.428        .10804E-05** at limit **
  20  norm          .58980        .52166        .76706E-07    .33284E-03
  21  Prefactor     7.7848        12.394        .12447E-06    .17453E-04
  22  Prefactor     .10000E-03    4.4360        .15521E-06** at limit **
  23  Normalizat    1.3723        .19944       -.81000E-06    .90125E-04
  24  Prefactor     .68961        .16625        .10541E-05    .53384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.55438
  Prefactor  = 0.803957
  Prefactor  = 1.96146
  Prefactor  = 14.8763
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.58851
  norm       = 0.000100001
  Prefactor  = 76.61
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.61977
  norm       = 5.62095
  Prefactor  = 20.1926
  Prefactor  = 8.92219
  Prefactor  = 0.0001
  norm       = 0.589797
  Prefactor  = 7.78476
  Prefactor  = 0.0001
  Normalizat = 1.37233
  Prefactor  = 0.689605
 **********
 **   18 **HESSE 
 **********

 FCN=   6055.331     FROM HESSE     STATUS=OK           399 CALLS     3137 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5544        .45328        .27350E-04   -1.5459    
   4  Prefactor     .80396        16.505        .38798E-02   -1.5529    
   5  Prefactor     1.9615        6.4118        .29620E-03   -1.5428    
   6  Prefactor     14.876        24.415        .10372E-03   -1.4936    
   7  Prefactor     .10000E-03    18.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5885        .84936        .50622E-04   -1.5456    
  11  norm          .10000E-03    2.3594        .22860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     76.610        50.823        .45883E-04   -1.3955    
  13  Prefactor     .10000E-03    3.8872        .14969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    46.211        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6198        1.4853        .57269E-04   -1.5384    
  16  norm          5.6210        4.7791        .13351E-03   -1.5234    
  17  Prefactor     20.193        42.974        .89173E-04   -1.4809    
  18  Prefactor     8.9222        19.866        .13418E-03   -1.5110    
  19  Prefactor     .10000E-03    16.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .58980        .51891        .47029E-04   -1.5554    
  21  Prefactor     7.7848        12.391        .14373E-03   -1.5150    
  22  Prefactor     .10000E-03    4.4456        .15997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3723        .23975        .23831E-03   -.81432    
  24  Prefactor     .68961        .19764        .27356E-03   -1.0394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28112e-09
Minuit parameter uncertainties:
  1  1.38784e-06
  2  5.37293e-06
  3  0.453279
  4  7.28733
  5  6.414
  6  24.4312
  7  0.000120687
  8  8.2874e-05
  9  0.000385719
  10  0.849369
  11  7.1369e-05
  12  50.852
  13  1.77858e-06
  14  0.00039268
  15  1.4853
  16  4.77938
  17  43.0398
  18  19.8809
  19  9.89819e-05
  20  0.518912
  21  12.395
  22  6.36192e-06
  23  0.23995
  24  0.19784
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  3.857e-04  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:  6.896e-01  1.978e-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.372e+00  2.399e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407803/likelihoodResults_521856001_522115201_4FGL_J2236.4-2309_daily_bin1090.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) = 6055.33078111
delta logL = -0.000172218993612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6055.33060974
delta logL = -8.54832251207e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13815E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6576       1.0000          .0000       10.000    
     3 'Normalizat'    1.3726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68936       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=   6055.331     FROM MIGRAD    STATUS=FAILED       112 CALLS      277 TOTAL
                     EDM=   .47E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32392E-03    8987.2        .49992E-02** at limit **
   2  Index         1.8582        5.6197        .50000       -.26709E-04
   3  Normalizat    1.3723        .14984        .23831E-03    .10070E-03
   4  Prefactor     .68961        .23762        .27356E-03    .15356E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6055.325     FROM SIMPLEX   STATUS=PROGRESS     140 CALLS      417 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2124        8987.2        .85753E-03   -.14730E-01
   2  Index         1.8593        5.6197        .36030E-04   -.26709E-04
   3  Normalizat    1.3723        .14984        .51135E-06    .10070E-03
   4  Prefactor     .68961        .23762        .30021E-06    .15356E-03
                               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.

 FCN=   6055.322     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      519 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7278        24.989        .39993E-03   -.11353E-04
   2  Index         2.0136        1.8549        .13674E-01   -.20819E-05
   3  Normalizat    1.3724        .23039        .95323E-05    .40550E-05
   4  Prefactor     .68695        .19605        .21885E-05    .51948E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72784
  Index      = 2.01356
  Normalizat = 1.37245
  Prefactor  = 0.686948
 **********
 **   18 **HESSE 
 **********

 FCN=   6055.322     FROM HESSE     STATUS=OK            27 CALLS      546 TOTAL
                     EDM=   .61E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7278        25.509        .79987E-04   -1.5971    
   2  Index         2.0136        1.8740        .54696E-03   -.64012    
   3  Normalizat    1.3724        .23006        .19065E-05   -.81429    
   4  Prefactor     .68695        .19606        .43770E-06   -1.0404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06724e-14
Minuit parameter uncertainties:
  1  13.2843
  2  1.94999
  3  0.230235
  4  0.196259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407803': 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) = 6055.32154227
delta logL = 0.00906661869158

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.728e+00  1.328e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.014e+00  1.950e+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:  6.869e-01  1.963e-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.372e+00  2.302e-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/407803/cmap_HighResolution_521856001_522115201_4FGL_J2236.4-2309_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.30e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-28 17:24:41.934662', job_id='407803', GAL2='0.69', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1632875081.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='9.07e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1090' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:24:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 407803: <4FGL_J2236.4-2309_daily_bin1090> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1090> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:36 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:38 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:38 2021
Terminated at Tue Sep 28 17:24:42 2021
Results reported at Tue Sep 28 17:24:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1090 339.125 -23.1552 521856001 522115201 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 :                                   640.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            846 sec.

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

