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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1583
RA = 338.841, Dec = -48.6015
tmin = 649641601, tmax = 649900801
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='386620', job_status='RUN', time_executed='2021-09-28 16:06:22.667014', time_epoch_executed='1632870382.67' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386620

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386620/ft1_4FGL_J2235.3-4836_daily_bin1583.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386620/ft2_4FGL_J2235.3-4836_daily_bin1583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386620/ft1_4FGL_J2235.3-4836_daily_bin1583.fits outfile=/scratch/kocevski/386620/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1583.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=649641601.0 tmax=649900801.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 2.54
user 2.35
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386620/ft1_filtered_4FGL_J2235.3-4836_daily_bin1583.fits" evtable="EVENTS" scfile=/scratch/kocevski/386620/ft2_4FGL_J2235.3-4836_daily_bin1583.fits sctable="SC_DATA" outfile=/scratch/kocevski/386620/ltcube_649641601_649900801_4FGL_J2235.3-4836_daily_bin1583.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/386620/ft2_4FGL_J2235.3-4836_daily_bin1583.fits
.....................!
real 12.67
user 12.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386620/ft1_filtered_4FGL_J2235.3-4836_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/386620/ft2_4FGL_J2235.3-4836_daily_bin1583.fits sctable="SC_DATA" expcube=/scratch/kocevski/386620/ltcube_649641601_649900801_4FGL_J2235.3-4836_daily_bin1583.fits outfile=/scratch/kocevski/386620/expmap_649641601_649900801_4FGL_J2235.3-4836_daily_bin1583.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/386620/ltcube_649641601_649900801_4FGL_J2235.3-4836_daily_bin1583.fits
.....................!
real 190.71
user 185.55
sys 4.82

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/386620/ft1_filtered_4FGL_J2235.3-4836_daily_bin1583.fits scfile=/scratch/kocevski/386620/ft2_4FGL_J2235.3-4836_daily_bin1583.fits outfile=/scratch/kocevski/386620/cmap_649641601_649900801_4FGL_J2235.3-4836_daily_bin1583.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/386620/ft1_filtered_4FGL_J2235.3-4836_daily_bin1583.fits scfile=/scratch/kocevski/386620/ft2_4FGL_J2235.3-4836_daily_bin1583.fits outfile=/scratch/kocevski/386620/cmap_HighResolution_649641601_649900801_4FGL_J2235.3-4836_daily_bin1583.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386620/ft1_filtered_4FGL_J2235.3-4836_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/386620/ft2_4FGL_J2235.3-4836_daily_bin1583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386620/Model_4FGL_J2235.3-4836_daily_bin1583.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/386620/ft1_filtered_4FGL_J2235.3-4836_daily_bin1583.fits.....................!
real 21.93
user 20.69
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/386620/ft1_filtered_4FGL_J2235.3-4836_daily_bin1583.fits', '/scratch/kocevski/386620/ft2_4FGL_J2235.3-4836_daily_bin1583.fits', expMap='/scratch/kocevski/386620/expmap_649641601_649900801_4FGL_J2235.3-4836_daily_bin1583.fits', expCube='/scratch/kocevski/386620/ltcube_649641601_649900801_4FGL_J2235.3-4836_daily_bin1583.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/386620/Model_4FGL_J2235.3-4836_daily_bin1583.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/386620/ft1_filtered_4FGL_J2235.3-4836_daily_bin1583.fits
Spacecraft file(s): /scratch/kocevski/386620/ft2_4FGL_J2235.3-4836_daily_bin1583.fits
Exposure map: /scratch/kocevski/386620/expmap_649641601_649900801_4FGL_J2235.3-4836_daily_bin1583.fits
Exposure cube: /scratch/kocevski/386620/ltcube_649641601_649900801_4FGL_J2235.3-4836_daily_bin1583.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/386620/Model_4FGL_J2235.3-4836_daily_bin1583.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1494.48354398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11145E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.715       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.643       1.0000         .10000E-03   10000.    
     4 'norm      '    36.788       1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.619       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11741E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    436.51       1.0000         .10000E-03   10000.    
     9 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.617       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.424       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.793       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.772       1.0000         .10000E-03   10000.    
    20 'norm      '    45.490       1.0000         .10000E-03   10000.    
    21 'norm      '    14.801       1.0000         .10000E-03   10000.    
    22 'norm      '    13.239       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1413       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12250E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .25080       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.2714       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89027       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3428       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=   1494.181     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     4093 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    73.846        .32448E-07** at limit **
   2  Prefactor     10.711        594.36        .55315E-06   -.18732E-05
   3  Prefactor     29.648        30.306       -.47473E-07   -.15438E-04
   4  norm          36.784        42.676       -.11082E-07   -.21942E-05
   5  Prefactor     63.617        219.80        .64035E-06   -.48246E-05
   6  Prefactor     .10000E-03    36.834        .45621E-05** at limit **
   7  Prefactor     .10000E-03    19.302        .19283E-05** at limit **
   8  Prefactor     437.09        473.76        .72950E-06   -.30211E-05
   9  norm          .10000E-03    9.0740        .32155E-06** at limit **
  10  Prefactor     .10000E-03    9.3814        .25952E-06** at limit **
  11  Prefactor     .10000E-03    81.577        .17646E-06** at limit **
  12  Prefactor     .10000E-03    95.052        .87577E-05** at limit **
  13  Prefactor     14.635        109.73        .34067E-06    .17353E-06
  14  Prefactor     30.433        86.593        .14922E-05   -.28687E-04
  15  Prefactor     31.791        35.277        .36145E-07   -.31676E-04
  16  Prefactor     .10000E-03    225.35       -.34440E-06** at limit **
  17  Prefactor     .10000E-03    11.077       -.14305E-07** at limit **
  18  Prefactor     .10000E-03    131.89        .24697E-06** at limit **
  19  Prefactor     19.754        27.096        .24640E-06   -.17330E-04
  20  norm          45.511        46.718        .89739E-08    .64157E-06
  21  norm          14.786        15.596       -.32356E-06   -.26652E-04
  22  norm          13.237        18.094       -.31471E-07   -.25536E-06
  23  Prefactor     4.1215        14.900        .19644E-06   -.22075E-04
  24  Prefactor     .10000E-03    203.57       -.92557E-06** at limit **
  25  Prefactor     .10000E-03    33.991       -.21284E-06** at limit **
  26  norm          .25645        3.4444        .33607E-06   -.15097E-03
  27  Prefactor     5.2653        8.1451        .23778E-06   -.13472E-04
  28  Prefactor     .10000E-03    41.676       -.29493E-06** at limit **
  29  Normalizat    .89050        .46570       -.55987E-06   -.36882E-04
  30  Prefactor     1.3423        .43695        .61270E-06   -.48048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.7113
  Prefactor  = 29.648
  norm       = 36.7839
  Prefactor  = 63.6172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 437.085
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6353
  Prefactor  = 30.4332
  Prefactor  = 31.7909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7542
  norm       = 45.5108
  norm       = 14.7863
  norm       = 13.2368
  Prefactor  = 4.12147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.256445
  Prefactor  = 5.26533
  Prefactor  = 0.0001
  Normalizat = 0.890498
  Prefactor  = 1.34234
 **********
 **   18 **HESSE 
 **********

 FCN=   1494.181     FROM HESSE     STATUS=OK           582 CALLS     4675 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    73.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.711        594.85        .12239E-03   -1.5053    
   3  Prefactor     29.648        30.292        .73588E-04   -1.4618    
   4  norm          36.784        42.687        .66077E-04   -1.4494    
   5  Prefactor     63.617        220.25        .50311E-04   -1.4111    
   6  Prefactor     .10000E-03    37.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.441        .16582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     437.09        473.96        .97887E-04   -1.1496    
   9  norm          .10000E-03    9.0753        .11376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4081        .11562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    81.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    94.904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.635        110.07        .10476E-03   -1.4943    
  14  Prefactor     30.433        86.001        .72640E-04   -1.4604    
  15  Prefactor     31.791        35.259        .71062E-04   -1.4580    
  16  Prefactor     .10000E-03    225.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.088        .12567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    132.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.754        26.832        .90075E-04   -1.4819    
  20  norm          45.511        46.721        .59445E-04   -1.4358    
  21  norm          14.786        15.599        .52055E-03   -1.4939    
  22  norm          13.237        18.095        .11009E-03   -1.4980    
  23  Prefactor     4.1215        14.331        .19807E-03   -1.5302    
  24  Prefactor     .10000E-03    203.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    34.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .25645        4.6274        .11323E-02   -1.5607    
  27  Prefactor     5.2653        8.0946        .12927E-03   -1.5249    
  28  Prefactor     .10000E-03    41.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .89050        .56522        .33073E-03   -.96795    
  30  Prefactor     1.3423        .53533        .26446E-03   -.82057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86702e-11
