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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1483
RA = 338.971, Dec = -36.4605
tmin = 623721601, tmax = 623980801
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='394904', job_status='RUN', time_executed='2021-09-28 16:32:40.405517', time_epoch_executed='1632871960.41' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394904

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394904/ft1_4FGL_J2235.8-3627_daily_bin1483.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394904/ft2_4FGL_J2235.8-3627_daily_bin1483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394904/ft1_4FGL_J2235.8-3627_daily_bin1483.fits outfile=/scratch/kocevski/394904/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1483.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=623721601.0 tmax=623980801.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.24
user 4.92
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/394904/ft2_4FGL_J2235.8-3627_daily_bin1483.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394904/ft2_4FGL_J2235.8-3627_daily_bin1483.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/394904/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1483.fits evtable="EVENTS" outfile="/scratch/kocevski/394904/ft1_filtered_4FGL_J2235.8-3627_daily_bin1483.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394904/ft1_filtered_4FGL_J2235.8-3627_daily_bin1483.fits" evtable="EVENTS" scfile=/scratch/kocevski/394904/ft2_4FGL_J2235.8-3627_daily_bin1483.fits sctable="SC_DATA" outfile=/scratch/kocevski/394904/ltcube_623721601_623980801_4FGL_J2235.8-3627_daily_bin1483.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/394904/ft2_4FGL_J2235.8-3627_daily_bin1483.fits
.....................!
real 14.26
user 13.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394904/ft1_filtered_4FGL_J2235.8-3627_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/394904/ft2_4FGL_J2235.8-3627_daily_bin1483.fits sctable="SC_DATA" expcube=/scratch/kocevski/394904/ltcube_623721601_623980801_4FGL_J2235.8-3627_daily_bin1483.fits outfile=/scratch/kocevski/394904/expmap_623721601_623980801_4FGL_J2235.8-3627_daily_bin1483.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/394904/ltcube_623721601_623980801_4FGL_J2235.8-3627_daily_bin1483.fits
.....................!
real 191.66
user 185.56
sys 5.21

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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J2235.8-3627 @ 338.971 -36.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/394904/ft1_filtered_4FGL_J2235.8-3627_daily_bin1483.fits scfile=/scratch/kocevski/394904/ft2_4FGL_J2235.8-3627_daily_bin1483.fits outfile=/scratch/kocevski/394904/cmap_623721601_623980801_4FGL_J2235.8-3627_daily_bin1483.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.971 yref=-36.4605 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/394904/ft1_filtered_4FGL_J2235.8-3627_daily_bin1483.fits scfile=/scratch/kocevski/394904/ft2_4FGL_J2235.8-3627_daily_bin1483.fits outfile=/scratch/kocevski/394904/cmap_HighResolution_623721601_623980801_4FGL_J2235.8-3627_daily_bin1483.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.971 yref=-36.4605 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.59
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394904/ft1_filtered_4FGL_J2235.8-3627_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/394904/ft2_4FGL_J2235.8-3627_daily_bin1483.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394904/Model_4FGL_J2235.8-3627_daily_bin1483.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/394904/ft1_filtered_4FGL_J2235.8-3627_daily_bin1483.fits.....................!
real 36.59
user 35.02
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/394904/ft1_filtered_4FGL_J2235.8-3627_daily_bin1483.fits', '/scratch/kocevski/394904/ft2_4FGL_J2235.8-3627_daily_bin1483.fits', expMap='/scratch/kocevski/394904/expmap_623721601_623980801_4FGL_J2235.8-3627_daily_bin1483.fits', expCube='/scratch/kocevski/394904/ltcube_623721601_623980801_4FGL_J2235.8-3627_daily_bin1483.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/394904/Model_4FGL_J2235.8-3627_daily_bin1483.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.8-3627'

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  8.910e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/394904/ft1_filtered_4FGL_J2235.8-3627_daily_bin1483.fits
Spacecraft file(s): /scratch/kocevski/394904/ft2_4FGL_J2235.8-3627_daily_bin1483.fits
Exposure map: /scratch/kocevski/394904/expmap_623721601_623980801_4FGL_J2235.8-3627_daily_bin1483.fits
Exposure cube: /scratch/kocevski/394904/ltcube_623721601_623980801_4FGL_J2235.8-3627_daily_bin1483.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/394904/Model_4FGL_J2235.8-3627_daily_bin1483.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) = 3844.90383624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.8542       1.0000         .10000E-03   10000.    
     4 'norm      '    9.8841       1.0000         .10000E-03   10000.    
     5 'norm      '    .24878       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6488       1.0000         .10000E-03   10000.    
     8 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.408       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.209       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9750       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11486E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.578       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5642       1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1447       1.0000         .10000E-03   10000.    
    19 'norm      '    4.8530       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16738E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.5687       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11465E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2662       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86864       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+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=   3844.889     FROM MIGRAD    STATUS=CONVERGED   1329 CALLS     4310 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7199        .11677E-02** at limit **
   2  Prefactor     .10000E-03    5.5710        .14277E-02** at limit **
   3  norm          6.8526        11.297        .15325E-03   -.27819E-05
   4  norm          9.8813        10.151        .12746E-03    .11997E-04
   5  norm          .24895        .37122        .47770E-03    .21421E-02
   6  Prefactor     .10000E-03    24.883        .36285E-03** at limit **
   7  Prefactor     8.6493        7.6476        .13630E-03   -.17099E-05
   8  norm          .10000E-03    13.857        .18142E-02** at limit **
   9  Prefactor     46.385        67.015        .58857E-04    .47130E-05
  10  Prefactor     .10000E-03    46.678        .18142E-02** at limit **
  11  Prefactor     49.198        44.721        .57165E-04   -.93471E-05
  12  norm          3.9897        3.2544        .97663E-04    .15075E-04
  13  Prefactor     .10000E-03    202.27        .18142E-02** at limit **
  14  Prefactor     14.601        25.979        .10490E-03    .15985E-04
  15  Prefactor     4.5631        8.2712        .18842E-03   -.21811E-04
  16  norm          .10000E-03    2.7772        .10076E-02** at limit **
  17  Prefactor     .10000E-03    21.488        .18142E-02** at limit **
  18  Prefactor     1.1408        229.47        .41723E-02    .60321E-04
  19  norm          4.8552        2.5125        .38853E-04    .25691E-03
  20  Prefactor     .10000E-03    66.761        .16622    ** at limit **
  21  Prefactor     .10000E-03    104.31        .36285E-03** at limit **
  22  norm          .10000E-03    9.1649        .18142E-02** at limit **
  23  norm          .10000E-03    2.1328        .88417E-03** at limit **
  24  norm          8.5676        11.461        .13694E-03   -.13615E-04
  25  Prefactor     .10000E-03    16.742        .18142E-02** at limit **
  26  Prefactor     .10000E-03    80.572        .18142E-02** at limit **
  27  norm          .10000E-03    2.2192        .89986E-03** at limit **
  28  Normalizat    1.2662        .36027        .26384E-03   -.17538E-04
  29  Prefactor     .86870        .30062        .28294E-03   -.18222E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.85259
  norm       = 9.88126
  norm       = 0.248946
  Prefactor  = 0.0001
  Prefactor  = 8.64935
  norm       = 0.0001
  Prefactor  = 46.3849
  Prefactor  = 0.0001
  Prefactor  = 49.1981
  norm       = 3.98974
  Prefactor  = 0.0001
  Prefactor  = 14.6009
  Prefactor  = 4.56306
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.14075
  norm       = 4.85524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.56763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.26625
  Prefactor  = 0.868699
 **********
 **   18 **HESSE 
 **********

 FCN=   3844.889     FROM HESSE     STATUS=OK           537 CALLS     4847 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7199        .23354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5713        .28554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.8526        11.296        .61300E-05   -1.5184    
   4  norm          9.8813        10.142        .50983E-05   -1.5079    
   5  norm          .24895        .37087        .95539E-04   -1.5608    
   6  Prefactor     .10000E-03    24.884        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.6493        7.6433        .54521E-05   -1.5120    
   8  norm          .10000E-03    13.858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.385        67.013        .11771E-04   -1.4345    
  10  Prefactor     .10000E-03    46.689        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     49.198        44.707        .22866E-05   -1.4304    
  12  norm          3.9897        3.2476        .39065E-05   -1.5308    
  13  Prefactor     .10000E-03    202.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.601        25.861        .41960E-05   -1.4944    
  15  Prefactor     4.5631        8.2702        .75370E-05   -1.5281    
  16  norm          .10000E-03    2.7773        .20153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1408        170.76        .16689E-03   -1.5494    
  19  norm          4.8552        2.1786        .15541E-05   -1.5267    
  20  Prefactor     .10000E-03    66.967        .16573       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    104.31        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.1649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.1328        .17683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.5676        11.459        .54776E-05   -1.5122    
  25  Prefactor     .10000E-03    16.742        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    80.578        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.2193        .17997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2662        .35689        .10553E-04   -.84579    
  29  Prefactor     .86870        .29892        .11317E-04   -.97244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.40266e-11
