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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1561
RA = 339.125, Dec = -23.1552
tmin = 643939201, tmax = 644198401
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='409453', job_status='RUN', time_executed='2021-09-28 17:16:41.681394', time_epoch_executed='1632874601.68' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409453

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409453/ft1_4FGL_J2236.4-2309_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409453/ft2_4FGL_J2236.4-2309_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409453/ft1_4FGL_J2236.4-2309_daily_bin1561.fits outfile=/scratch/kocevski/409453/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1561.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=643939201.0 tmax=644198401.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.41
user 4.18
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409453/ft1_filtered_4FGL_J2236.4-2309_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/409453/ft2_4FGL_J2236.4-2309_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/409453/ltcube_643939201_644198401_4FGL_J2236.4-2309_daily_bin1561.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/409453/ft2_4FGL_J2236.4-2309_daily_bin1561.fits
.....................!
real 11.90
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409453/ft1_filtered_4FGL_J2236.4-2309_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/409453/ft2_4FGL_J2236.4-2309_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/409453/ltcube_643939201_644198401_4FGL_J2236.4-2309_daily_bin1561.fits outfile=/scratch/kocevski/409453/expmap_643939201_644198401_4FGL_J2236.4-2309_daily_bin1561.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/409453/ltcube_643939201_644198401_4FGL_J2236.4-2309_daily_bin1561.fits
.....................!
real 191.12
user 186.45
sys 4.25

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/409453/ft1_filtered_4FGL_J2236.4-2309_daily_bin1561.fits scfile=/scratch/kocevski/409453/ft2_4FGL_J2236.4-2309_daily_bin1561.fits outfile=/scratch/kocevski/409453/cmap_643939201_644198401_4FGL_J2236.4-2309_daily_bin1561.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409453/ft1_filtered_4FGL_J2236.4-2309_daily_bin1561.fits scfile=/scratch/kocevski/409453/ft2_4FGL_J2236.4-2309_daily_bin1561.fits outfile=/scratch/kocevski/409453/cmap_HighResolution_643939201_644198401_4FGL_J2236.4-2309_daily_bin1561.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.40
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409453/ft1_filtered_4FGL_J2236.4-2309_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/409453/ft2_4FGL_J2236.4-2309_daily_bin1561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409453/Model_4FGL_J2236.4-2309_daily_bin1561.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/409453/ft1_filtered_4FGL_J2236.4-2309_daily_bin1561.fits.....................!
real 65.13
user 63.68
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    113.17       1.0000         .10000E-03   10000.    
     3 'norm      '    .66069       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.1028       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .49308       1.0000         .10000E-03   10000.    
    11 'norm      '    .92823E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.015       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.693       1.0000         .10000E-03   10000.    
    15 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .97502       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9398       1.0000         .10000E-03   10000.    
    20 'norm      '    .23053       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .66949       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2742       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=   8536.845     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2820 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.883       -.14486E-05** at limit **
   2  Prefactor     113.16        47.573       -.79591E-06   -.19486E-04
   3  norm          .66075        .26834        .32365E-08    .94185E-04
   4  Prefactor     .10000E-03    7.6858        .73410E-09** at limit **
   5  Prefactor     .10000E-03    3.2173        .10570E-07** at limit **
   6  Prefactor     .10000E-03    6.2009        .25151E-07** at limit **
   7  Prefactor     .10000E-03    55.731       -.13329E-05** at limit **
   8  norm          7.0965        15.060        .23081E-06    .67353E-04
   9  Prefactor     .10000E-03    3.9520        .15001E-07** at limit **
  10  norm          .49309        .63003        .14599E-06    .35715E-03
  11  norm          .15831E-01    .86830       -.65638E-06    .21616E-02
  12  Prefactor     .10000E-03    38.101        .73080E-06** at limit **
  13  Prefactor     29.016        11.595       -.56966E-07    .29057E-04
  14  Prefactor     32.691        12.819        .29214E-06    .10198E-03
  15  norm          .10000E-03    .41492       -.66426E-07** at limit **
  16  norm          .97465        2.4175        .45464E-07   -.11407E-03
  17  Prefactor     .10000E-03    42.306        .70277E-06** at limit **
  18  Prefactor     .10000E-03    2.7170       -.12337E-06** at limit **
  19  Prefactor     1.9399        5.4761        .22888E-05    .16897E-03
  20  norm          .23050        .31779       -.25952E-06   -.25116E-02
  21  Prefactor     .10000E-03    2.8875        .15912E-07** at limit **
  22  Prefactor     .10000E-03    1.8241       -.11092E-06** at limit **
  23  Normalizat    .66947        .15788       -.33422E-06    .12246E-03
  24  Prefactor     1.2742        .14093       -.94001E-07    .14416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 113.165
  norm       = 0.660747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 7.09648
  Prefactor  = 0.0001
  norm       = 0.493089
  norm       = 0.0158312
  Prefactor  = 0.000100002
  Prefactor  = 29.0162
  Prefactor  = 32.6907
  norm       = 0.0001
  norm       = 0.974653
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.93986
  norm       = 0.230498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.669475
  Prefactor  = 1.27418
 **********
 **   18 **HESSE 
 **********

 FCN=   8536.845     FROM HESSE     STATUS=OK           409 CALLS     3229 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     113.16        46.825        .37815E-04   -1.3576    
   3  norm          .66075        .26713        .29571E-04   -1.5545    
   4  Prefactor     .10000E-03    7.9028        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2357        .16184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    56.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.0965        15.039        .15052E-03   -1.5175    
   9  Prefactor     .10000E-03    3.9869        .17932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .49309        .57139        .78856E-03   -1.5568    
  11  norm          .15831E-01    .98425        .28601E-01   -1.5683    
  12  Prefactor     .10000E-03    38.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.016        11.631        .74378E-04   -1.4630    
  14  Prefactor     32.691        11.091        .70081E-04   -1.4564    
  15  norm          .10000E-03    .57530        .10046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .97465        1.8909        .19428E-02   -1.5511    
  17  Prefactor     .10000E-03    42.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7225        .14876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9399        5.3221        .29416E-03   -1.5429    
  20  norm          .23050        .29734        .57134E-03   -1.5612    
  21  Prefactor     .10000E-03    2.8952        .15332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.8309        .12191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .66947        .18297        .29539E-03   -1.0511    
  24  Prefactor     1.2742        .16390        .20298E-03   -.84078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15769e-08
