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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1604
RA = 339.125, Dec = -23.1552
tmin = 655084801, tmax = 655344001
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='10684', job_status='RUN', time_executed='2021-10-08 00:29:27.900904', time_epoch_executed='1633678167.9' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10684/ft1_4FGL_J2236.4-2309_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10684/ft2_4FGL_J2236.4-2309_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10684/ft1_4FGL_J2236.4-2309_daily_bin1604.fits outfile=/scratch/kocevski/10684/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1604.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=655084801.0 tmax=655344001.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.89
user 2.69
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10684/ft1_filtered_4FGL_J2236.4-2309_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/10684/ft2_4FGL_J2236.4-2309_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/10684/ltcube_655084801_655344001_4FGL_J2236.4-2309_daily_bin1604.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/10684/ft2_4FGL_J2236.4-2309_daily_bin1604.fits
.....................!
real 14.41
user 13.96
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10684/ft1_filtered_4FGL_J2236.4-2309_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/10684/ft2_4FGL_J2236.4-2309_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/10684/ltcube_655084801_655344001_4FGL_J2236.4-2309_daily_bin1604.fits outfile=/scratch/kocevski/10684/expmap_655084801_655344001_4FGL_J2236.4-2309_daily_bin1604.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/10684/ltcube_655084801_655344001_4FGL_J2236.4-2309_daily_bin1604.fits
.....................!
real 192.08
user 186.29
sys 5.34

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/10684/ft1_filtered_4FGL_J2236.4-2309_daily_bin1604.fits scfile=/scratch/kocevski/10684/ft2_4FGL_J2236.4-2309_daily_bin1604.fits outfile=/scratch/kocevski/10684/cmap_655084801_655344001_4FGL_J2236.4-2309_daily_bin1604.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10684/ft1_filtered_4FGL_J2236.4-2309_daily_bin1604.fits scfile=/scratch/kocevski/10684/ft2_4FGL_J2236.4-2309_daily_bin1604.fits outfile=/scratch/kocevski/10684/cmap_HighResolution_655084801_655344001_4FGL_J2236.4-2309_daily_bin1604.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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10684/ft1_filtered_4FGL_J2236.4-2309_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/10684/ft2_4FGL_J2236.4-2309_daily_bin1604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10684/Model_4FGL_J2236.4-2309_daily_bin1604.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/10684/ft1_filtered_4FGL_J2236.4-2309_daily_bin1604.fits.....................!
real 43.59
user 42.27
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1747       1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.158       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2718       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.792       1.0000         .10000E-03   10000.    
    10 'norm      '    .31229E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4990       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5386       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.393       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.789       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .44591       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.5656       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=   5046.208     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     3512 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1701        25.509       -.10612E-06   -.21766E-04
   2  Prefactor     44.176        81.114        .30883E-06    .53974E-04
   3  norm          1.2718        .37789        .43865E-08    .29834E-04
   4  Prefactor     .10000E-03    7.7518        .16914E-06** at limit **
   5  Prefactor     .10000E-03    13.694       -.57340E-07** at limit **
   6  Prefactor     .10000E-03    8.0053        .23199E-07** at limit **
   7  Prefactor     .10000E-03    84.421       -.64917E-07** at limit **
   8  norm          .10000E-03    11.732       -.26650E-06** at limit **
   9  Prefactor     14.797        18.961       -.53073E-06   -.21767E-03
  10  norm          .36022E-01    .59163       -.35047E-07   -.45624E-04
  11  norm          .10000E-03    1.4548       -.16936E-05** at limit **
  12  Prefactor     2.4799        175.51        .77949E-05    .24840E-05
  13  Prefactor     1.5400        25.079        .83301E-05   -.54469E-03
  14  Prefactor     .10000E-03    74.667        .78881E-06** at limit **
  15  norm          .10000E-03    1.2449        .29571E-06** at limit **
  16  norm          .10000E-03    1.5126        .95902E-08** at limit **
  17  Prefactor     .10000E-03    39.982        .85333E-07** at limit **
  18  Prefactor     .10000E-03    5.7401        .58690E-07** at limit **
  19  Prefactor     19.394        11.069       -.75388E-06   -.94258E-03
  20  norm          .10000E-03    .29522        .40757E-06** at limit **
  21  Prefactor     27.789        16.858        .11265E-06    .51552E-05
  22  Prefactor     .10000E-03    13.249        .53764E-06** at limit **
  23  Normalizat    .44587        .26180       -.38708E-05   -.19324E-03
  24  Prefactor     1.5656        .21256        .11346E-05   -.19799E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.17007
  Prefactor  = 44.1764
  norm       = 1.27177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 14.7968
  norm       = 0.0360222
  norm       = 0.000100002
  Prefactor  = 2.47987
  Prefactor  = 1.54002
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.394
  norm       = 0.0001
  Prefactor  = 27.7888
  Prefactor  = 0.0001
  Normalizat = 0.445867
  Prefactor  = 1.56561
 **********
 **   18 **HESSE 
 **********

 FCN=   5046.208     FROM HESSE     STATUS=OK           397 CALLS     3909 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1701        25.477        .13232E-03   -1.5102    
   2  Prefactor     44.176        80.861        .60331E-04   -1.4378    
   3  norm          1.2718        .37899        .23074E-04   -1.5482    
   4  Prefactor     .10000E-03    7.8076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    84.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.797        19.037        .10414E-03   -1.4938    
  10  norm          .36022E-01    4.4120        .10530E-02   -1.5670    
  11  norm          .10000E-03    1.6422        .17526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4799        178.63        .25852E-03   -1.5393    
  13  Prefactor     1.5400        32.592        .17190E-02   -1.5460    
  14  Prefactor     .10000E-03    76.206        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2460        .15102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5168        .85257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.7429        .16616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.394        10.807        .90951E-04   -1.4827    
  20  norm          .10000E-03    .40114        .71862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.789        16.845        .75997E-04   -1.4653    
  22  Prefactor     .10000E-03    13.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .44587        .28619        .39810E-03   -1.1499    
  24  Prefactor     1.5656        .23670        .20219E-03   -.75719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30329e-08
