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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin625
RA = 339.125, Dec = -23.1552
tmin = 401328001, tmax = 401587201
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='406114', job_status='RUN', time_executed='2021-09-28 17:08:23.328788', time_epoch_executed='1632874103.33' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406114/ft1_4FGL_J2236.4-2309_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406114/ft2_4FGL_J2236.4-2309_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406114/ft1_4FGL_J2236.4-2309_daily_bin625.fits outfile=/scratch/kocevski/406114/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin625.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=401328001.0 tmax=401587201.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.41
user 3.16
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406114/ft1_filtered_4FGL_J2236.4-2309_daily_bin625.fits" evtable="EVENTS" scfile=/scratch/kocevski/406114/ft2_4FGL_J2236.4-2309_daily_bin625.fits sctable="SC_DATA" outfile=/scratch/kocevski/406114/ltcube_401328001_401587201_4FGL_J2236.4-2309_daily_bin625.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/406114/ft2_4FGL_J2236.4-2309_daily_bin625.fits
.....................!
real 12.00
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406114/ft1_filtered_4FGL_J2236.4-2309_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/406114/ft2_4FGL_J2236.4-2309_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/406114/ltcube_401328001_401587201_4FGL_J2236.4-2309_daily_bin625.fits outfile=/scratch/kocevski/406114/expmap_401328001_401587201_4FGL_J2236.4-2309_daily_bin625.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/406114/ltcube_401328001_401587201_4FGL_J2236.4-2309_daily_bin625.fits
.....................!
real 195.51
user 190.02
sys 5.11

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/406114/ft1_filtered_4FGL_J2236.4-2309_daily_bin625.fits scfile=/scratch/kocevski/406114/ft2_4FGL_J2236.4-2309_daily_bin625.fits outfile=/scratch/kocevski/406114/cmap_401328001_401587201_4FGL_J2236.4-2309_daily_bin625.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406114/ft1_filtered_4FGL_J2236.4-2309_daily_bin625.fits scfile=/scratch/kocevski/406114/ft2_4FGL_J2236.4-2309_daily_bin625.fits outfile=/scratch/kocevski/406114/cmap_HighResolution_401328001_401587201_4FGL_J2236.4-2309_daily_bin625.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406114/ft1_filtered_4FGL_J2236.4-2309_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/406114/ft2_4FGL_J2236.4-2309_daily_bin625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406114/Model_4FGL_J2236.4-2309_daily_bin625.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/406114/ft1_filtered_4FGL_J2236.4-2309_daily_bin625.fits.....................!
real 53.54
user 52.05
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0783       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6999       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14783E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    18.518       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.319       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5131       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.352       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9984       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11658E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29862       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8505       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.445       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .94558       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9138       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .64781       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0331       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=   6875.671     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2791 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0551        .56230E-08** at limit **
   2  Prefactor     .10000E-03    15.315        .37090E-06** at limit **
   3  norm          1.0783        .30830        .27416E-09   -.14419E-03
   4  Prefactor     .10000E-03    3.1210        .23578E-07** at limit **
   5  Prefactor     7.7005        9.5787        .23760E-05   -.24798E-03
   6  Prefactor     .10005E-03    7.0485       -.17335E-06** at limit **
   7  Prefactor     .10000E-03    16.191       -.24803E-06** at limit **
   8  norm          18.514        17.325        .97454E-06    .24426E-03
   9  Prefactor     10.319        10.146        .33971E-06   -.59645E-05
  10  norm          .10000E-03    .14390        .18479E-07** at limit **
  11  norm          2.5137        2.1424        .30703E-06   -.15521E-03
  12  Prefactor     18.340        35.598       -.31401E-05   -.20509E-03
  13  Prefactor     2.9982        5.7012        .36620E-06   -.92094E-04
  14  Prefactor     .10000E-03    5.5183        .56144E-07** at limit **
  15  norm          .10000E-03    .20908       -.16382E-07** at limit **
  16  norm          .10000E-03    2.1656        .30551E-06** at limit **
  17  Prefactor     .29162        9.7864        .17252E-05   -.43104E-03
  18  Prefactor     4.8367        13.690        .20853E-05    .14625E-03
  19  Prefactor     10.438        9.5119       -.98311E-06   -.51667E-03
  20  norm          .10000E-03    .13892       -.46392E-07** at limit **
  21  Prefactor     .96480        4.5944        .25311E-06   -.17100E-03
  22  Prefactor     2.9167        7.2288        .59278E-06   -.17046E-03
  23  Normalizat    .64789        .15482        .64424E-06   -.16370E-03
  24  Prefactor     1.0330        .13518       -.91030E-06   -.36872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07833
  Prefactor  = 0.0001
  Prefactor  = 7.70045
  Prefactor  = 0.000100046
  Prefactor  = 0.0001
  norm       = 18.5139
  Prefactor  = 10.3194
  norm       = 0.0001
  norm       = 2.51371
  Prefactor  = 18.3396
  Prefactor  = 2.99824
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.291619
  Prefactor  = 4.83671
  Prefactor  = 10.4377
  norm       = 0.0001
  Prefactor  = 0.964804
  Prefactor  = 2.91674
  Normalizat = 0.647888
  Prefactor  = 1.03303
 **********
 **   18 **HESSE 
 **********

 FCN=   6875.671     FROM HESSE     STATUS=OK           417 CALLS     3208 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0783        .30916        .23953E-04   -1.5500    
   4  Prefactor     .10000E-03    3.1391        .14304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.7005        10.095        .72257E-03   -1.5153    
   6  Prefactor     .10005E-03    8.9593        .73887E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          18.514        17.525        .93074E-04   -1.4847    
   9  Prefactor     10.319        10.162        .12473E-03   -1.5065    
  10  norm          .10000E-03    .14684        .30699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5137        2.1757        .90593E-04   -1.5391    
  12  Prefactor     18.340        36.872        .93493E-04   -1.4851    
  13  Prefactor     2.9982        5.7025        .23442E-03   -1.5362    
  14  Prefactor     .10000E-03    5.7480        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .36027        .72688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.1061        .22130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .29162        106.22        .47005E-02   -1.5600    
  18  Prefactor     4.8367        13.774        .18265E-03   -1.5268    
  19  Prefactor     10.438        9.5220        .12398E-03   -1.5062    
  20  norm          .10000E-03    .14426        .57993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .96480        17.597        .33659E-02   -1.5512    
  22  Prefactor     2.9167        7.1145        .23801E-03   -1.5366    
  23  Normalizat    .64789        .18067        .26163E-03   -1.0599    
  24  Prefactor     1.0330        .15767        .19313E-03   -.91636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56738e-09
