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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1584
RA = 338.841, Dec = -48.6015
tmin = 649900801, tmax = 650160001
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='386622', job_status='RUN', time_executed='2021-09-28 16:06:11.018128', time_epoch_executed='1632870371.02' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1584'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386622

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386622/ft1_4FGL_J2235.3-4836_daily_bin1584.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386622/ft2_4FGL_J2235.3-4836_daily_bin1584.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386622/ft1_4FGL_J2235.3-4836_daily_bin1584.fits outfile=/scratch/kocevski/386622/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1584.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=649900801.0 tmax=650160001.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 5.06
user 4.81
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386622/ft2_4FGL_J2235.3-4836_daily_bin1584.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/386622/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1584.fits evtable="EVENTS" outfile="/scratch/kocevski/386622/ft1_filtered_4FGL_J2235.3-4836_daily_bin1584.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.89
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386622/ft1_filtered_4FGL_J2235.3-4836_daily_bin1584.fits" evtable="EVENTS" scfile=/scratch/kocevski/386622/ft2_4FGL_J2235.3-4836_daily_bin1584.fits sctable="SC_DATA" outfile=/scratch/kocevski/386622/ltcube_649900801_650160001_4FGL_J2235.3-4836_daily_bin1584.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/386622/ft2_4FGL_J2235.3-4836_daily_bin1584.fits
.....................!
real 11.81
user 11.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386622/ft1_filtered_4FGL_J2235.3-4836_daily_bin1584.fits evtable="EVENTS" scfile=/scratch/kocevski/386622/ft2_4FGL_J2235.3-4836_daily_bin1584.fits sctable="SC_DATA" expcube=/scratch/kocevski/386622/ltcube_649900801_650160001_4FGL_J2235.3-4836_daily_bin1584.fits outfile=/scratch/kocevski/386622/expmap_649900801_650160001_4FGL_J2235.3-4836_daily_bin1584.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/386622/ltcube_649900801_650160001_4FGL_J2235.3-4836_daily_bin1584.fits
.....................!
real 189.65
user 184.73
sys 4.46

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/386622/ft1_filtered_4FGL_J2235.3-4836_daily_bin1584.fits scfile=/scratch/kocevski/386622/ft2_4FGL_J2235.3-4836_daily_bin1584.fits outfile=/scratch/kocevski/386622/cmap_649900801_650160001_4FGL_J2235.3-4836_daily_bin1584.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386622/ft1_filtered_4FGL_J2235.3-4836_daily_bin1584.fits scfile=/scratch/kocevski/386622/ft2_4FGL_J2235.3-4836_daily_bin1584.fits outfile=/scratch/kocevski/386622/cmap_HighResolution_649900801_650160001_4FGL_J2235.3-4836_daily_bin1584.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386622/ft1_filtered_4FGL_J2235.3-4836_daily_bin1584.fits evtable="EVENTS" scfile=/scratch/kocevski/386622/ft2_4FGL_J2235.3-4836_daily_bin1584.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386622/Model_4FGL_J2235.3-4836_daily_bin1584.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/386622/ft1_filtered_4FGL_J2235.3-4836_daily_bin1584.fits.....................!
real 42.54
user 41.17
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.337       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1457       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .63662       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4099       1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.150       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0119       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.878       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12430E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8610       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97035       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.384       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.360       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.665       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6270       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6307       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.6134       1.0000         .10000E-03   10000.    
    25 'Prefactor '    44.993       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.9487       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78936       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0628       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=   5503.796     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3934 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.337        13.073       -.21055E-06   -.16056E-04
   2  Prefactor     6.1445        22.741        .13188E-06   -.44582E-06
   3  Prefactor     .63608        3.1025        .33727E-06   -.54002E-04
   4  norm          1.4098        1.9127       -.20083E-07    .12379E-05
   5  Prefactor     51.165        38.500       -.11985E-05   -.89435E-05
   6  Prefactor     3.5636        12.126       -.23074E-05    .62910E-05
   7  Prefactor     1.0114        2.7722       -.10717E-06    .22881E-04
   8  Prefactor     50.962        141.55        .11947E-05    .33351E-05
   9  norm          .10000E-03    2.3538       -.19136E-06** at limit **
  10  Prefactor     .10000E-03    2.2572       -.12099E-06** at limit **
  11  Prefactor     6.8652        38.737       -.21173E-05    .63389E-06
  12  Prefactor     .97045        7.8974       -.72171E-06    .19345E-04
  13  Prefactor     .10000E-03    7.3707       -.53856E-08** at limit **
  14  Prefactor     14.388        28.160       -.44458E-07    .37744E-04
  15  Prefactor     .10000E-03    8.8003       -.22770E-06** at limit **
  16  Prefactor     22.350        79.153        .29460E-05    .77053E-05
  17  Prefactor     .10000E-03    3.4493       -.13917E-07** at limit **
  18  Prefactor     19.667        31.439       -.35346E-06    .70363E-05
  19  Prefactor     7.6252        13.418       -.15230E-06   -.21221E-04
  20  norm          1.6303        17.744        .16584E-05   -.18410E-05
  21  norm          .10000E-03    4.5999       -.96494E-07** at limit **
  22  norm          .10000E-03    2.4497        .23095E-07** at limit **
  23  Prefactor     .10000E-03    6.2129       -.19817E-06** at limit **
  24  Prefactor     3.6119        37.492        .16997E-06   -.22607E-06
  25  Prefactor     44.993        19.318       -.27698E-06   -.37847E-04
  26  norm          .10000E-03    .60597        .23271E-07** at limit **
  27  Prefactor     1.9481        6.0595        .14481E-05   -.39341E-04
  28  Prefactor     .10000E-03    59.094        .22510E-07** at limit **
  29  Normalizat    .78937        .19563        .85276E-06    .32221E-04
  30  Prefactor     1.0629        .17036        .42015E-06    .84088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.337
  Prefactor  = 6.14446
  Prefactor  = 0.636082
  norm       = 1.40984
  Prefactor  = 51.165
  Prefactor  = 3.56359
  Prefactor  = 1.01144
  Prefactor  = 50.9617
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.86521
  Prefactor  = 0.970448
  Prefactor  = 0.0001
  Prefactor  = 14.3884
  Prefactor  = 0.0001
  Prefactor  = 22.3501
  Prefactor  = 0.0001
  Prefactor  = 19.6665
  Prefactor  = 7.62519
  norm       = 1.63034
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61188
  Prefactor  = 44.9929
  norm       = 0.0001
  Prefactor  = 1.94814
  Prefactor  = 0.0001
  Normalizat = 0.789366
  Prefactor  = 1.06286
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.796     FROM HESSE     STATUS=OK           600 CALLS     4534 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.337        13.006        .91082E-04   -1.4828    
   2  Prefactor     6.1445        22.717        .16194E-03   -1.5212    
   3  Prefactor     .63608        5.3062        .23984E-02   -1.5548    
   4  norm          1.4098        1.8917        .11656E-03   -1.5470    
   5  Prefactor     51.165        38.477        .56075E-04   -1.4276    
   6  Prefactor     3.5636        12.088        .21397E-03   -1.5330    
   7  Prefactor     1.0114        2.7208        .19402E-03   -1.5507    
   8  Prefactor     50.962        141.61        .56224E-04   -1.4279    
   9  norm          .10000E-03    2.3563        .11116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6580        .21351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8652        38.492        .15317E-03   -1.5184    
  12  Prefactor     .97045        7.8700        .36425E-02   -1.5511    
  13  Prefactor     .10000E-03    7.3753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.388        27.684        .10561E-03   -1.4949    
  15  Prefactor     .10000E-03    8.8644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.350        78.919        .84708E-04   -1.4762    
  17  Prefactor     .10000E-03    3.4662        .13454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.667        31.406        .90320E-04   -1.4821    
  19  Prefactor     7.6252        13.276        .14521E-03   -1.5156    
  20  norm          1.6303        17.653        .16558E-02   -1.5453    
  21  norm          .10000E-03    4.6349        .15536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.4499        .11334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.2502        .18009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.6119        37.442        .21255E-03   -1.5328    
  25  Prefactor     44.993        19.013        .59771E-04   -1.4365    
  26  norm          .10000E-03    .97719        .10724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.9481        6.0911        .14865E-02   -1.5429    
  28  Prefactor     .10000E-03    59.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .78937        .22303        .26204E-03   -1.0046    
  30  Prefactor     1.0629        .19915        .21449E-03   -.90662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38933e-08
