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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1186
RA = 339.125, Dec = -23.1552
tmin = 546739201, tmax = 546998401
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='407944', job_status='RUN', time_executed='2021-09-28 17:11:49.201394', time_epoch_executed='1632874309.2' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407944

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407944/ft1_4FGL_J2236.4-2309_daily_bin1186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407944/ft2_4FGL_J2236.4-2309_daily_bin1186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407944/ft1_4FGL_J2236.4-2309_daily_bin1186.fits outfile=/scratch/kocevski/407944/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1186.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=546739201.0 tmax=546998401.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.60
user 3.40
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407944/ft1_filtered_4FGL_J2236.4-2309_daily_bin1186.fits" evtable="EVENTS" scfile=/scratch/kocevski/407944/ft2_4FGL_J2236.4-2309_daily_bin1186.fits sctable="SC_DATA" outfile=/scratch/kocevski/407944/ltcube_546739201_546998401_4FGL_J2236.4-2309_daily_bin1186.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/407944/ft2_4FGL_J2236.4-2309_daily_bin1186.fits
.....................!
real 11.83
user 11.50
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407944/ft1_filtered_4FGL_J2236.4-2309_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/407944/ft2_4FGL_J2236.4-2309_daily_bin1186.fits sctable="SC_DATA" expcube=/scratch/kocevski/407944/ltcube_546739201_546998401_4FGL_J2236.4-2309_daily_bin1186.fits outfile=/scratch/kocevski/407944/expmap_546739201_546998401_4FGL_J2236.4-2309_daily_bin1186.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/407944/ltcube_546739201_546998401_4FGL_J2236.4-2309_daily_bin1186.fits
.....................!
real 189.41
user 184.86
sys 4.23

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/407944/ft1_filtered_4FGL_J2236.4-2309_daily_bin1186.fits scfile=/scratch/kocevski/407944/ft2_4FGL_J2236.4-2309_daily_bin1186.fits outfile=/scratch/kocevski/407944/cmap_546739201_546998401_4FGL_J2236.4-2309_daily_bin1186.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.52
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .27376       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5993       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.140       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.748       1.0000         .10000E-03   10000.    
     8 'norm      '    21.076       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7036       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4697       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5271       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.909       1.0000         .10000E-03   10000.    
    15 'norm      '    .12281E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.464       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1358       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.932       1.0000         .10000E-03   10000.    
    20 'norm      '    .82393       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10910E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98863       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94211       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=   3086.092     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2765 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.436        .46100E-07** at limit **
   2  Prefactor     .10000E-03    46.574        .15988E-06** at limit **
   3  norm          .27377        .25966       -.55642E-08    .12207E-03
   4  Prefactor     5.5980        9.7877        .16530E-05   -.64858E-03
   5  Prefactor     11.143        19.398        .79081E-07   -.18086E-04
   6  Prefactor     .10000E-03    22.060        .44856E-06** at limit **
   7  Prefactor     27.629        79.221       -.40461E-05   -.17506E-03
   8  norm          21.058        32.836       -.20228E-06   -.42624E-04
   9  Prefactor     8.7042        15.912        .55248E-07   -.57289E-05
  10  norm          2.4693        1.3022       -.15888E-07   -.59371E-03
  11  norm          3.5274        3.5128       -.14489E-08    .13706E-04
  12  Prefactor     .10000E-03    25.917       -.90832E-07** at limit **
  13  Prefactor     .10000E-03    20.115       -.14527E-06** at limit **
  14  Prefactor     41.853        24.293       -.44371E-05   -.10232E-02
  15  norm          .10000E-03    1.2651        .37814E-05** at limit **
  16  norm          19.458        13.919        .78143E-07   -.48145E-04
  17  Prefactor     9.0524        46.219       -.54004E-05   -.32457E-03
  18  Prefactor     .10000E-03    25.750       -.15718E-06** at limit **
  19  Prefactor     29.906        30.842       -.13672E-06   -.64304E-04
  20  norm          .82567        2.0090        .44803E-07   -.25189E-04
  21  Prefactor     .10000E-03    43.266        .59863E-06** at limit **
  22  Prefactor     .10000E-03    11.172       -.11873E-06** at limit **
  23  Normalizat    .98729        .30945       -.59519E-06   -.12198E-03
  24  Prefactor     .94318        .24422        .43034E-06   -.27012E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.273766
  Prefactor  = 5.59802
  Prefactor  = 11.1429
  Prefactor  = 0.0001
  Prefactor  = 27.6291
  norm       = 21.0577
  Prefactor  = 8.70424
  norm       = 2.46933
  norm       = 3.52737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.8528
  norm       = 0.000100003
  norm       = 19.4578
  Prefactor  = 9.05236
  Prefactor  = 0.0001
  Prefactor  = 29.9061
  norm       = 0.825671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.987291
  Prefactor  = 0.943182
 **********
 **   18 **HESSE 
 **********

 FCN=   3086.092     FROM HESSE     STATUS=OK           399 CALLS     3164 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .27377        .27439        .26918E-03   -1.5603    
   4  Prefactor     5.5980        9.7303        .84887E-03   -1.5235    
   5  Prefactor     11.143        19.505        .12003E-03   -1.5040    
   6  Prefactor     .10000E-03    22.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.629        78.964        .76054E-04   -1.4656    
   8  norm          21.058        32.822        .87247E-04   -1.4790    
   9  Prefactor     8.7042        15.908        .13587E-03   -1.5118    
  10  norm          2.4693        1.3022        .43507E-04   -1.5394    
  11  norm          3.5274        3.5123        .10002E-03   -1.5332    
  12  Prefactor     .10000E-03    25.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.853        25.417        .61922E-04   -1.4413    
  15  norm          .10000E-03    1.7726        .11555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.458        13.801        .90784E-04   -1.4825    
  17  Prefactor     9.0524        46.339        .13260E-03   -1.5106    
  18  Prefactor     .10000E-03    25.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.906        30.229        .73232E-04   -1.4614    
  20  norm          .82567        1.8413        .78647E-03   -1.5526    
  21  Prefactor     .10000E-03    44.831        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.180        .18125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .98729        .38294        .29372E-03   -.93457    
  24  Prefactor     .94318        .30117        .24210E-03   -.94648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80928e-09
