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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1507
RA = 339.125, Dec = -23.1552
tmin = 629942401, tmax = 630201601
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='409374', job_status='RUN', time_executed='2021-09-28 17:15:46.008592', time_epoch_executed='1632874546.01' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409374

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409374/ft1_4FGL_J2236.4-2309_daily_bin1507.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409374/ft2_4FGL_J2236.4-2309_daily_bin1507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409374/ft1_4FGL_J2236.4-2309_daily_bin1507.fits outfile=/scratch/kocevski/409374/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1507.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=629942401.0 tmax=630201601.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.73
user 4.51
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409374/ft1_filtered_4FGL_J2236.4-2309_daily_bin1507.fits" evtable="EVENTS" scfile=/scratch/kocevski/409374/ft2_4FGL_J2236.4-2309_daily_bin1507.fits sctable="SC_DATA" outfile=/scratch/kocevski/409374/ltcube_629942401_630201601_4FGL_J2236.4-2309_daily_bin1507.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/409374/ft2_4FGL_J2236.4-2309_daily_bin1507.fits
.....................!
real 11.80
user 11.41
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409374/ft1_filtered_4FGL_J2236.4-2309_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/409374/ft2_4FGL_J2236.4-2309_daily_bin1507.fits sctable="SC_DATA" expcube=/scratch/kocevski/409374/ltcube_629942401_630201601_4FGL_J2236.4-2309_daily_bin1507.fits outfile=/scratch/kocevski/409374/expmap_629942401_630201601_4FGL_J2236.4-2309_daily_bin1507.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/409374/ltcube_629942401_630201601_4FGL_J2236.4-2309_daily_bin1507.fits
.....................!
real 191.43
user 185.32
sys 5.64

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/409374/ft1_filtered_4FGL_J2236.4-2309_daily_bin1507.fits scfile=/scratch/kocevski/409374/ft2_4FGL_J2236.4-2309_daily_bin1507.fits outfile=/scratch/kocevski/409374/cmap_629942401_630201601_4FGL_J2236.4-2309_daily_bin1507.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409374/ft1_filtered_4FGL_J2236.4-2309_daily_bin1507.fits scfile=/scratch/kocevski/409374/ft2_4FGL_J2236.4-2309_daily_bin1507.fits outfile=/scratch/kocevski/409374/cmap_HighResolution_629942401_630201601_4FGL_J2236.4-2309_daily_bin1507.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409374/ft1_filtered_4FGL_J2236.4-2309_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/409374/ft2_4FGL_J2236.4-2309_daily_bin1507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409374/Model_4FGL_J2236.4-2309_daily_bin1507.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/409374/ft1_filtered_4FGL_J2236.4-2309_daily_bin1507.fits.....................!
real 69.31
user 67.91
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2327       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1559       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.955       1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.059       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    196.56       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9217       1.0000         .10000E-03   10000.    
    11 'norm      '    .16986       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.295       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1088       1.0000         .10000E-03   10000.    
    14 'Prefactor '    95.487       1.0000         .10000E-03   10000.    
    15 'norm      '    .94312       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2999       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.378       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5208       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3144       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.517       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2060       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75558       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=   8967.606     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2776 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2344        9.8554       -.45385E-06   -.79827E-04
   2  Prefactor     .10000E-03    15.329       -.92799E-07** at limit **
   3  norm          1.1559        .32791        .29667E-08    .98767E-04
   4  Prefactor     16.953        8.4846        .18984E-07    .31530E-06
   5  Prefactor     39.055        16.316       -.26944E-07    .17002E-05
   6  Prefactor     .10000E-03    4.2789        .50050E-08** at limit **
   7  Prefactor     196.54        77.392        .82411E-06    .13607E-03
   8  norm          .10000E-03    5.0768       -.79704E-08** at limit **
   9  Prefactor     .10000E-03    3.4810        .48618E-07** at limit **
  10  norm          2.9216        1.0633        .16973E-07    .52042E-03
  11  norm          .19810        5.9101        .29699E-05   -.48359E-03
  12  Prefactor     11.949        34.709       -.42123E-05    .50087E-04
  13  Prefactor     3.1071        5.8676        .15575E-05    .95382E-03
  14  Prefactor     95.432        34.733        .11952E-05   -.16093E-03
  15  norm          .94670        2.1065       -.10256E-05   -.64262E-06
  16  norm          1.2999        1.8437       -.21175E-08   -.37275E-04
  17  Prefactor     35.337        42.154       -.39176E-06   -.86282E-04
  18  Prefactor     .10000E-03    2.8522       -.73021E-08** at limit **
  19  Prefactor     .10000E-03    3.6915        .77659E-07** at limit **
  20  norm          1.5209        .57338       -.71010E-08   -.16962E-03
  21  Prefactor     8.3121        9.8695        .66818E-06    .28332E-03
  22  Prefactor     10.520        8.2947        .90088E-07   -.79319E-05
  23  Normalizat    1.2066        .16418        .14878E-06    .69136E-04
  24  Prefactor     .75511        .14172       -.38599E-06    .99939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23437
  Prefactor  = 0.0001
  norm       = 1.15592
  Prefactor  = 16.9534
  Prefactor  = 39.0548
  Prefactor  = 0.0001
  Prefactor  = 196.538
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.92161
  norm       = 0.198105
  Prefactor  = 11.9492
  Prefactor  = 3.10714
  Prefactor  = 95.4325
  norm       = 0.9467
  norm       = 1.29993
  Prefactor  = 35.3371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52088
  Prefactor  = 8.31207
  Prefactor  = 10.5205
  Normalizat = 1.20663
  Prefactor  = 0.755108
 **********
 **   18 **HESSE 
 **********

 FCN=   8967.606     FROM HESSE     STATUS=OK           405 CALLS     3181 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2344        9.8520        .22529E-03   -1.5348    
   2  Prefactor     .10000E-03    15.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1559        .32863        .28017E-04   -1.5493    
   4  Prefactor     16.953        8.4876        .97269E-04   -1.4884    
   5  Prefactor     39.055        16.331        .64134E-04   -1.4457    
   6  Prefactor     .10000E-03    4.2842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     196.54        77.726        .14408E-03   -1.2895    
   8  norm          .10000E-03    5.0814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5035        .17250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9216        1.0640        .23767E-04   -1.5366    
  11  norm          .19810        9.1913        .18630E-02   -1.5619    
  12  Prefactor     11.949        42.362        .11424E-03   -1.5016    
  13  Prefactor     3.1071        6.6839        .11499E-02   -1.5355    
  14  Prefactor     95.432        34.880        .41132E-04   -1.3751    
  15  norm          .94670        2.1167        .12510E-03   -1.5513    
  16  norm          1.2999        1.8103        .14718E-03   -1.5480    
  17  Prefactor     35.337        42.261        .67376E-04   -1.4518    
  18  Prefactor     .10000E-03    2.8536        .15616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.7159        .17697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5209        .57717        .39058E-04   -1.5461    
  21  Prefactor     8.3121        9.9684        .13903E-03   -1.5131    
  22  Prefactor     10.520        8.4322        .12355E-03   -1.5059    
  23  Normalizat    1.2066        .20096        .25465E-03   -.86398    
  24  Prefactor     .75511        .17161        .27614E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81124e-07
