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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1505
RA = 339.125, Dec = -23.1552
tmin = 629424001, tmax = 629683201
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='409371', job_status='RUN', time_executed='2021-09-28 17:17:18.891749', time_epoch_executed='1632874638.89' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409371

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409371/ft1_4FGL_J2236.4-2309_daily_bin1505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409371/ft2_4FGL_J2236.4-2309_daily_bin1505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409371/ft1_4FGL_J2236.4-2309_daily_bin1505.fits outfile=/scratch/kocevski/409371/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1505.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=629424001.0 tmax=629683201.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/409371/ft2_4FGL_J2236.4-2309_daily_bin1505.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/409371/ft2_4FGL_J2236.4-2309_daily_bin1505.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/409371/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1505.fits evtable="EVENTS" outfile="/scratch/kocevski/409371/ft1_filtered_4FGL_J2236.4-2309_daily_bin1505.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409371/ft1_filtered_4FGL_J2236.4-2309_daily_bin1505.fits" evtable="EVENTS" scfile=/scratch/kocevski/409371/ft2_4FGL_J2236.4-2309_daily_bin1505.fits sctable="SC_DATA" outfile=/scratch/kocevski/409371/ltcube_629424001_629683201_4FGL_J2236.4-2309_daily_bin1505.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/409371/ft2_4FGL_J2236.4-2309_daily_bin1505.fits
.....................!
real 11.88
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409371/ft1_filtered_4FGL_J2236.4-2309_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/409371/ft2_4FGL_J2236.4-2309_daily_bin1505.fits sctable="SC_DATA" expcube=/scratch/kocevski/409371/ltcube_629424001_629683201_4FGL_J2236.4-2309_daily_bin1505.fits outfile=/scratch/kocevski/409371/expmap_629424001_629683201_4FGL_J2236.4-2309_daily_bin1505.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/409371/ltcube_629424001_629683201_4FGL_J2236.4-2309_daily_bin1505.fits
.....................!
real 190.89
user 185.90
sys 4.56

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/409371/ft1_filtered_4FGL_J2236.4-2309_daily_bin1505.fits scfile=/scratch/kocevski/409371/ft2_4FGL_J2236.4-2309_daily_bin1505.fits outfile=/scratch/kocevski/409371/cmap_629424001_629683201_4FGL_J2236.4-2309_daily_bin1505.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409371/ft1_filtered_4FGL_J2236.4-2309_daily_bin1505.fits scfile=/scratch/kocevski/409371/ft2_4FGL_J2236.4-2309_daily_bin1505.fits outfile=/scratch/kocevski/409371/cmap_HighResolution_629424001_629683201_4FGL_J2236.4-2309_daily_bin1505.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409371/ft1_filtered_4FGL_J2236.4-2309_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/409371/ft2_4FGL_J2236.4-2309_daily_bin1505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409371/Model_4FGL_J2236.4-2309_daily_bin1505.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/409371/ft1_filtered_4FGL_J2236.4-2309_daily_bin1505.fits.....................!
real 55.19
user 53.76
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11096E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    103.14       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8377       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.141       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.318       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10440E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.029       1.0000         .10000E-03   10000.    
     8 'norm      '    40.062       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0532       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.982       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8448       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.907       1.0000         .10000E-03   10000.    
    15 'norm      '    7.9670       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    73.457       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .93814E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14133E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8583       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .60342E-01   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97278       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84198       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=   6522.151     FROM MIGRAD    STATUS=FAILED      1053 CALLS     2916 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.805        .20693E-02** at limit **
   2  Prefactor     104.41        62.479        .19796E-03    .21765E-04
   3  norm          1.8370        .47410        .27260E-04    .34949E-03
   4  Prefactor     10.978        10.121        .60015E-03   -.17268E-03
   5  Prefactor     25.385        16.656        .79612E-04    .51408E-05
   6  Prefactor     .30090        24.630        .92341E-01    .20212E-03
   7  Prefactor     11.974        55.534        .12064E-03   -.13193E-05
   8  norm          39.761        24.282        .63328E-04    .49691E-04
   9  Prefactor     .10000E-03    6.0623        .18142E-02** at limit **
  10  norm          2.0510        1.1044        .14423E-03   -.45764E-03
  11  norm          .10000E-03    1.3825        .18211E-03** at limit **
  12  Prefactor     54.650        43.095        .54592E-04    .10679E-03
  13  Prefactor     2.7437        10.957        .24107E-03   -.29191E-04
  14  Prefactor     14.287        53.104        .10740E-03    .36095E-04
  15  norm          7.9761        3.9915        .53275E-04    .25138E-03
  16  norm          .10000E-03    .91193        .75242E-03** at limit **
  17  Prefactor     72.215        77.938        .46844E-04   -.82418E-04
  18  Prefactor     .10000E-03    21.705        .41608E-03** at limit **
  19  Prefactor     .10000E-03    11.896        .36285E-03** at limit **
  20  norm          1.8563        .74611        .36944E-04    .18602E-02
  21  Prefactor     .10000E-03    3.2219        .14143E-02** at limit **
  22  Prefactor     .15416        171.20        .35677E-02    .62722E-03
  23  Normalizat    .97226        .23117        .26919E-03    .49100E-03
  24  Prefactor     .84169        .18885        .25198E-03    .86716E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6522.151     FROM SIMPLEX   STATUS=UNCHANGED   1156 CALLS     4072 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.805        .52712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     104.41        62.479        .98072E-06   -1.3661    
   3  norm          1.8370        .47410        .11101E-05   -1.5437    
   4  Prefactor     10.978        10.121        .11130E-05   -1.5045    
   5  Prefactor     25.385        16.656        .10832E-05   -1.4700    
   6  Prefactor     .30090        24.630        .12486E-05   -1.5598    
   7  Prefactor     11.974        55.534        .10934E-05   -1.5016    
   8  norm          39.761        24.282        .10372E-05   -1.4446    
   9  Prefactor     .10000E-03    6.0623        .29186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0510        1.1044        .11053E-05   -1.5422    
  11  norm          .10000E-03    1.3825        .11593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     54.650        43.095        .10359E-05   -1.4228    
  13  Prefactor     2.7437        10.957        .11399E-05   -1.5377    
  14  Prefactor     14.287        53.104        .11742E-05   -1.4952    
  15  norm          7.9761        3.9915        .10903E-05   -1.5143    
  16  norm          .10000E-03    .91193        .16257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     72.215        77.938        .10070E-05   -1.4006    
  18  Prefactor     .10000E-03    21.705        .66461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.896        .38534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8563        .74611        .11056E-05   -1.5435    
  21  Prefactor     .10000E-03    3.2219        .19693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .15416        171.20        .10433E-05   -1.5629    
  23  Normalizat    .97226        .23117        .67253E-06   -.93966    
  24  Prefactor     .84169        .18885        .70363E-06   -.98209    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6522.151     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     4462 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.805        .41385E-03** at limit **
   2  Prefactor     104.41        62.463        .79185E-05   -.17229E-05
   3  norm          1.8370        .47407        .10904E-05   -.61779E-05
   4  Prefactor     10.978        10.118        .24006E-04   -.26426E-04
   5  Prefactor     25.385        16.651        .31845E-05   -.71400E-06
   6  Prefactor     .30091        22.540        .97517E-01    .18072E-03
   7  Prefactor     11.974        55.496        .48255E-05   -.47119E-06
   8  norm          39.761        24.279        .12666E-04   -.37699E-05
   9  Prefactor     .10000E-03    6.0633        .36285E-03** at limit **
  10  norm          2.0510        1.1041        .57693E-05   -.31529E-04
  11  norm          .10000E-03    1.3825        .36421E-04** at limit **
  12  Prefactor     54.650        43.092        .10918E-04   -.45814E-05
  13  Prefactor     2.7438        10.947        .96429E-05   -.56591E-05
  14  Prefactor     14.287        53.035        .42962E-05    .15877E-05
  15  norm          7.9761        3.9921        .21310E-05    .13871E-04
  16  norm          .10000E-03    .91194        .15048E-03** at limit **
  17  Prefactor     72.216        77.881        .93688E-05   -.58246E-05
  18  Prefactor     .10000E-03    21.707        .83215E-04** at limit **
  19  Prefactor     .10000E-03    11.897        .72569E-04** at limit **
  20  norm          1.8563        .71861        .14778E-05   -.29780E-03
  21  Prefactor     .10000E-03    3.2221        .28287E-03** at limit **
  22  Prefactor     .15433        161.59        .71354E-03    .78548E-05
  23  Normalizat    .97225        .23033        .53837E-04   -.19976E-04
  24  Prefactor     .84169        .18895        .10079E-04   -.42862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 104.411
  norm       = 1.83702
  Prefactor  = 10.9785
  Prefactor  = 25.3846
  Prefactor  = 0.300911
  Prefactor  = 11.9738
  norm       = 39.7613
  Prefactor  = 0.0001
  norm       = 2.05099
  norm       = 0.0001
  Prefactor  = 54.6502
  Prefactor  = 2.74378
  Prefactor  = 14.287
  norm       = 7.97606
  norm       = 0.0001
  Prefactor  = 72.2158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.85626
  Prefactor  = 0.0001
  Prefactor  = 0.154326
  Normalizat = 0.972248
  Prefactor  = 0.841693
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.151     FROM HESSE     STATUS=OK           383 CALLS     4845 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.805        .82770E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     104.41        62.485        .15837E-05   -1.3661    
   3  norm          1.8370        .47407        .36804E-06   -1.5437    
   4  Prefactor     10.978        10.118        .48012E-05   -1.5045    
   5  Prefactor     25.385        16.682        .63690E-06   -1.4700    
   6  Prefactor     .30091        23.237        .95660E-01   -1.5598    
   7  Prefactor     11.974        56.010        .96510E-06   -1.5016    
   8  norm          39.761        24.279        .25331E-05   -1.4446    
   9  Prefactor     .10000E-03    6.0633        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0510        1.1040        .11539E-05   -1.5422    
  11  norm          .10000E-03    1.3825        .72842E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     54.650        43.090        .21837E-05   -1.4228    
  13  Prefactor     2.7438        10.947        .19286E-05   -1.5377    
  14  Prefactor     14.287        52.416        .85923E-06   -1.4952    
  15  norm          7.9761        3.9569        .42620E-06   -1.5143    
  16  norm          .10000E-03    .91194        .30097E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     72.216        77.624        .18738E-05   -1.4006    
  18  Prefactor     .10000E-03    21.706        .16643E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.897        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8563        .71223        .36801E-06   -1.5435    
  21  Prefactor     .10000E-03    3.2221        .56573E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .15433        157.99        .28542E-04   -1.5629    
  23  Normalizat    .97225        .23030        .10767E-04   -.93966    
  24  Prefactor     .84169        .18896        .20158E-05   -.98209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50276e-10
