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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1323
RA = 338.841, Dec = -48.6015
tmin = 582249601, tmax = 582508801
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='386205', job_status='RUN', time_executed='2021-09-28 16:08:44.310012', time_epoch_executed='1632870524.31' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386205

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386205/ft1_4FGL_J2235.3-4836_daily_bin1323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386205/ft2_4FGL_J2235.3-4836_daily_bin1323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386205/ft1_4FGL_J2235.3-4836_daily_bin1323.fits outfile=/scratch/kocevski/386205/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1323.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=582249601.0 tmax=582508801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.35
user 5.06
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386205/ft1_filtered_4FGL_J2235.3-4836_daily_bin1323.fits" evtable="EVENTS" scfile=/scratch/kocevski/386205/ft2_4FGL_J2235.3-4836_daily_bin1323.fits sctable="SC_DATA" outfile=/scratch/kocevski/386205/ltcube_582249601_582508801_4FGL_J2235.3-4836_daily_bin1323.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/386205/ft2_4FGL_J2235.3-4836_daily_bin1323.fits
.....................!
real 11.73
user 11.42
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386205/ft1_filtered_4FGL_J2235.3-4836_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/386205/ft2_4FGL_J2235.3-4836_daily_bin1323.fits sctable="SC_DATA" expcube=/scratch/kocevski/386205/ltcube_582249601_582508801_4FGL_J2235.3-4836_daily_bin1323.fits outfile=/scratch/kocevski/386205/expmap_582249601_582508801_4FGL_J2235.3-4836_daily_bin1323.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/386205/ltcube_582249601_582508801_4FGL_J2235.3-4836_daily_bin1323.fits
.....................!
real 193.02
user 187.74
sys 4.96

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/386205/ft1_filtered_4FGL_J2235.3-4836_daily_bin1323.fits scfile=/scratch/kocevski/386205/ft2_4FGL_J2235.3-4836_daily_bin1323.fits outfile=/scratch/kocevski/386205/cmap_582249601_582508801_4FGL_J2235.3-4836_daily_bin1323.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    20.803       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8784       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .88792       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6089       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6012       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    77.846       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .61702E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.6862       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0600       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98582       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0693       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=   4735.834     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3868 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9016        .56332E-06** at limit **
   2  Prefactor     .10000E-03    10.360       -.63486E-06** at limit **
   3  Prefactor     .10000E-03    3.0030        .56949E-07** at limit **
   4  norm          20.802        8.2942        .30237E-07   -.13264E-04
   5  Prefactor     12.026        46.010        .52920E-05    .89653E-04
   6  Prefactor     9.8781        11.378       -.69378E-06   -.10420E-04
   7  Prefactor     .10000E-03    1.5313       -.40251E-07** at limit **
   8  Prefactor     .10002E-03    85.335       -.96016E-05** at limit **
   9  norm          .88766        5.1487        .14336E-05   -.97144E-04
  10  Prefactor     5.6088        4.0295        .79583E-07    .45834E-04
  11  Prefactor     .10000E-03    14.584        .12391E-05** at limit **
  12  Prefactor     6.6018        6.9159        .28955E-05   -.62176E-03
  13  Prefactor     .10000E-03    73.666        .30553E-05** at limit **
  14  Prefactor     .10000E-03    20.204       -.79015E-06** at limit **
  15  Prefactor     .10000E-03    9.1961        .47944E-06** at limit **
  16  Prefactor     77.856        73.521        .12439E-05    .52704E-04
  17  Prefactor     .10001E-03    8.6605        .64123E-06** at limit **
  18  Prefactor     .10001E-03    69.292        .57748E-05** at limit **
  19  Prefactor     .10000E-03    4.8465       -.68721E-07** at limit **
  20  norm          .10000E-03    11.829       -.54549E-06** at limit **
  21  norm          5.6862        5.8065        .39388E-07   -.19091E-04
  22  norm          .10000E-03    6.4187       -.65353E-06** at limit **
  23  Prefactor     .10000E-03    5.3531        .18426E-06** at limit **
  24  Prefactor     .10000E-03    28.203       -.65812E-06** at limit **
  25  Prefactor     .10000E-03    12.530       -.39059E-07** at limit **
  26  norm          .10000E-03    .49016       -.39849E-08** at limit **
  27  Prefactor     .10000E-03    2.8541        .48884E-08** at limit **
  28  Prefactor     4.0626        42.111        .11633E-05    .21457E-05
  29  Normalizat    .98569        .20467       -.12868E-05   -.69315E-04
  30  Prefactor     1.0694        .18373        .84756E-07   -.12532E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.8024
  Prefactor  = 12.0257
  Prefactor  = 9.87814
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  norm       = 0.887663
  Prefactor  = 5.60876
  Prefactor  = 0.0001
  Prefactor  = 6.60181
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.8562
  Prefactor  = 0.000100013
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.68618
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.0626
  Normalizat = 0.985686
  Prefactor  = 1.06937
 **********
 **   18 **HESSE 
 **********

 FCN=   4735.834     FROM HESSE     STATUS=OK           574 CALLS     4442 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9408        .17672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0854        .23281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          20.802        8.2965        .87817E-04   -1.4795    
   5  Prefactor     12.026        46.606        .11562E-03   -1.5014    
   6  Prefactor     9.8781        11.340        .12749E-03   -1.5079    
   7  Prefactor     .10000E-03    1.5390        .83125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    89.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .88766        5.0429        .30567E-03   -1.5520    
  10  Prefactor     5.6088        4.0290        .11268E-03   -1.5234    
  11  Prefactor     .10000E-03    14.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6018        7.1705        .78095E-03   -1.5194    
  13  Prefactor     .10000E-03    75.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.3330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     77.856        73.728        .45514E-04   -1.3941    
  17  Prefactor     .10001E-03    42.901        .38722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    71.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.8497        .14796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.6862        5.7945        .16326E-03   -1.5231    
  22  norm          .10000E-03    6.5027        .17047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.4349        .15545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .50613        .93855E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.8714        .11347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.0626        42.067        .20011E-03   -1.5305    
  29  Normalizat    .98569        .23517        .25337E-03   -.93512    
  30  Prefactor     1.0694        .21234        .22587E-03   -.90452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1846e-09
