aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 203 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 = 7491
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1671
RA = 339.144, Dec = -14.5557
tmin = 672451201, tmax = 672710401
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='43770', job_status='RUN', time_executed='2022-04-27 01:09:08.474786', time_epoch_executed='1651046948.47' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/43770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/43770/ft1_4FGL_J2236.5-1433_daily_bin1671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/43770/ft2_4FGL_J2236.5-1433_daily_bin1671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/43770/ft1_4FGL_J2236.5-1433_daily_bin1671.fits outfile=/scratch/kocevski/43770/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1671.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=672451201.0 tmax=672710401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.96
user 2.73
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/43770/ft2_4FGL_J2236.5-1433_daily_bin1671.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/43770/ft2_4FGL_J2236.5-1433_daily_bin1671.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/43770/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1671.fits evtable="EVENTS" outfile="/scratch/kocevski/43770/ft1_filtered_4FGL_J2236.5-1433_daily_bin1671.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 1120

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/43770/ft1_filtered_4FGL_J2236.5-1433_daily_bin1671.fits" evtable="EVENTS" scfile=/scratch/kocevski/43770/ft2_4FGL_J2236.5-1433_daily_bin1671.fits sctable="SC_DATA" outfile=/scratch/kocevski/43770/ltcube_672451201_672710401_4FGL_J2236.5-1433_daily_bin1671.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/43770/ft2_4FGL_J2236.5-1433_daily_bin1671.fits
.....................!
real 13.30
user 12.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/43770/ft1_filtered_4FGL_J2236.5-1433_daily_bin1671.fits evtable="EVENTS" scfile=/scratch/kocevski/43770/ft2_4FGL_J2236.5-1433_daily_bin1671.fits sctable="SC_DATA" expcube=/scratch/kocevski/43770/ltcube_672451201_672710401_4FGL_J2236.5-1433_daily_bin1671.fits outfile=/scratch/kocevski/43770/expmap_672451201_672710401_4FGL_J2236.5-1433_daily_bin1671.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/43770/ltcube_672451201_672710401_4FGL_J2236.5-1433_daily_bin1671.fits
.....................!
real 191.20
user 185.93
sys 4.89

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.5-1433 @ 339.144 -14.5557

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/43770/ft1_filtered_4FGL_J2236.5-1433_daily_bin1671.fits scfile=/scratch/kocevski/43770/ft2_4FGL_J2236.5-1433_daily_bin1671.fits outfile=/scratch/kocevski/43770/cmap_672451201_672710401_4FGL_J2236.5-1433_daily_bin1671.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.144 yref=-14.5557 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/43770/ft1_filtered_4FGL_J2236.5-1433_daily_bin1671.fits scfile=/scratch/kocevski/43770/ft2_4FGL_J2236.5-1433_daily_bin1671.fits outfile=/scratch/kocevski/43770/cmap_HighResolution_672451201_672710401_4FGL_J2236.5-1433_daily_bin1671.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.144 yref=-14.5557 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/43770/ft1_filtered_4FGL_J2236.5-1433_daily_bin1671.fits evtable="EVENTS" scfile=/scratch/kocevski/43770/ft2_4FGL_J2236.5-1433_daily_bin1671.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/43770/Model_4FGL_J2236.5-1433_daily_bin1671.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/43770/ft1_filtered_4FGL_J2236.5-1433_daily_bin1671.fits....................!
real 92.98
user 91.57
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/43770/ft1_filtered_4FGL_J2236.5-1433_daily_bin1671.fits', '/scratch/kocevski/43770/ft2_4FGL_J2236.5-1433_daily_bin1671.fits', expMap='/scratch/kocevski/43770/expmap_672451201_672710401_4FGL_J2236.5-1433_daily_bin1671.fits', expCube='/scratch/kocevski/43770/ltcube_672451201_672710401_4FGL_J2236.5-1433_daily_bin1671.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/43770/Model_4FGL_J2236.5-1433_daily_bin1671.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.5-1433'

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/43770/ft1_filtered_4FGL_J2236.5-1433_daily_bin1671.fits
Spacecraft file(s): /scratch/kocevski/43770/ft2_4FGL_J2236.5-1433_daily_bin1671.fits
Exposure map: /scratch/kocevski/43770/expmap_672451201_672710401_4FGL_J2236.5-1433_daily_bin1671.fits
Exposure cube: /scratch/kocevski/43770/ltcube_672451201_672710401_4FGL_J2236.5-1433_daily_bin1671.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/43770/Model_4FGL_J2236.5-1433_daily_bin1671.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) = 11660.0567449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    16.185       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.268       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7997       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1486       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.8562       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6666       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.073       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.034       1.0000         .10000E-03   10000.    
    15 'norm      '    .24297       1.0000         .10000E-03   10000.    
    16 'Prefactor '    79.077       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6572       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4998       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5409       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .77398       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11660.02     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2277 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7449        .17960E-07** at limit **
   2  Prefactor     16.187        16.064        .30037E-06   -.17652E-04
   3  Prefactor     29.270        10.218        .13513E-06   -.14629E-03
   4  Prefactor     6.7999        5.6044        .16459E-07   -.20444E-04
   5  Prefactor     .10000E-03    15.594       -.15878E-05** at limit **
   6  Prefactor     3.1488        2.4518        .67382E-07   -.11708E-03
   7  Prefactor     .10000E-03    18.750        .32010E-05** at limit **
   8  norm          .10000E-03    .94088        .33516E-07** at limit **
   9  Prefactor     .10000E-03    26.036       -.17093E-05** at limit **
  10  Prefactor     .10000E-03    4.5915        .20526E-06** at limit **
  11  norm          6.8561        1.1600       -.39912E-07   -.83121E-04
  12  norm          1.6668        2.3973        .16469E-06   -.51010E-03
  13  Prefactor     34.084        46.242        .11529E-05    .14914E-05
  14  Prefactor     18.043        21.975        .17998E-07    .26614E-04
  15  norm          .24260        .78443        .62336E-06    .49698E-03
  16  Prefactor     79.078        35.204       -.20854E-05    .54844E-04
  17  Prefactor     .10000E-03    7.0175        .14504E-06** at limit **
  18  Prefactor     4.6569        5.9763        .85771E-07   -.63419E-04
  19  Prefactor     9.4991        10.870        .24081E-07    .18307E-05
  20  Normalizat    1.5408        .16661       -.72687E-06    .69000E-04
  21  Prefactor     .77403        .12151        .26645E-06   -.10430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.1873
  Prefactor  = 29.27
  Prefactor  = 6.79988
  Prefactor  = 0.0001
  Prefactor  = 3.14878
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.85609
  norm       = 1.66676
  Prefactor  = 34.0844
  Prefactor  = 18.0425
  norm       = 0.242599
  Prefactor  = 79.078
  Prefactor  = 0.0001
  Prefactor  = 4.65694
  Prefactor  = 9.49915
  Normalizat = 1.5408
  Prefactor  = 0.774033
 **********
 **   18 **HESSE 
 **********

 FCN=   11660.02     FROM HESSE     STATUS=OK           327 CALLS     2604 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7730        .13926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.187        16.062        .99556E-04   -1.4903    
   3  Prefactor     29.270        10.223        .37028E-03   -1.4625    
   4  Prefactor     6.7999        5.6008        .15387E-03   -1.5186    
   5  Prefactor     .10000E-03    15.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1488        2.4456        .14339E-03   -1.5353    
   7  Prefactor     .10000E-03    18.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.9534        .20293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.8561        1.1666        .45342E-04   -1.5184    
  12  norm          1.6668        2.3597        .16385E-03   -1.5450    
  13  Prefactor     34.084        46.398        .68651E-04   -1.4540    
  14  Prefactor     18.043        24.915        .94313E-04   -1.4858    
  15  norm          .24260        1.0042        .11754E-02   -1.5609    
  16  Prefactor     79.078        38.148        .45161E-04   -1.3927    
  17  Prefactor     .10000E-03    7.1131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6569        5.9674        .18649E-03   -1.5276    
  19  Prefactor     9.4991        10.871        .13002E-03   -1.5091    
  20  Normalizat    1.5408        .19697        .26338E-03   -.76638    
  21  Prefactor     .77403        .14285        .26882E-03   -1.0069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29363e-10
