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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1131
RA = 338.841, Dec = -48.6015
tmin = 532483201, tmax = 532742401
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='384819', job_status='RUN', time_executed='2021-09-28 16:01:51.519420', time_epoch_executed='1632870111.52' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384819/ft1_4FGL_J2235.3-4836_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384819/ft2_4FGL_J2235.3-4836_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384819/ft1_4FGL_J2235.3-4836_daily_bin1131.fits outfile=/scratch/kocevski/384819/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1131.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=532483201.0 tmax=532742401.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.54
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384819/ft1_filtered_4FGL_J2235.3-4836_daily_bin1131.fits" evtable="EVENTS" scfile=/scratch/kocevski/384819/ft2_4FGL_J2235.3-4836_daily_bin1131.fits sctable="SC_DATA" outfile=/scratch/kocevski/384819/ltcube_532483201_532742401_4FGL_J2235.3-4836_daily_bin1131.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/384819/ft2_4FGL_J2235.3-4836_daily_bin1131.fits
.....................!
real 12.02
user 11.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384819/ft1_filtered_4FGL_J2235.3-4836_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/384819/ft2_4FGL_J2235.3-4836_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/384819/ltcube_532483201_532742401_4FGL_J2235.3-4836_daily_bin1131.fits outfile=/scratch/kocevski/384819/expmap_532483201_532742401_4FGL_J2235.3-4836_daily_bin1131.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/384819/ltcube_532483201_532742401_4FGL_J2235.3-4836_daily_bin1131.fits
.....................!
real 191.57
user 185.98
sys 4.88

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/384819/ft1_filtered_4FGL_J2235.3-4836_daily_bin1131.fits scfile=/scratch/kocevski/384819/ft2_4FGL_J2235.3-4836_daily_bin1131.fits outfile=/scratch/kocevski/384819/cmap_532483201_532742401_4FGL_J2235.3-4836_daily_bin1131.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384819/ft1_filtered_4FGL_J2235.3-4836_daily_bin1131.fits scfile=/scratch/kocevski/384819/ft2_4FGL_J2235.3-4836_daily_bin1131.fits outfile=/scratch/kocevski/384819/cmap_HighResolution_532483201_532742401_4FGL_J2235.3-4836_daily_bin1131.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384819/ft1_filtered_4FGL_J2235.3-4836_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/384819/ft2_4FGL_J2235.3-4836_daily_bin1131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384819/Model_4FGL_J2235.3-4836_daily_bin1131.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/384819/ft1_filtered_4FGL_J2235.3-4836_daily_bin1131.fits.....................!
real 41.70
user 40.13
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.258       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6792       1.0000         .10000E-03   10000.    
     4 'norm      '    46.947       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.388       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11679E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4939       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12855       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .34574       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8750       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7132       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7077       1.0000         .10000E-03   10000.    
    20 'norm      '    .17658E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1419       1.0000         .10000E-03   10000.    
    22 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .71546       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .23541E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.0370       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.7877       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .52956       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=   5153.415     FROM MIGRAD    STATUS=CONVERGED   1396 CALLS     4004 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7653        .16795E-02** at limit **
   2  Prefactor     20.272        31.415        .88988E-04    .50208E-04
   3  Prefactor     7.6794        5.7674        .71046E-03    .56134E-04
   4  norm          46.947        11.168        .58520E-04    .37494E-04
   5  Prefactor     18.331        41.889        .93401E-04   -.20692E-05
   6  Prefactor     .10000E-03    7.2016        .18142E-02** at limit **
   7  Prefactor     .10000E-03    1.8374        .94589E-03** at limit **
   8  Prefactor     .10000E-03    35.625        .18142E-02** at limit **
   9  norm          .10000E-03    2.3306        .10703E-02** at limit **
  10  Prefactor     .10000E-03    3.2683        .12553E-02** at limit **
  11  Prefactor     .10000E-03    76.078        .18142E-02** at limit **
  12  Prefactor     4.4894        8.2295        .18993E-03   -.21429E-04
  13  Prefactor     .99381E-01    42.767        .11343        .61741E-04
  14  Prefactor     .10000E-03    22.717        .18142E-02** at limit **
  15  Prefactor     .40611        75.988        .36518E-02    .33868E-03
  16  Prefactor     .10000E-03    69.369        .18142E-02** at limit **
  17  Prefactor     1.8777        17.631        .30411E-03   -.27290E-04
  18  Prefactor     5.7074        61.259        .16805E-03   -.61563E-05
  19  Prefactor     9.7011        17.010        .12862E-03    .31379E-04
  20  norm          .10009E-03    50.160        .44926E-02** at limit **
  21  norm          3.1420        4.5947        .18096E-03   -.97380E-05
  22  norm          .10000E-03    3.7061        .13486E-02** at limit **
  23  Prefactor     .71639        4.2591        .29173E-03    .22155E-03
  24  Prefactor     .10000E-03    274.49        .18142E-02** at limit **
  25  Prefactor     .10000E-03    7.5340        .18142E-02** at limit **
  26  norm          1.0367        .96017        .67531E-03   -.42706E-03
  27  Prefactor     .10000E-03    1.3265        .80721E-03** at limit **
  28  Prefactor     .10000E-03    11.192        .18142E-02** at limit **
  29  Normalizat    1.7875        .27469        .22391E-03    .19292E-03
  30  Prefactor     .52967        .23197        .33714E-03   -.64035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.2718
  Prefactor  = 7.6794
  norm       = 46.9467
  Prefactor  = 18.3312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.48937
  Prefactor  = 0.0993813
  Prefactor  = 0.0001
  Prefactor  = 0.406109
  Prefactor  = 0.000100001
  Prefactor  = 1.87767
  Prefactor  = 5.70738
  Prefactor  = 9.70111
  norm       = 0.000100093
  norm       = 3.14202
  norm       = 0.0001
  Prefactor  = 0.716388
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.03672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.78751
  Prefactor  = 0.529669
 **********
 **   18 **HESSE 
 **********

 FCN=   5153.415     FROM HESSE     STATUS=OK           572 CALLS     4576 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7662        .33589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.272        31.404        .35595E-05   -1.4807    
   3  Prefactor     7.6794        5.7665        .28419E-04   -1.5154    
   4  norm          46.947        11.167        .23408E-05   -1.4337    
   5  Prefactor     18.331        41.877        .37360E-05   -1.4851    
   6  Prefactor     .10000E-03    7.2042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8376        .18918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.3306        .21405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2694        .25105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    76.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4894        8.2275        .75972E-05   -1.5284    
  13  Prefactor     .99381E-01    40.773        .11680       -1.5645    
  14  Prefactor     .10000E-03    22.719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .40611        76.179        .14607E-03   -1.5581    
  16  Prefactor     .10000E-03    69.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8777        17.607        .12164E-04   -1.5434    
  18  Prefactor     5.7074        61.220        .67219E-05   -1.5230    
  19  Prefactor     9.7011        17.007        .51446E-05   -1.5085    
  20  norm          .10009E-03    51.006        .89852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.1420        4.5945        .72383E-05   -1.5353    
  22  norm          .10000E-03    3.7063        .26972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .71639        4.2571        .11669E-04   -1.5539    
  24  Prefactor     .10000E-03    274.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.5341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.0367        .95980        .27013E-04   -1.5504    
  27  Prefactor     .10000E-03    1.3265        .16144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    11.192        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.7875        .27391        .44781E-04   -.69990    
  30  Prefactor     .52967        .23207        .13486E-04   -1.1063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21246e-09
