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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1259
RA = 338.841, Dec = -48.6015
tmin = 565660801, tmax = 565920001
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='385010', job_status='RUN', time_executed='2021-09-28 16:01:24.765908', time_epoch_executed='1632870084.77' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385010

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385010/ft1_4FGL_J2235.3-4836_daily_bin1259.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385010/ft2_4FGL_J2235.3-4836_daily_bin1259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385010/ft1_4FGL_J2235.3-4836_daily_bin1259.fits outfile=/scratch/kocevski/385010/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1259.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=565660801.0 tmax=565920001.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 4.24
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385010/ft1_filtered_4FGL_J2235.3-4836_daily_bin1259.fits" evtable="EVENTS" scfile=/scratch/kocevski/385010/ft2_4FGL_J2235.3-4836_daily_bin1259.fits sctable="SC_DATA" outfile=/scratch/kocevski/385010/ltcube_565660801_565920001_4FGL_J2235.3-4836_daily_bin1259.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/385010/ft2_4FGL_J2235.3-4836_daily_bin1259.fits
.....................!
real 11.91
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385010/ft1_filtered_4FGL_J2235.3-4836_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/385010/ft2_4FGL_J2235.3-4836_daily_bin1259.fits sctable="SC_DATA" expcube=/scratch/kocevski/385010/ltcube_565660801_565920001_4FGL_J2235.3-4836_daily_bin1259.fits outfile=/scratch/kocevski/385010/expmap_565660801_565920001_4FGL_J2235.3-4836_daily_bin1259.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/385010/ltcube_565660801_565920001_4FGL_J2235.3-4836_daily_bin1259.fits
.....................!
real 189.61
user 184.79
sys 4.44

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/385010/ft1_filtered_4FGL_J2235.3-4836_daily_bin1259.fits scfile=/scratch/kocevski/385010/ft2_4FGL_J2235.3-4836_daily_bin1259.fits outfile=/scratch/kocevski/385010/cmap_565660801_565920001_4FGL_J2235.3-4836_daily_bin1259.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385010/ft1_filtered_4FGL_J2235.3-4836_daily_bin1259.fits scfile=/scratch/kocevski/385010/ft2_4FGL_J2235.3-4836_daily_bin1259.fits outfile=/scratch/kocevski/385010/cmap_HighResolution_565660801_565920001_4FGL_J2235.3-4836_daily_bin1259.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/385010/ft1_filtered_4FGL_J2235.3-4836_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/385010/ft2_4FGL_J2235.3-4836_daily_bin1259.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385010/Model_4FGL_J2235.3-4836_daily_bin1259.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/385010/ft1_filtered_4FGL_J2235.3-4836_daily_bin1259.fits.....................!
real 47.76
user 46.47
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46303E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.885       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5293       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1818       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9093       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8816       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.189       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21939E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.0370       1.0000         .10000E-03   10000.    
    22 'norm      '    .17708E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.785       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.0771       1.0000         .10000E-03   10000.    
    26 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3535       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77534       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0756       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=   6703.686     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     3947 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2155        .35712E-07** at limit **
   2  Prefactor     .10000E-03    8.8868       -.33180E-06** at limit **
   3  Prefactor     .10000E-03    1.5682       -.25487E-07** at limit **
   4  norm          11.885        4.9931       -.11531E-06    .52163E-05
   5  Prefactor     .10000E-03    15.563       -.20008E-07** at limit **
   6  Prefactor     .10000E-03    2.6647        .78831E-07** at limit **
   7  Prefactor     12.501        4.6830       -.37798E-06   -.13854E-04
   8  Prefactor     .10000E-03    52.997        .29655E-05** at limit **
   9  norm          .10000E-03    3.4287        .14432E-06** at limit **
  10  Prefactor     9.5290        3.6776       -.41659E-07    .10144E-03
  11  Prefactor     .10000E-03    13.941       -.28510E-06** at limit **
  12  Prefactor     .10000E-03    1.0640       -.13827E-07** at limit **
  13  Prefactor     6.1806        15.606       -.46567E-06   -.57149E-06
  14  Prefactor     9.9102        21.893       -.91955E-07    .68192E-04
  15  Prefactor     4.8760        10.185       -.32812E-07    .93006E-04
  16  Prefactor     .10000E-03    107.95       -.21194E-05** at limit **
  17  Prefactor     .10000E-03    1.2903       -.29063E-07** at limit **
  18  Prefactor     17.187        28.106        .40823E-07    .57822E-04
  19  Prefactor     .10004E-03    11.554        .43408E-05** at limit **
  20  norm          .10000E-03    3.0924       -.14751E-06** at limit **
  21  norm          4.0371        3.8312        .28904E-06    .37342E-03
  22  norm          .10004E-03    25.789       -.96563E-05** at limit **
  23  Prefactor     .10000E-03    2.9871       -.23362E-06** at limit **
  24  Prefactor     19.769        32.100       -.13145E-05    .27329E-04
  25  Prefactor     5.0770        10.164       -.27183E-05    .41587E-04
  26  norm          .10000E-03    .32705        .15933E-06** at limit **
  27  Prefactor     2.3532        3.5810        .47953E-07    .25393E-03
  28  Prefactor     .10000E-03    9.1208        .37231E-06** at limit **
  29  Normalizat    .77547        .17011        .12798E-05    .46261E-03
  30  Prefactor     1.0755        .15462        .16027E-06    .58410E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5009
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.52898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.18063
  Prefactor  = 9.91022
  Prefactor  = 4.87603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1872
  Prefactor  = 0.000100044
  norm       = 0.0001
  norm       = 4.0371
  norm       = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 19.7688
  Prefactor  = 5.07702
  norm       = 0.0001
  Prefactor  = 2.35318
  Prefactor  = 0.0001
  Normalizat = 0.775474
  Prefactor  = 1.07548
 **********
 **   18 **HESSE 
 **********

 FCN=   6703.686     FROM HESSE     STATUS=OK           594 CALLS     4541 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2239        .14337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.130        .19731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.885        4.9960        .11520E-03   -1.5018    
   5  Prefactor     .10000E-03    15.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6785        .13049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.501        4.6957        .10311E-03   -1.5001    
   8  Prefactor     .10000E-03    53.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.4452        .14807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.5290        3.6790        .93459E-04   -1.5090    
  11  Prefactor     .10000E-03    13.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0672        .82459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1806        15.590        .16146E-03   -1.5211    
  14  Prefactor     9.9102        21.745        .12729E-03   -1.5078    
  15  Prefactor     4.8760        10.081        .18206E-03   -1.5266    
  16  Prefactor     .10000E-03    108.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.2927        .90830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.187        28.084        .96603E-04   -1.4879    
  19  Prefactor     .10004E-03    24.169        .39926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.0936        .14062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.0371        3.8280        .15212E-03   -1.5306    
  22  norm          .10004E-03    3.5681        .54811E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.0483        .13858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.769        32.190        .90046E-04   -1.4818    
  25  Prefactor     5.0770        10.210        .89222E-03   -1.5257    
  26  norm          .10000E-03    .43495        .89795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3532        3.5552        .18394E-03   -1.5401    
  28  Prefactor     .10000E-03    9.1245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .77547        .19642        .25803E-03   -1.0098    
  30  Prefactor     1.0755        .18121        .21458E-03   -.90254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3776e-09