Minuit parameter uncertainties:
  1  6.27891e-07
  2  16.0658
  3  10.2235
  4  5.60124
  5  3.70694e-06
  6  2.44569
  7  6.11335e-06
  8  9.93028e-06
  9  8.3854e-06
  10  1.86169e-05
  11  1.16665
  12  2.35983
  13  46.4476
  14  24.9295
  15  0.986957
  16  38.1596
  17  1.93678e-05
  18  5.96816
  19  10.8737
  20  0.19707
  21  0.142915
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  6.856e+00  1.167e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  7.740e-01  1.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.541e+00  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 103.56
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.66e-07 +/- 4.52e-08
Energy Flux (Fixed Index): 1.30e-04 +/- 2.21e-05

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) = 11658.1286108
delta logL = 1.89540234834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11658.1026685
delta logL = 1.92134462369

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0650       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3905       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4783       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80303       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11658.10     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0649        13.589        .40758E-02    .93641E-04
   2  alpha         2.3904        1.7895        .13305        .75242E-04
   3  Normalizat    1.4783        .23794        .60399E-01    .34625E-04
   4  Prefactor     .80306        .17040        .43757E-01    .18373E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.06489
  alpha      = 2.39045
  Normalizat = 1.47828
  Prefactor  = 0.803056
 **********
 **   18 **HESSE 
 **********

 FCN=   11658.10     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0649        1.1469        .40249E-04   -1.5215    
   2  alpha         2.3904        .17167        .57668E-03   -.43835E-01
   3  Normalizat    1.4783        .18830        .26711E-03   -.78391    
   4  Prefactor     .80306        .14115        .26410E-03   -.99616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86059e-12
