aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 55 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1751
RA = 338.841, Dec = -48.6015
tmin = 693187201, tmax = 693446401
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='89006', job_status='RUN', time_executed='2022-12-23 01:26:21.180960', time_epoch_executed='1671787581.18' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89006

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89006/ft1_4FGL_J2235.3-4836_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89006/ft2_4FGL_J2235.3-4836_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89006/ft1_4FGL_J2235.3-4836_daily_bin1751.fits outfile=/scratch/kocevski/89006/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1751.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=693187201.0 tmax=693446401.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.62
user 3.41
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/89006/ft2_4FGL_J2235.3-4836_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89006/ft2_4FGL_J2235.3-4836_daily_bin1751.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/89006/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/89006/ft1_filtered_4FGL_J2235.3-4836_daily_bin1751.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.33
sys 0.15

Number of photons that the gtmktime cut: 577

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89006/ft1_filtered_4FGL_J2235.3-4836_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/89006/ft2_4FGL_J2235.3-4836_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/89006/ltcube_693187201_693446401_4FGL_J2235.3-4836_daily_bin1751.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/89006/ft2_4FGL_J2235.3-4836_daily_bin1751.fits
.....................!
real 11.90
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89006/ft1_filtered_4FGL_J2235.3-4836_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/89006/ft2_4FGL_J2235.3-4836_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/89006/ltcube_693187201_693446401_4FGL_J2235.3-4836_daily_bin1751.fits outfile=/scratch/kocevski/89006/expmap_693187201_693446401_4FGL_J2235.3-4836_daily_bin1751.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/89006/ltcube_693187201_693446401_4FGL_J2235.3-4836_daily_bin1751.fits
.....................!
real 190.97
user 185.31
sys 5.30

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

