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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin560
RA = 339.125, Dec = -23.1552
tmin = 384480001, tmax = 384739201
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='406015', job_status='RUN', time_executed='2021-09-28 17:08:22.227071', time_epoch_executed='1632874102.23' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406015

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406015/ft1_4FGL_J2236.4-2309_daily_bin560.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406015/ft2_4FGL_J2236.4-2309_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406015/ft1_4FGL_J2236.4-2309_daily_bin560.fits outfile=/scratch/kocevski/406015/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin560.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=384480001.0 tmax=384739201.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.90
user 3.66
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406015/ft1_filtered_4FGL_J2236.4-2309_daily_bin560.fits" evtable="EVENTS" scfile=/scratch/kocevski/406015/ft2_4FGL_J2236.4-2309_daily_bin560.fits sctable="SC_DATA" outfile=/scratch/kocevski/406015/ltcube_384480001_384739201_4FGL_J2236.4-2309_daily_bin560.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/406015/ft2_4FGL_J2236.4-2309_daily_bin560.fits
.....................!
real 12.00
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406015/ft1_filtered_4FGL_J2236.4-2309_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/406015/ft2_4FGL_J2236.4-2309_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/406015/ltcube_384480001_384739201_4FGL_J2236.4-2309_daily_bin560.fits outfile=/scratch/kocevski/406015/expmap_384480001_384739201_4FGL_J2236.4-2309_daily_bin560.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/406015/ltcube_384480001_384739201_4FGL_J2236.4-2309_daily_bin560.fits
.....................!
real 191.09
user 185.93
sys 4.80

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406015/ft1_filtered_4FGL_J2236.4-2309_daily_bin560.fits scfile=/scratch/kocevski/406015/ft2_4FGL_J2236.4-2309_daily_bin560.fits outfile=/scratch/kocevski/406015/cmap_HighResolution_384480001_384739201_4FGL_J2236.4-2309_daily_bin560.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406015/ft1_filtered_4FGL_J2236.4-2309_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/406015/ft2_4FGL_J2236.4-2309_daily_bin560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406015/Model_4FGL_J2236.4-2309_daily_bin560.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/406015/ft1_filtered_4FGL_J2236.4-2309_daily_bin560.fits.....................!
real 48.99
user 47.55
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46629E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.234       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7422       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7646       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.334       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .48572       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6001       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .80123E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .84917E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.0948       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.946       1.0000         .10000E-03   10000.    
    20 'norm      '    .36800       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7268       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6663       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .58557       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=   5594.347     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2829 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.133       -.11704E-04** at limit **
   2  Prefactor     40.153        63.782       -.26581E-05   -.21263E-03
   3  norm          1.7423        .52091        .22193E-07    .53822E-03
   4  Prefactor     3.7655        6.2524        .38214E-05   -.37113E-03
   5  Prefactor     .10000E-03    11.194        .25852E-06** at limit **
   6  Prefactor     10.335        15.488       -.82482E-07   -.24955E-04
   7  Prefactor     .10000E-03    18.698       -.20556E-06** at limit **
   8  norm          .10000E-03    7.8816        .40924E-07** at limit **
   9  Prefactor     .10000E-03    9.6326        .88730E-07** at limit **
  10  norm          .10000E-03    .49409        .11166E-06** at limit **
  11  norm          .48602        1.4700        .82002E-06    .22959E-03
  12  Prefactor     .10000E-03    20.008        .28083E-06** at limit **
  13  Prefactor     9.5997        12.094        .72645E-07   -.37499E-04
  14  Prefactor     .10010E-03    17.393        .91324E-06** at limit **
  15  norm          .74437E-02    .74658       -.48451E-07    .49593E-04
  16  norm          9.0950        5.4116       -.76031E-07   -.17841E-03
  17  Prefactor     .10000E-03    49.223        .25560E-06** at limit **
  18  Prefactor     .10000E-03    7.5016       -.17513E-08** at limit **
  19  Prefactor     17.947        13.363       -.79496E-06   -.14675E-03
  20  norm          .36773        .75157        .47763E-06    .12080E-02
  21  Prefactor     6.7198        14.528        .16313E-06   -.17279E-04
  22  Prefactor     .10000E-03    6.4393        .48558E-07** at limit **
  23  Normalizat    1.6663        .21991        .69469E-06   -.24819E-03
  24  Prefactor     .58550        .17764       -.23465E-05   -.49793E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 40.1532
  norm       = 1.7423
  Prefactor  = 3.76552
  Prefactor  = 0.0001
  Prefactor  = 10.3346
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.486017
  Prefactor  = 0.0001
  Prefactor  = 9.59974
  Prefactor  = 0.000100102
  norm       = 0.00744375
  norm       = 9.09495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9465
  norm       = 0.367732
  Prefactor  = 6.71982
  Prefactor  = 0.0001
  Normalizat = 1.66635
  Prefactor  = 0.585496
 **********
 **   18 **HESSE 
 **********

 FCN=   5594.347     FROM HESSE     STATUS=OK           419 CALLS     3248 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.725        .21192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.153        63.894        .63194E-04   -1.4440    
   3  norm          1.7423        .52073        .28247E-04   -1.5444    
   4  Prefactor     3.7655        6.1975        .10404E-02   -1.5320    
   5  Prefactor     .10000E-03    11.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.335        15.484        .12464E-03   -1.5065    
   7  Prefactor     .10000E-03    18.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.8873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.1165        .99994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .48602        1.3521        .15448E-02   -1.5569    
  12  Prefactor     .10000E-03    20.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5997        12.131        .12934E-03   -1.5088    
  14  Prefactor     .10010E-03    29.869        .74930E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .74437E-02    1.8545        .19958E-01   -1.5691    
  16  norm          9.0950        5.3948        .12285E-03   -1.5105    
  17  Prefactor     .10000E-03    49.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.947        12.666        .94544E-04   -1.4860    
  20  norm          .36773        .62777        .71760E-03   -1.5587    
  21  Prefactor     6.7198        14.493        .15471E-03   -1.5189    
  22  Prefactor     .10000E-03    6.4852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6663        .26401        .23320E-03   -.73205    
  24  Prefactor     .58550        .20946        .30239E-03   -1.0820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70935e-09
