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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1595
RA = 338.971, Dec = -36.4605
tmin = 652752001, tmax = 653011201
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='395084', job_status='RUN', time_executed='2021-09-28 16:33:59.806075', time_epoch_executed='1632872039.81' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395084

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395084/ft1_4FGL_J2235.8-3627_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395084/ft2_4FGL_J2235.8-3627_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395084/ft1_4FGL_J2235.8-3627_daily_bin1595.fits outfile=/scratch/kocevski/395084/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1595.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=652752001.0 tmax=653011201.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.19
user 2.93
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395084/ft2_4FGL_J2235.8-3627_daily_bin1595.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/395084/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1595.fits evtable="EVENTS" outfile="/scratch/kocevski/395084/ft1_filtered_4FGL_J2235.8-3627_daily_bin1595.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.68
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395084/ft1_filtered_4FGL_J2235.8-3627_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/395084/ft2_4FGL_J2235.8-3627_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/395084/ltcube_652752001_653011201_4FGL_J2235.8-3627_daily_bin1595.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/395084/ft2_4FGL_J2235.8-3627_daily_bin1595.fits
.....................!
real 12.56
user 12.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395084/ft1_filtered_4FGL_J2235.8-3627_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/395084/ft2_4FGL_J2235.8-3627_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/395084/ltcube_652752001_653011201_4FGL_J2235.8-3627_daily_bin1595.fits outfile=/scratch/kocevski/395084/expmap_652752001_653011201_4FGL_J2235.8-3627_daily_bin1595.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/395084/ltcube_652752001_653011201_4FGL_J2235.8-3627_daily_bin1595.fits
.....................!
real 190.31
user 185.55
sys 4.35

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/395084/ft1_filtered_4FGL_J2235.8-3627_daily_bin1595.fits scfile=/scratch/kocevski/395084/ft2_4FGL_J2235.8-3627_daily_bin1595.fits outfile=/scratch/kocevski/395084/cmap_652752001_653011201_4FGL_J2235.8-3627_daily_bin1595.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395084/ft1_filtered_4FGL_J2235.8-3627_daily_bin1595.fits scfile=/scratch/kocevski/395084/ft2_4FGL_J2235.8-3627_daily_bin1595.fits outfile=/scratch/kocevski/395084/cmap_HighResolution_652752001_653011201_4FGL_J2235.8-3627_daily_bin1595.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395084/ft1_filtered_4FGL_J2235.8-3627_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/395084/ft2_4FGL_J2235.8-3627_daily_bin1595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395084/Model_4FGL_J2235.8-3627_daily_bin1595.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/395084/ft1_filtered_4FGL_J2235.8-3627_daily_bin1595.fits..........................!
real 15.77
user 14.47
sys 1.19

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 316.259788245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 313.433888294

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.459       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.646       1.0000         .10000E-03   10000.    
     3 'norm      '    .13722E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .11663E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10721E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    288.25       1.0000         .10000E-03   10000.    
     9 'Prefactor '    480.94       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7395       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .62418E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .56906E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0490       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45562E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11379E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .61829E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .68483E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .37429       1.0000         .10000E-03   10000.    
    19 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5611       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .73331E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .19274E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .12899E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    7.4600       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.6453       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.1105       1.0000         .10000E-03   10000.    
    27 'norm      '    2.3880       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1398       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .13692       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   313.4289     FROM MIGRAD    STATUS=CONVERGED    348 CALLS      932 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.433        33.715        .15203E-02   -.23432E-02
   2  Prefactor     16.670        26.379        .24541E-02    .41243E-02
   3  norm          .10000E-03    66.917        .90915E-02** at limit **
   4  norm          .10000E-03    76.840        .90813E-02** at limit **
   5  norm          .10000E-03    1.4453        .90712E-02** at limit **
   6  Prefactor     .10000E-03    34.937        .90712E-02** at limit **
   7  Prefactor     .10000E-03    12.460        .90712E-02** at limit **
   8  norm          288.24        386.22        .59768E-03   -.33960E-02
   9  Prefactor     480.80        403.30        .46737E-03    .11167E-03
  10  Prefactor     .10394E-03    626.28        .79530E-02** at limit **
  11  Prefactor     .10000E-03    236.37        .93305E-02** at limit **
  12  norm          .10000E-03    123.24        .10546E-01** at limit **
  13  Prefactor     .58656E-01    6870.5        .33309E-02   -.28140E-02
  14  Prefactor     .10000E-03    271.79        .92484E-02** at limit **
  15  Prefactor     .10000E-03    43.424        .90712E-02** at limit **
  16  norm          .10000E-03    166.14        .94472E-02** at limit **
  17  Prefactor     .10006E-03    959.79        .93675E-02** at limit **
  18  Prefactor     .10003E-03    619.38        .10746E-01** at limit **
  19  norm          .10000E-03    33.538        .90712E-02** at limit **
  20  Prefactor     .12080E-03    1215.0        .63774E-02** at limit **
  21  Prefactor     .50824E-03    904.34        .93833E-02** at limit **
  22  norm          .10002E-03    428.71        .10131E-01** at limit **
  23  norm          .25855E-03    944.50        .90874E-02** at limit **
  24  norm          11.316        2293.3        .36709E-02   -.49806E-02
  25  Prefactor     1.5671        9332.7        .38916E-02    .42789E-02
  26  Prefactor     7.1105        1.0025         .0000         .0000    
  27  norm          .41441E-03    .10976        .13273E-03** at limit **
  28  Normalizat    1.1430        1.1328       -.16395E-03    .26682E-04
  29  Prefactor     .13580        .38919        .15806E-03    .10119E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.4328
  Prefactor  = 16.6699
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 288.241
  Prefactor  = 480.804
  Prefactor  = 0.00010394
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0586557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100059
  Prefactor  = 0.000100026
  norm       = 0.0001
  Prefactor  = 0.000120805
  Prefactor  = 0.000508241
  norm       = 0.000100018
  norm       = 0.000258551
  norm       = 11.3161
  Prefactor  = 1.56713
  Prefactor  = 7.11054
  norm       = 0.000414414
  Normalizat = 1.14296
  Prefactor  = 0.135801
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   313.4289     FROM HESSE     STATUS=FAILED        61 CALLS      993 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.433        33.715        .15203E-02   -1.4389    
   2  Prefactor     16.670        26.379        .24541E-02   -1.4891    
   3  norm          .10000E-03    66.917        .90915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    76.840        .90813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4453        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.937        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.460        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          288.24        386.22        .59768E-03   -1.2296    
   9  Prefactor     480.80        403.30        .46737E-03   -1.1287    
  10  Prefactor     .10394E-03    626.28        .79530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    236.37        .93305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    123.24        .10546E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .58656E-01    6870.5        .33309E-02   -1.5756    
  14  Prefactor     .10000E-03    271.79        .92484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    43.424        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    166.14        .94472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    959.79        .93675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    619.38        .10746E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    33.538        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .12080E-03    1215.0        .63774E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .50824E-03    904.34        .93833E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10002E-03    428.71        .10131E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .25855E-03    944.50        .90874E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          11.316        2293.3        .36709E-02   -1.5035    
  25  Prefactor     1.5671        9332.7        .38916E-02   -1.5458    
  26  Prefactor     512.35        505.21         .0000       -1.5175    
  27  norm          .41441E-03    .10976        .13273E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1430        1.1328       -.16395E-03   -.88384    
  29  Prefactor     .13580        .38919        .15806E-03   -1.3372    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.57013e-10
