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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1582
RA = 338.971, Dec = -36.4605
tmin = 649382401, tmax = 649641601
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='395062', job_status='RUN', time_executed='2021-09-28 16:32:05.893403', time_epoch_executed='1632871925.89' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395062

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395062/ft1_4FGL_J2235.8-3627_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395062/ft2_4FGL_J2235.8-3627_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395062/ft1_4FGL_J2235.8-3627_daily_bin1582.fits outfile=/scratch/kocevski/395062/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1582.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=649382401.0 tmax=649641601.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.72
user 2.49
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395062/ft1_filtered_4FGL_J2235.8-3627_daily_bin1582.fits" evtable="EVENTS" scfile=/scratch/kocevski/395062/ft2_4FGL_J2235.8-3627_daily_bin1582.fits sctable="SC_DATA" outfile=/scratch/kocevski/395062/ltcube_649382401_649641601_4FGL_J2235.8-3627_daily_bin1582.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/395062/ft2_4FGL_J2235.8-3627_daily_bin1582.fits
.....................!
real 13.04
user 12.68
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395062/ft1_filtered_4FGL_J2235.8-3627_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/395062/ft2_4FGL_J2235.8-3627_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/395062/ltcube_649382401_649641601_4FGL_J2235.8-3627_daily_bin1582.fits outfile=/scratch/kocevski/395062/expmap_649382401_649641601_4FGL_J2235.8-3627_daily_bin1582.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/395062/ltcube_649382401_649641601_4FGL_J2235.8-3627_daily_bin1582.fits
.....................!
real 190.55
user 185.21
sys 4.84

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/395062/ft1_filtered_4FGL_J2235.8-3627_daily_bin1582.fits scfile=/scratch/kocevski/395062/ft2_4FGL_J2235.8-3627_daily_bin1582.fits outfile=/scratch/kocevski/395062/cmap_649382401_649641601_4FGL_J2235.8-3627_daily_bin1582.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395062/ft1_filtered_4FGL_J2235.8-3627_daily_bin1582.fits scfile=/scratch/kocevski/395062/ft2_4FGL_J2235.8-3627_daily_bin1582.fits outfile=/scratch/kocevski/395062/cmap_HighResolution_649382401_649641601_4FGL_J2235.8-3627_daily_bin1582.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395062/ft1_filtered_4FGL_J2235.8-3627_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/395062/ft2_4FGL_J2235.8-3627_daily_bin1582.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395062/Model_4FGL_J2235.8-3627_daily_bin1582.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/395062/ft1_filtered_4FGL_J2235.8-3627_daily_bin1582.fits......................!
real 20.28
user 18.98
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10272E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5306       1.0000         .10000E-03   10000.    
     8 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    147.25       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11639E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12763E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11680E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.854       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6289       1.0000         .10000E-03   10000.    
    20 'Prefactor '    107.87       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11853E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .19920E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    103.15       1.0000         .10000E-03   10000.    
    27 'norm      '    .97472       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .23529       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.9552       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=   1276.702     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3671 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    159.21       -.21855E-05** at limit **
   2  Prefactor     .10000E-03    56.672       -.30815E-05** at limit **
   3  norm          .10000E-03    42.409        .19050E-06** at limit **
   4  norm          .10000E-03    27.293       -.10532E-05** at limit **
   5  norm          .10000E-03    1.1951        .27248E-07** at limit **
   6  Prefactor     .10000E-03    47.162       -.23244E-05** at limit **
   7  Prefactor     5.5362        14.825       -.26602E-05   -.16165E-03
   8  norm          .10000E-03    166.82       -.29290E-05** at limit **
   9  Prefactor     147.16        185.35       -.89262E-05   -.94941E-04
  10  Prefactor     .10000E-03    111.81        .22582E-05** at limit **
  11  Prefactor     .10000E-03    27.857       -.10962E-05** at limit **
  12  norm          .10000E-03    4.3325       -.28071E-07** at limit **
  13  Prefactor     .10000E-03    102.05        .25878E-05** at limit **
  14  Prefactor     .10000E-03    126.41        .39941E-06** at limit **
  15  Prefactor     .10000E-03    36.552       -.59161E-06** at limit **
  16  norm          .10000E-03    8.1024       -.53161E-07** at limit **
  17  Prefactor     .10000E-03    31.520        .11315E-05** at limit **
  18  Prefactor     24.847        39.485       -.60147E-05   -.24357E-03
  19  norm          1.6275        2.3336        .40635E-06   -.10868E-02
  20  Prefactor     107.94        139.73       -.94069E-06   -.49388E-04
  21  Prefactor     .10000E-03    24.048        .88921E-06** at limit **
  22  norm          .10000E-03    24.817       -.49800E-06** at limit **
  23  norm          .10000E-03    4.7998        .78831E-07** at limit **
  24  norm          .10000E-03    5.9499        .14131E-07** at limit **
  25  Prefactor     .10000E-03    198.51       -.79603E-05** at limit **
  26  Prefactor     103.27        105.94        .60659E-06   -.36001E-04
  27  norm          1.0110        13.288       -.65272E-05    .42380E-04
  28  Normalizat    .23575        .57509        .97822E-04   -.32927E-04
  29  Prefactor     1.9550        .59048       -.31414E-04   -.40349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.53616
  norm       = 0.0001
  Prefactor  = 147.157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8466
  norm       = 1.62752
  Prefactor  = 107.943
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.275
  norm       = 1.011
  Normalizat = 0.235745
  Prefactor  = 1.95503
 **********
 **   18 **HESSE 
 **********

 FCN=   1276.702     FROM HESSE     STATUS=OK           535 CALLS     4206 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    159.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    42.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    27.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2145        .38148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5362        14.834        .17084E-03   -1.5237    
   8  norm          .10000E-03    167.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     147.16        185.59        .16604E-03   -1.3276    
  10  Prefactor     .10000E-03    112.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.3405        .72642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    102.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    127.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.1206        .99312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.847        40.985        .80352E-04   -1.4711    
  19  norm          1.6275        2.4056        .48995E-04   -1.5453    
  20  Prefactor     107.94        139.92        .19362E-03   -1.3626    
  21  Prefactor     .10000E-03    24.067        .17113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    24.832        .17392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.8009        .76439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.9531        .85134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    198.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     103.27        105.95        .19795E-03   -1.3672    
  27  norm          1.0110        20.063        .23058E-02   -1.5507    
  28  Normalizat    .23575        .58023        .56540E-03   -1.2690    
  29  Prefactor     1.9550        .59448        .22174E-03   -.65479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14973e-10
