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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1218
RA = 338.841, Dec = -48.6015
tmin = 555033601, tmax = 555292801
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='384950', job_status='RUN', time_executed='2021-09-28 16:02:15.045256', time_epoch_executed='1632870135.05' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384950

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384950/ft1_4FGL_J2235.3-4836_daily_bin1218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384950/ft2_4FGL_J2235.3-4836_daily_bin1218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384950/ft1_4FGL_J2235.3-4836_daily_bin1218.fits outfile=/scratch/kocevski/384950/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1218.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=555033601.0 tmax=555292801.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.60
user 3.38
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384950/ft2_4FGL_J2235.3-4836_daily_bin1218.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/384950/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1218.fits evtable="EVENTS" outfile="/scratch/kocevski/384950/ft1_filtered_4FGL_J2235.3-4836_daily_bin1218.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384950/ft1_filtered_4FGL_J2235.3-4836_daily_bin1218.fits" evtable="EVENTS" scfile=/scratch/kocevski/384950/ft2_4FGL_J2235.3-4836_daily_bin1218.fits sctable="SC_DATA" outfile=/scratch/kocevski/384950/ltcube_555033601_555292801_4FGL_J2235.3-4836_daily_bin1218.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/384950/ft2_4FGL_J2235.3-4836_daily_bin1218.fits
.....................!
real 11.84
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384950/ft1_filtered_4FGL_J2235.3-4836_daily_bin1218.fits evtable="EVENTS" scfile=/scratch/kocevski/384950/ft2_4FGL_J2235.3-4836_daily_bin1218.fits sctable="SC_DATA" expcube=/scratch/kocevski/384950/ltcube_555033601_555292801_4FGL_J2235.3-4836_daily_bin1218.fits outfile=/scratch/kocevski/384950/expmap_555033601_555292801_4FGL_J2235.3-4836_daily_bin1218.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/384950/ltcube_555033601_555292801_4FGL_J2235.3-4836_daily_bin1218.fits
.....................!
real 193.12
user 187.48
sys 5.26

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/384950/ft1_filtered_4FGL_J2235.3-4836_daily_bin1218.fits scfile=/scratch/kocevski/384950/ft2_4FGL_J2235.3-4836_daily_bin1218.fits outfile=/scratch/kocevski/384950/cmap_555033601_555292801_4FGL_J2235.3-4836_daily_bin1218.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/384950/ft1_filtered_4FGL_J2235.3-4836_daily_bin1218.fits scfile=/scratch/kocevski/384950/ft2_4FGL_J2235.3-4836_daily_bin1218.fits outfile=/scratch/kocevski/384950/cmap_HighResolution_555033601_555292801_4FGL_J2235.3-4836_daily_bin1218.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384950/ft1_filtered_4FGL_J2235.3-4836_daily_bin1218.fits evtable="EVENTS" scfile=/scratch/kocevski/384950/ft2_4FGL_J2235.3-4836_daily_bin1218.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384950/Model_4FGL_J2235.3-4836_daily_bin1218.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/384950/ft1_filtered_4FGL_J2235.3-4836_daily_bin1218.fits.....................!
real 17.37
user 16.01
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/384950/ft1_filtered_4FGL_J2235.3-4836_daily_bin1218.fits', '/scratch/kocevski/384950/ft2_4FGL_J2235.3-4836_daily_bin1218.fits', expMap='/scratch/kocevski/384950/expmap_555033601_555292801_4FGL_J2235.3-4836_daily_bin1218.fits', expCube='/scratch/kocevski/384950/ltcube_555033601_555292801_4FGL_J2235.3-4836_daily_bin1218.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/384950/Model_4FGL_J2235.3-4836_daily_bin1218.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/384950/ft1_filtered_4FGL_J2235.3-4836_daily_bin1218.fits
Spacecraft file(s): /scratch/kocevski/384950/ft2_4FGL_J2235.3-4836_daily_bin1218.fits
Exposure map: /scratch/kocevski/384950/expmap_555033601_555292801_4FGL_J2235.3-4836_daily_bin1218.fits
Exposure cube: /scratch/kocevski/384950/ltcube_555033601_555292801_4FGL_J2235.3-4836_daily_bin1218.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/384950/Model_4FGL_J2235.3-4836_daily_bin1218.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) = 512.640532852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.264       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    22.699       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13081E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1603.7       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    245.79       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3468       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .35809       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=   512.5305     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3811 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.351        104.37        .63399E-04   -.63320E-05
   2  Prefactor     .10000E-03    1837.2       -.10985E-02** at limit **
   3  Prefactor     .10000E-03    35.925       -.14698E-04** at limit **
   4  norm          22.699        21.154       -.46832E-05   -.72467E-05
   5  Prefactor     .10000E-03    388.60        .12970E-03** at limit **
   6  Prefactor     .10000E-03    57.217       -.48159E-04** at limit **
   7  Prefactor     .10000E-03    77.375        .36227E-04** at limit **
   8  Prefactor     .10000E-03    620.19       -.14931E-03** at limit **
   9  norm          .10000E-03    123.74       -.37445E-04** at limit **
  10  Prefactor     .10000E-03    22.424        .34089E-05** at limit **
  11  Prefactor     .10000E-03    89.822        .31321E-04** at limit **
  12  Prefactor     .10001E-03    40.260        .17399E-04** at limit **
  13  Prefactor     .10000E-03    118.15       -.30265E-04** at limit **
  14  Prefactor     1603.0        1341.5       -.17332E-03   -.11497E-04
  15  Prefactor     .10000E-03    114.45       -.24325E-04** at limit **
  16  Prefactor     .10000E-03    1350.2       -.84947E-03** at limit **
  17  Prefactor     .10000E-03    24.307        .74987E-05** at limit **
  18  Prefactor     .10000E-03    412.38        .11023E-03** at limit **
  19  Prefactor     .10000E-03    115.46       -.26010E-04** at limit **
  20  norm          .10000E-03    23.605       -.93233E-05** at limit **
  21  norm          .10000E-03    41.434        .11108E-04** at limit **
  22  norm          .10000E-03    13.231       -.32888E-06** at limit **
  23  Prefactor     .10000E-03    23.989        .37140E-06** at limit **
  24  Prefactor     245.85        210.25        .31855E-04    .30163E-05
  25  Prefactor     .10000E-03    70.101        .16023E-04** at limit **
  26  norm          .10000E-03    6.0288        .42202E-06** at limit **
  27  Prefactor     .10000E-03    94.779        .20927E-04** at limit **
  28  Prefactor     .10000E-03    365.63        .14730E-03** at limit **
  29  Normalizat    1.3461        .74340       -.43060E-06   -.44741E-04
  30  Prefactor     .35834        .56245       -.19759E-04   -.44725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.3508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.6994
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  Prefactor  = 1603.03
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 245.848
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.34609
  Prefactor  = 0.358343
 **********
 **   18 **HESSE 
 **********

 FCN=   512.5305     FROM HESSE     STATUS=OK           564 CALLS     4375 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.351        104.29        .23613E-03   -1.4005    
   2  Prefactor     .10000E-03    1836.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.929        .13266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          22.699        21.145        .84073E-04   -1.4755    
   5  Prefactor     .10000E-03    388.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    57.212        .16746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    77.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    620.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    123.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.713        .10469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    89.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    40.330        .14045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    118.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1603.0        1355.8        .54504E-04   -.74694    
  15  Prefactor     .10000E-03    114.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1349.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.368        .10906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    412.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    115.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    23.605        .10751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    41.434        .14248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.231        .80469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.989        .10838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     245.85        214.05        .12917E-03   -1.2559    
  25  Prefactor     .10000E-03    70.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.0289        .54316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    94.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    365.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3461        .89863        .24530E-03   -.82201    
  30  Prefactor     .35834        .66632        .35593E-03   -1.1899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27633e-10