Minuit parameter uncertainties:
  1  3.94858e-05
  2  5.75585e-05
  3  1.27733e-06
  4  8.29691
  5  46.748
  6  11.3425
  7  9.50771e-07
  8  0.00271379
  9  4.2318
  10  4.02921
  11  0.000140185
  12  7.17139
  13  0.000714872
  14  0.000129823
  15  2.77361e-05
  16  73.8146
  17  0.00148327
  18  0.00126133
  19  3.43716e-06
  20  4.68875e-05
  21  5.79505
  22  4.1762e-05
  23  1.76164e-05
  24  8.99034e-05
  25  4.78964e-06
  26  4.98642e-07
  27  1.28522e-06
  28  26.1691
  29  0.235415
  30  0.21251
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  6.602e+00  7.171e+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.069e+00  2.125e-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.857e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 4.51e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.29e-05

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

Saving results to:
/scratch/kocevski/386205/likelihoodResults_582249601_582508801_4FGL_J2235.3-4836_daily_bin1323.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) = 4735.52236441
delta logL = 0.311264822059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4735.4986381
delta logL = 0.334991134214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8871       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5711       1.0000          .0000       10.000    
     3 'Normalizat'    .94377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0962       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=   4735.499     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      237 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8872        57.854        .59795E-02    .14753E-02
   2  Index         3.5715        6.7677        .14410        .82226E-04
   3  Normalizat    .94378        .69888E-01    .45458E-01    .11860E-04
   4  Prefactor     1.0962        .61134E-01    .37732E-01    .35576E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.8872
  Index      = 3.57146
  Normalizat = 0.943779
  Prefactor  = 1.09622
 **********
 **   18 **HESSE 
 **********

 FCN=   4735.499     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8872        216.68        .94089E-04   -1.5368    
   2  Index         3.5715        5.3676        .71573E-02   -.28975    
   3  Normalizat    .94378        .32428        .25816E-03   -.94938    
   4  Prefactor     1.0962        .29950        .22344E-03   -.89588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93532e-07
Minuit parameter uncertainties:
  1  50.2127
  2  12.9983
  3  0.324952
  4  0.299961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386205': 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) = 4735.49863793
delta logL = 0.334991301834

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  2.887e+00  5.021e+01  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  3.571e+00  1.300e+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.096e+00  3.000e-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.438e-01  3.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 3.57 +/- 13.00
Photon Flux (Free Index): 7.32e-08 +/- 1.05e-07
Energy Flux (Free Index): 1.20e-05 +/- 2.68e-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/386205/cmap_HighResolution_582249601_582508801_4FGL_J2235.3-4836_daily_bin1323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='1.20e-05', photon_flux_error='4.51e-08', dlogl='3.35e-01', energy_flux='1.19e-05', photon_flux2='7.32e-08', job_status='DONE', time_completed='2021-09-28 16:20:58.463493', photon_index_error2='13.00', photon_index2='3.57', ts='1.11', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='2.68e-05', EG='0.99', time_epoch_completed='1632871258.46', return_code='0', job_id='386205', GAL2='1.10', EG2='0.94', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='1.05e-07', ts2='1.85', photon_index='2.51' WHERE bin_id='1323' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:20:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 386205: <4FGL_J2235.3-4836_daily_bin1323> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1323 338.841 -48.6015 582249601 582508801 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