Minuit parameter uncertainties:
  1  4.92386e-06
  2  3.49624e-06
  3  9.72765e-05
  4  4.99613
  5  2.41535e-05
  6  4.51399e-06
  7  4.69588
  8  3.02194e-05
  9  1.44205e-05
  10  3.67906
  11  1.55093e-05
  12  1.17032e-06
  13  15.6003
  14  21.7625
  15  10.0845
  16  9.17729e-05
  17  1.95605e-06
  18  28.1053
  19  0.00206867
  20  4.36705e-07
  21  3.82821
  22  0.000714938
  23  5.52319e-06
  24  32.2184
  25  10.2135
  26  1.11257e-05
  27  3.55554
  28  4.79012e-06
  29  0.196601
  30  0.181311
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.170e-06  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.075e+00  1.813e-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.755e-01  1.966e-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: 3.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385010/likelihoodResults_565660801_565920001_4FGL_J2235.3-4836_daily_bin1259.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) = 6703.69037965
delta logL = -0.00434492320437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6703.68603454
delta logL = 1.85769749805e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5006       1.0000          .0000       10.000    
     3 'Normalizat'    .77547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0755       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=   6703.686     FROM MIGRAD    STATUS=FAILED        94 CALLS      240 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.365        .82837E-02** at limit **
   2  Index         2.0759        6.0201        .50000       -.30110E-05
   3  Normalizat    .77547        .12527E-01    .25803E-03   -.23083E-03
   4  Prefactor     1.0755        .12151E-01    .21458E-03   -.26119E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6703.686     FROM SIMPLEX   STATUS=UNCHANGED    166 CALLS      406 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.365        .16309E-03** at limit **
   2  Index         2.0759        6.0201        .91877E-05   -.30110E-05
   3  Normalizat    .77547        .12527E-01    .98589E-07   -.23083E-03
   4  Prefactor     1.0755        .12151E-01    .60017E-07   -.26119E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6703.686     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      437 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    106.38        .86881E-03** at limit **
   2  Index         2.0764        7.7150        .50000        .74442E-07
   3  Normalizat    .77547        .40976E-01    .10321E-04   -.23021E-03
   4  Prefactor     1.0755        .39747E-01    .42917E-04   -.26045E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07637
  Normalizat = 0.775473
  Prefactor  = 1.07548
 **********
 **   18 **HESSE 
 **********

 FCN=   6703.686     FROM HESSE     STATUS=OK            29 CALLS      466 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6917        .17376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0764        8.7629        .50000       -.62454    
   3  Normalizat    .77547        .18373        .20642E-05   -1.0099    
   4  Prefactor     1.0755        .17828        .85834E-05   -.90254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23841e-11
Minuit parameter uncertainties:
  1  1.86353e-05
  2  171.123
  3  0.183874
  4  0.178383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385010': 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) = 6703.68603018
delta logL = 4.54247856396e-06

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.864e-05  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.076e+00  1.711e+02  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.075e+00  1.784e-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.755e-01  1.839e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/385010/cmap_HighResolution_565660801_565920001_4FGL_J2235.3-4836_daily_bin1259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.78e-03', job_status='DONE', photon_flux_upper_limit='3.57e-08', time_completed='2021-09-28 16:16:33.888320', job_id='385010', GAL2='1.08', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632870993.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='4.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1259' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:16:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 385010: <4FGL_J2235.3-4836_daily_bin1259> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1259 338.841 -48.6015 565660801 565920001 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 :                                   906.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