Minuit parameter uncertainties:
  1  6.31916e-06
  2  62.5241
  3  0.474075
  4  10.1193
  5  16.6852
  6  5.28983
  7  51.8732
  8  24.2853
  9  7.40823e-07
  10  1.104
  11  2.07429e-06
  12  43.1143
  13  10.9552
  14  52.5853
  15  3.95704
  16  1.08905e-07
  17  77.7333
  18  8.96422e-06
  19  4.81124e-06
  20  0.712236
  21  4.85408e-07
  22  9.89857
  23  0.230534
  24  0.189103
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  7.408e-07  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:  8.417e-01  1.891e-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.722e-01  2.305e-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.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409371/likelihoodResults_629424001_629683201_4FGL_J2236.4-2309_daily_bin1505.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) = 6522.15179845
delta logL = -0.000786091223745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6522.15101242
delta logL = -6.85367922415e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7423       1.0000          .0000       10.000    
     3 'Normalizat'    .97222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84173       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=   6522.151     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      226 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4467        .18142E-02** at limit **
   2  Index         2.6669        6.1888        .91069E-01   -.53680E-08
   3  Normalizat    .97225        .20813        .26918E-03   -.56551E-04
   4  Prefactor     .84169        .18355        .25198E-03   -.76068E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.66692
  Normalizat = 0.972248
  Prefactor  = 0.841693
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.151     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0671        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6669        7.9943        .36427E-02   -.48546    
   3  Normalizat    .97225        .20834        .10767E-04   -.93966    
   4  Prefactor     .84169        .18374        .10079E-04   -.98209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44787e-12
Minuit parameter uncertainties:
  1  2.18314e-06
  2  710.025
  3  0.208512
  4  0.183873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409371': 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) = 6522.15101235
delta logL = 4.93764673593e-09

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.417e-01  1.839e-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.722e-01  2.085e-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/409371/cmap_HighResolution_629424001_629683201_4FGL_J2236.4-2309_daily_bin1505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', job_status='DONE', photon_flux_upper_limit='7.49e-08', time_completed='2021-09-28 17:30:18.651205', job_id='409371', GAL2='0.84', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632875418.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.94e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1505' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:30:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 409371: <4FGL_J2236.4-2309_daily_bin1505> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1505> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:15:30 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:15:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:15:31 2021
Terminated at Tue Sep 28 17:30:19 2021
Results reported at Tue Sep 28 17:30:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1505 339.125 -23.1552 629424001 629683201 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            889 sec.

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

