/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 116 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.4-2309_daily_bin291
RA = 339.125, Dec = -23.1552
tmin = 314755201, tmax = 315014401
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='404386', job_status='RUN', time_executed='2021-09-28 17:02:25.385110', time_epoch_executed='1632873745.39' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404386

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404386/ft1_4FGL_J2236.4-2309_daily_bin291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404386/ft2_4FGL_J2236.4-2309_daily_bin291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404386/ft1_4FGL_J2236.4-2309_daily_bin291.fits outfile=/scratch/kocevski/404386/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin291.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=314755201.0 tmax=315014401.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.49
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404386/ft1_filtered_4FGL_J2236.4-2309_daily_bin291.fits" evtable="EVENTS" scfile=/scratch/kocevski/404386/ft2_4FGL_J2236.4-2309_daily_bin291.fits sctable="SC_DATA" outfile=/scratch/kocevski/404386/ltcube_314755201_315014401_4FGL_J2236.4-2309_daily_bin291.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/404386/ft2_4FGL_J2236.4-2309_daily_bin291.fits
.....................!
real 12.14
user 11.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404386/ft1_filtered_4FGL_J2236.4-2309_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/404386/ft2_4FGL_J2236.4-2309_daily_bin291.fits sctable="SC_DATA" expcube=/scratch/kocevski/404386/ltcube_314755201_315014401_4FGL_J2236.4-2309_daily_bin291.fits outfile=/scratch/kocevski/404386/expmap_314755201_315014401_4FGL_J2236.4-2309_daily_bin291.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/404386/ltcube_314755201_315014401_4FGL_J2236.4-2309_daily_bin291.fits
.....................!
real 191.59
user 186.95
sys 4.27

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/404386/ft1_filtered_4FGL_J2236.4-2309_daily_bin291.fits scfile=/scratch/kocevski/404386/ft2_4FGL_J2236.4-2309_daily_bin291.fits outfile=/scratch/kocevski/404386/cmap_314755201_315014401_4FGL_J2236.4-2309_daily_bin291.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404386/ft1_filtered_4FGL_J2236.4-2309_daily_bin291.fits scfile=/scratch/kocevski/404386/ft2_4FGL_J2236.4-2309_daily_bin291.fits outfile=/scratch/kocevski/404386/cmap_HighResolution_314755201_315014401_4FGL_J2236.4-2309_daily_bin291.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404386/ft1_filtered_4FGL_J2236.4-2309_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/404386/ft2_4FGL_J2236.4-2309_daily_bin291.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404386/Model_4FGL_J2236.4-2309_daily_bin291.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/404386/ft1_filtered_4FGL_J2236.4-2309_daily_bin291.fits.....................!
real 57.22
user 55.80
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.353       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24806E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5104       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.498       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .31887       1.0000         .10000E-03   10000.    
    11 'norm      '    .11861E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    72.220       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8397       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11296E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8421       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0443       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0931       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71591       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=   7143.045     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2741 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.342        13.099       -.22037E-06   -.28687E-03
   2  Prefactor     .10001E-03    90.365        .10922E-05** at limit **
   3  norm          1.5103        .36341        .11994E-07   -.12591E-04
   4  Prefactor     .10000E-03    1.9077       -.22022E-07** at limit **
   5  Prefactor     11.497        10.688        .94364E-07   -.99414E-04
   6  Prefactor     .10000E-03    4.8443       -.22710E-07** at limit **
   7  Prefactor     .10000E-03    18.789        .16226E-07** at limit **
   8  norm          .10000E-03    4.8417        .90612E-07** at limit **
   9  Prefactor     .10000E-03    4.4009        .41419E-06** at limit **
  10  norm          .31898        .65024        .74562E-07   -.22794E-05
  11  norm          .10001E-03    1.9680        .21559E-05** at limit **
  12  Prefactor     72.267        33.373       -.17806E-05   -.26449E-03
  13  Prefactor     .10000E-03    3.5457       -.13776E-07** at limit **
  14  Prefactor     .10000E-03    4.3282        .66127E-07** at limit **
  15  norm          .10000E-03    .22608        .31348E-08** at limit **
  16  norm          .10000E-03    1.8099        .70210E-07** at limit **
  17  Prefactor     7.8404        18.681        .52037E-06    .12839E-04
  18  Prefactor     .10000E-03    3.8374        .28656E-07** at limit **
  19  Prefactor     .10000E-03    6.1225        .82534E-06** at limit **
  20  norm          1.8423        .60922       -.28380E-06   -.71945E-02
  21  Prefactor     .10000E-03    11.556       -.84257E-07** at limit **
  22  Prefactor     3.0457        6.0326        .28131E-05   -.38770E-03
  23  Normalizat    1.0932        .15783       -.18183E-05   -.85575E-03
  24  Prefactor     .71584        .13546        .10086E-05   -.67412E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3423
  Prefactor  = 0.000100005
  norm       = 1.51029
  Prefactor  = 0.0001
  Prefactor  = 11.4969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.318985
  norm       = 0.000100011
  Prefactor  = 72.2672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.84044
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.84229
  Prefactor  = 0.0001
  Prefactor  = 3.04573
  Normalizat = 1.0932
  Prefactor  = 0.715845
 **********
 **   18 **HESSE 
 **********

 FCN=   7143.045     FROM HESSE     STATUS=OK           391 CALLS     3132 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.342        13.123        .10572E-03   -1.4950    
   2  Prefactor     .10001E-03    91.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5103        .36402        .24236E-04   -1.5462    
   4  Prefactor     .10000E-03    1.9114        .11399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.497        10.687        .11814E-03   -1.5030    
   6  Prefactor     .10000E-03    4.8585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.8458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.4326        .17332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .31898        .63802        .91716E-04   -1.5595    
  11  norm          .10001E-03    4.3874        .17561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     72.267        34.557        .23620E-03   -1.4006    
  13  Prefactor     .10000E-03    3.5608        .15540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3372        .17145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .22717        .38916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8592        .22171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.8404        18.498        .14321E-03   -1.5148    
  18  Prefactor     .10000E-03    3.8415        .16160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    49.203        .35620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8423        .59284        .34006E-04   -1.5437    
  21  Prefactor     .10000E-03    11.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.0457        6.2433        .11627E-02   -1.5359    
  23  Normalizat    1.0932        .18216        .22360E-03   -.89970    
  24  Prefactor     .71584        .15647        .23433E-03   -1.0291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87093e-09