Minuit parameter uncertainties:
  1  9.85698
  2  1.10527e-05
  3  0.328632
  4  8.48818
  5  16.3333
  6  2.3444e-06
  7  77.767
  8  6.93311e-06
  9  7.08811e-06
  10  1.06398
  11  2.69853
  12  42.4688
  13  6.68549
  14  34.8879
  15  2.11682
  16  1.81035
  17  42.2968
  18  4.04625e-06
  19  7.61747e-06
  20  0.577169
  21  9.97036
  22  8.43314
  23  0.201093
  24  0.171731
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  7.088e-06  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.551e-01  1.717e-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.207e+00  2.011e-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: 4.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409374/likelihoodResults_629942401_630201601_4FGL_J2236.4-2309_daily_bin1507.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) = 8967.60723468
delta logL = -0.00135824297831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8967.60587641
delta logL = 3.32129275193e-08

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 'Index     '    2.7331       1.0000          .0000       10.000    
     3 'Normalizat'    1.2066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75512       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=   8967.606     FROM MIGRAD    STATUS=FAILED        86 CALLS      242 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10102E-03    123.22        .17314E-02** at limit **
   2  Index         2.6522        5.7984        .50000        .17398E-04
   3  Normalizat    1.2066        .24226E-01    .25465E-03   -.78128E-04
   4  Prefactor     .75511        .21383E-01    .27613E-03   -.24867E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8967.606     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      369 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10102E-03    123.22        .27677E-03** at limit **
   2  Index         2.6522        5.7984        .50548E-04    .17398E-04
   3  Normalizat    1.2066        .24226E-01    .57186E-06   -.78128E-04
   4  Prefactor     .75511        .21383E-01    .80058E-06   -.24867E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8967.606     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      410 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    638.62        .34627E-03** at limit **
   2  Index         2.4553        8.2711        .50000       -.14006E-07
   3  Normalizat    1.2066        .74494E-01    .10186E-04    .26921E-03
   4  Prefactor     .75511        .65752E-01    .11045E-04    .27543E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45528
  Normalizat = 1.20663
  Prefactor  = 0.755108
 **********
 **   18 **HESSE 
 **********

 FCN=   8967.606     FROM HESSE     STATUS=OK            29 CALLS      439 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3080        .69254E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4553        8.7655        .50000       -.53396    
   3  Normalizat    1.2066        .18851        .20372E-05   -.86398    
   4  Prefactor     .75511        .16637        .22091E-05   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81787e-11
Minuit parameter uncertainties:
  1  3.05532e-06
  2  126.475
  3  0.188616
  4  0.166483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409374': 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) = 8967.60587562
delta logL = 8.18708940642e-07

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  3.055e-06  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.455e+00  1.265e+02  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.551e-01  1.665e-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.207e+00  1.886e-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/409374/cmap_HighResolution_629942401_630201601_4FGL_J2236.4-2309_daily_bin1507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-03', job_status='DONE', photon_flux_upper_limit='4.85e-08', time_completed='2021-09-28 17:29:37.436802', job_id='409374', GAL2='0.76', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1632875377.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='8.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1507' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:29:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 409374: <4FGL_J2236.4-2309_daily_bin1507> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1507> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:15:30 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:15:31 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:15:31 2021
Terminated at Tue Sep 28 17:29:38 2021
Results reported at Tue Sep 28 17:29:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1507 339.125 -23.1552 629942401 630201601 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 :                                   827.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            848 sec.

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

