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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1128
RA = 339.125, Dec = -23.1552
tmin = 531705601, tmax = 531964801
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='407858', job_status='RUN', time_executed='2021-09-28 17:11:47.339110', time_epoch_executed='1632874307.34' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407858

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407858/ft1_4FGL_J2236.4-2309_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407858/ft2_4FGL_J2236.4-2309_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407858/ft1_4FGL_J2236.4-2309_daily_bin1128.fits outfile=/scratch/kocevski/407858/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1128.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=531705601.0 tmax=531964801.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.01
user 3.74
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407858/ft1_filtered_4FGL_J2236.4-2309_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/407858/ft2_4FGL_J2236.4-2309_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/407858/ltcube_531705601_531964801_4FGL_J2236.4-2309_daily_bin1128.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/407858/ft2_4FGL_J2236.4-2309_daily_bin1128.fits
.....................!
real 11.91
user 11.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407858/ft1_filtered_4FGL_J2236.4-2309_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/407858/ft2_4FGL_J2236.4-2309_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/407858/ltcube_531705601_531964801_4FGL_J2236.4-2309_daily_bin1128.fits outfile=/scratch/kocevski/407858/expmap_531705601_531964801_4FGL_J2236.4-2309_daily_bin1128.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/407858/ltcube_531705601_531964801_4FGL_J2236.4-2309_daily_bin1128.fits
.....................!
real 191.07
user 185.18
sys 5.52

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/407858/ft1_filtered_4FGL_J2236.4-2309_daily_bin1128.fits scfile=/scratch/kocevski/407858/ft2_4FGL_J2236.4-2309_daily_bin1128.fits outfile=/scratch/kocevski/407858/cmap_531705601_531964801_4FGL_J2236.4-2309_daily_bin1128.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407858/ft1_filtered_4FGL_J2236.4-2309_daily_bin1128.fits scfile=/scratch/kocevski/407858/ft2_4FGL_J2236.4-2309_daily_bin1128.fits outfile=/scratch/kocevski/407858/cmap_HighResolution_531705601_531964801_4FGL_J2236.4-2309_daily_bin1128.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407858/ft1_filtered_4FGL_J2236.4-2309_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/407858/ft2_4FGL_J2236.4-2309_daily_bin1128.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407858/Model_4FGL_J2236.4-2309_daily_bin1128.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/407858/ft1_filtered_4FGL_J2236.4-2309_daily_bin1128.fits.....................!
real 45.61
user 44.28
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.7602       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.095       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.441       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.2470       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    120.39       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5564       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10723E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.663       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.421       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.782       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5796       1.0000         .10000E-03   10000.    
    20 'norm      '    8.3979       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.426       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .64530       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1870       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=   5176.544     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2737 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9915       -.15937E-06** at limit **
   2  Prefactor     .10000E-03    32.255       -.14023E-05** at limit **
   3  norm          3.7601        .77588        .39006E-08    .28580E-04
   4  Prefactor     10.095        14.769        .69349E-07    .19910E-05
   5  Prefactor     .10000E-03    10.358        .15260E-06** at limit **
   6  Prefactor     23.440        26.759        .48178E-07   -.79360E-06
   7  Prefactor     .10000E-03    21.150       -.85426E-06** at limit **
   8  norm          5.2453        24.875       -.32404E-06   -.26779E-05
   9  Prefactor     .10000E-03    25.540        .10524E-05** at limit **
  10  norm          .10000E-03    .39615        .78878E-08** at limit **
  11  norm          .10000E-03    1.5715       -.24861E-06** at limit **
  12  Prefactor     120.36        78.421        .20182E-05   -.63583E-05
  13  Prefactor     2.5545        20.860        .48886E-05    .35727E-05
  14  Prefactor     .10000E-03    84.236        .12303E-05** at limit **
  15  norm          16.662        3.4116        .20582E-06   -.22700E-03
  16  norm          .10000E-03    4.5204       -.35525E-07** at limit **
  17  Prefactor     20.463        67.339       -.68200E-05   -.32480E-05
  18  Prefactor     18.784        20.151        .49715E-07    .36866E-05
  19  Prefactor     8.5834        27.386       -.84921E-06   -.71042E-05
  20  norm          8.3977        2.2189        .20604E-07   -.31694E-04
  21  Prefactor     13.424        18.430        .47136E-06    .57151E-05
  22  Prefactor     .10000E-03    7.6535       -.27252E-07** at limit **
  23  Normalizat    .64512        .26901       -.15331E-05    .40659E-05
  24  Prefactor     1.1872        .21251        .58516E-06   -.97912E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.76015
  Prefactor  = 10.0945
  Prefactor  = 0.0001
  Prefactor  = 23.4398
  Prefactor  = 0.0001
  norm       = 5.24531
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 120.364
  Prefactor  = 2.55454
  Prefactor  = 0.0001
  norm       = 16.6621
  norm       = 0.0001
  Prefactor  = 20.4635
  Prefactor  = 18.7843
  Prefactor  = 8.58342
  norm       = 8.39772
  Prefactor  = 13.4238
  Prefactor  = 0.0001
  Normalizat = 0.645115
  Prefactor  = 1.18718
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.544     FROM HESSE     STATUS=OK           403 CALLS     3140 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7601        .77640        .27917E-04   -1.5320    
   4  Prefactor     10.095        14.752        .12611E-03   -1.5072    
   5  Prefactor     .10000E-03    10.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.440        26.746        .82734E-04   -1.4739    
   7  Prefactor     .10000E-03    21.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.2453        24.831        .17548E-03   -1.5250    
   9  Prefactor     .10000E-03    25.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .58116        .87869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5821        .88076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     120.36        78.121        .18339E-03   -1.3509    
  13  Prefactor     2.5545        20.892        .12768E-02   -1.5388    
  14  Prefactor     .10000E-03    84.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.662        3.4039        .46955E-04   -1.4891    
  16  norm          .10000E-03    4.5549        .14922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.463        67.665        .88632E-04   -1.4803    
  18  Prefactor     18.784        20.100        .92417E-04   -1.4841    
  19  Prefactor     8.5834        27.858        .13685E-03   -1.5122    
  20  norm          8.3977        2.2619        .37880E-04   -1.5128    
  21  Prefactor     13.424        18.422        .10932E-03   -1.4975    
  22  Prefactor     .10000E-03    7.6594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .64512        .31406        .38939E-03   -1.0610    
  24  Prefactor     1.1872        .25224        .24923E-03   -.86727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56013e-11