Minuit parameter uncertainties:
  1  1.88564e-06
  2  2.89183e-06
  3  11.2999
  4  10.1438
  5  0.370876
  6  0.000123134
  7  7.64414
  8  1.9907e-05
  9  67.1225
  10  0.000145704
  11  44.7378
  12  3.24775
  13  0.000593569
  14  25.8806
  15  8.27232
  16  1.93281e-06
  17  2.49095e-05
  18  27.9941
  19  2.17862
  20  0.000115057
  21  3.94146e-05
  22  1.26145e-06
  23  5.46309e-07
  24  11.4619
  25  5.28504e-06
  26  0.000356747
  27  2.06696e-06
  28  0.357584
  29  0.299484
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.457e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  8.687e-01  2.995e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.266e+00  3.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394904/likelihoodResults_623721601_623980801_4FGL_J2235.8-3627_daily_bin1483.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) = 3844.88885372
delta logL = -0.000101991151951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3844.8887518
delta logL = -6.67978383717e-08

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 'Index     '    2.1694       1.0000          .0000       10.000    
     3 'Normalizat'    1.2663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86871       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3844.889     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      243 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7191.5        .90712E-02** at limit **
   2  Index         2.1923        8.6014        .50000       -.43023E-05
   3  Normalizat    1.2662        .83444E-01    .59656E-01   -.28431E-04
   4  Prefactor     .86870        .76031E-01    .63969E-01    .11388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.19234
  Normalizat = 1.26625
  Prefactor  = 0.8687
 **********
 **   18 **HESSE 
 **********

 FCN=   3844.889     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    106.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1923        5.6951        .50000       -.59624    
   3  Normalizat    1.2662        .31076        .26384E-03   -.84580    
   4  Prefactor     .86870        .28311        .28294E-03   -.97244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34419e-10
Minuit parameter uncertainties:
  1  0.000836123
  2  6.40812
  3  0.31122
  4  0.283591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394904': 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) = 3844.88875177
delta logL = -3.76239768229e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  8.361e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.192e+00  6.408e+00  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  8.687e-01  2.836e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.266e+00  3.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.971 -36.461

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/394904/cmap_HighResolution_623721601_623980801_4FGL_J2235.8-3627_daily_bin1483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.32e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-28 16:43:22.478189', job_id='394904', GAL2='0.87', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1632872602.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-3.76e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1483' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:43:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 394904: <4FGL_J2235.8-3627_daily_bin1483> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1483> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:33 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:35 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:30:35 2021
Terminated at Tue Sep 28 16:43:23 2021
Results reported at Tue Sep 28 16:43:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1483 338.971 -36.4605 623721601 623980801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.8-3627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   632.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            770 sec.

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

