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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1164
RA = 338.841, Dec = -48.6015
tmin = 541036801, tmax = 541296001
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='384868', job_status='RUN', time_executed='2021-09-28 16:03:16.440352', time_epoch_executed='1632870196.44' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384868

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384868/ft1_4FGL_J2235.3-4836_daily_bin1164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384868/ft2_4FGL_J2235.3-4836_daily_bin1164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384868/ft1_4FGL_J2235.3-4836_daily_bin1164.fits outfile=/scratch/kocevski/384868/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1164.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=541036801.0 tmax=541296001.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.67
user 3.39
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384868/ft2_4FGL_J2235.3-4836_daily_bin1164.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/384868/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1164.fits evtable="EVENTS" outfile="/scratch/kocevski/384868/ft1_filtered_4FGL_J2235.3-4836_daily_bin1164.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.65
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384868/ft1_filtered_4FGL_J2235.3-4836_daily_bin1164.fits" evtable="EVENTS" scfile=/scratch/kocevski/384868/ft2_4FGL_J2235.3-4836_daily_bin1164.fits sctable="SC_DATA" outfile=/scratch/kocevski/384868/ltcube_541036801_541296001_4FGL_J2235.3-4836_daily_bin1164.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/384868/ft2_4FGL_J2235.3-4836_daily_bin1164.fits
.....................!
real 15.00
user 14.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384868/ft1_filtered_4FGL_J2235.3-4836_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/384868/ft2_4FGL_J2235.3-4836_daily_bin1164.fits sctable="SC_DATA" expcube=/scratch/kocevski/384868/ltcube_541036801_541296001_4FGL_J2235.3-4836_daily_bin1164.fits outfile=/scratch/kocevski/384868/expmap_541036801_541296001_4FGL_J2235.3-4836_daily_bin1164.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/384868/ltcube_541036801_541296001_4FGL_J2235.3-4836_daily_bin1164.fits
.....................!
real 191.32
user 185.52
sys 5.37

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/384868/ft1_filtered_4FGL_J2235.3-4836_daily_bin1164.fits scfile=/scratch/kocevski/384868/ft2_4FGL_J2235.3-4836_daily_bin1164.fits outfile=/scratch/kocevski/384868/cmap_541036801_541296001_4FGL_J2235.3-4836_daily_bin1164.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.57
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384868/ft1_filtered_4FGL_J2235.3-4836_daily_bin1164.fits scfile=/scratch/kocevski/384868/ft2_4FGL_J2235.3-4836_daily_bin1164.fits outfile=/scratch/kocevski/384868/cmap_HighResolution_541036801_541296001_4FGL_J2235.3-4836_daily_bin1164.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384868/ft1_filtered_4FGL_J2235.3-4836_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/384868/ft2_4FGL_J2235.3-4836_daily_bin1164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384868/Model_4FGL_J2235.3-4836_daily_bin1164.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/384868/ft1_filtered_4FGL_J2235.3-4836_daily_bin1164.fits.....................!
real 40.03
user 38.44
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1923       1.0000         .10000E-03   10000.    
     4 'norm      '    16.709       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7295       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3441       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21118       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2122       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.128       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.801       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.711       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.358       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.991       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.084       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.1440       1.0000         .10000E-03   10000.    
    26 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88507       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1136       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=   4682.317     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3878 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.657       -.14368E-06** at limit **
   2  Prefactor     .10000E-03    10.538        .20789E-06** at limit **
   3  Prefactor     3.1944        5.3040        .16741E-05   -.90737E-05
   4  norm          16.711        7.9725        .27513E-07   -.12570E-04
   5  Prefactor     1.5895        147.44        .79033E-05   -.33522E-05
   6  Prefactor     9.3380        11.152       -.11518E-06   -.62879E-04
   7  Prefactor     .23574        3.1912        .19270E-06   -.20781E-03
   8  Prefactor     .10000E-03    59.275        .28658E-05** at limit **
   9  norm          .10000E-03    6.0448       -.74125E-07** at limit **
  10  Prefactor     1.2123        3.4386        .10512E-06   -.11107E-04
  11  Prefactor     .10000E-03    16.271       -.44428E-06** at limit **
  12  Prefactor     13.127        8.1807       -.14708E-06   -.28159E-04
  13  Prefactor     30.799        25.325        .16746E-06    .18973E-05
  14  Prefactor     20.673        40.869        .28224E-05   -.21781E-05
  15  Prefactor     15.345        17.066       -.36609E-06   -.33585E-04
  16  Prefactor     .10000E-03    161.75        .58745E-05** at limit **
  17  Prefactor     .10000E-03    3.9413        .17306E-07** at limit **
  18  Prefactor     29.991        35.993       -.10817E-07   -.16875E-05
  19  Prefactor     .10000E-03    25.674       -.49555E-06** at limit **
  20  norm          .10000E-03    5.3906        .18911E-07** at limit **
  21  norm          .10000E-03    3.6197        .31078E-09** at limit **
  22  norm          .10000E-03    4.7840        .17681E-07** at limit **
  23  Prefactor     17.086        15.421        .74000E-08    .24475E-04
  24  Prefactor     .10000E-03    96.633       -.10133E-04** at limit **
  25  Prefactor     7.1442        35.589        .61488E-06    .10432E-04
  26  norm          .10000E-03    .76107        .51220E-08** at limit **
  27  Prefactor     .10000E-03    1.4659       -.47251E-09** at limit **
  28  Prefactor     .10000E-03    15.492        .74363E-06** at limit **
  29  Normalizat    .88528        .22928       -.89875E-07   -.88950E-05
  30  Prefactor     1.1133        .19815       -.74740E-06   -.21007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.19438
  norm       = 16.7108
  Prefactor  = 1.58951
  Prefactor  = 9.33797
  Prefactor  = 0.235745
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.21228
  Prefactor  = 0.0001
  Prefactor  = 13.1275
  Prefactor  = 30.7994
  Prefactor  = 20.6726
  Prefactor  = 15.3453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9907
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.0862
  Prefactor  = 0.0001
  Prefactor  = 7.14416
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.885282
  Prefactor  = 1.11332
 **********
 **   18 **HESSE 
 **********

 FCN=   4682.317     FROM HESSE     STATUS=OK           590 CALLS     4468 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1944        5.3155        .96170E-03   -1.5350    
   4  norm          16.711        7.9762        .97983E-04   -1.4890    
   5  Prefactor     1.5895        147.92        .31924E-03   -1.5456    
   6  Prefactor     9.3380        11.109        .13111E-03   -1.5097    
   7  Prefactor     .23574        31.282        .22021E-02   -1.5611    
   8  Prefactor     .10000E-03    59.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.0676        .16429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2123        3.3763        .20393E-03   -1.5488    
  11  Prefactor     .10000E-03    16.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.127        8.1846        .11055E-03   -1.4983    
  13  Prefactor     30.799        25.351        .72194E-04   -1.4597    
  14  Prefactor     20.673        40.927        .88012E-04   -1.4798    
  15  Prefactor     15.345        17.019        .10220E-03   -1.4924    
  16  Prefactor     .10000E-03    162.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9581        .13265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.991        35.992        .73161E-04   -1.4612    
  19  Prefactor     .10000E-03    25.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.3919        .15517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.6241        .12713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.8036        .14617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.086        15.179        .96900E-04   -1.4881    
  24  Prefactor     .10000E-03    96.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.1442        34.525        .15008E-03   -1.5173    
  26  norm          .10000E-03    .79376        .11614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.4669        .80908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88528        .26394        .27667E-03   -.96979    
  30  Prefactor     1.1133        .22703        .22899E-03   -.89042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11271e-10
