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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1107
RA = 339.125, Dec = -23.1552
tmin = 526262401, tmax = 526521601
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='407827', job_status='RUN', time_executed='2021-09-28 17:14:33.163241', time_epoch_executed='1632874473.16' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407827/ft1_4FGL_J2236.4-2309_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407827/ft2_4FGL_J2236.4-2309_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407827/ft1_4FGL_J2236.4-2309_daily_bin1107.fits outfile=/scratch/kocevski/407827/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1107.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=526262401.0 tmax=526521601.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.00
user 3.75
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407827/ft1_filtered_4FGL_J2236.4-2309_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/407827/ft2_4FGL_J2236.4-2309_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/407827/ltcube_526262401_526521601_4FGL_J2236.4-2309_daily_bin1107.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/407827/ft2_4FGL_J2236.4-2309_daily_bin1107.fits
.....................!
real 11.82
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407827/ft1_filtered_4FGL_J2236.4-2309_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/407827/ft2_4FGL_J2236.4-2309_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/407827/ltcube_526262401_526521601_4FGL_J2236.4-2309_daily_bin1107.fits outfile=/scratch/kocevski/407827/expmap_526262401_526521601_4FGL_J2236.4-2309_daily_bin1107.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/407827/ltcube_526262401_526521601_4FGL_J2236.4-2309_daily_bin1107.fits
.....................!
real 191.23
user 185.93
sys 4.89

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/407827/ft1_filtered_4FGL_J2236.4-2309_daily_bin1107.fits scfile=/scratch/kocevski/407827/ft2_4FGL_J2236.4-2309_daily_bin1107.fits outfile=/scratch/kocevski/407827/cmap_526262401_526521601_4FGL_J2236.4-2309_daily_bin1107.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407827/ft1_filtered_4FGL_J2236.4-2309_daily_bin1107.fits scfile=/scratch/kocevski/407827/ft2_4FGL_J2236.4-2309_daily_bin1107.fits outfile=/scratch/kocevski/407827/cmap_HighResolution_526262401_526521601_4FGL_J2236.4-2309_daily_bin1107.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407827/ft1_filtered_4FGL_J2236.4-2309_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/407827/ft2_4FGL_J2236.4-2309_daily_bin1107.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407827/Model_4FGL_J2236.4-2309_daily_bin1107.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/407827/ft1_filtered_4FGL_J2236.4-2309_daily_bin1107.fits.....................!
real 52.38
user 50.84
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3211       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.787       1.0000         .10000E-03   10000.    
    10 'norm      '    .97435       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8071       1.0000         .10000E-03   10000.    
    12 'Prefactor '    77.769       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.653       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8150       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.538       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.0852       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6234       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1136       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0718       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92915       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=   6291.795     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2735 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2347       -.46212E-06** at limit **
   2  Prefactor     .10000E-03    19.274       -.27235E-05** at limit **
   3  norm          1.3211        .37783        .16366E-09    .25814E-04
   4  Prefactor     .10000E-03    5.4192        .19759E-06** at limit **
   5  Prefactor     .10000E-03    28.221        .57058E-06** at limit **
   6  Prefactor     .10000E-03    22.132        .25423E-05** at limit **
   7  Prefactor     .10000E-03    20.984        .72411E-06** at limit **
   8  norm          .10000E-03    6.7629        .63870E-06** at limit **
   9  Prefactor     10.782        15.431        .16842E-05   -.30282E-04
  10  norm          .97439        .69290       -.39843E-08   -.63964E-03
  11  norm          2.8079        2.6382        .91848E-06   -.10768E-03
  12  Prefactor     77.736        58.615       -.80600E-05   -.17285E-03
  13  Prefactor     .10000E-03    6.2644       -.31329E-06** at limit **
  14  Prefactor     39.685        16.864       -.20768E-05   -.15953E-02
  15  norm          .10000E-03    .90084        .18663E-05** at limit **
  16  norm          .10000E-03    1.5740       -.18843E-07** at limit **
  17  Prefactor     3.8174        51.829        .37592E-05   -.33638E-03
  18  Prefactor     17.537        13.999        .16589E-06    .35024E-05
  19  Prefactor     .10000E-03    3.9622       -.63679E-07** at limit **
  20  norm          4.0851        .98433        .18542E-07    .38742E-04
  21  Prefactor     5.6238        9.4912       -.19480E-06   -.11503E-03
  22  Prefactor     5.1127        8.9069        .28685E-06   -.17469E-04
  23  Normalizat    1.0723        .19756        .13490E-05   -.35393E-03
  24  Prefactor     .92871        .16802       -.13145E-05   -.21097E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.7822
  norm       = 0.974392
  norm       = 2.80789
  Prefactor  = 77.7357
  Prefactor  = 0.0001
  Prefactor  = 39.6854
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 3.81739
  Prefactor  = 17.5373
  Prefactor  = 0.0001
  norm       = 4.08508
  Prefactor  = 5.62379
  Prefactor  = 5.11267
  Normalizat = 1.07232
  Prefactor  = 0.928708
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.795     FROM HESSE     STATUS=OK           391 CALLS     3126 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3211        .37886        .25354E-04   -1.5478    
   4  Prefactor     .10000E-03    5.4472        .18030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.7697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.782        15.480        .12199E-03   -1.5051    
  10  norm          .97439        .69159        .53752E-04   -1.5511    
  11  norm          2.8079        2.6313        .10770E-03   -1.5373    
  12  Prefactor     77.736        58.699        .45537E-04   -1.3942    
  13  Prefactor     .10000E-03    6.3066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.685        18.510        .63653E-04   -1.4447    
  15  norm          .10000E-03    1.3581        .13020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5856        .97118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8174        54.103        .10332E-02   -1.5317    
  18  Prefactor     17.537        14.071        .95637E-04   -1.4870    
  19  Prefactor     .10000E-03    3.9729        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.0851        .99257        .34336E-04   -1.5304    
  21  Prefactor     5.6238        9.4831        .16940E-03   -1.5234    
  22  Prefactor     5.1127        8.9111        .17779E-03   -1.5256    
  23  Normalizat    1.0723        .23908        .26657E-03   -.90646    
  24  Prefactor     .92871        .20310        .24658E-03   -.95145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04048e-09
