/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 226 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_bin1006
RA = 339.125, Dec = -23.1552
tmin = 500083201, tmax = 500342401
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='407679', job_status='RUN', time_executed='2021-09-28 17:14:22.803510', time_epoch_executed='1632874462.8' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407679/ft1_4FGL_J2236.4-2309_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407679/ft2_4FGL_J2236.4-2309_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407679/ft1_4FGL_J2236.4-2309_daily_bin1006.fits outfile=/scratch/kocevski/407679/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1006.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.64
user 5.37
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407679/ft2_4FGL_J2236.4-2309_daily_bin1006.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/407679/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/407679/ft1_filtered_4FGL_J2236.4-2309_daily_bin1006.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407679/ft1_filtered_4FGL_J2236.4-2309_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/407679/ft2_4FGL_J2236.4-2309_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/407679/ltcube_500083201_500342401_4FGL_J2236.4-2309_daily_bin1006.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/407679/ft2_4FGL_J2236.4-2309_daily_bin1006.fits
.....................!
real 11.86
user 11.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407679/ft1_filtered_4FGL_J2236.4-2309_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/407679/ft2_4FGL_J2236.4-2309_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/407679/ltcube_500083201_500342401_4FGL_J2236.4-2309_daily_bin1006.fits outfile=/scratch/kocevski/407679/expmap_500083201_500342401_4FGL_J2236.4-2309_daily_bin1006.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/407679/ltcube_500083201_500342401_4FGL_J2236.4-2309_daily_bin1006.fits
.....................!
real 192.85
user 187.40
sys 5.13

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407679/ft1_filtered_4FGL_J2236.4-2309_daily_bin1006.fits scfile=/scratch/kocevski/407679/ft2_4FGL_J2236.4-2309_daily_bin1006.fits outfile=/scratch/kocevski/407679/cmap_HighResolution_500083201_500342401_4FGL_J2236.4-2309_daily_bin1006.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=339.125 yref=-23.1552 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10908E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3201       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.797       1.0000         .10000E-03   10000.    
     6 'Prefactor '    63.981       1.0000         .10000E-03   10000.    
     7 'Prefactor '    71.354       1.0000         .10000E-03   10000.    
     8 'norm      '    .10371E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .92611       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18927E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    106.66       1.0000         .10000E-03   10000.    
    15 'norm      '    5.2159       1.0000         .10000E-03   10000.    
    16 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    112.16       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .46569       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.560       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2060       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89173       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4029.998     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     2073 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4788       -.31842E-06** at limit **
   2  Prefactor     .10000E-03    23.341       -.55116E-06** at limit **
   3  norm          .10000E-03    .14504        .16579E-06** at limit **
   4  Prefactor     6.3930        12.275       -.78991E-05    .56006E-04
   5  Prefactor     18.034        19.708       -.39948E-05    .72130E-05
   6  Prefactor     63.407        30.155        .25967E-05   -.85496E-05
   7  Prefactor     72.474        67.503        .29849E-04   -.35140E-04
   8  norm          .10000E-03    9.1938       -.10747E-05** at limit **
   9  Prefactor     .10000E-03    11.396       -.13471E-05** at limit **
  10  norm          .92261        1.1158       -.18422E-05    .15432E-03
  11  norm          .10000E-03    1.5710       -.20952E-06** at limit **
  12  Prefactor     .10000E-03    52.598       -.16999E-04** at limit **
  13  Prefactor     .10000E-03    37.014       -.93904E-05** at limit **
  14  Prefactor     107.75        93.216        .15236E-04    .70534E-04
  15  norm          5.3268        6.9146       -.60252E-05    .18599E-03
  16  norm          .10000E-03    2.7361        .52321E-06** at limit **
  17  Prefactor     101.66        98.083       -.25276E-05    .29856E-04
  18  Prefactor     .10000E-03    7.2373       -.31757E-06** at limit **
  19  Prefactor     .10000E-03    5.4964        .46973E-06** at limit **
  20  norm          .46501        .69067       -.11532E-05    .18713E-03
  21  Prefactor     20.232        34.396       -.65648E-05    .36448E-04
  22  Prefactor     .10000E-03    9.9902       -.15078E-05** at limit **
  23  Normalizat    1.2078        .33959       -.58380E-05    .40004E-04
  24  Prefactor     .89075        .26668        .22281E-05    .37627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.39298
  Prefactor  = 18.0336
  Prefactor  = 63.4074
  Prefactor  = 72.4741
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.922609
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 107.749
  norm       = 5.32684
  norm       = 0.0001
  Prefactor  = 101.665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.465011
  Prefactor  = 20.2321
  Prefactor  = 0.0001
  Normalizat = 1.2078
  Prefactor  = 0.890752
 **********
 **   18 **HESSE 
 **********

 FCN=   4029.998     FROM HESSE     STATUS=OK           445 CALLS     2518 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4712        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.316        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .13152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.3930        12.306        .39916E-02   -1.5202    
   5  Prefactor     18.034        19.674        .23735E-02   -1.4858    
   6  Prefactor     63.407        30.127        .12542E-02   -1.4114    
   7  Prefactor     72.474        67.631        .11881E-02   -1.4003    
   8  norm          .10000E-03    9.1944        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.374        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .92261        1.1604        .12902E-01   -1.5516    
  11  norm          .10000E-03    1.5429        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    52.664        .91173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.729        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     107.75        89.928        .97351E-03   -1.3628    
  15  norm          5.3268        6.6936        .44002E-02   -1.5246    
  16  norm          .10000E-03    2.7276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     101.66        98.367        .94960E-03   -1.3688    
  18  Prefactor     .10000E-03    7.2354        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4901        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .46501        .74564        .11130E-01   -1.5572    
  21  Prefactor     20.232        34.437        .22640E-02   -1.4808    
  22  Prefactor     .10000E-03    9.9754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2078        .28090        .65835E-01   -.86362    
  24  Prefactor     .89075        .22120        .44900E-01   -.96465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26698e-10
