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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1585
RA = 338.971, Dec = -36.4605
tmin = 650160001, tmax = 650419201
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='395067', job_status='RUN', time_executed='2021-09-28 16:31:31.518019', time_epoch_executed='1632871891.52' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395067

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395067/ft1_4FGL_J2235.8-3627_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395067/ft2_4FGL_J2235.8-3627_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395067/ft1_4FGL_J2235.8-3627_daily_bin1585.fits outfile=/scratch/kocevski/395067/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1585.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=650160001.0 tmax=650419201.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 4.38
user 4.09
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395067/ft2_4FGL_J2235.8-3627_daily_bin1585.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/395067/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1585.fits evtable="EVENTS" outfile="/scratch/kocevski/395067/ft1_filtered_4FGL_J2235.8-3627_daily_bin1585.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.56
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395067/ft1_filtered_4FGL_J2235.8-3627_daily_bin1585.fits" evtable="EVENTS" scfile=/scratch/kocevski/395067/ft2_4FGL_J2235.8-3627_daily_bin1585.fits sctable="SC_DATA" outfile=/scratch/kocevski/395067/ltcube_650160001_650419201_4FGL_J2235.8-3627_daily_bin1585.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/395067/ft2_4FGL_J2235.8-3627_daily_bin1585.fits
.....................!
real 12.18
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395067/ft1_filtered_4FGL_J2235.8-3627_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/395067/ft2_4FGL_J2235.8-3627_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/395067/ltcube_650160001_650419201_4FGL_J2235.8-3627_daily_bin1585.fits outfile=/scratch/kocevski/395067/expmap_650160001_650419201_4FGL_J2235.8-3627_daily_bin1585.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/395067/ltcube_650160001_650419201_4FGL_J2235.8-3627_daily_bin1585.fits
.....................!
real 191.41
user 184.73
sys 4.99

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/395067/ft1_filtered_4FGL_J2235.8-3627_daily_bin1585.fits scfile=/scratch/kocevski/395067/ft2_4FGL_J2235.8-3627_daily_bin1585.fits outfile=/scratch/kocevski/395067/cmap_650160001_650419201_4FGL_J2235.8-3627_daily_bin1585.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395067/ft1_filtered_4FGL_J2235.8-3627_daily_bin1585.fits scfile=/scratch/kocevski/395067/ft2_4FGL_J2235.8-3627_daily_bin1585.fits outfile=/scratch/kocevski/395067/cmap_HighResolution_650160001_650419201_4FGL_J2235.8-3627_daily_bin1585.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395067/ft1_filtered_4FGL_J2235.8-3627_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/395067/ft2_4FGL_J2235.8-3627_daily_bin1585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395067/Model_4FGL_J2235.8-3627_daily_bin1585.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/395067/ft1_filtered_4FGL_J2235.8-3627_daily_bin1585.fits.....................!
real 40.27
user 38.72
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/395067/ft1_filtered_4FGL_J2235.8-3627_daily_bin1585.fits', '/scratch/kocevski/395067/ft2_4FGL_J2235.8-3627_daily_bin1585.fits', expMap='/scratch/kocevski/395067/expmap_650160001_650419201_4FGL_J2235.8-3627_daily_bin1585.fits', expCube='/scratch/kocevski/395067/ltcube_650160001_650419201_4FGL_J2235.8-3627_daily_bin1585.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/395067/Model_4FGL_J2235.8-3627_daily_bin1585.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/395067/ft1_filtered_4FGL_J2235.8-3627_daily_bin1585.fits
Spacecraft file(s): /scratch/kocevski/395067/ft2_4FGL_J2235.8-3627_daily_bin1585.fits
Exposure map: /scratch/kocevski/395067/expmap_650160001_650419201_4FGL_J2235.8-3627_daily_bin1585.fits
Exposure cube: /scratch/kocevski/395067/ltcube_650160001_650419201_4FGL_J2235.8-3627_daily_bin1585.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/395067/Model_4FGL_J2235.8-3627_daily_bin1585.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) = 4704.5762126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8456       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9968       1.0000         .10000E-03   10000.    
     5 'norm      '    .65095       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6262       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    85.478       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .45064       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.934       1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.934       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.6206       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9412       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    29.666       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77659       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2161       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.

 FCN=   4704.556     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3670 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8466        9.4234        .43947E-06   -.70466E-03
   2  Prefactor     .10000E-03    4.9827        .36125E-06** at limit **
   3  norm          .10000E-03    5.9415       -.20493E-05** at limit **
   4  norm          3.9961        3.7299        .44804E-06   -.23543E-02
   5  norm          .65097        .40829       -.90651E-08    .49081E-04
   6  Prefactor     3.6272        8.0003        .23001E-06   -.55755E-04
   7  Prefactor     .10000E-03    4.3867        .11816E-07** at limit **
   8  norm          .10000E-03    8.1007       -.15013E-05** at limit **
   9  Prefactor     85.479        56.609        .57271E-06    .99421E-05
  10  Prefactor     .10000E-03    8.8754       -.20400E-06** at limit **
  11  Prefactor     .10000E-03    8.3185       -.15019E-05** at limit **
  12  norm          .45074        1.7900        .10298E-05   -.56260E-03
  13  Prefactor     34.928        47.955       -.63796E-05   -.51621E-04
  14  Prefactor     39.931        20.014        .55831E-06    .15413E-04
  15  Prefactor     .10000E-03    3.0507        .52811E-07** at limit **
  16  norm          9.6220        6.9203        .17310E-06   -.73127E-03
  17  Prefactor     .10000E-03    7.3661        .78378E-06** at limit **
  18  Prefactor     2.9422        12.041        .22796E-06   -.15335E-04
  19  norm          .10000E-03    .22157        .56190E-08** at limit **
  20  Prefactor     .10000E-03    21.231        .12471E-05** at limit **
  21  Prefactor     .10000E-03    13.140       -.50959E-05** at limit **
  22  norm          .10000E-03    7.5814       -.14712E-06** at limit **
  23  norm          .10000E-03    1.8648       -.75060E-07** at limit **
  24  norm          .10000E-03    11.231        .56952E-05** at limit **
  25  Prefactor     29.674        50.696        .89189E-05    .52382E-04
  26  Prefactor     .10000E-03    94.151       -.89345E-06** at limit **
  27  norm          .10000E-03    6.6440        .22908E-05** at limit **
  28  Normalizat    .77665        .22099       -.17914E-05   -.31944E-04
  29  Prefactor     1.2160        .20102        .26633E-06   -.10471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.84656
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.99611
  norm       = 0.650971
  Prefactor  = 3.62715
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 85.4789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.450742
  Prefactor  = 34.9276
  Prefactor  = 39.9308
  Prefactor  = 0.0001
  norm       = 9.62203
  Prefactor  = 0.0001
  Prefactor  = 2.94222
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 29.6742
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.776645
  Prefactor  = 1.21602
 **********
 **   18 **HESSE 
 **********

 FCN=   4704.556     FROM HESSE     STATUS=OK           541 CALLS     4211 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8466        9.8975        .83052E-03   -1.5224    
   2  Prefactor     .10000E-03    5.0063        .14949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.9841        .16338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9961        6.4129        .98155E-03   -1.5308    
   5  norm          .65097        .42082        .32624E-04   -1.5547    
   6  Prefactor     3.6272        8.0095        .21216E-03   -1.5327    
   7  Prefactor     .10000E-03    4.5445        .27986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.1142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     85.479        56.660        .43451E-04   -1.3856    
  10  Prefactor     .10000E-03    8.8829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.3365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .45074        1.9257        .15559E-03   -1.5574    
  13  Prefactor     34.928        50.290        .67801E-04   -1.4525    
  14  Prefactor     39.931        20.119        .63429E-04   -1.4443    
  15  Prefactor     .10000E-03    3.0583        .11699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.6220        6.8464        .63322E-03   -1.5087    
  17  Prefactor     .10000E-03    7.3717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9422        11.598        .23683E-03   -1.5365    
  19  norm          .10000E-03    .22261        .62415E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.5828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.8654        .91480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    11.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     29.674        50.563        .73559E-04   -1.4618    
  26  Prefactor     .10000E-03    94.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    6.5493        .16950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .77665        .27218        .28419E-03   -1.0094    
  29  Prefactor     1.2160        .24691        .22532E-03   -.85840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97735e-09
