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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1661
RA = 339.125, Dec = -23.1552
tmin = 669859201, tmax = 670118401
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='85280', job_status='RUN', time_executed='2022-03-28 00:42:23.074804', time_epoch_executed='1648453343.07' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85280

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85280/ft1_4FGL_J2236.4-2309_daily_bin1661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85280/ft2_4FGL_J2236.4-2309_daily_bin1661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85280/ft1_4FGL_J2236.4-2309_daily_bin1661.fits outfile=/scratch/kocevski/85280/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1661.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=669859201.0 tmax=670118401.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.75
user 3.43
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/85280/ft2_4FGL_J2236.4-2309_daily_bin1661.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/85280/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1661.fits evtable="EVENTS" outfile="/scratch/kocevski/85280/ft1_filtered_4FGL_J2236.4-2309_daily_bin1661.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.62
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 459

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85280/ft1_filtered_4FGL_J2236.4-2309_daily_bin1661.fits" evtable="EVENTS" scfile=/scratch/kocevski/85280/ft2_4FGL_J2236.4-2309_daily_bin1661.fits sctable="SC_DATA" outfile=/scratch/kocevski/85280/ltcube_669859201_670118401_4FGL_J2236.4-2309_daily_bin1661.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/85280/ft2_4FGL_J2236.4-2309_daily_bin1661.fits
.....................!
real 12.01
user 11.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85280/ft1_filtered_4FGL_J2236.4-2309_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85280/ft2_4FGL_J2236.4-2309_daily_bin1661.fits sctable="SC_DATA" expcube=/scratch/kocevski/85280/ltcube_669859201_670118401_4FGL_J2236.4-2309_daily_bin1661.fits outfile=/scratch/kocevski/85280/expmap_669859201_670118401_4FGL_J2236.4-2309_daily_bin1661.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/85280/ltcube_669859201_670118401_4FGL_J2236.4-2309_daily_bin1661.fits
.....................!
real 190.40
user 185.60
sys 4.26

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/85280/ft1_filtered_4FGL_J2236.4-2309_daily_bin1661.fits scfile=/scratch/kocevski/85280/ft2_4FGL_J2236.4-2309_daily_bin1661.fits outfile=/scratch/kocevski/85280/cmap_669859201_670118401_4FGL_J2236.4-2309_daily_bin1661.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=339.125 yref=-23.1552 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/85280/ft1_filtered_4FGL_J2236.4-2309_daily_bin1661.fits scfile=/scratch/kocevski/85280/ft2_4FGL_J2236.4-2309_daily_bin1661.fits outfile=/scratch/kocevski/85280/cmap_HighResolution_669859201_670118401_4FGL_J2236.4-2309_daily_bin1661.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/85280/ft1_filtered_4FGL_J2236.4-2309_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85280/ft2_4FGL_J2236.4-2309_daily_bin1661.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/85280/Model_4FGL_J2236.4-2309_daily_bin1661.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/85280/ft1_filtered_4FGL_J2236.4-2309_daily_bin1661.fits.....................!
real 45.07
user 43.76
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .83366       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1736       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.106       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .71857       1.0000         .10000E-03   10000.    
    11 'norm      '    .48325       1.0000         .10000E-03   10000.    
    12 'Prefactor '    66.963       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.394       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.232       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .81979E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7883       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2215       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73072       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=   5144.930     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2717 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0159        .24505E-06** at limit **
   2  Prefactor     .10001E-03    26.477        .15905E-04** at limit **
   3  norm          .83366        .36881        .30375E-08   -.19939E-04
   4  Prefactor     1.1735        19.726       -.43045E-05   -.44196E-03
   5  Prefactor     .10000E-03    11.422        .43835E-05** at limit **
   6  Prefactor     38.108        26.008        .16754E-05    .13174E-04
   7  Prefactor     .10000E-03    13.224       -.70780E-05** at limit **
   8  norm          .10000E-03    37.819       -.98174E-05** at limit **
   9  Prefactor     .10000E-03    12.423       -.20225E-05** at limit **
  10  norm          .71836        .69798       -.29488E-09   -.55663E-04
  11  norm          .48417        1.7994       -.18608E-05   -.11526E-02
  12  Prefactor     66.969        56.410        .71913E-05   -.46834E-04
  13  Prefactor     19.404        14.219        .42555E-06   -.65286E-04
  14  Prefactor     21.230        17.620        .55196E-06    .65571E-04
  15  norm          .10000E-03    .63401       -.60557E-07** at limit **
  16  norm          .10000E-03    1.4582       -.14290E-07** at limit **
  17  Prefactor     .10000E-03    21.555       -.80713E-05** at limit **
  18  Prefactor     .10000E-03    10.243       -.53990E-05** at limit **
  19  Prefactor     .10003E-03    10.520        .76182E-06** at limit **
  20  norm          1.7907        .87462       -.56522E-07   -.99979E-03
  21  Prefactor     .10000E-03    11.667        .39319E-05** at limit **
  22  Prefactor     .10000E-03    11.119        .46701E-05** at limit **
  23  Normalizat    1.2210        .21166       -.12238E-05    .16280E-03
  24  Prefactor     .73123        .16794        .59138E-06    .21226E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.833663
  Prefactor  = 1.17352
  Prefactor  = 0.000100001
  Prefactor  = 38.1078
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.718358
  norm       = 0.484167
  Prefactor  = 66.9692
  Prefactor  = 19.4037
  Prefactor  = 21.2296
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.00010003
  norm       = 1.79068
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.22099
  Prefactor  = 0.73123
 **********
 **   18 **HESSE 
 **********

 FCN=   5144.930     FROM HESSE     STATUS=OK           395 CALLS     3112 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    25.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .83366        .36959        .28184E-04   -1.5525    
   4  Prefactor     1.1735        21.117        .42311E-03   -1.5491    
   5  Prefactor     .10000E-03    11.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.108        26.022        .64928E-04   -1.4473    
   7  Prefactor     .10000E-03    13.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    37.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .71836        .68948        .56609E-04   -1.5538    
  11  norm          .48417        1.8103        .15983E-03   -1.5569    
  12  Prefactor     66.969        56.300        .49047E-04   -1.4069    
  13  Prefactor     19.404        14.254        .90949E-04   -1.4827    
  14  Prefactor     21.230        15.956        .86925E-04   -1.4786    
  15  norm          .10000E-03    .73957        .10041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4612        .84527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    33.406        .38461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7907        .76694        .39221E-04   -1.5440    
  21  Prefactor     .10000E-03    11.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2210        .25163        .24263E-03   -.85957    
  24  Prefactor     .73123        .19918        .25236E-03   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28122e-09