Minuit parameter uncertainties:
  1  7.72849e-05
  2  161.361
  3  30.3075
  4  42.7224
  5  223.173
  6  0.000159149
  7  2.61543e-05
  8  478.312
  9  4.10102e-06
  10  6.25704e-07
  11  2.77175e-05
  12  5.20597e-05
  13  80.4789
  14  86.3544
  15  35.2825
  16  0.000348273
  17  1.59896e-06
  18  0.000172588
  19  26.8487
  20  46.7588
  21  15.6036
  22  18.1022
  23  14.343
  24  0.000185046
  25  6.33752e-05
  26  2.17846
  27  8.09626
  28  2.62256e-05
  29  0.569044
  30  0.537554
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  5.206e-05  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.342e+00  5.376e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  8.905e-01  5.690e-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.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386620/likelihoodResults_649641601_649900801_4FGL_J2235.3-4836_daily_bin1583.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) = 1494.18063124
delta logL = -5.01449226249e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1494.18057782
delta logL = 3.27695124724e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11111E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7698       1.0000          .0000       10.000    
     3 'Normalizat'    .89049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3423       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1494.154     FROM MIGRAD    STATUS=CONVERGED    162 CALLS      353 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1374        32.857        .11283E-02   -.18488E-03
   2  Index         3.5481        3.7508        .12485E-01   -.73931E-05
   3  Normalizat    .85142        .56075        .33716E-03    .54297E-04
   4  Prefactor     1.3599        .52377        .26282E-03   -.11373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.13744
  Index      = 3.54813
  Normalizat = 0.851421
  Prefactor  = 1.35991
 **********
 **   18 **HESSE 
 **********

 FCN=   1494.154     FROM HESSE     STATUS=OK            25 CALLS      378 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1374        17.809        .45133E-04   -1.5416    
   2  Index         3.5481        2.9455        .49938E-03   -.29462    
   3  Normalizat    .85142        .56177        .13486E-04   -.98189    
   4  Prefactor     1.3599        .52462        .52564E-04   -.81543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07249e-09
Minuit parameter uncertainties:
  1  12.3441
  2  3.17308
  3  0.565684
  4  0.526691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386620': 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) = 1494.15393177
delta logL = 0.0266493324391

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  2.137e+00  1.234e+01  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  3.548e+00  3.173e+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:  1.360e+00  5.267e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  8.514e-01  5.657e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/386620/cmap_HighResolution_649641601_649900801_4FGL_J2235.3-4836_daily_bin1583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-02', job_status='DONE', photon_flux_upper_limit='3.90e-07', time_completed='2021-09-28 16:13:47.306857', job_id='386620', GAL2='1.36', fit_tolerance='1e-08', EG2='0.85', EG='0.89', time_epoch_completed='1632870827.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='2.66e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1583' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:13:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 386620: <4FGL_J2235.3-4836_daily_bin1583> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1583> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 16:05:51 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:05:52 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:52 2021
Terminated at Tue Sep 28 16:13:47 2021
Results reported at Tue Sep 28 16:13:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1583 338.841 -48.6015 649641601 649900801 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 :                                   443.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   475 sec.
    Turnaround time :                            476 sec.

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