Minuit parameter uncertainties:
  1  0.000530429
  2  64.0035
  3  0.520736
  4  6.19855
  5  2.23843e-05
  6  15.4896
  7  0.000107841
  8  6.40251e-06
  9  1.25446e-05
  10  3.21277e-05
  11  1.35216
  12  0.000111193
  13  12.1341
  14  0.00349803
  15  0.233408
  16  5.39511
  17  3.86025e-05
  18  5.93492e-06
  19  12.6679
  20  0.627778
  21  14.5002
  22  4.54866e-07
  23  0.264234
  24  0.209735
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.254e-05  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:  5.855e-01  2.097e-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.666e+00  2.642e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406015/likelihoodResults_384480001_384739201_4FGL_J2236.4-2309_daily_bin560.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): 102
logL (Free Index) = 5594.34735503
delta logL = -0.00049201641923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5591.40848188
delta logL = 2.93838114047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44692E-02   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.4602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70470       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.

 FCN=   5591.408     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      392 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44714E-02    .61966E-01    .58053E-03   -.23929E-01
   2  Index        10.0000        5.7587        .50000    ** at limit **
   3  Normalizat    1.4599        .17507        .55432E-01   -.68573E-04
   4  Prefactor     .70477        .14179        .62820E-01   -.14469E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00447144
  Index      = 10
  Normalizat = 1.45995
  Prefactor  = 0.704772
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.408     FROM HESSE     STATUS=OK            35 CALLS      427 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44714E-02    .26266E-02    .24815E-05   -1.5695    
   2  Index        10.0000        .48952        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4599        .26948        .24510E-03   -.78910    
   4  Prefactor     .70477        .21574        .27790E-03   -1.0334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54043e-10
Minuit parameter uncertainties:
  1  0.00262664
  2  9.84868e-07
  3  0.269745
  4  0.215999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406015': 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) = 5591.4084805
delta logL = 2.93838251789

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.471e-03  2.627e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.000e+01  9.849e-07  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.048e-01  2.160e-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.460e+00  2.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.36
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.68e-07 +/- 9.59e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.08e-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/406015/cmap_HighResolution_384480001_384739201_4FGL_J2236.4-2309_daily_bin560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.27e-03', comment='SUCCESS', energy_flux2='1.88e-05', dlogl='2.94e+00', photon_flux2='1.68e-07', job_status='DONE', time_completed='2021-09-28 17:18:50.566951', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.08e-05', EG='1.67', time_epoch_completed='1632874730.57', return_code='0', job_id='406015', GAL2='0.70', EG2='1.46', return_code2='0', photon_flux_error2='9.59e-08', ts2='6.36', photon_index='2.74' WHERE bin_id='560' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:18:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 406015: <4FGL_J2236.4-2309_daily_bin560> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin560 339.125 -23.1552 384480001 384739201 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 :                                   628.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