Minuit parameter uncertainties:
  1  5.78386e-06
  2  1.28879e-06
  3  5.31627
  4  7.9767
  5  30.7451
  6  11.1113
  7  5.43299
  8  1.37564e-05
  9  3.88333e-06
  10  3.37681
  11  3.48559e-06
  12  8.18534
  13  25.3602
  14  40.9825
  15  17.0248
  16  4.75398e-05
  17  1.3346e-06
  18  36.0177
  19  2.97266e-06
  20  4.85327e-07
  21  2.63821e-07
  22  2.58855e-06
  23  15.1825
  24  0.000134056
  25  31.4392
  26  2.55816e-07
  27  1.4155e-08
  28  6.79126e-06
  29  0.264321
  30  0.227231
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.313e+01  8.185e+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.113e+00  2.272e-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.853e-01  2.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.80
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 8.26e-08 +/- 5.15e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.48e-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) = 4682.22793156
delta logL = 0.0894959855195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4682.22144958
delta logL = 0.095977968338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.067       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2610       1.0000          .0000       10.000    
     3 'Normalizat'    .90336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1030       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.

 FCN=   4682.221     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      237 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.067        9.0526        .10679E-03   -.27295E-03
   2  Index         2.2611        .56095        .72720E-02   -.63018E-04
   3  Normalizat    .90336        .24778        .27426E-03    .23421E-04
   4  Prefactor     1.1030        .22470        .22995E-03    .28180E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0669
  Index      = 2.2611
  Normalizat = 0.903364
  Prefactor  = 1.10305
 **********
 **   18 **HESSE 
 **********

 FCN=   4682.221     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.067        9.0364        .42717E-05   -1.4958    
   2  Index         2.2611        .55966        .29088E-03   -.57971    
   3  Normalizat    .90336        .24802        .10970E-04   -.96342    
   4  Prefactor     1.1030        .22490        .91981E-05   -.89369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19931e-10
Minuit parameter uncertainties:
  1  9.03727
  2  0.561339
  3  0.248333
  4  0.22509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384868': 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) = 4682.22144957
delta logL = 0.0959779787599

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.407e+01  9.037e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.261e+00  5.613e-01  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.103e+00  2.251e-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:  9.034e-01  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.98
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 2.26 +/- 0.56
Photon Flux (Free Index): 6.74e-08 +/- 5.66e-08
Energy Flux (Free Index): 2.72e-05 +/- 2.05e-05

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/384868/cmap_HighResolution_541036801_541296001_4FGL_J2235.3-4836_daily_bin1164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.26e-08', energy_flux2='2.72e-05', photon_flux_error='5.15e-08', dlogl='9.60e-02', energy_flux='2.37e-05', photon_flux2='6.74e-08', job_status='DONE', time_completed='2021-09-28 16:13:54.551210', photon_index_error2='0.56', photon_index2='2.26', ts='7.80', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='0.89', time_epoch_completed='1632870834.55', return_code='0', job_id='384868', GAL2='1.10', EG2='0.90', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='5.66e-08', ts2='7.98', photon_index='2.51' WHERE bin_id='1164' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:13:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 384868: <4FGL_J2235.3-4836_daily_bin1164> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1164> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 16:00:19 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:00:20 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:20 2021
Terminated at Tue Sep 28 16:13:57 2021
Results reported at Tue Sep 28 16:13:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1164 338.841 -48.6015 541036801 541296001 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 :                                   636.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            818 sec.

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

