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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1472
RA = 338.971, Dec = -36.4605
tmin = 620870401, tmax = 621129601
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='394887', job_status='RUN', time_executed='2021-09-28 16:34:04.012108', time_epoch_executed='1632872044.01' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394887

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394887/ft1_4FGL_J2235.8-3627_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394887/ft2_4FGL_J2235.8-3627_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394887/ft1_4FGL_J2235.8-3627_daily_bin1472.fits outfile=/scratch/kocevski/394887/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1472.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=620870401.0 tmax=621129601.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.51
user 3.02
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394887/ft1_filtered_4FGL_J2235.8-3627_daily_bin1472.fits" evtable="EVENTS" scfile=/scratch/kocevski/394887/ft2_4FGL_J2235.8-3627_daily_bin1472.fits sctable="SC_DATA" outfile=/scratch/kocevski/394887/ltcube_620870401_621129601_4FGL_J2235.8-3627_daily_bin1472.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/394887/ft2_4FGL_J2235.8-3627_daily_bin1472.fits
.....................!
real 12.08
user 11.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394887/ft1_filtered_4FGL_J2235.8-3627_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/394887/ft2_4FGL_J2235.8-3627_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/394887/ltcube_620870401_621129601_4FGL_J2235.8-3627_daily_bin1472.fits outfile=/scratch/kocevski/394887/expmap_620870401_621129601_4FGL_J2235.8-3627_daily_bin1472.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/394887/ltcube_620870401_621129601_4FGL_J2235.8-3627_daily_bin1472.fits
.....................!
real 191.93
user 185.74
sys 5.83

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/394887/ft1_filtered_4FGL_J2235.8-3627_daily_bin1472.fits scfile=/scratch/kocevski/394887/ft2_4FGL_J2235.8-3627_daily_bin1472.fits outfile=/scratch/kocevski/394887/cmap_620870401_621129601_4FGL_J2235.8-3627_daily_bin1472.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394887/ft1_filtered_4FGL_J2235.8-3627_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/394887/ft2_4FGL_J2235.8-3627_daily_bin1472.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394887/Model_4FGL_J2235.8-3627_daily_bin1472.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/394887/ft1_filtered_4FGL_J2235.8-3627_daily_bin1472.fits..............!
real 14.86
user 13.54
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.941       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49791E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2530       1.0000         .10000E-03   10000.    
     4 'norm      '    10.935       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2825       1.0000         .10000E-03   10000.    
     6 'Prefactor '    147.40       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .77254E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.1365       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9049       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5561       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2992       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4766       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8518       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2114       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28881       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1012       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7060       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0604       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0112       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8169       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0725       1.0000         .10000E-03   10000.    
    22 'norm      '    2.2131       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3761       1.0000         .10000E-03   10000.    
    24 'norm      '    7.1966       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.1319       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.1105       1.0000         .10000E-03   10000.    
    27 'norm      '    4.9823       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .40728       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84336       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   186.0321     FROM MIGRAD    STATUS=CONVERGED    454 CALLS      711 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.565        57.681       -.24100E-05   -.28185E-04
   2  Prefactor     .10000E-03    25.761       -.10602E-06** at limit **
   3  norm          .10000E-03    276.01       -.22241E-05** at limit **
   4  norm          14.597        40.086       -.26691E-05   -.72081E-06
   5  norm          4.2529        3.7893        .37409E-06   -.77295E-04
   6  Prefactor     150.24        199.06        .15589E-05   -.18770E-03
   7  Prefactor     .10000E-03    28.906       -.51586E-05** at limit **
   8  norm          9.1365        1.0015         .0000         .0000    
   9  Prefactor     .10000E-03    488.27        .57662E-06** at limit **
  10  Prefactor     .10003E-03    1118.9        .12973E-04** at limit **
  11  Prefactor     .10000E-03    445.75       -.49227E-05** at limit **
  12  norm          1.4766        1.0734         .0000         .0000    
  13  Prefactor     7.8518        1.0020         .0000         .0000    
  14  Prefactor     4.2114        1.0072         .0000         .0000    
  15  Prefactor     .10000E-03    595.85       -.12877E-04** at limit **
  16  norm          4.1012        1.0076         .0000         .0000    
  17  Prefactor     1.7060        1.0511         .0000         .0000    
  18  Prefactor     5.0604        1.0050         .0000         .0000    
  19  norm          1.0112        1.3198         .0000         .0000    
  20  Prefactor     27.678        22.250        .13729E-05   -.10852E-02
  21  Prefactor     1.0725        1.2121         .0000         .0000    
  22  norm         10000.0        9265.1        .90954E-04** at limit **
  23  norm          2.3792        1.6808        .19823E-06   -.17412E-04
  24  norm          7.1966        1.0024         .0000         .0000    
  25  Prefactor     29.562        24.017        .14314E-05   -.11981E-02
  26  Prefactor     7.1105        1.0025         .0000         .0000    
  27  norm          10.840        5.6260        .56390E-06   -.23732E-03
  28  Normalizat    .22309        8.0042       -.15769E-03    .34604E-05
  29  Prefactor     .88296        1.5965       -.55015E-04   -.14355E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.565
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.597
  norm       = 4.25288
  Prefactor  = 150.238
  Prefactor  = 0.0001
  norm       = 9.13647
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 0.000100001
  norm       = 1.47656
  Prefactor  = 7.85184
  Prefactor  = 4.21144
  Prefactor  = 0.000100001
  norm       = 4.10122
  Prefactor  = 1.70599
  Prefactor  = 5.06043
  norm       = 1.01125
  Prefactor  = 27.6779
  Prefactor  = 1.07248
  norm       = 10000
  norm       = 2.37918
  norm       = 7.19664
  Prefactor  = 29.5619
  Prefactor  = 7.11054
  norm       = 10.8397
  Normalizat = 0.223088
  Prefactor  = 0.882959
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   186.0321     FROM HESSE     STATUS=FAILED        39 CALLS      750 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.565        48.882        .16712E-02   -1.4433    
   2  Prefactor     .10000E-03    26.108        .10580E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    263.06        .99810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          14.597        37.077        .30288E-02   -1.4944    
   5  norm          4.2529        3.5305        .48671E-02   -1.5295    
   6  Prefactor     150.24        195.35        .82981E-03   -1.3250    
   7  Prefactor     .10000E-03    29.201        .10461E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          496.76        487.60         .0000       -1.5103    
   9  Prefactor     .10000E-03    .88801E-01    .57662E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    .29345E-01    .12973E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .58985E-01   -.49227E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4766        1.0734         .0000       -1.5465    
  13  Prefactor     7.8518        1.0020         .0000       -1.5147    
  14  Prefactor     4.2114        1.0072         .0000       -1.5298    
  15  Prefactor     .10000E-03    .26914       -.12877E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.1012        1.0076         .0000       -1.5303    
  17  Prefactor     1.7060        1.0511         .0000       -1.5447    
  18  Prefactor     5.0604        1.0050         .0000       -1.5258    
  19  norm          1.0112        1.3198         .0000       -1.5507    
  20  Prefactor     27.678        2.0184        .13729E-05   -1.4655    
  21  Prefactor     1.0725        1.2121         .0000       -1.5501    
  22  norm         10000.0        .11944        .90954E-04    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.3792        1.4317        .19823E-06   -1.5399    
  24  norm          7.1966        1.0024         .0000       -1.5171    
  25  Prefactor     29.562        2.0387        .14314E-05   -1.4620    
  26  Prefactor     7.1105        1.0025         .0000       -1.5175    
  27  norm          10.840        1.4821        .56390E-06   -1.5049    
  28  Normalizat    .22309        .53850       -.15769E-03   -1.8639    
  29  Prefactor     .88296        1.2157       -.55015E-04   -.96739    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.54631e-11
