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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1440
RA = 339.125, Dec = -23.1552
tmin = 612576001, tmax = 612835201
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='409275', job_status='RUN', time_executed='2021-09-28 17:16:50.410419', time_epoch_executed='1632874610.41' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409275/ft1_4FGL_J2236.4-2309_daily_bin1440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409275/ft2_4FGL_J2236.4-2309_daily_bin1440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409275/ft1_4FGL_J2236.4-2309_daily_bin1440.fits outfile=/scratch/kocevski/409275/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1440.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=612576001.0 tmax=612835201.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 2.77
user 2.56
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409275/ft1_filtered_4FGL_J2236.4-2309_daily_bin1440.fits" evtable="EVENTS" scfile=/scratch/kocevski/409275/ft2_4FGL_J2236.4-2309_daily_bin1440.fits sctable="SC_DATA" outfile=/scratch/kocevski/409275/ltcube_612576001_612835201_4FGL_J2236.4-2309_daily_bin1440.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/409275/ft2_4FGL_J2236.4-2309_daily_bin1440.fits
.....................!
real 14.29
user 13.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409275/ft1_filtered_4FGL_J2236.4-2309_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/409275/ft2_4FGL_J2236.4-2309_daily_bin1440.fits sctable="SC_DATA" expcube=/scratch/kocevski/409275/ltcube_612576001_612835201_4FGL_J2236.4-2309_daily_bin1440.fits outfile=/scratch/kocevski/409275/expmap_612576001_612835201_4FGL_J2236.4-2309_daily_bin1440.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/409275/ltcube_612576001_612835201_4FGL_J2236.4-2309_daily_bin1440.fits
.....................!
real 190.18
user 185.24
sys 4.64

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409275/ft1_filtered_4FGL_J2236.4-2309_daily_bin1440.fits scfile=/scratch/kocevski/409275/ft2_4FGL_J2236.4-2309_daily_bin1440.fits outfile=/scratch/kocevski/409275/cmap_HighResolution_612576001_612835201_4FGL_J2236.4-2309_daily_bin1440.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409275/ft1_filtered_4FGL_J2236.4-2309_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/409275/ft2_4FGL_J2236.4-2309_daily_bin1440.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409275/Model_4FGL_J2236.4-2309_daily_bin1440.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/409275/ft1_filtered_4FGL_J2236.4-2309_daily_bin1440.fits.....................!
real 67.09
user 65.74
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.430       1.0000         .10000E-03   10000.    
     3 'norm      '    .59845       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8622       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10893E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.689       1.0000         .10000E-03   10000.    
     8 'norm      '    21.430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2818       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3424       1.0000         .10000E-03   10000.    
    11 'norm      '    .12573E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    66.601       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.418       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3223       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0887       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11841E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.2020       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2078       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2766       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71453       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=   8993.020     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2755 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    24.071        .39591E-05** at limit **
   2  Prefactor     45.469        38.490       -.89589E-06    .45828E-04
   3  norm          .59843        .24398        .70548E-08   -.21420E-03
   4  Prefactor     2.8604        5.8621        .22342E-05   -.95036E-03
   5  Prefactor     .10000E-03    11.258        .32977E-07** at limit **
   6  Prefactor     .10000E-03    4.6454       -.15468E-07** at limit **
   7  Prefactor     30.716        36.686       -.14141E-06    .77737E-04
   8  norm          21.453        14.476        .13749E-06    .24925E-04
   9  Prefactor     3.2830        8.9909       -.41434E-07   -.66674E-04
  10  norm          1.3423        .64578        .20122E-07   -.97359E-05
  11  norm          .10000E-03    1.0173       -.10492E-05** at limit **
  12  Prefactor     66.676        30.842        .19736E-05    .87006E-03
  13  Prefactor     11.419        8.8862        .35525E-07    .39786E-05
  14  Prefactor     .10000E-03    6.4938       -.34276E-07** at limit **
  15  norm          3.3223        .95306        .94590E-08   -.18629E-04
  16  norm          .10000E-03    .84351       -.12430E-06** at limit **
  17  Prefactor     .10000E-03    6.9859       -.14641E-07** at limit **
  18  Prefactor     5.1015        10.502        .20660E-07    .70382E-04
  19  Prefactor     .10000E-03    8.1829       -.71253E-06** at limit **
  20  norm          1.2024        .55030       -.30212E-07    .16868E-02
  21  Prefactor     .10000E-03    2.1583       -.17740E-07** at limit **
  22  Prefactor     4.2082        6.2778        .10573E-05   -.65809E-03
  23  Normalizat    1.2766        .15784        .35393E-06    .27653E-03
  24  Prefactor     .71453        .13654       -.77465E-06    .13249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 45.4693
  norm       = 0.598428
  Prefactor  = 2.86044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.7161
  norm       = 21.4529
  Prefactor  = 3.28303
  norm       = 1.34229
  norm       = 0.0001
  Prefactor  = 66.6762
  Prefactor  = 11.4193
  Prefactor  = 0.0001
  norm       = 3.32227
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.10154
  Prefactor  = 0.0001
  norm       = 1.2024
  Prefactor  = 0.0001
  Prefactor  = 4.2082
  Normalizat = 1.27663
  Prefactor  = 0.71453
 **********
 **   18 **HESSE 
 **********

 FCN=   8993.020     FROM HESSE     STATUS=OK           399 CALLS     3154 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    25.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.469        38.186        .59484E-04   -1.4358    
   3  norm          .59843        .24536        .29055E-04   -1.5553    
   4  Prefactor     2.8604        6.2050        .12014E-02   -1.5370    
   5  Prefactor     .10000E-03    11.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.716        36.563        .72326E-04   -1.4599    
   8  norm          21.453        14.465        .86523E-04   -1.4781    
   9  Prefactor     3.2830        8.9427        .22352E-03   -1.5346    
  10  norm          1.3423        .64469        .50666E-04   -1.5476    
  11  norm          .10000E-03    2.2031        .17188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     66.676        31.795        .49179E-04   -1.4073    
  13  Prefactor     11.419        8.9328        .11856E-03   -1.5032    
  14  Prefactor     .10000E-03    6.5113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3223        .95050        .47724E-04   -1.5343    
  16  norm          .10000E-03    .84872        .85012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1015        10.573        .17824E-03   -1.5256    
  19  Prefactor     .10000E-03    8.4123        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.2024        .55681        .39755E-04   -1.5489    
  21  Prefactor     .10000E-03    2.1624        .13605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2082        6.5196        .98228E-03   -1.5298    
  23  Normalizat    1.2766        .19140        .23139E-03   -.84267    
  24  Prefactor     .71453        .16340        .26247E-03   -1.0296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7099e-09
