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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1086
RA = 339.125, Dec = -23.1552
tmin = 520819201, tmax = 521078401
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='407797', job_status='RUN', time_executed='2021-09-28 17:13:10.191609', time_epoch_executed='1632874390.19' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407797/ft1_4FGL_J2236.4-2309_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407797/ft2_4FGL_J2236.4-2309_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407797/ft1_4FGL_J2236.4-2309_daily_bin1086.fits outfile=/scratch/kocevski/407797/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1086.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=520819201.0 tmax=521078401.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.51
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407797/ft1_filtered_4FGL_J2236.4-2309_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/407797/ft2_4FGL_J2236.4-2309_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/407797/ltcube_520819201_521078401_4FGL_J2236.4-2309_daily_bin1086.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/407797/ft2_4FGL_J2236.4-2309_daily_bin1086.fits
.....................!
real 11.72
user 11.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407797/ft1_filtered_4FGL_J2236.4-2309_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/407797/ft2_4FGL_J2236.4-2309_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/407797/ltcube_520819201_521078401_4FGL_J2236.4-2309_daily_bin1086.fits outfile=/scratch/kocevski/407797/expmap_520819201_521078401_4FGL_J2236.4-2309_daily_bin1086.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/407797/ltcube_520819201_521078401_4FGL_J2236.4-2309_daily_bin1086.fits
.....................!
real 190.48
user 185.20
sys 4.93

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/407797/ft1_filtered_4FGL_J2236.4-2309_daily_bin1086.fits scfile=/scratch/kocevski/407797/ft2_4FGL_J2236.4-2309_daily_bin1086.fits outfile=/scratch/kocevski/407797/cmap_520819201_521078401_4FGL_J2236.4-2309_daily_bin1086.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/407797/ft1_filtered_4FGL_J2236.4-2309_daily_bin1086.fits scfile=/scratch/kocevski/407797/ft2_4FGL_J2236.4-2309_daily_bin1086.fits outfile=/scratch/kocevski/407797/cmap_HighResolution_520819201_521078401_4FGL_J2236.4-2309_daily_bin1086.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407797/ft1_filtered_4FGL_J2236.4-2309_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/407797/ft2_4FGL_J2236.4-2309_daily_bin1086.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407797/Model_4FGL_J2236.4-2309_daily_bin1086.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/407797/ft1_filtered_4FGL_J2236.4-2309_daily_bin1086.fits....................!
real 61.12
user 59.65
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11788       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.307       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7619       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30294       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .70696       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.479       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6389       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15665E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6601       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.866       1.0000         .10000E-03   10000.    
    15 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.433       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6832       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2451       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1370       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.846       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1803       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .60694       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8120.134     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     2865 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10371E-03    1235.5        .36225E-04** at limit **
   2  Prefactor     26.614        40.395       -.55560E-05   -.12440E-02
   3  norm          1.7617        .38102        .14401E-07    .26564E-03
   4  Prefactor     .10000E-03    1.6173       -.10054E-05** at limit **
   5  Prefactor     .32265        1.2595        .99633E-06    .11656E-02
   6  Prefactor     .66017        32.848       -.18113E-04   -.39987E-03
   7  Prefactor     21.472        4.8707        .68941E-06   -.11014E-01
   8  norm          2.6399        1.5335       -.98393E-06    .51378E-03
   9  Prefactor     .10000E-03    38.786        .71487E-05** at limit **
  10  norm          .10000E-03    .34191        .96869E-06** at limit **
  11  norm          1.6602        1.4289       -.36234E-06   -.83939E-04
  12  Prefactor     .10000E-03    21.809        .11252E-04** at limit **
  13  Prefactor     .10000E-03    4.5904        .75795E-06** at limit **
  14  Prefactor     30.884        4.8556        .19399E-05   -.34143E-02
  15  norm          .10000E-03    1.9092        .15572E-05** at limit **
  16  norm          16.433        4.9119       -.26016E-06    .69935E-03
  17  Prefactor     .10001E-03    33.036       -.20217E-04** at limit **
  18  Prefactor     4.6839        7.1098       -.43658E-06    .16009E-03
  19  Prefactor     3.2441        3.7811       -.28533E-05   -.12161E-02
  20  norm          1.1371        .55202        .39595E-06    .83530E-04
  21  Prefactor     10.850        8.9132       -.22379E-06    .30389E-03
  22  Prefactor     .10000E-03    4.1175        .23300E-06** at limit **
  23  Normalizat    1.1804        .18148       -.32496E-06   -.47739E-04
  24  Prefactor     .60687        .15321       -.32775E-05   -.52764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103714
  Prefactor  = 26.6142
  norm       = 1.76167
  Prefactor  = 0.0001
  Prefactor  = 0.322648
  Prefactor  = 0.660174
  Prefactor  = 21.4723
  norm       = 2.63987
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.66022
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 30.8839
  norm       = 0.0001
  norm       = 16.4333
  Prefactor  = 0.000100006
  Prefactor  = 4.68386
  Prefactor  = 3.24409
  norm       = 1.13707
  Prefactor  = 10.8498
  Prefactor  = 0.0001
  Normalizat = 1.18038
  Prefactor  = 0.606871
 **********
 **   18 **HESSE 
 **********

 FCN=   8120.134     FROM HESSE     STATUS=OK           473 CALLS     3338 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10371E-03    14.331        .95961E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.614        49.164        .19526E-02   -1.4676    
   3  norm          1.7617        .38021        .56379E-02   -1.5443    
   4  Prefactor     .10000E-03    1.6162        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .32265        4.4220        .10438       -1.5594    
   6  Prefactor     .66017        7.6795        .90561E-01   -1.5545    
   7  Prefactor     21.472        23.280        .21606E-02   -1.4781    
   8  norm          2.6399        13.799        .62749E-02   -1.5383    
   9  Prefactor     .10000E-03    5.1228        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .22897        .22067E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6602        1.4446        .81860E-02   -1.5450    
  12  Prefactor     .10000E-03    21.894        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5388        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.884        14.242        .18030E-02   -1.4596    
  15  norm          .10000E-03    .57703        .30392E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.433        5.1878        .24700E-02   -1.4897    
  17  Prefactor     .10001E-03    33.638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6839        7.9632        .46489E-02   -1.5275    
  19  Prefactor     3.2441        9.7276        .56210E-02   -1.5348    
  20  norm          1.1371        .62427        .90821E-02   -1.5495    
  21  Prefactor     10.850        9.0454        .30414E-02   -1.5049    
  22  Prefactor     .10000E-03    4.0997        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1804        .16244        .35393E-01   -.87211    
  24  Prefactor     .60687        .13353        .41149E-01   -1.0730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28302e-07
