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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1558
RA = 338.841, Dec = -48.6015
tmin = 643161601, tmax = 643420801
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='386579', job_status='RUN', time_executed='2021-09-28 16:06:18.206730', time_epoch_executed='1632870378.21' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386579

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386579/ft1_4FGL_J2235.3-4836_daily_bin1558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386579/ft2_4FGL_J2235.3-4836_daily_bin1558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386579/ft1_4FGL_J2235.3-4836_daily_bin1558.fits outfile=/scratch/kocevski/386579/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1558.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=643161601.0 tmax=643420801.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.46
user 3.25
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/386579/ft2_4FGL_J2235.3-4836_daily_bin1558.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386579/ft2_4FGL_J2235.3-4836_daily_bin1558.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/386579/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1558.fits evtable="EVENTS" outfile="/scratch/kocevski/386579/ft1_filtered_4FGL_J2235.3-4836_daily_bin1558.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386579/ft1_filtered_4FGL_J2235.3-4836_daily_bin1558.fits" evtable="EVENTS" scfile=/scratch/kocevski/386579/ft2_4FGL_J2235.3-4836_daily_bin1558.fits sctable="SC_DATA" outfile=/scratch/kocevski/386579/ltcube_643161601_643420801_4FGL_J2235.3-4836_daily_bin1558.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/386579/ft2_4FGL_J2235.3-4836_daily_bin1558.fits
.....................!
real 11.97
user 11.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386579/ft1_filtered_4FGL_J2235.3-4836_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/386579/ft2_4FGL_J2235.3-4836_daily_bin1558.fits sctable="SC_DATA" expcube=/scratch/kocevski/386579/ltcube_643161601_643420801_4FGL_J2235.3-4836_daily_bin1558.fits outfile=/scratch/kocevski/386579/expmap_643161601_643420801_4FGL_J2235.3-4836_daily_bin1558.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/386579/ltcube_643161601_643420801_4FGL_J2235.3-4836_daily_bin1558.fits
.....................!
real 192.05
user 186.55
sys 5.09

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