Minuit parameter uncertainties:
  1  13.1259
  2  0.00141582
  3  0.364023
  4  8.5915e-09
  5  10.6886
  6  4.78481e-07
  7  1.53381e-05
  8  1.10817e-05
  9  3.41505e-05
  10  0.638033
  11  0.000430596
  12  34.5668
  13  2.41531e-06
  14  1.38659e-05
  15  2.54239e-08
  16  6.18823e-06
  17  18.5119
  18  3.30233e-06
  19  0.000732077
  20  0.592842
  21  2.63997e-07
  22  6.24463
  23  0.182268
  24  0.156569
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  3.415e-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:  7.158e-01  1.566e-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.093e+00  1.823e-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: 5.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404386/likelihoodResults_314755201_315014401_4FGL_J2236.4-2309_daily_bin291.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) = 7143.04596094
delta logL = -0.00107451129406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7143.04488646
delta logL = -2.97050064546e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7462       1.0000          .0000       10.000    
     3 'Normalizat'    1.0932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71586       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=   7142.933     FROM MIGRAD    STATUS=FAILED       175 CALLS      323 TOTAL
                     EDM=   .18E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10989E-02    .52831E-01    .11200E-02** at limit **
   2  Index         9.4485        6.1397        .50000        .19345E-02
   3  Normalizat    1.0675        .27002E-01    .22360E-03   -.70163E-04
   4  Prefactor     .73105        .23331E-01    .23433E-03   -.39104E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7142.933     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      403 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10989E-02    .52831E-01    .15315E-04** at limit **
   2  Index         9.4485        6.1397        .13493E-01    .19345E-02
   3  Normalizat    1.0675        .27002E-01    .77127E-04   -.70163E-04
   4  Prefactor     .73105        .23331E-01    .42041E-04   -.39104E-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=   7142.933     FROM MIGRAD    STATUS=FAILED        77 CALLS      480 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10989E-02    .27250        .11230E-04** at limit **
   2  Index         9.4485        9.5014        .74149E-01    .23832E-03
   3  Normalizat    1.0675        .10230        .17888E-05   -.69909E-04
   4  Prefactor     .73105        .87824E-01    .18746E-05   -.40026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00109885
  Index      = 9.44845
  Normalizat = 1.06755
  Prefactor  = 0.731049
 **********
 **   18 **HESSE 
 **********

 FCN=   7142.933     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      505 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10989E-02    .29335        .44919E-06   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.4485        9.1626        .14830E-01    1.0967    
   3  Normalizat    1.0675        .15679        .35777E-06   -.90801    
   4  Prefactor     .73105        .13335        .37493E-06   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.92635e-11
Minuit parameter uncertainties:
  1  0.0342353
  2  21.9931
  3  0.156854
  4  0.133411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404386': 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) = 7142.93320846
delta logL = 0.111677971696

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.099e-03  3.424e-02  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  9.448e+00  2.199e+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:  7.310e-01  1.334e-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.068e+00  1.569e-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/404386/cmap_HighResolution_314755201_315014401_4FGL_J2236.4-2309_daily_bin291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='5.96e-08', time_completed='2021-09-28 17:13:59.857674', job_id='404386', GAL2='0.73', fit_tolerance='1e-08', EG2='1.07', EG='1.09', time_epoch_completed='1632874439.86', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.12e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='291' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:13:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 404386: <4FGL_J2236.4-2309_daily_bin291> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin291 339.125 -23.1552 314755201 315014401 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 :                                   694.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