Minuit parameter uncertainties:
  1  7.12596e-06
  2  3.58077e-05
  3  0.274391
  4  9.73304
  5  19.5158
  6  9.50072e-05
  7  79.265
  8  32.8501
  9  15.9158
  10  1.30217
  11  3.51251
  12  1.99968e-05
  13  0.000104505
  14  25.4239
  15  0.000147414
  16  13.8037
  17  41.0124
  18  2.50527e-05
  19  30.2446
  20  1.84147
  21  0.000252846
  22  3.09852e-05
  23  0.384015
  24  0.301708
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  8.704e+00  1.592e+01  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:  9.432e-01  3.017e-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:  9.873e-01  3.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407944/likelihoodResults_546739201_546998401_4FGL_J2236.4-2309_daily_bin1186.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): 0
logL (Free Index) = 3085.59716506
delta logL = 0.495063299393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3085.54945209
delta logL = 0.542776275248

Fit tolerance = 1e-08

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

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

 FCN=   3085.549     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      213 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.057        14.480        .27729E-02    .22649E-03
   2  Index         1.7890        .53007        .20072       -.32759E-04
   3  Normalizat    1.0144        .29386        .65556E-01    .63805E-05
   4  Prefactor     .91801        .23858        .45233E-01    .53448E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0571
  Index      = 1.78898
  Normalizat = 1.01437
  Prefactor  = 0.918014
 **********
 **   18 **HESSE 
 **********

 FCN=   3085.549     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.057        15.704        .55458E-03   -1.4985    
   2  Index         1.7890        .68093        .74986E-02   -.69737    
   3  Normalizat    1.0144        .35729        .28997E-03   -.92551    
   4  Prefactor     .91801        .29023        .24457E-03   -.95514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43879e-10
Minuit parameter uncertainties:
  1  15.7088
  2  0.68456
  3  0.358142
  4  0.290722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407944': 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) = 3085.54944861
delta logL = 0.542779750052

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.180e-01  2.907e-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.014e+00  3.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 1.79 +/- 0.68
Photon Flux (Free Index): 2.41e-08 +/- 3.10e-08
Energy Flux (Free Index): 2.99e-05 +/- 5.37e-05

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/407944/cmap_HighResolution_546739201_546998401_4FGL_J2236.4-2309_daily_bin1186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', comment='SUCCESS', energy_flux2='2.99e-05', dlogl='5.43e-01', photon_flux2='2.41e-08', job_status='DONE', time_completed='2021-09-28 17:19:36.550606', photon_index_error2='0.68', photon_index2='1.79', ts='0.40', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.89e-07', energy_flux_error2='5.37e-05', EG='0.99', time_epoch_completed='1632874776.55', return_code='0', job_id='407944', GAL2='0.92', EG2='1.01', return_code2='0', photon_flux_error2='3.10e-08', ts2='1.49', photon_index='2.74' WHERE bin_id='1186' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:19:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 407944: <4FGL_J2236.4-2309_daily_bin1186> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1186 339.125 -23.1552 546739201 546998401 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 :                                   465.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             323.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   529 sec.
    Turnaround time :                            531 sec.

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

