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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1537
RA = 338.841, Dec = -48.6015
tmin = 637718401, tmax = 637977601
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='386546', job_status='RUN', time_executed='2021-09-28 16:06:01.985278', time_epoch_executed='1632870361.99' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1537'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386546

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386546/ft1_4FGL_J2235.3-4836_daily_bin1537.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386546/ft2_4FGL_J2235.3-4836_daily_bin1537.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386546/ft1_4FGL_J2235.3-4836_daily_bin1537.fits outfile=/scratch/kocevski/386546/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1537.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=637718401.0 tmax=637977601.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.91
user 3.67
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386546/ft2_4FGL_J2235.3-4836_daily_bin1537.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/386546/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1537.fits evtable="EVENTS" outfile="/scratch/kocevski/386546/ft1_filtered_4FGL_J2235.3-4836_daily_bin1537.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.56
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386546/ft1_filtered_4FGL_J2235.3-4836_daily_bin1537.fits" evtable="EVENTS" scfile=/scratch/kocevski/386546/ft2_4FGL_J2235.3-4836_daily_bin1537.fits sctable="SC_DATA" outfile=/scratch/kocevski/386546/ltcube_637718401_637977601_4FGL_J2235.3-4836_daily_bin1537.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/386546/ft2_4FGL_J2235.3-4836_daily_bin1537.fits
.....................!
real 11.78
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386546/ft1_filtered_4FGL_J2235.3-4836_daily_bin1537.fits evtable="EVENTS" scfile=/scratch/kocevski/386546/ft2_4FGL_J2235.3-4836_daily_bin1537.fits sctable="SC_DATA" expcube=/scratch/kocevski/386546/ltcube_637718401_637977601_4FGL_J2235.3-4836_daily_bin1537.fits outfile=/scratch/kocevski/386546/expmap_637718401_637977601_4FGL_J2235.3-4836_daily_bin1537.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/386546/ltcube_637718401_637977601_4FGL_J2235.3-4836_daily_bin1537.fits
.....................!
real 190.07
user 185.32
sys 4.36

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/386546/ft1_filtered_4FGL_J2235.3-4836_daily_bin1537.fits scfile=/scratch/kocevski/386546/ft2_4FGL_J2235.3-4836_daily_bin1537.fits outfile=/scratch/kocevski/386546/cmap_637718401_637977601_4FGL_J2235.3-4836_daily_bin1537.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386546/ft1_filtered_4FGL_J2235.3-4836_daily_bin1537.fits scfile=/scratch/kocevski/386546/ft2_4FGL_J2235.3-4836_daily_bin1537.fits outfile=/scratch/kocevski/386546/cmap_HighResolution_637718401_637977601_4FGL_J2235.3-4836_daily_bin1537.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1255       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.0837       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9151       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4457       1.0000         .10000E-03   10000.    
     8 'Prefactor '    220.72       1.0000         .10000E-03   10000.    
     9 'norm      '    .15021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11729E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.567       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .98752E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    5.0477       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.3837       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .55451       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .98457       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.905       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94278       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1566       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5046.114     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     3280 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1249        1.0024       -.23663E-08    .28063E-04
   2  Prefactor     .10000E-03    8.2182       -.98580E-05** at limit **
   3  Prefactor     .10000E-03    3.3817        .85041E-07** at limit **
   4  norm          8.0828        1.0075       -.80616E-07   -.71551E-04
   5  Prefactor     8.8945        2.9984       -.45444E-05    .24182E-02
   6  Prefactor     .10004E-03    5.0483        .12168E-05** at limit **
   7  Prefactor     4.4462        4.0021       -.12928E-05   -.17909E-03
   8  Prefactor     220.72        1.0379        .11142E-06   -.18666E-02
   9  norm          .10093E-03    64.945       -.29308E-04** at limit **
  10  Prefactor     .10000E-03    1.5733       -.14125E-06** at limit **
  11  Prefactor     .10150E-03    63.731       -.19466E-04** at limit **
  12  Prefactor     .10003E-03    6.3113        .17157E-04** at limit **
  13  Prefactor     45.732        1.5260       -.71623E-06    .16701E-02
  14  Prefactor     .10000E-03    12.828       -.26267E-04** at limit **
  15  Prefactor     .10000E-03    4.5220       -.53511E-06** at limit **
  16  Prefactor     .10012E-03    37.162        .36061E-04** at limit **
  17  Prefactor     .10000E-03    5.2449        .42006E-06** at limit **
  18  Prefactor     16.564        1.1333       -.65172E-06    .66392E-03
  19  Prefactor     .10001E-03    9.8106       -.12788E-04** at limit **
  20  norm          .10000E-03    4.2823        .30895E-06** at limit **
  21  norm          .12077        7.5065       -.24443E-04    .76693E-03
  22  norm          5.0477        1.0062       -.10945E-06   -.16171E-03
  23  Prefactor     8.3776        1.1587        .73268E-06   -.44134E-03
  24  Prefactor     .10001E-03    12.445       -.25288E-04** at limit **
  25  Prefactor     .10000E-03    19.564        .32490E-04** at limit **
  26  norm          .55485        1.1626        .16463E-06    .88908E-04
  27  Prefactor     .98635        1.3918        .16023E-05    .41483E-03
  28  Prefactor     15.916        2.0915        .23992E-05   -.22045E-02
  29  Normalizat    .94258        .23740       -.10814E-05    .23552E-04
  30  Prefactor     1.1568        .21958        .17190E-05    .20567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.12492
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 8.08281
  Prefactor  = 8.89449
  Prefactor  = 0.000100043
  Prefactor  = 4.44619
  Prefactor  = 220.72
  norm       = 0.000100928
  Prefactor  = 0.0001
  Prefactor  = 0.000101503
  Prefactor  = 0.00010003
  Prefactor  = 45.7316
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100118
  Prefactor  = 0.0001
  Prefactor  = 16.5637
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 0.120771
  norm       = 5.04767
  Prefactor  = 8.37757
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  norm       = 0.554851
  Prefactor  = 0.986349
  Prefactor  = 15.9165
  Normalizat = 0.942577
  Prefactor  = 1.15676
 **********
 **   18 **HESSE 
 **********

 FCN=   5046.114     FROM HESSE     STATUS=OK           660 CALLS     3940 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1249        14.992        .33169E-02   -1.5104    
   2  Prefactor     .10000E-03    8.4466        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3143        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.0828        6.8723        .35254E-02   -1.5139    
   5  Prefactor     8.8945        46.009        .33560E-02   -1.5111    
   6  Prefactor     .10004E-03    9.9588        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4462        4.0755        .47745E-02   -1.5286    
   8  Prefactor     220.72        160.87        .68066E-03   -1.2726    
   9  norm          .10093E-03    6.0851        .67380E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.5624        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10150E-03    122.46        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    8.8739        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     45.732        32.418        .14821E-02   -1.4354    
  14  Prefactor     .10000E-03    25.649        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5111        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10012E-03    42.106        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.564        38.920        .24600E-02   -1.4894    
  19  Prefactor     .10001E-03    11.082        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.2813        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .12077        5.9450        .60083E-01   -1.5638    
  22  norm          5.0477        5.0520        .44744E-02   -1.5259    
  23  Prefactor     8.3776        8.4358        .34613E-02   -1.5129    
  24  Prefactor     .10001E-03    25.481        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.901        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .55485        1.3638        .11491E-01   -1.5559    
  27  Prefactor     .98635        7.4063        .75542E-01   -1.5509    
  28  Prefactor     15.916        47.274        .25107E-02   -1.4910    
  29  Normalizat    .94258        .21284        .45446E-01   -.94980    
  30  Prefactor     1.1568        .19040        .51811E-01   -.87672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14575e-07