Minuit parameter uncertainties:
  1  25.5073
  2  81.0623
  3  0.37899
  4  1.78217e-05
  5  1.6574e-05
  6  1.88428e-05
  7  0.000903867
  8  6.78641e-05
  9  19.0449
  10  0.796269
  11  0.000125336
  12  42.2252
  13  14.1777
  14  0.00113933
  15  7.6271e-06
  16  7.29301e-07
  17  1.50273e-05
  18  8.88646e-06
  19  10.808
  20  1.35748e-05
  21  16.8474
  22  0.000149465
  23  0.287135
  24  0.236871
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.480e+01  1.904e+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:  1.566e+00  2.369e-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:  4.459e-01  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/10684/likelihoodResults_655084801_655344001_4FGL_J2236.4-2309_daily_bin1604.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) = 5045.2556885
delta logL = 0.952284092104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5045.22464775
delta logL = 0.98332484763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7263       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6995       1.0000          .0000       10.000    
     3 'Normalizat'    .35869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6219       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=   5045.225     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      291 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7251        88.140        .91160E-04   -.27939E-02
   2  Index         4.6998        7.3499        .64265E-02   -.41759E-03
   3  Normalizat    .35868        .25523        .44214E-03   -.55267E-03
   4  Prefactor     1.6219        .22318        .19917E-03   -.88783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.72511
  Index      = 4.69976
  Normalizat = 0.358682
  Prefactor  = 1.6219
 **********
 **   18 **HESSE 
 **********

 FCN=   5045.225     FROM HESSE     STATUS=OK            23 CALLS      314 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7251        9.5191        .36464E-05   -1.5322    
   2  Index         4.6998        1.9238        .25706E-03   -.60083E-01
   3  Normalizat    .35868        .26517        .17686E-04   -1.1949    
   4  Prefactor     1.6219        .23337        .39833E-04   -.74180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66524e-09
Minuit parameter uncertainties:
  1  9.52294
  2  1.97495
  3  0.266104
  4  0.233531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10684': 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) = 5045.22464768
delta logL = 0.983324909555

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.725e+00  9.523e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.700e+00  1.975e+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:  1.622e+00  2.335e-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:  3.587e-01  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 4.70 +/- 1.97
Photon Flux (Free Index): 1.17e-07 +/- 8.53e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.22e-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/10684/cmap_HighResolution_655084801_655344001_4FGL_J2236.4-2309_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', energy_flux2='1.60e-05', dlogl='9.83e-01', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-10-08 00:39:41.101562', photon_index_error2='1.97', photon_index2='4.70', ts='0.83', fit_tolerance='1e-08', GAL='1.57', photon_index_error='0.00', photon_flux_upper_limit='1.80e-07', energy_flux_error2='1.22e-05', EG='0.45', time_epoch_completed='1633678781.1', return_code='0', job_id='10684', GAL2='1.62', EG2='0.36', return_code2='0', photon_flux_error2='8.53e-08', ts2='3.06', photon_index='2.74' WHERE bin_id='1604' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:39:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 10684: <4FGL_J2236.4-2309_daily_bin1604> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1604> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Oct  8 00:25:18 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:25:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:25:25 2021
Terminated at Fri Oct  8 00:39:41 2021
Results reported at Fri Oct  8 00:39:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1604 339.125 -23.1552 655084801 655344001 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 :                                   615.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            863 sec.

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