Minuit parameter uncertainties:
  1  9.90027
  2  1.21775e-05
  3  4.87704e-05
  4  6.41398
  5  0.420826
  6  8.01184
  7  6.20432e-06
  8  4.51835e-05
  9  56.6961
  10  5.83807e-06
  11  4.83704e-05
  12  1.86322
  13  50.351
  14  20.1226
  15  4.53013e-07
  16  6.84696
  17  2.79568e-05
  18  11.6071
  19  6.26374e-07
  20  6.42591e-05
  21  0.000176275
  22  7.39765e-06
  23  5.15826e-06
  24  0.000177972
  25  50.6358
  26  0.000110036
  27  7.4728e-05
  28  0.272657
  29  0.247149
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  5.838e-06  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.216e+00  2.471e-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:  7.766e-01  2.727e-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: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395067/likelihoodResults_650160001_650419201_4FGL_J2235.8-3627_daily_bin1585.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) = 4704.5567014
delta logL = -0.000534031120878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4704.55616745
delta logL = -8.5424289864e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2180       1.0000          .0000       10.000    
     3 'Normalizat'    .77671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2160       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=   4704.556     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10115E-03    196.74        .18142E-02** at limit **
   2  Index         2.1432        8.4375        .50000        .78369E-05
   3  Normalizat    .77664        .23886E-01    .28419E-03    .34003E-05
   4  Prefactor     1.2160        .23304E-01    .22532E-03    .34814E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101154
  Index      = 2.14324
  Normalizat = 0.776644
  Prefactor  = 1.21602
 **********
 **   18 **HESSE 
 **********

 FCN=   4704.556     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10115E-03    774.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1432        8.9178        .50000       -.60815    
   3  Normalizat    .77664        .52346E-01    .11368E-04   -1.0094    
   4  Prefactor     1.2160        .51068E-01    .90129E-05   -.85840    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.93292e-08
Minuit parameter uncertainties:
  1  0.0605773
  2  1692.37
  3  0.0523497
  4  0.0510704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395067': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4704.55616724
delta logL = 1.29251020553e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.012e-04  6.058e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.143e+00  1.692e+03  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.216e+00  5.107e-02  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:  7.766e-01  5.235e-02  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/395067/cmap_HighResolution_650160001_650419201_4FGL_J2235.8-3627_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='5.94e-08', time_completed='2021-09-28 16:42:40.802442', job_id='395067', GAL2='1.22', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632872560.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1585' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:42:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 395067: <4FGL_J2235.8-3627_daily_bin1585> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1585 338.971 -36.4605 650160001 650419201 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 :                                   662.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            715 sec.

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