Minuit parameter uncertainties:
  1  0.000246807
  2  3.94257e-05
  3  1.69835e-05
  4  5.91335e-06
  5  6.16591e-06
  6  0.000100664
  7  14.8442
  8  0.000237286
  9  186.328
  10  4.84724e-06
  11  7.74771e-05
  12  7.49985e-06
  13  6.19505e-05
  14  0.000642825
  15  0.000714502
  16  1.63131e-05
  17  5.85947e-05
  18  41.031
  19  2.4057
  20  140.355
  21  5.56738e-05
  22  2.88388e-05
  23  1.01397e-05
  24  5.33041e-05
  25  0.000284612
  26  106.141
  27  9.01048
  28  0.596123
  29  0.596734
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  4.847e-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.955e+00  5.967e-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:  2.357e-01  5.961e-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: 2.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395062/likelihoodResults_649382401_649641601_4FGL_J2235.8-3627_daily_bin1582.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) = 1276.70198808
delta logL = -4.2354443849e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1276.70194582
delta logL = -9.79916876531e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5728       1.0000          .0000       10.000    
     3 'Normalizat'    .23575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.9550       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=   1276.702     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      279 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10152E-03    720.49        .18142E-02** at limit **
   2  Index         2.5125        6.3639        .50000        .19931E-05
   3  Normalizat    .23575        .29751E-01    .56546E-03   -.42673E-05
   4  Prefactor     1.9550        .31097E-01    .22174E-03   -.45502E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101516
  Index      = 2.51251
  Normalizat = 0.235749
  Prefactor  = 1.95503
 **********
 **   18 **HESSE 
 **********

 FCN=   1276.702     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10152E-03    6431.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5125        5.1772        .50000       -.52071    
   3  Normalizat    .23575        .63539E-01    .22618E-04   -1.2690    
   4  Prefactor     1.9550        .66427E-01    .88697E-05   -.65479    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45789e-09
Minuit parameter uncertainties:
  1  0.139046
  2  1580.28
  3  0.0635586
  4  0.0664303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395062': 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) = 1276.7019458
delta logL = -7.18077899364e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.015e-04  1.390e-01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.513e+00  1.580e+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.955e+00  6.643e-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:  2.357e-01  6.356e-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/395062/cmap_HighResolution_649382401_649641601_4FGL_J2235.8-3627_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-02', job_status='DONE', photon_flux_upper_limit='2.96e-07', time_completed='2021-09-28 16:38:54.327293', job_id='395062', GAL2='1.96', fit_tolerance='1e-08', EG2='0.24', EG='0.24', time_epoch_completed='1632872334.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.96', dlogl='-7.18e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1582' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:38:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 395062: <4FGL_J2235.8-3627_daily_bin1582> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1582 338.971 -36.4605 649382401 649641601 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 :                                   406.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             286.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   486 sec.
    Turnaround time :                            488 sec.

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