Minuit parameter uncertainties:
  1  1.00276e-05
  2  0.000111046
  3  0.37886
  4  4.27955e-06
  5  3.87946e-06
  6  9.66477e-05
  7  3.08912e-05
  8  2.10365e-05
  9  15.4857
  10  0.691591
  11  2.63143
  12  58.7431
  13  4.50111e-06
  14  18.5129
  15  0.000111809
  16  2.45874e-06
  17  28.7735
  18  14.0732
  19  1.04895e-05
  20  0.992577
  21  9.48559
  22  8.91346
  23  0.239322
  24  0.203267
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.078e+01  1.549e+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:  9.287e-01  2.033e-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.072e+00  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407827/likelihoodResults_526262401_526521601_4FGL_J2236.4-2309_daily_bin1107.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) = 6291.0751184
delta logL = 0.720052859177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6291.07306086
delta logL = 0.722110392057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95981       1.0000         .10000E-03   10000.    
     2 'Index     '    5.4082       1.0000          .0000       10.000    
     3 'Normalizat'    1.0134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97085       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6291.073     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      303 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95791        11.443        .13023E-01    .70568E-03
   2  Index         5.4098        3.6323        .20207        .89036E-04
   3  Normalizat    1.0138        .44855E-01    .44579E-01    .11564E-04
   4  Prefactor     .97050        .39190E-01    .45902E-01    .13162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.95791
  Index      = 5.40977
  Normalizat = 1.0138
  Prefactor  = 0.970499
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.073     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      338 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95791        30.240        .60784E-03   -1.5512    
   2  Index         5.4098        7.7042        .73365E-02    .82047E-01
   3  Normalizat    1.0138        .18169        .27279E-03   -.92569    
   4  Prefactor     .97050        .15412        .24185E-03   -.93719    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.39174e-08
Minuit parameter uncertainties:
  1  10.7697
  2  8.35161
  3  0.181798
  4  0.15419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407827': 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): 102
logL (Free Index) = 6291.07305919
delta logL = 0.722112070061

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  9.579e-01  1.077e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  5.410e+00  8.352e+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:  9.705e-01  1.542e-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.014e+00  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.20
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 5.41 +/- 8.35
Photon Flux (Free Index): 7.34e-08 +/- 6.98e-08
Energy Flux (Free Index): 9.46e-06 +/- 1.29e-05

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/407827/cmap_HighResolution_526262401_526521601_4FGL_J2236.4-2309_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='9.46e-06', dlogl='7.22e-01', photon_flux2='7.34e-08', job_status='DONE', time_completed='2021-09-28 17:25:26.807404', photon_index_error2='8.35', photon_index2='5.41', ts='0.64', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.29e-05', EG='1.07', time_epoch_completed='1632875126.81', return_code='0', job_id='407827', GAL2='0.97', EG2='1.01', return_code2='102', photon_flux_error2='6.98e-08', ts2='2.20', photon_index='2.74' WHERE bin_id='1107' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:25:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 407827: <4FGL_J2236.4-2309_daily_bin1107> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1107 339.125 -23.1552 526262401 526521601 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 :                                   648.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            889 sec.

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