Setting source of interest to:
4FGL J2235.3-4836 @ 338.841 -48.6015

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/89006/ft1_filtered_4FGL_J2235.3-4836_daily_bin1751.fits scfile=/scratch/kocevski/89006/ft2_4FGL_J2235.3-4836_daily_bin1751.fits outfile=/scratch/kocevski/89006/cmap_693187201_693446401_4FGL_J2235.3-4836_daily_bin1751.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.841 yref=-48.6015 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89006/ft1_filtered_4FGL_J2235.3-4836_daily_bin1751.fits scfile=/scratch/kocevski/89006/ft2_4FGL_J2235.3-4836_daily_bin1751.fits outfile=/scratch/kocevski/89006/cmap_HighResolution_693187201_693446401_4FGL_J2235.3-4836_daily_bin1751.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.841 yref=-48.6015 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/89006/ft1_filtered_4FGL_J2235.3-4836_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/89006/ft2_4FGL_J2235.3-4836_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/89006/Model_4FGL_J2235.3-4836_daily_bin1751.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/89006/ft1_filtered_4FGL_J2235.3-4836_daily_bin1751.fits.....................!
real 46.22
user 44.89
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/89006/ft1_filtered_4FGL_J2235.3-4836_daily_bin1751.fits', '/scratch/kocevski/89006/ft2_4FGL_J2235.3-4836_daily_bin1751.fits', expMap='/scratch/kocevski/89006/expmap_693187201_693446401_4FGL_J2235.3-4836_daily_bin1751.fits', expCube='/scratch/kocevski/89006/ltcube_693187201_693446401_4FGL_J2235.3-4836_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/89006/Model_4FGL_J2235.3-4836_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.3-4836'

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.864e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/89006/ft1_filtered_4FGL_J2235.3-4836_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/89006/ft2_4FGL_J2235.3-4836_daily_bin1751.fits
Exposure map: /scratch/kocevski/89006/expmap_693187201_693446401_4FGL_J2235.3-4836_daily_bin1751.fits
Exposure cube: /scratch/kocevski/89006/ltcube_693187201_693446401_4FGL_J2235.3-4836_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/89006/Model_4FGL_J2235.3-4836_daily_bin1751.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) = 6249.6148257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60853       1.0000          .0000       .10000E+07
     2 'Prefactor '    .15679E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11562E-03   1.0000          .0000       .10000E+07
     4 'norm      '    4.0501       1.0000          .0000       .10000E+07
     5 'Prefactor '    8.6779       1.0000          .0000       .10000E+07
     6 'Prefactor '    .54522E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.8473       1.0000          .0000       .10000E+07
     8 'Prefactor '    119.97       1.0000          .0000       .10000E+07
     9 'norm      '    8.0297       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9555       1.0000          .0000       .10000E+07
    11 'Prefactor '    8.5116       1.0000          .0000       .10000E+07
    12 'Prefactor '    .64920       1.0000          .0000       .10000E+07
    13 'Prefactor '    10.950       1.0000          .0000       .10000E+07
    14 'Prefactor '    .45962E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0306       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12487E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .74187       1.0000          .0000       .10000E+07
    18 'norm      '    .89437E-03   1.0000          .0000       .10000E+07
    19 'norm      '    4.9258       1.0000          .0000       .10000E+07
    20 'norm      '    .10442E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    4.5791       1.0000          .0000       .10000E+07
    22 'Prefactor '    .12224E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .34056E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .19840E-06   1.0000          .0000       .10000E+07
    25 'Prefactor '    .93267E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    16.041       1.0000          .0000       .10000E+07
    27 'Normalizat'    .98196       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6249.589     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     2563 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60186        .66878        .33489E-09   -.21343E-02
   2  Prefactor     .88818E-09    20.964       -.15682E-06** at limit **
   3  Prefactor      .0000        4.1777        .16990E-07** at limit **
   4  norm          4.0416        3.7843       -.24559E-07    .36717E-04
   5  Prefactor     8.5999        3.7376       -.60057E-08   -.14040E-01
   6  Prefactor      .0000        8.3187       -.10892E-07** at limit **
   7  Prefactor     2.8539        2.7287        .37937E-07   -.29235E-04
   8  Prefactor     119.22        85.763        .87643E-07   -.30091E-03
   9  norm          8.0466        5.7925        .57767E-08   -.15749E-04
  10  Prefactor     1.9757        3.8447       -.50039E-07   -.15037E-03
  11  Prefactor     8.3937        2.3218       -.53078E-08    .12685E-01
  12  Prefactor     .66758        7.8161       -.28186E-07    .99772E-04
  13  Prefactor     11.004        9.9516       -.99709E-08    .13256E-01
  14  Prefactor      .0000        19.908       -.10652E-07** at limit **
  15  Prefactor     2.0307        3.0658        .12820E-07   -.45457E-04
  16  Prefactor     .11102E-09    47.806        .19438E-06** at limit **
  17  Prefactor     .74307        .94748        .12108E-07   -.68970E-02
  18  norm          .16653E-09    10.934        .43225E-07** at limit **
  19  norm          4.9695        4.4134        .35922E-07    .24042E-03
  20  norm           .0000        1.3614       -.57016E-07** at limit **
  21  Prefactor     4.5821        3.5087        .51115E-08    .71338E-04
  22  Prefactor     .55511E-10    11.221        .11317E-06** at limit **
  23  Prefactor      .0000        3.6935        .23393E-07** at limit **
  24  norm           .0000        1.0162       -.47481E-07** at limit **
  25  Prefactor      .0000        2.7093        .61596E-07** at limit **
  26  Prefactor     16.033        16.274        .16057E-07    .31622E-02
  27  Normalizat    .98180        .19362       -.24299E-05   -.34953E-06
  28  Prefactor     .91095        .17712        .24048E-05   -.23733E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.601856
  Prefactor  = 8.88178e-10
  Prefactor  = 0
  norm       = 4.04164
  Prefactor  = 8.59993
  Prefactor  = 0
  Prefactor  = 2.85388
  Prefactor  = 119.222
  norm       = 8.04661
  Prefactor  = 1.97572
  Prefactor  = 8.39371
  Prefactor  = 0.667579
  Prefactor  = 11.004
  Prefactor  = 0
  Prefactor  = 2.03067
  Prefactor  = 1.11022e-10
  Prefactor  = 0.743067
  norm       = 1.66533e-10
  norm       = 4.96953
  norm       = 0
  Prefactor  = 4.58207
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 16.0332
  Normalizat = 0.981795
  Prefactor  = 0.910947
 **********
 **   18 **HESSE 
 **********

 FCN=   6249.589     FROM HESSE     STATUS=OK           583 CALLS     3146 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60186        32.507        .68468E-03   -1.5692    
   2  Prefactor     .88818E-09    20.999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        4.1322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.0416        3.7898        .50079E-03   -1.5668    
   5  Prefactor     8.5999        22.976        .34003E-03   -1.5649    
   6  Prefactor      .0000        8.3285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8539        2.7405        .60230E-03   -1.5674    
   8  Prefactor     119.22        85.879        .91304E-04   -1.5490    
   9  norm          8.0466        5.7938        .35359E-03   -1.5651    
  10  Prefactor     1.9757        3.8858        .74165E-03   -1.5680    
  11  Prefactor     8.3937        22.081        .34336E-03   -1.5650    
  12  Prefactor     .66758        7.7839        .64931E-03   -1.5692    
  13  Prefactor     11.004        18.934        .30252E-03   -1.5642    
  14  Prefactor      .0000        19.570        .15705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0307        3.0894        .72568E-03   -1.5679    
  16  Prefactor     .11102E-09    47.701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .74307        43.812        .57372E-03   -1.5691    
  18  norm          .16653E-09    10.872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.9695        4.4875        .45294E-03   -1.5663    
  20  norm           .0000        1.3598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.5821        3.5160        .47016E-03   -1.5665    
  22  Prefactor     .55511E-10    11.217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        3.6867        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        .51229        .19334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        2.6929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.033        19.703        .24980E-03   -1.5628    
  27  Normalizat    .98180        .16610        .45941E-01   -.93643    
  28  Prefactor     .91095        .15106        .45142E-01   -.95760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75444e-07