Minuit parameter uncertainties:
  1  1.44032e-07
  2  7.07753e-05
  3  0.309157
  4  3.95766e-07
  5  10.0973
  6  0.00128731
  7  5.49114e-05
  8  17.5303
  9  10.1641
  10  1.46756e-07
  11  2.17574
  12  36.9183
  13  5.70357
  14  8.45285e-06
  15  3.51528e-06
  16  7.17873e-05
  17  11.1494
  18  13.783
  19  9.52335
  20  3.07274e-07
  21  8.24314
  22  7.1166
  23  0.180832
  24  0.157745
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.032e+01  1.016e+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.033e+00  1.577e-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.479e-01  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 3.63e-08 +/- 3.57e-08
Energy Flux (Fixed Index): 8.46e-06 +/- 8.33e-06

TS (Fixed Index): 1.53
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406114/likelihoodResults_401328001_401587201_4FGL_J2236.4-2309_daily_bin625.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) = 6875.66885752
delta logL = 0.00180047519825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6875.66428712
delta logL = 0.00637088205076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7600       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0195       1.0000          .0000       10.000    
     3 'Normalizat'    .63997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0388       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6875.664     FROM MIGRAD    STATUS=FAILED        98 CALLS      253 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7399        80.293        .67715E-03   -.44676E-04
   2  Index         3.0206        6.2110        .13364E-01    .37421E-03
   3  Normalizat    .64001        .24725        .26337E-03   -.77699E-04
   4  Prefactor     1.0388        .20999        .19266E-03   -.93210E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6875.664     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      340 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7399        80.293        .22863E-03   -1.5117    
   2  Index         3.0206        6.2110        .18733E-02   -.40703    
   3  Normalizat    .64001        .24725        .23668E-03   -1.0631    
   4  Prefactor     1.0388        .20999        .17698E-03   -.91446    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6875.664     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      379 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7399        18.246        .27086E-04    .96537E-05
   2  Index         3.0206        2.4731        .26728E-02   -.82516E-06
   3  Normalizat    .64001        .18287        .10535E-04    .86332E-06
   4  Prefactor     1.0388        .16199        .38532E-04    .76711E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.73995
  Index      = 3.0206
  Normalizat = 0.64001
  Prefactor  = 1.03884
 **********
 **   18 **HESSE 
 **********

 FCN=   6875.664     FROM HESSE     STATUS=OK            25 CALLS      404 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7399        16.929        .10834E-05   -1.5117    
   2  Index         3.0206        2.3113        .10691E-03   -.40703    
   3  Normalizat    .64001        .18130        .21070E-05   -1.0631    
   4  Prefactor     1.0388        .16086        .77064E-05   -.91446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6324e-12
Minuit parameter uncertainties:
  1  16.9385
  2  2.42206
  3  0.181468
  4  0.160932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406114': 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) = 6875.6642857
delta logL = 0.00637230114717

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  8.740e+00  1.694e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.021e+00  2.422e+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.039e+00  1.609e-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.400e-01  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 3.02 +/- 2.42
Photon Flux (Free Index): 4.03e-08 +/- 4.84e-08
Energy Flux (Free Index): 7.96e-06 +/- 8.22e-06

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/406114/cmap_HighResolution_401328001_401587201_4FGL_J2236.4-2309_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.63e-03', comment='SUCCESS', photon_flux='3.63e-08', energy_flux2='7.96e-06', photon_flux_error='3.57e-08', dlogl='6.37e-03', energy_flux='8.46e-06', photon_flux2='4.03e-08', job_status='DONE', time_completed='2021-09-28 17:19:49.803332', photon_index_error2='2.42', photon_index2='3.02', ts='1.53', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='8.22e-06', EG='0.65', time_epoch_completed='1632874789.8', return_code='0', job_id='406114', GAL2='1.04', EG2='0.64', return_code2='0', energy_flux_error='8.33e-06', photon_flux_error2='4.84e-08', ts2='1.56', photon_index='2.74' WHERE bin_id='625' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:19:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 406114: <4FGL_J2236.4-2309_daily_bin625> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin625> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:05:25 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:05:26 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:05:26 2021
Terminated at Tue Sep 28 17:19:50 2021
Results reported at Tue Sep 28 17:19:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin625 339.125 -23.1552 401328001 401587201 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 :                                   687.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            865 sec.

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