Minuit parameter uncertainties:
  1  8.9992e-06
  2  31.4297
  3  5.76694
  4  11.1679
  5  41.9443
  6  5.61369e-05
  7  1.30431e-06
  8  3.68421e-05
  9  1.87317e-06
  10  1.3218e-05
  11  0.000497591
  12  8.22961
  13  4.02667
  14  0.000185267
  15  11.1372
  16  0.000572209
  17  11.5036
  18  37.4335
  19  17.0157
  20  0.00436669
  21  4.59505
  22  1.38995e-06
  23  3.49282
  24  0.0012858
  25  9.25e-05
  26  0.959817
  27  3.40199e-08
  28  1.96078e-08
  29  0.27415
  30  0.232485
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  4.489e+00  8.230e+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:  5.297e-01  2.325e-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.788e+00  2.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/384819/likelihoodResults_532483201_532742401_4FGL_J2235.3-4836_daily_bin1131.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) = 5153.41060103
delta logL = 0.0043510169653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5153.40979582
delta logL = 0.0051562299368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1896       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6243       1.0000          .0000       10.000    
     3 'Normalizat'    1.7845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53171       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=   5153.410     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      205 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1871        11.583        .49223E-02    .30743E-03
   2  Index         2.6259        1.5621        .23121E-01    .24983E-04
   3  Normalizat    1.7846        .22429        .50684E-01    .21884E-04
   4  Prefactor     .53164        .19620        .76008E-01    .33464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.18713
  Index      = 2.62589
  Normalizat = 1.78463
  Prefactor  = 0.531643
 **********
 **   18 **HESSE 
 **********

 FCN=   5153.410     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1871        8.4433        .19689E-03   -1.5299    
   2  Index         2.6259        1.1541        .92483E-03   -.49476    
   3  Normalizat    1.7846        .26173        .22405E-03   -.70066    
   4  Prefactor     .53164        .22662        .33656E-03   -1.1055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05586e-12
Minuit parameter uncertainties:
  1  8.44575
  2  1.16776
  3  0.261933
  4  0.227011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384819': 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) = 5153.40979473
delta logL = 0.005157312954

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  4.187e+00  8.446e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.626e+00  1.168e+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:  5.316e-01  2.270e-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.785e+00  2.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
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/384819/cmap_HighResolution_532483201_532742401_4FGL_J2235.3-4836_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-09-28 16:14:39.318806', job_id='384819', GAL2='0.53', fit_tolerance='1e-08', EG2='1.78', EG='1.79', time_epoch_completed='1632870879.32', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='5.16e-03', ts2='0.36', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1131' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:14:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 384819: <4FGL_J2235.3-4836_daily_bin1131> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1131> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 16:00:15 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:00:17 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:17 2021
Terminated at Tue Sep 28 16:14:40 2021
Results reported at Tue Sep 28 16:14:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1131 338.841 -48.6015 532483201 532742401 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 :                                   766.47 sec.
    Max Memory :                                 1074 MB
    Average Memory :                             271.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            865 sec.

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