Minuit parameter uncertainties:
  1  2.30082e-07
  2  3.88399e-06
  3  0.7764
  4  14.7571
  5  1.05483e-06
  6  26.76
  7  1.66776e-06
  8  22.8403
  9  0.00011986
  10  3.77874e-07
  11  1.00073e-05
  12  78.1881
  13  14.6177
  14  0.000343549
  15  3.40398
  16  3.37184e-06
  17  67.9206
  18  20.1076
  19  27.9006
  20  2.26189
  21  18.4303
  22  8.50761e-07
  23  0.314934
  24  0.252501
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.199e-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:  1.187e+00  2.525e-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:  6.451e-01  3.149e-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.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407858/likelihoodResults_531705601_531964801_4FGL_J2236.4-2309_daily_bin1128.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) = 5176.54416121
delta logL = -0.000186185117855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5176.54397557
delta logL = -5.42501766176e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13088E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8400       1.0000          .0000       10.000    
     3 'Normalizat'    .64523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1872       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=   5176.497     FROM MIGRAD    STATUS=FAILED       178 CALLS      338 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38155E-03    .10216        .86647E-03** at limit **
   2  Index        10.0000        6.2270        .50000    ** at limit **
   3  Normalizat    .62875        .61299E-01    .38939E-03   -.17751E-04
   4  Prefactor     1.1968        .51156E-01    .24923E-03    .20363E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5176.497     FROM SIMPLEX   STATUS=UNCHANGED    146 CALLS      484 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38155E-03    .10216        .11192E-06** at limit **
   2  Index        10.0000        6.2270        .42125E-01** at limit **
   3  Normalizat    .62875        .61299E-01    .69588E-07   -.17751E-04
   4  Prefactor     1.1968        .51156E-01    .30384E-07    .20363E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5176.497     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      530 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38156E-03    .24121E-02    .50093E-04** at limit **
   2  Index        10.0000        9.9700        .50000    ** at limit **
   3  Normalizat    .62875        .29075        .15576E-04   -.15328E-04
   4  Prefactor     1.1968        .24539        .49845E-04    .22078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000381556
  Index      = 10
  Normalizat = 0.628753
  Prefactor  = 1.19679
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.497     FROM HESSE     STATUS=OK            31 CALLS      561 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38156E-03    .19406E-02    .20037E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        9.9604        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .62875        .29121        .31151E-05   -1.0678    
   4  Prefactor     1.1968        .24562        .99691E-05   -.86430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1838e-11
Minuit parameter uncertainties:
  1  0.00147836
  2  0.000106302
  3  0.291926
  4  0.245857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407858': 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) = 5176.49706252
delta logL = 0.0469124996189

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.816e-04  1.478e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.000e+01  1.063e-04  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.197e+00  2.459e-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:  6.288e-01  2.919e-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/407858/cmap_HighResolution_531705601_531964801_4FGL_J2236.4-2309_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-28 17:21:44.083149', job_id='407858', GAL2='1.20', fit_tolerance='1e-08', EG2='0.63', EG='0.65', time_epoch_completed='1632874904.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='4.69e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1128' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:21:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 407858: <4FGL_J2236.4-2309_daily_bin1128> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1128 339.125 -23.1552 531705601 531964801 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 :                                   592.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             320.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            664 sec.

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