Minuit parameter uncertainties:
  1  13.0075
  2  22.7488
  3  3.67449
  4  1.89173
  5  38.4959
  6  12.0959
  7  2.72113
  8  142.56
  9  5.35429e-09
  10  2.3394e-06
  11  32.5437
  12  5.5279
  13  3.5114e-06
  14  27.7091
  15  2.74239e-05
  16  79.2908
  17  4.98644e-06
  18  31.4325
  19  13.2815
  20  10.7332
  21  4.7735e-06
  22  9.3474e-07
  23  1.04344e-05
  24  23.2765
  25  19.0154
  26  2.46281e-05
  27  6.09299
  28  0.00012268
  29  0.223285
  30  0.199291
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  9.704e-01  5.528e+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.063e+00  1.993e-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:  7.894e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 8.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386622/likelihoodResults_649900801_650160001_4FGL_J2235.3-4836_daily_bin1584.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) = 5503.15758461
delta logL = 0.638322130505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5503.14796828
delta logL = 0.647938461698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15877       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1611       1.0000          .0000       10.000    
     3 'Normalizat'    .73474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0959       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=   5503.148     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      250 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15523        2.8868        .62741E-02    .22274E-02
   2  Index         5.1758        3.7302        .14681        .11904E-03
   3  Normalizat    .73443        .40122E-01    .61234E-01    .21510E-04
   4  Prefactor     1.0961        .37780E-01    .37743E-01    .42257E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.155229
  Index      = 5.17581
  Normalizat = 0.734426
  Prefactor  = 1.0961
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.148     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      285 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15523        7.7063        .29082E-03   -1.5629    
   2  Index         5.1758        7.5723        .72128E-02    .35168E-01
   3  Normalizat    .73443        .15058        .27086E-03   -1.0255    
   4  Prefactor     1.0961        .13939        .21157E-03   -.89591    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.9142e-11