Setting source of interest to:
4FGL J2235.3-4836 @ 338.841 -48.6015

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/386579/ft1_filtered_4FGL_J2235.3-4836_daily_bin1558.fits scfile=/scratch/kocevski/386579/ft2_4FGL_J2235.3-4836_daily_bin1558.fits outfile=/scratch/kocevski/386579/cmap_643161601_643420801_4FGL_J2235.3-4836_daily_bin1558.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=338.841 yref=-48.6015 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386579/ft1_filtered_4FGL_J2235.3-4836_daily_bin1558.fits scfile=/scratch/kocevski/386579/ft2_4FGL_J2235.3-4836_daily_bin1558.fits outfile=/scratch/kocevski/386579/cmap_HighResolution_643161601_643420801_4FGL_J2235.3-4836_daily_bin1558.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=338.841 yref=-48.6015 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386579/ft1_filtered_4FGL_J2235.3-4836_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/386579/ft2_4FGL_J2235.3-4836_daily_bin1558.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386579/Model_4FGL_J2235.3-4836_daily_bin1558.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/386579/ft1_filtered_4FGL_J2235.3-4836_daily_bin1558.fits.....................!
real 47.48
user 46.05
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/386579/ft1_filtered_4FGL_J2235.3-4836_daily_bin1558.fits', '/scratch/kocevski/386579/ft2_4FGL_J2235.3-4836_daily_bin1558.fits', expMap='/scratch/kocevski/386579/expmap_643161601_643420801_4FGL_J2235.3-4836_daily_bin1558.fits', expCube='/scratch/kocevski/386579/ltcube_643161601_643420801_4FGL_J2235.3-4836_daily_bin1558.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/386579/Model_4FGL_J2235.3-4836_daily_bin1558.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.3-4836'

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.864e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/386579/ft1_filtered_4FGL_J2235.3-4836_daily_bin1558.fits
Spacecraft file(s): /scratch/kocevski/386579/ft2_4FGL_J2235.3-4836_daily_bin1558.fits
Exposure map: /scratch/kocevski/386579/expmap_643161601_643420801_4FGL_J2235.3-4836_daily_bin1558.fits
Exposure cube: /scratch/kocevski/386579/ltcube_643161601_643420801_4FGL_J2235.3-4836_daily_bin1558.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/386579/Model_4FGL_J2235.3-4836_daily_bin1558.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) = 6636.1285212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8756       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47977       1.0000         .10000E-03   10000.    
     4 'norm      '    14.208       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2327       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .97805E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10907E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.758       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2300       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.568       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1774       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0887       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.3512       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.7865       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3927       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.1361       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    30.734       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89327       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0292       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6636.106     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3933 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8797        12.334       -.40013E-05   -.21519E-03
   2  Prefactor     .10000E-03    15.843       -.14646E-05** at limit **
   3  Prefactor     .47419        2.4129        .14652E-05   -.91877E-03
   4  norm          14.209        5.7029        .17000E-06   -.30066E-04
   5  Prefactor     .10000E-03    14.383        .20348E-05** at limit **
   6  Prefactor     9.2176        8.3775       -.11573E-06   -.23246E-03
   7  Prefactor     .13668        1.8239        .12047E-07   -.10951E-03
   8  Prefactor     .10000E-03    142.79        .13885E-05** at limit **
   9  norm          14.754        9.0368        .82872E-07   -.12135E-04
  10  Prefactor     .10000E-03    1.0668       -.14183E-07** at limit **
  11  Prefactor     .10000E-03    8.4223       -.45328E-06** at limit **
  12  Prefactor     4.2287        2.2200        .96186E-07   -.16414E-02
  13  Prefactor     .10000E-03    4.7821       -.18913E-07** at limit **
  14  Prefactor     20.560        30.845       -.22192E-05   -.28729E-04
  15  Prefactor     3.1712        11.801        .12566E-05    .15565E-06
  16  Prefactor     5.0845        154.83       -.95096E-05   -.41965E-05
  17  Prefactor     .10000E-03    4.7311        .74051E-06** at limit **
  18  Prefactor     .10000E-03    12.997       -.93866E-06** at limit **
  19  Prefactor     .10000E-03    5.1630       -.28495E-06** at limit **
  20  norm          6.3516        6.3812        .35571E-08    .33052E-03
  21  norm          .10000E-03    1.5254        .45716E-07** at limit **
  22  norm          2.7866        2.9145        .38009E-07    .34694E-04
  23  Prefactor     3.3934        3.2603       -.24164E-08    .49638E-05
  24  Prefactor     .10000E-03    15.360        .40784E-06** at limit **
  25  Prefactor     .10000E-03    6.2471        .23371E-06** at limit **
  26  norm          1.1361        .80903       -.80256E-07   -.16151E-03
  27  Prefactor     .10000E-03    4.4096       -.69579E-06** at limit **
  28  Prefactor     30.769        27.442        .25575E-05    .57127E-04
  29  Normalizat    .89335        .16382        .21839E-06   -.18028E-03
  30  Prefactor     1.0289        .15249        .14922E-06   -.20466E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.87968
  Prefactor  = 0.0001
  Prefactor  = 0.474188
  norm       = 14.2088
  Prefactor  = 0.0001
  Prefactor  = 9.21763
  Prefactor  = 0.136677
  Prefactor  = 0.0001
  norm       = 14.7541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.22872
  Prefactor  = 0.0001
  Prefactor  = 20.5604
  Prefactor  = 3.17124
  Prefactor  = 5.08448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.35161
  norm       = 0.0001
  norm       = 2.78664
  Prefactor  = 3.39339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13614
  Prefactor  = 0.0001
  Prefactor  = 30.7685
  Normalizat = 0.893347
  Prefactor  = 1.02895
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.106     FROM HESSE     STATUS=OK           592 CALLS     4525 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8797        12.313        .14288E-03   -1.5146    
   2  Prefactor     .10000E-03    15.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .47419        6.7237        .22350E-02   -1.5570    
   4  norm          14.209        5.7050        .10626E-03   -1.4954    
   5  Prefactor     .10000E-03    14.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.2176        8.3340        .13190E-03   -1.5101    
   7  Prefactor     .13668        23.205        .20579E-02   -1.5634    
   8  Prefactor     .10000E-03    142.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.754        9.0410        .10426E-03   -1.4940    
  10  Prefactor     .10000E-03    1.0811        .82138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.4240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2287        6.0773        .97961E-03   -1.5297    
  13  Prefactor     .10000E-03    4.7878        .17398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.560        31.260        .88316E-04   -1.4801    
  15  Prefactor     3.1712        11.605        .22734E-03   -1.5352    
  16  Prefactor     5.0845        154.19        .17824E-03   -1.5257    
  17  Prefactor     .10000E-03    4.8356        .17282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1766        .18075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.3516        6.4644        .79634E-03   -1.5204    
  21  norm          .10000E-03    1.5256        .98256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.7866        2.9221        .13891E-03   -1.5374    
  23  Prefactor     3.3934        3.2599        .13975E-03   -1.5340    
  24  Prefactor     .10000E-03    15.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.2977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.1361        .79046        .59382E-04   -1.5495    
  27  Prefactor     .10000E-03    4.5583        .33421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     30.769        27.518        .72273E-04   -1.4598    
  29  Normalizat    .89335        .19406        .24822E-03   -.96694    
  30  Prefactor     1.0289        .17901        .22186E-03   -.91771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03618e-09