Minuit parameter uncertainties:
  1  48.9301
  2  2.96873e-05
  3  0.000472312
  4  37.1351
  5  3.53063
  6  196.198
  7  2.44617e-06
  8  1.0015
  9  5.47423e-06
  10  6.08787e-05
  11  1.76488e-05
  12  1.07343
  13  1.00204
  14  1.00723
  15  3.96654e-05
  16  1.00763
  17  1.05112
  18  1.00497
  19  1.31984
  20  2.01836
  21  1.21215
  22  0.00800507
  23  1.4317
  24  1.00243
  25  2.03869
  26  1.00249
  27  1.48213
  28  0.551846
  29  1.2563
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  6.088e-05  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.830e-01  1.256e+00  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.231e-01  5.518e-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: 8.22e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.28e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394887/likelihoodResults_620870401_621129601_4FGL_J2235.8-3627_daily_bin1472.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) = 186.032055737
delta logL = -4.06162888567e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 186.032055732
delta logL = -4.05652485824e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96130E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2293       1.0000          .0000       10.000    
     3 'Normalizat'    .22309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88296       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=   186.0321     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      204 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6514.1        .90735E-02** at limit **
   2  Index         2.2095        8.2073        .50000        .13754E-06
   3  Normalizat    .22309        .48927E-01    .13543        .78638E-05
   4  Prefactor     .88296        .37465E-01    .44787E-01    .11786E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.20946
  Normalizat = 0.223085
  Prefactor  = 0.882963
 **********
 **   18 **HESSE 
 **********

 FCN=   186.0321     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      235 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9613.9        .18147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2095        5.8348        .50000       -.59210    
   3  Normalizat    .22309        .10960        .59765E-03   -1.2777    
   4  Prefactor     .88296        .83795E-01    .23277E-03   -.96739    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.81003e-08
Minuit parameter uncertainties:
  1  0.0179266
  2  6388.76
  3  0.109701
  4  0.0838071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394887': 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) = 186.032051675
delta logL = 6.86128487359e-10

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.793e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.209e+00  6.389e+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:  8.830e-01  8.381e-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.231e-01  1.097e-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/394887/cmap_HighResolution_620870401_621129601_4FGL_J2235.8-3627_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-01', job_status='DONE', photon_flux_upper_limit='8.22e-06', time_completed='2021-09-28 16:39:31.775724', job_id='394887', GAL2='0.88', fit_tolerance='1e-08', EG2='0.22', EG='0.22', time_epoch_completed='1632872371.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.88', dlogl='6.86e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1472' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:39:31 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1472 338.971 -36.4605 620870401 621129601 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 :                                   321.22 sec.
    Max Memory :                                 1112 MB
    Average Memory :                             307.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   538 sec.
    Turnaround time :                            542 sec.

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