Minuit parameter uncertainties:
  1  33.7294
  2  26.3978
  3  1.64791e-05
  4  0.000181961
  5  9.24689e-07
  6  1.07746e-05
  7  8.56368e-06
  8  389.737
  9  405.726
  10  0.100415
  11  0.000161572
  12  0.000140166
  13  31.7338
  14  0.000136353
  15  5.39262e-06
  16  2.54185e-05
  17  0.0153205
  18  0.00816067
  19  1.54827e-05
  20  0.324806
  21  1.23433
  22  0.00560785
  23  0.786685
  24  336.202
  25  302.808
  26  1.00249
  27  0.0117493
  28  1.15843
  29  0.396926
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 313.428901258

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.039e-04  1.004e-01  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:  1.358e-01  3.969e-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.143e+00  1.158e+00  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.04e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.94e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395084/likelihoodResults_652752001_653011201_4FGL_J2235.8-3627_daily_bin1595.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) = 313.428908692
delta logL = -7.4341141385e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 313.42890869
delta logL = -7.43270601333e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96337E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2293       1.0000          .0000       10.000    
     3 'Normalizat'    1.1430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .13580       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=   313.4289     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      188 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    806.64        .90715E-02** at limit **
   2  Index         2.3256        6.1590        .24617       -.13882E-05
   3  Normalizat    1.1430        .89237        .36471E-01   -.37265E-04
   4  Prefactor     .13580        .73550        .98969E-01   -.11626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010006
  Index      = 2.32561
  Normalizat = 1.14296
  Prefactor  = 0.135802
 **********
 **   18 **HESSE 
 **********

 FCN=   313.4289     FROM HESSE     STATUS=OK            25 CALLS      213 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    721.58        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3256        6.1628        .98469E-02   -.56436    
   3  Normalizat    1.1430        .77912        .21914E-03   -.88384    
   4  Prefactor     .13580        .56053        .43750E-03   -1.3372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48082e-11
Minuit parameter uncertainties:
  1  0.0133607
  2  4.2272
  3  0.787201
  4  0.56112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395084': 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) = 313.428901224
delta logL = 3.33555476573e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.001e-04  1.336e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.326e+00  4.227e+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:  1.358e-01  5.611e-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.143e+00  7.872e-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/395084/cmap_HighResolution_652752001_653011201_4FGL_J2235.8-3627_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.94e-02', job_status='DONE', photon_flux_upper_limit='1.04e-06', time_completed='2021-09-28 16:39:32.349145', job_id='395084', GAL2='0.14', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632872372.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.14', dlogl='3.34e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1595' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:39:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 395084: <4FGL_J2235.8-3627_daily_bin1595> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1595 338.971 -36.4605 652752001 653011201 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 :                                   325.04 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             364.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            524 sec.

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