Minuit parameter uncertainties:
  1  104.551
  2  3.26426e-05
  3  0.00017757
  4  21.1525
  5  0.00156133
  6  6.35341e-05
  7  0.000105124
  8  0.00036176
  9  4.89255e-05
  10  0.00052547
  11  0.000189517
  12  0.000997363
  13  0.000869427
  14  1388.68
  15  0.00018659
  16  0.00150441
  17  0.000163689
  18  0.0027549
  19  0.000281773
  20  7.26763e-07
  21  1.77351e-05
  22  7.11028e-05
  23  2.81833e-05
  24  214.735
  25  4.10743e-05
  26  1.815e-05
  27  6.54498e-05
  28  7.17915e-05
  29  0.909438
  30  0.681482
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  9.974e-04  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:  3.583e-01  6.815e-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:  1.346e+00  9.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 8.85e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.89e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384950/likelihoodResults_555033601_555292801_4FGL_J2235.3-4836_daily_bin1218.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) = 512.530566705
delta logL = -0.000109173534042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 512.530457651
delta logL = -1.19992250802e-07

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 'Index     '    2.3599       1.0000          .0000       10.000    
     3 'Normalizat'    1.3461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .35835       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   512.3719     FROM MIGRAD    STATUS=FAILED       172 CALLS      376 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47083E-03    .16264        .26361E-03** at limit **
   2  Index        10.0000        5.7440        .50000    ** at limit **
   3  Normalizat    1.2573        .56426        .24530E-03   -.10129E-03
   4  Prefactor     .41053        .44493        .35594E-02   -.63001E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   512.3719     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      502 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47083E-03    .16264        .10849E-05** at limit **
   2  Index        10.0000        5.7440        .15647E-01** at limit **
   3  Normalizat    1.2573        .56426        .48376E-05   -.10129E-03
   4  Prefactor     .41053        .44493        .17572E-05   -.63001E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   512.3719     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      536 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47084E-03    .10135E-02    .11908E-04** at limit **
   2  Index        10.0000        8.8342        .29015E-01** at limit **
   3  Normalizat    1.2573        .83631        .49061E-04   -.92024E-04
   4  Prefactor     .41053        .65705        .14238E-03   -.60390E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000470842
  Index      = 10
  Normalizat = 1.25733
  Prefactor  = 0.410531
 **********
 **   18 **HESSE 
 **********

 FCN=   512.3719     FROM HESSE     STATUS=OK            23 CALLS      559 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47084E-03    .10063E-02    .47633E-06   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        8.8310        .58029E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2573        .83639        .98122E-05   -.84849    
   4  Prefactor     .41053        .65713        .28475E-04   -1.1627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62698e-10
Minuit parameter uncertainties:
  1  0.00100628
  2  0.000258037
  3  0.845606
  4  0.66978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384950': 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) = 512.371893263
delta logL = 0.158564267958

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  4.708e-04  1.006e-03  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  1.000e+01  2.580e-04  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:  4.105e-01  6.698e-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:  1.257e+00  8.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.841 -48.602

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/384950/cmap_HighResolution_555033601_555292801_4FGL_J2235.3-4836_daily_bin1218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.89e-02', job_status='DONE', photon_flux_upper_limit='8.85e-07', time_completed='2021-09-28 16:08:24.027906', job_id='384950', GAL2='0.41', fit_tolerance='1e-08', EG2='1.26', EG='1.35', time_epoch_completed='1632870504.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.36', dlogl='1.59e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1218' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:08:24 PDT 2021


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

Job <4FGL_J2235.3-4836_daily_bin1218> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 16:00:26 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:00:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:00:28 2021
Terminated at Tue Sep 28 16:08:24 2021
Results reported at Tue Sep 28 16:08:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1218 338.841 -48.6015 555033601 555292801 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 :                                   368.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   476 sec.
    Turnaround time :                            478 sec.

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