Minuit parameter uncertainties:
  1  1.14687
  2  0.171807
  3  0.188386
  4  0.141212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/43770': 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) = 11658.1026681
delta logL = 1.92134495586

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  6.065e+00  1.147e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.390e+00  1.718e-01  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  8.031e-01  1.412e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.478e+00  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 107.10
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.39 +/- 0.17
Photon Flux (Free Index): 3.27e-07 +/- 5.92e-08
Energy Flux (Free Index): 1.04e-04 +/- 1.91e-05

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/43770/cmap_HighResolution_672451201_672710401_4FGL_J2236.5-1433_daily_bin1671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.66e-07', energy_flux2='1.04e-04', photon_flux_error='4.52e-08', dlogl='1.92e+00', energy_flux='1.30e-04', photon_flux2='3.27e-07', job_status='DONE', time_completed='2022-04-27 01:21:41.426709', photon_index_error2='0.17', photon_index2='2.39', ts='103.56', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='1.54', time_epoch_completed='1651047701.43', return_code='0', job_id='43770', GAL2='0.80', EG2='1.48', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='5.92e-08', ts2='107.10', photon_index='2.06' WHERE bin_id='1671' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Apr 27 01:21:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 43770: <4FGL_J2236.5-1433_daily_bin1671> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1671> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Apr 27 01:05:35 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Apr 27 01:05:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Apr 27 01:05:36 2022
Terminated at Wed Apr 27 01:21:42 2022
Results reported at Wed Apr 27 01:21:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1671 339.144 -14.5557 672451201 672710401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.5-1433 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   753.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