Minuit parameter uncertainties:
  1  14.9978
  2  0.000300789
  3  1.79474e-06
  4  6.87301
  5  40.5078
  6  0.00131434
  7  4.07575
  8  161.191
  9  0.00475298
  10  2.57767e-06
  11  0.0271883
  12  0.00102775
  13  32.4309
  14  0.000450183
  15  3.38112e-06
  16  0.00446504
  17  2.04054e-06
  18  38.9801
  19  0.000608049
  20  3.44727e-06
  21  1.69415
  22  5.05247
  23  8.43696
  24  0.000913174
  25  0.000298333
  26  1.36384
  27  5.40629
  28  47.3855
  29  0.21303
  30  0.190509
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.028e-03  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.157e+00  1.905e-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.426e-01  2.130e-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: 9.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386546/likelihoodResults_637718401_637977601_4FGL_J2235.3-4836_daily_bin1537.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) = 5046.11497713
delta logL = -0.000520584144397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5046.11445661
delta logL = -6.41512087896e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5348       1.0000          .0000       10.000    
     3 'Normalizat'    .94255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1568       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=   5046.114     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      259 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    62.358        .36285E-02** at limit **
   2  Index         2.9370        5.2045        .50000       -.28817E-06
   3  Normalizat    .94258        .11820E-01    .27003E-03    .45916E-03
   4  Prefactor     1.1568        .11035E-01    .22906E-03    .49933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.93702
  Normalizat = 0.942578
  Prefactor  = 1.15676
 **********
 **   18 **HESSE 
 **********

 FCN=   5046.114     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    364.37        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9370        6.0530        .50000       -.42530    
   3  Normalizat    .94258        .29327E-01    .54005E-04   -.94980    
   4  Prefactor     1.1568        .27379E-01    .45812E-04   -.87672    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.24223e-09
Minuit parameter uncertainties:
  1  0.00301056
  2  785.076
  3  0.0293271
  4  0.0273795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386546': 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) = 5046.11445536
delta logL = 1.18846583064e-06

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  3.011e-03  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.937e+00  7.851e+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.157e+00  2.738e-02  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.426e-01  2.933e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/386546/cmap_HighResolution_637718401_637977601_4FGL_J2235.3-4836_daily_bin1537.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', job_status='DONE', photon_flux_upper_limit='9.55e-08', time_completed='2021-09-28 16:17:53.968001', job_id='386546', GAL2='1.16', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632871073.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1537' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:17:53 PDT 2021


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

Job <4FGL_J2235.3-4836_daily_bin1537> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 16:05:44 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:05:46 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:46 2021
Terminated at Tue Sep 28 16:17:54 2021
Results reported at Tue Sep 28 16:17:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1537 338.841 -48.6015 637718401 637977601 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 :                                   709.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            730 sec.

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