Minuit parameter uncertainties:
  1  7.49407e-07
  2  4.34612e-06
  3  7.44342e-08
  4  12.311
  5  19.6806
  6  30.1347
  7  67.703
  8  4.77463e-06
  9  6.2789e-06
  10  1.16038
  11  1.86196e-07
  12  0.000242382
  13  0.00012907
  14  90.0421
  15  6.69452
  16  1.37479e-06
  17  98.5252
  18  1.50891e-06
  19  9.86635e-07
  20  0.74565
  21  34.4708
  22  6.52478e-06
  23  0.281255
  24  0.221427
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.908e-01  2.214e-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.208e+00  2.813e-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: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407679/likelihoodResults_500083201_500342401_4FGL_J2236.4-2309_daily_bin1006.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) = 4029.99862498
delta logL = -0.000417781994656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4029.99821028
delta logL = -3.0801070352e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14480E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7617       1.0000          .0000       10.000    
     3 'Normalizat'    1.2073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89115       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=   4029.503     FROM MIGRAD    STATUS=CONVERGED    199 CALLS      344 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78606E-01    1.3258        .43105E-02   -.12985E-02
   2  Index         7.6927        6.1213        .20000       -.89942E-05
   3  Normalizat    1.0949        .47209        .29124E-02   -.16832E-03
   4  Prefactor     .95350        .31869        .26439E-02    .97933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0786061
  Index      = 7.69265
  Normalizat = 1.09493
  Prefactor  = 0.953501
 **********
 **   18 **HESSE 
 **********

 FCN=   4029.503     FROM HESSE     STATUS=OK            31 CALLS      375 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78606E-01    .81994        .19700E-03   -1.5652    
   2  Index         7.6927        6.1436        .10382E-01    2.5729    
   3  Normalizat    1.0949        .35180        .11650E-03   -.89915    
   4  Prefactor     .95350        .27379        .10576E-03   -.94296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3082e-10
Minuit parameter uncertainties:
  1  0.507435
  2  4.59983
  3  0.352559
  4  0.274187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407679': 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) = 4029.50265929
delta logL = 0.495547912205

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  7.861e-02  5.074e-01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  7.693e+00  4.600e+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:  9.535e-01  2.742e-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.095e+00  3.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 7.69 +/- 4.60
Photon Flux (Free Index): 1.23e-07 +/- 1.53e-06
Energy Flux (Free Index): 1.44e-05 +/- 1.78e-04

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/407679/cmap_HighResolution_500083201_500342401_4FGL_J2236.4-2309_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='4.96e-01', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-28 17:22:48.770535', photon_index_error2='4.60', photon_index2='7.69', ts='-0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.78e-04', EG='1.21', time_epoch_completed='1632874968.77', return_code='0', job_id='407679', GAL2='0.95', EG2='1.09', return_code2='0', photon_flux_error2='1.53e-06', ts2='1.08', photon_index='2.74' WHERE bin_id='1006' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:22:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 407679: <4FGL_J2236.4-2309_daily_bin1006> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1006 339.125 -23.1552 500083201 500342401 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 :                                   505.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             258.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            742 sec.

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

