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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1134
RA = 339.125, Dec = -23.1552
tmin = 533260801, tmax = 533520001
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='407866', job_status='RUN', time_executed='2021-09-28 17:11:47.734385', time_epoch_executed='1632874307.73' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407866

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407866/ft1_4FGL_J2236.4-2309_daily_bin1134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407866/ft2_4FGL_J2236.4-2309_daily_bin1134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407866/ft1_4FGL_J2236.4-2309_daily_bin1134.fits outfile=/scratch/kocevski/407866/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1134.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=533260801.0 tmax=533520001.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 4.33
user 4.09
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407866/ft1_filtered_4FGL_J2236.4-2309_daily_bin1134.fits" evtable="EVENTS" scfile=/scratch/kocevski/407866/ft2_4FGL_J2236.4-2309_daily_bin1134.fits sctable="SC_DATA" outfile=/scratch/kocevski/407866/ltcube_533260801_533520001_4FGL_J2236.4-2309_daily_bin1134.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/407866/ft2_4FGL_J2236.4-2309_daily_bin1134.fits
.....................!
real 11.84
user 11.50
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407866/ft1_filtered_4FGL_J2236.4-2309_daily_bin1134.fits evtable="EVENTS" scfile=/scratch/kocevski/407866/ft2_4FGL_J2236.4-2309_daily_bin1134.fits sctable="SC_DATA" expcube=/scratch/kocevski/407866/ltcube_533260801_533520001_4FGL_J2236.4-2309_daily_bin1134.fits outfile=/scratch/kocevski/407866/expmap_533260801_533520001_4FGL_J2236.4-2309_daily_bin1134.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/407866/ltcube_533260801_533520001_4FGL_J2236.4-2309_daily_bin1134.fits
.....................!
real 190.07
user 185.00
sys 4.76

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/407866/ft1_filtered_4FGL_J2236.4-2309_daily_bin1134.fits scfile=/scratch/kocevski/407866/ft2_4FGL_J2236.4-2309_daily_bin1134.fits outfile=/scratch/kocevski/407866/cmap_533260801_533520001_4FGL_J2236.4-2309_daily_bin1134.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.52
user 0.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407866/ft1_filtered_4FGL_J2236.4-2309_daily_bin1134.fits evtable="EVENTS" scfile=/scratch/kocevski/407866/ft2_4FGL_J2236.4-2309_daily_bin1134.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407866/Model_4FGL_J2236.4-2309_daily_bin1134.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/407866/ft1_filtered_4FGL_J2236.4-2309_daily_bin1134.fits.....................!
real 58.53
user 57.23
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.323       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8906       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5324       1.0000         .10000E-03   10000.    
     5 'Prefactor '    69.070       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.428       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14256E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    39.705       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1038       1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12405E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2208       1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.625       1.0000         .10000E-03   10000.    
    15 'norm      '    13.567       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1351       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.457       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11173E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.916       1.0000         .10000E-03   10000.    
    20 'norm      '    8.4491       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1535       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3512       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .54262       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=   6866.605     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     3226 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.313        25.454       -.16076E-05   -.15366E-04
   2  Prefactor     .10000E-03    148.66        .23877E-05** at limit **
   3  norm          2.8907        .64346        .35125E-07   -.25262E-04
   4  Prefactor     3.5316        9.3937       -.20704E-05   -.19824E-03
   5  Prefactor     69.081        24.274        .10138E-05   -.21640E-04
   6  Prefactor     20.431        19.407        .24850E-05   -.55096E-05
   7  Prefactor     .10000E-03    239.87        .11069E-04** at limit **
   8  norm          39.725        27.064        .26006E-06   -.16991E-04
   9  Prefactor     .10000E-03    11.638       -.13368E-06** at limit **
  10  norm          1.1043        .83053       -.14628E-06   -.63225E-03
  11  norm          .10000E-03    1.0577        .10487E-06** at limit **
  12  Prefactor     .10000E-03    35.777        .56277E-06** at limit **
  13  Prefactor     5.2195        10.081       -.99549E-06   -.12657E-03
  14  Prefactor     71.645        76.123        .11657E-05   -.46741E-03
  15  norm          13.564        5.7125       -.39881E-05    .71695E-03
  16  norm          2.1356        3.5845        .45468E-06   -.23206E-03
  17  Prefactor     20.529        103.71        .10250E-03   -.22956E-04
  18  Prefactor     .10000E-03    16.839        .66829E-06** at limit **
  19  Prefactor     24.908        17.098       -.54815E-05    .13686E-04
  20  norm          8.4495        1.6735        .61758E-06   -.13316E-02
  21  Prefactor     8.1469        10.832       -.24663E-05   -.11832E-03
  22  Prefactor     .10000E-03    13.874        .38274E-06** at limit **
  23  Normalizat    1.3505        .22409       -.13702E-05   -.36135E-04
  24  Prefactor     .54327        .18180        .29466E-06   -.15951E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3127
  Prefactor  = 0.000100001
  norm       = 2.89068
  Prefactor  = 3.53164
  Prefactor  = 69.0806
  Prefactor  = 20.4313
  Prefactor  = 0.0001
  norm       = 39.7248
  Prefactor  = 0.0001
  norm       = 1.10433
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.21949
  Prefactor  = 71.6454
  norm       = 13.5637
  norm       = 2.13559
  Prefactor  = 20.529
  Prefactor  = 0.000100001
  Prefactor  = 24.9076
  norm       = 8.44949
  Prefactor  = 8.14685
  Prefactor  = 0.0001
  Normalizat = 1.35047
  Prefactor  = 0.543272
 **********
 **   18 **HESSE 
 **********

 FCN=   6866.605     FROM HESSE     STATUS=OK           401 CALLS     3627 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.313        25.419        .79604E-04   -1.4701    
   2  Prefactor     .10000E-03    149.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8907        .64470        .30165E-04   -1.5368    
   4  Prefactor     3.5316        9.3816        .21508E-03   -1.5332    
   5  Prefactor     69.081        24.279        .48298E-04   -1.4044    
   6  Prefactor     20.431        19.411        .88618E-04   -1.4804    
   7  Prefactor     .10000E-03    245.95        .36377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          39.725        27.050        .63612E-04   -1.4447    
   9  Prefactor     .10000E-03    11.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1043        .83681        .62585E-04   -1.5498    
  11  norm          .10000E-03    2.1750        .16544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2195        10.098        .17592E-03   -1.5251    
  14  Prefactor     71.645        80.710        .47435E-04   -1.4013    
  15  norm          13.564        6.0365        .56469E-04   -1.4971    
  16  norm          2.1356        3.5453        .19227E-03   -1.5416    
  17  Prefactor     20.529        105.36        .88554E-04   -1.4801    
  18  Prefactor     .10000E-03    16.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.908        17.578        .80251E-04   -1.4709    
  20  norm          8.4495        1.7109        .35350E-04   -1.5127    
  21  Prefactor     8.1469        10.831        .14041E-03   -1.5137    
  22  Prefactor     .10000E-03    14.201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3505        .27257        .27960E-03   -.82072    
  24  Prefactor     .54327        .21763        .34891E-03   -1.1003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36193e-09