Minuit parameter uncertainties:
  1  0.0145951
  2  49.2392
  3  0.380208
  4  2.57627e-06
  5  2.38879
  6  4.50362
  7  23.2901
  8  12.0751
  9  0.000144204
  10  1.19424e-06
  11  1.4446
  12  0.000314052
  13  4.70952e-06
  14  14.2432
  15  4.33552e-06
  16  5.18797
  17  0.000917335
  18  7.96501
  19  9.73235
  20  0.624269
  21  9.04653
  22  3.55402e-06
  23  0.162514
  24  0.133601
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.442e-04  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  6.069e-01  1.336e-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.180e+00  1.625e-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: 7.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407797/likelihoodResults_520819201_521078401_4FGL_J2236.4-2309_daily_bin1086.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) = 8120.13375389
delta logL = -0.000123713523863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8120.13363489
delta logL = -4.70698796562e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90161E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6420       1.0000          .0000       10.000    
     3 'Normalizat'    1.1804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60694       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=   8120.134     FROM MIGRAD    STATUS=FAILED       101 CALLS      270 TOTAL
                     EDM=   .77E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14824E-03    9887.1        .38055E-02** at limit **
   2  Index         2.2297        5.3692        .50000       -.62765E-05
   3  Normalizat    1.1804        .52784E-01    .22077E-03    .23173E-05
   4  Prefactor     .60687        .44829E-01    .25715E-03   -.12069E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8120.133     FROM SIMPLEX   STATUS=PROGRESS     155 CALLS      425 TOTAL
                     EDM=   .42E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42143        9887.1        .73971E-03   -.28526E-02
   2  Index         2.2296        5.3692        .38616E-05   -.62765E-05
   3  Normalizat    1.1804        .52784E-01    .54872E-07    .23173E-05
   4  Prefactor     .60687        .44829E-01    .38857E-07   -.12069E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8120.133     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      485 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47231        6249.2        .15222E-02   -.29718E-04
   2  Index         2.2828        6.1978        .50000       -.15893E-05
   3  Normalizat    1.1798        .29848E-01    .88306E-05   -.84197E-04
   4  Prefactor     .60661        .26101E-01    .10286E-04   -.87536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.472309
  Index      = 2.2828
  Normalizat = 1.17976
  Prefactor  = 0.606609
 **********
 **   18 **HESSE 
 **********

 FCN=   8120.133     FROM HESSE     STATUS=OK            29 CALLS      514 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47231        71.638        .60887E-04   -1.5571    
   2  Index         2.2828        3.3186        .30708E-01   -.57453    
   3  Normalizat    1.1798        .17658        .17661E-05   -.87230    
   4  Prefactor     .60661        .15254        .20572E-05   -1.0731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66581e-11
Minuit parameter uncertainties:
  1  11.6466
  2  3.82744
  3  0.176665
  4  0.152639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407797': 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) = 8120.13259879
delta logL = 0.00103138518534

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.723e-01  1.165e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.283e+00  3.827e+00  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  6.066e-01  1.526e-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.180e+00  1.767e-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/407797/cmap_HighResolution_520819201_521078401_4FGL_J2236.4-2309_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-28 17:26:11.405055', job_id='407797', GAL2='0.61', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632875171.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='1.03e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1086' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:26:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 407797: <4FGL_J2236.4-2309_daily_bin1086> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1086> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:35 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:37 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:37 2021
Terminated at Tue Sep 28 17:26:12 2021
Results reported at Tue Sep 28 17:26:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1086 339.125 -23.1552 520819201 521078401 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 :                                   776.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             307.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