Minuit parameter uncertainties:
  1  12.3165
  2  1.41894e-05
  3  3.57128
  4  5.70526
  5  1.35583e-05
  6  8.335
  7  3.5619
  8  5.66134e-05
  9  9.04181
  10  1.20509e-07
  11  2.7655e-06
  12  6.07815
  13  8.90021e-07
  14  31.2853
  15  11.6136
  16  56.1587
  17  4.30514e-06
  18  2.25756e-06
  19  1.94128e-06
  20  6.46508
  21  1.14448e-07
  22  2.92227
  23  3.26006
  24  1.91189e-06
  25  6.29161e-06
  26  0.790468
  27  4.92994e-05
  28  27.5297
  29  0.194209
  30  0.179117
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  4.229e+00  6.078e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.029e+00  1.791e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  8.933e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.63
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386579/likelihoodResults_643161601_643420801_4FGL_J2235.3-4836_daily_bin1558.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) = 6634.88893298
delta logL = 1.21700780749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6634.85452819
delta logL = 1.25141259844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83497       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4464       1.0000          .0000       10.000    
     3 'Normalizat'    .82246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0732       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6634.855     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      254 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83424        7.5776        .10490E-01    .88564E-03
   2  Index         4.4479        2.9432        .14651        .13242E-03
   3  Normalizat    .82273        .40991E-01    .43903E-01    .23051E-04
   4  Prefactor     1.0727        .39232E-01    .38706E-01    .21367E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.834236
  Index      = 4.44788
  Normalizat = 0.822731
  Prefactor  = 1.07273
 **********
 **   18 **HESSE 
 **********

 FCN=   6634.855     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83424        17.526        .47490E-04   -1.5525    
   2  Index         4.4479        7.1197        .54660E-02   -.11065    
   3  Normalizat    .82273        .17011        .25733E-03   -.99231    
   4  Prefactor     1.0727        .16022        .21778E-03   -.90343    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.00259e-10
Minuit parameter uncertainties:
  1  7.64954
  2  5.8157
  3  0.170223
  4  0.160291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386579': 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) = 6634.85451921
delta logL = 1.25142157427

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  8.342e-01  7.650e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  4.448e+00  5.816e+00  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.073e+00  1.603e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  8.227e-01  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.34
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 4.45 +/- 5.82
Photon Flux (Free Index): 7.75e-08 +/- 5.55e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/386579/cmap_HighResolution_643161601_643420801_4FGL_J2235.3-4836_daily_bin1558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.10e-03', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='1.25e+00', photon_flux2='7.75e-08', job_status='DONE', time_completed='2021-09-28 16:21:15.310230', photon_index_error2='5.82', photon_index2='4.45', ts='0.63', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.28e-05', EG='0.89', time_epoch_completed='1632871275.31', return_code='0', job_id='386579', GAL2='1.07', EG2='0.82', return_code2='102', photon_flux_error2='5.55e-08', ts2='3.34', photon_index='2.51' WHERE bin_id='1558' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:21:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 386579: <4FGL_J2235.3-4836_daily_bin1558> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1558> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 16:05:47 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:05:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:05:48 2021
Terminated at Tue Sep 28 16:21:15 2021
Results reported at Tue Sep 28 16:21:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1558 338.841 -48.6015 643161601 643420801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.3-4836 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   895.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            928 sec.

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