Minuit parameter uncertainties:
  1  25.4302
  2  0.000618188
  3  0.644706
  4  9.38549
  5  24.2829
  6  19.4168
  7  0.000642798
  8  27.0582
  9  2.74888e-05
  10  0.836821
  11  2.68605e-05
  12  0.000105679
  13  10.1014
  14  80.8337
  15  6.03675
  16  3.54561
  17  93.2752
  18  0.000195508
  19  17.5817
  20  1.71089
  21  10.8337
  22  0.000139059
  23  0.272865
  24  0.21797
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  2.749e-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.433e-01  2.180e-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.350e+00  2.729e-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.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407866/likelihoodResults_533260801_533520001_4FGL_J2236.4-2309_daily_bin1134.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) = 6866.60507254
delta logL = -0.000405970539759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6866.60466806
delta logL = -1.48981598613e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11106E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7200       1.0000          .0000       10.000    
     3 'Normalizat'    1.3501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54359       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=   6866.605     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      262 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.972        .18142E-01** at limit **
   2  Index         2.3811        6.9561        .50000        .16189E-07
   3  Normalizat    1.3505        .99022E-02    .27960E-03   -.28427E-03
   4  Prefactor     .54327        .82089E-02    .34891E-03   -.22773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3811
  Normalizat = 1.35046
  Prefactor  = 0.543274
 **********
 **   18 **HESSE 
 **********

 FCN=   6866.605     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1299.3        .59717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3811        8.6302        .50000       -.55128    
   3  Normalizat    1.3505        .58730E-01    .55921E-04   -.82072    
   4  Prefactor     .54327        .48686E-01    .13956E-04   -1.1003    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05635e-09
Minuit parameter uncertainties:
  1  0.00141333
  2  1380.95
  3  0.0587332
  4  0.0486901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407866': 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): 102
logL (Free Index) = 6866.60466586
delta logL = 7.10559106665e-07

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.413e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.381e+00  1.381e+03  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:  5.433e-01  4.869e-02  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.350e+00  5.873e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.125 -23.155

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/407866/cmap_HighResolution_533260801_533520001_4FGL_J2236.4-2309_daily_bin1134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-28 17:23:57.936379', job_id='407866', GAL2='0.54', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1632875037.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='7.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1134' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:23:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 407866: <4FGL_J2236.4-2309_daily_bin1134> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1134 339.125 -23.1552 533260801 533520001 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 :                                   724.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            797 sec.

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