Minuit parameter uncertainties:
  1  0.00104897
  2  38.2061
  3  0.245358
  4  6.20637
  5  1.26762e-05
  6  3.88507e-06
  7  36.5899
  8  14.4677
  9  8.94637
  10  0.644693
  11  3.50373e-05
  12  31.8031
  13  8.93388
  14  5.40196e-06
  15  0.950503
  16  5.20846e-06
  17  8.07978e-07
  18  10.5772
  19  0.000117677
  20  0.556817
  21  1.48417e-06
  22  6.52066
  23  0.191507
  24  0.163507
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.283e+00  8.946e+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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.145e-01  1.635e-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.277e+00  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 8.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409275/likelihoodResults_612576001_612835201_4FGL_J2236.4-2309_daily_bin1440.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) = 8992.99684516
delta logL = 0.0229517380485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8992.99554118
delta logL = 0.0242557232996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9803       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0998       1.0000          .0000       10.000    
     3 'Normalizat'    1.2718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71738       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8992.996     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      272 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9768        8.5833        .11759E-02   -.87711E-04
   2  Index         3.0997        1.7928        .12096E-01   -.22183E-04
   3  Normalizat    1.2718        .18735        .23176E-03    .51998E-05
   4  Prefactor     .71741        .16196        .26198E-03    .24475E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.97684
  Index      = 3.09968
  Normalizat = 1.27179
  Prefactor  = 0.717411
 **********
 **   18 **HESSE 
 **********

 FCN=   8992.996     FROM HESSE     STATUS=OK            27 CALLS      299 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9768        7.8745        .47035E-04   -1.5363    
   2  Index         3.0997        1.6525        .48384E-03   -.38987    
   3  Normalizat    1.2718        .18767        .92702E-05   -.84412    
   4  Prefactor     .71741        .16218        .10479E-04   -1.0285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7247e-11
Minuit parameter uncertainties:
  1  7.87722
  2  1.68988
  3  0.187769
  4  0.162289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409275': 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) = 8992.99554089
delta logL = 0.0242560175011

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.174e-01  1.623e-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.272e+00  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/409275/cmap_HighResolution_612576001_612835201_4FGL_J2236.4-2309_daily_bin1440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', job_status='DONE', photon_flux_upper_limit='8.32e-08', time_completed='2021-09-28 17:30:02.392323', job_id='409275', GAL2='0.72', fit_tolerance='1e-08', EG2='1.27', EG='1.28', time_epoch_completed='1632875402.39', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.43e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1440' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:30:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 409275: <4FGL_J2236.4-2309_daily_bin1440> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1440> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:15:22 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:15:23 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:23 2021
Terminated at Tue Sep 28 17:30:03 2021
Results reported at Tue Sep 28 17:30:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1440 339.125 -23.1552 612576001 612835201 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 :                                   788.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