Minuit parameter uncertainties:
  1  8.84646
  2  0.000271039
  3  3.18009e-06
  4  3.78978
  5  22.9766
  6  1.04405e-05
  7  2.7405
  8  85.8796
  9  5.79385
  10  3.88578
  11  22.0814
  12  4.55911
  13  18.9339
  14  3.22206e-07
  15  3.08939
  16  0.000141651
  17  11.4116
  18  8.96877e-05
  19  4.48755
  20  4.05037e-07
  21  3.51599
  22  4.69196e-05
  23  2.49442e-06
  24  3.34918e-07
  25  1.07647e-06
  26  19.7032
  27  0.166185
  28  0.151126
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  6.676e-01  4.559e+00  0.000e+00  1.000e+06 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.109e-01  1.511e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.818e-01  1.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 7.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89006/likelihoodResults_693187201_693446401_4FGL_J2235.3-4836_daily_bin1751.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) = 6248.96639704
delta logL = 0.622418888442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6248.91062711
delta logL = 0.678188819071

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40888       1.0000          .0000       .10000E+07
     2 'Index     '    4.5731       1.0000          .0000       10.000    
     3 'Normalizat'    .92399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94418       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6248.911     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      235 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40865        6.7313        .88465E-03    .14150E-01
   2  Index         4.5735        3.6895        .14900        .12300E-03
   3  Normalizat    .92399        .36843E-01    .45207E-01    .13713E-04
   4  Prefactor     .94421        .35016E-01    .45566E-01    .94799E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.408654
  Index      = 4.57346
  Normalizat = 0.923987
  Prefactor  = 0.944213
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.911     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      270 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40865        17.919        .46942E-04   -1.5695    
   2  Index         4.5735        7.2229        .75439E-02   -.85411E-01
   3  Normalizat    .92399        .14347        .23554E-03   -.95622    
   4  Prefactor     .94421        .13445        .22085E-03   -.94613    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3369e-07
Minuit parameter uncertainties:
  1  5.41209
  2  8.52768
  3  0.143533
  4  0.134496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89006': 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) = 6248.91062702
delta logL = 0.678188901613

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  4.087e-01  5.412e+00  0.000e+00  1.000e+06 ( 1.000e-12)
352        Index:  4.573e+00  8.528e+00  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.442e-01  1.345e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.240e-01  1.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 4.57 +/- 8.53
Photon Flux (Free Index): 4.60e-08 +/- 4.21e-08
Energy Flux (Free Index): 6.37e-06 +/- 8.88e-06

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/89006/cmap_HighResolution_693187201_693446401_4FGL_J2235.3-4836_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', comment='SUCCESS', energy_flux2='6.37e-06', dlogl='6.78e-01', photon_flux2='4.60e-08', job_status='DONE', time_completed='2022-12-23 01:37:51.166001', photon_index_error2='8.53', photon_index2='4.57', ts='0.02', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='7.52e-08', energy_flux_error2='8.88e-06', EG='0.98', time_epoch_completed='1671788271.17', return_code='0', job_id='89006', GAL2='0.94', EG2='0.92', return_code2='102', photon_flux_error2='4.21e-08', ts2='1.46', photon_index='2.51' WHERE bin_id='1751' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:37:51 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 89006: <4FGL_J2235.3-4836_daily_bin1751> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1751> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Dec 23 01:25:16 2022
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 01:25:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 01:25:17 2022
Terminated at Fri Dec 23 01:37:51 2022
Results reported at Fri Dec 23 01:37:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1751 338.841 -48.6015 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.3-4836 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   692.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            755 sec.

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