Minuit parameter uncertainties:
  1  2.18706
  2  8.58318
  3  0.15066
  4  0.139436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386622': 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) = 5503.14795694
delta logL = 0.647949800498

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.552e-01  2.187e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  5.176e+00  8.583e+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.096e+00  1.394e-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:  7.344e-01  1.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 5.18 +/- 8.58
Photon Flux (Free Index): 4.47e-08 +/- 4.82e-08
Energy Flux (Free Index): 5.85e-06 +/- 8.86e-06

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/386622/cmap_HighResolution_649900801_650160001_4FGL_J2235.3-4836_daily_bin1584.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', comment='SUCCESS', energy_flux2='5.85e-06', dlogl='6.48e-01', photon_flux2='4.47e-08', job_status='DONE', time_completed='2021-09-28 16:19:31.970589', photon_index_error2='8.58', photon_index2='5.18', ts='0.04', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='8.67e-08', energy_flux_error2='8.86e-06', EG='0.79', time_epoch_completed='1632871171.97', return_code='0', job_id='386622', GAL2='1.10', EG2='0.73', return_code2='102', photon_flux_error2='4.82e-08', ts2='1.41', photon_index='2.51' WHERE bin_id='1584' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:19:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 386622: <4FGL_J2235.3-4836_daily_bin1584> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1584> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 16:05:51 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:05:52 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:52 2021
Terminated at Tue Sep 28 16:19:32 2021
Results reported at Tue Sep 28 16:19:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1584 338.841 -48.6015 649900801 650160001 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 :                                   797.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            821 sec.

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