Minuit parameter uncertainties:
  1  0.000137164
  2  46.8407
  3  0.267133
  4  7.93492e-06
  5  2.08157e-07
  6  6.29629e-06
  7  0.000922193
  8  15.0471
  9  1.46962e-06
  10  0.571397
  11  0.248869
  12  0.000499373
  13  11.6321
  14  11.0916
  15  8.52949e-06
  16  1.89102
  17  0.000305917
  18  8.73981e-06
  19  5.32342
  20  0.297344
  21  4.30236e-07
  22  7.07267e-06
  23  0.183141
  24  0.163965
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.470e-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:  1.274e+00  1.640e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  6.695e-01  1.831e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409453/likelihoodResults_643939201_644198401_4FGL_J2236.4-2309_daily_bin1561.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) = 8536.84621875
delta logL = -0.00119482855007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8536.69226719
delta logL = 0.152756731206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46390E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9563       1.0000          .0000       10.000    
     3 'Normalizat'    .64208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2911       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=   8536.692     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      415 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43897E-03    .34918E-01    .74274E-03** at limit **
   2  Index        10.0000        7.3530        .50000    ** at limit **
   3  Normalizat    .64244        .38290E-01    .68090E-01   -.77978E-03
   4  Prefactor     1.2909        .34724E-01    .32766E-01   -.39798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00043897
  Index      = 10
  Normalizat = 0.642438
  Prefactor  = 1.2909
 **********
 **   18 **HESSE 
 **********

 FCN=   8536.692     FROM HESSE     STATUS=OK            33 CALLS      448 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43897E-03    .10093E-02    .36549E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        8.2713        .50000        1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .64244        .18107        .30133E-03   -1.0621    
   4  Prefactor     1.2909        .16337        .20188E-03   -.83578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54267e-09
Minuit parameter uncertainties:
  1  0.0010093
  2  0.00334992
  3  0.181239
  4  0.163436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409453': 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) = 8536.69220171
delta logL = 0.152822206093

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.390e-04  1.009e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.000e+01  3.350e-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:  1.291e+00  1.634e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  6.424e-01  1.812e-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/409453/cmap_HighResolution_643939201_644198401_4FGL_J2236.4-2309_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-03', job_status='DONE', photon_flux_upper_limit='4.89e-08', time_completed='2021-09-28 17:29:40.116814', job_id='409453', GAL2='1.29', fit_tolerance='1e-08', EG2='0.64', EG='0.67', time_epoch_completed='1632875380.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.53e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1561' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:29:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 409453: <4FGL_J2236.4-2309_daily_bin1561> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1561 339.125 -23.1552 643939201 644198401 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.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            844 sec.

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