Minuit parameter uncertainties:
  1  5.94775e-06
  2  0.000796005
  3  0.369592
  4  9.95983
  5  0.000174512
  6  26.0298
  7  0.000254184
  8  0.000605608
  9  1.79961e-05
  10  0.689487
  11  1.81051
  12  56.3449
  13  14.2563
  14  15.9592
  15  6.25435e-06
  16  1.51179e-06
  17  0.000359912
  18  0.000161084
  19  0.00200499
  20  0.766941
  21  0.000142932
  22  0.000187361
  23  0.25188
  24  0.199375
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.800e-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.312e-01  1.994e-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.221e+00  2.519e-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.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/85280/likelihoodResults_669859201_670118401_4FGL_J2236.4-2309_daily_bin1661.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) = 5144.93061846
delta logL = -0.000379498451366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5144.93023907
delta logL = -1.09854227048e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7266       1.0000          .0000       10.000    
     3 'Normalizat'    1.2209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73133       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.

 FCN=   5144.930     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      262 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    110.82        .18142E-01** at limit **
   2  Index         2.3485        7.5145        .50000        .27296E-06
   3  Normalizat    1.2210        .14314E-01    .24263E-03   -.73189E-04
   4  Prefactor     .73123        .11888E-01    .25236E-03   -.67574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.34853
  Normalizat = 1.22099
  Prefactor  = 0.731231
 **********
 **   18 **HESSE 
 **********

 FCN=   5144.930     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6471.4        .52480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3485        8.8235        .50000       -.55895    
   3  Normalizat    1.2210        .14428        .97052E-05   -.85957    
   4  Prefactor     .73123        .11983        .10095E-04   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.7172e-10
Minuit parameter uncertainties:
  1  0.00358236
  2  2334.66
  3  0.144326
  4  0.119874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85280': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5144.93023839
delta logL = 5.70920747123e-07

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  3.582e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.349e+00  2.335e+03  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.312e-01  1.199e-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.221e+00  1.443e-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/85280/cmap_HighResolution_669859201_670118401_4FGL_J2236.4-2309_daily_bin1661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2022-03-28 00:51:52.729516', job_id='85280', GAL2='0.73', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1648453912.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='5.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1661' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 28 00:51:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 85280: <4FGL_J2236.4-2309_daily_bin1661> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1661> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 28 00:40:34 2022
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 28 00:40:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 28 00:40:35 2022
Terminated at Mon Mar 28 00:51:55 2022
Results reported at Mon Mar 28 00:51:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1661 339.125 -23.1552 669859201 670118401 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 :                                   571.00 sec.
    Max Memory :                                 1161 MB
    Average Memory :                             336.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            681 sec.

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

