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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1734
RA = 338.971, Dec = -36.4605
tmin = 688780801, tmax = 689040001
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='776474', job_status='RUN', time_executed='2022-11-02 00:37:20.856293', time_epoch_executed='1667374640.86' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776474

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776474/ft1_4FGL_J2235.8-3627_daily_bin1734.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776474/ft2_4FGL_J2235.8-3627_daily_bin1734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776474/ft1_4FGL_J2235.8-3627_daily_bin1734.fits outfile=/scratch/kocevski/776474/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1734.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=688780801.0 tmax=689040001.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.54
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1734.fits" evtable="EVENTS" scfile=/scratch/kocevski/776474/ft2_4FGL_J2235.8-3627_daily_bin1734.fits sctable="SC_DATA" outfile=/scratch/kocevski/776474/ltcube_688780801_689040001_4FGL_J2235.8-3627_daily_bin1734.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/776474/ft2_4FGL_J2235.8-3627_daily_bin1734.fits
.....................!
real 12.23
user 11.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/776474/ft2_4FGL_J2235.8-3627_daily_bin1734.fits sctable="SC_DATA" expcube=/scratch/kocevski/776474/ltcube_688780801_689040001_4FGL_J2235.8-3627_daily_bin1734.fits outfile=/scratch/kocevski/776474/expmap_688780801_689040001_4FGL_J2235.8-3627_daily_bin1734.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/776474/ltcube_688780801_689040001_4FGL_J2235.8-3627_daily_bin1734.fits
.....................!
real 192.67
user 187.32
sys 4.96

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/776474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1734.fits scfile=/scratch/kocevski/776474/ft2_4FGL_J2235.8-3627_daily_bin1734.fits outfile=/scratch/kocevski/776474/cmap_688780801_689040001_4FGL_J2235.8-3627_daily_bin1734.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1734.fits scfile=/scratch/kocevski/776474/ft2_4FGL_J2235.8-3627_daily_bin1734.fits outfile=/scratch/kocevski/776474/cmap_HighResolution_688780801_689040001_4FGL_J2235.8-3627_daily_bin1734.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/776474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/776474/ft2_4FGL_J2235.8-3627_daily_bin1734.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/776474/Model_4FGL_J2235.8-3627_daily_bin1734.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/776474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1734.fits.....................!
real 48.58
user 47.30
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/776474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1734.fits', '/scratch/kocevski/776474/ft2_4FGL_J2235.8-3627_daily_bin1734.fits', expMap='/scratch/kocevski/776474/expmap_688780801_689040001_4FGL_J2235.8-3627_daily_bin1734.fits', expCube='/scratch/kocevski/776474/ltcube_688780801_689040001_4FGL_J2235.8-3627_daily_bin1734.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/776474/Model_4FGL_J2235.8-3627_daily_bin1734.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  0.000e+00  1.000e+06 ( 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/776474/ft1_filtered_4FGL_J2235.8-3627_daily_bin1734.fits
Spacecraft file(s): /scratch/kocevski/776474/ft2_4FGL_J2235.8-3627_daily_bin1734.fits
Exposure map: /scratch/kocevski/776474/expmap_688780801_689040001_4FGL_J2235.8-3627_daily_bin1734.fits
Exposure cube: /scratch/kocevski/776474/ltcube_688780801_689040001_4FGL_J2235.8-3627_daily_bin1734.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/776474/Model_4FGL_J2235.8-3627_daily_bin1734.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) = 6601.86407996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.969       1.0000          .0000       .10000E+07
     2 'Prefactor '    .17606E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .50521E-04   1.0000          .0000       .10000E+07
     4 'norm      '    1.7422       1.0000          .0000       .10000E+07
     5 'norm      '    1.2681       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.1446       1.0000          .0000       .10000E+07
     7 'Prefactor '    .34925E-04   1.0000          .0000       .10000E+07
     8 'norm      '    18.542       1.0000          .0000       .10000E+07
     9 'Prefactor '    12.325       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.4097       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.203       1.0000          .0000       .10000E+07
    12 'norm      '    .34805E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    22.019       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.2427       1.0000          .0000       .10000E+07
    15 'Prefactor '    .35322E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .87572E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.8881       1.0000          .0000       .10000E+07
    18 'Prefactor '    .11433E-03   1.0000          .0000       .10000E+07
    19 'norm      '    1.3737       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.4469       1.0000          .0000       .10000E+07
    21 'norm      '    .28228       1.0000          .0000       .10000E+07
    22 'norm      '    .47652E-05   1.0000          .0000       .10000E+07
    23 'norm      '    9.2499       1.0000          .0000       .10000E+07
    24 'Prefactor '    38.492       1.0000          .0000       .10000E+07
    25 'Prefactor '    .23886E-03   1.0000          .0000       .10000E+07
    26 'norm      '    .34975E-04   1.0000          .0000       .10000E+07
    27 'Normalizat'    .81065       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0382       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=   6601.809     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2550 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.937        2.2196        .69683E-07    .38641E-02
   2  Prefactor     .82712E-08    26.959        .43587E-06** at limit **
   3  norm          .99920E-09    2.1342        .21662E-06** at limit **
   4  norm          1.7416        3.3482       -.46253E-06   -.86297E-03
   5  norm          1.2681        .38498        .69379E-09   -.89159E-03
   6  Prefactor     4.1804        7.0023        .64739E-06    .26803E-01
   7  Prefactor      .0000        1.1744       -.61765E-06** at limit **
   8  norm          18.578        13.325        .11136E-05   -.14196E-02
   9  Prefactor     12.244        1.2113        .51254E-07    .67147E-02
  10  Prefactor     3.1970        1.9173       -.40473E-06   -.67043E-02
  11  Prefactor     11.138        4.4446       -.87054E-06   -.35699E-01
  12  norm           .0000        .62208       -.36540E-09** at limit **
  13  Prefactor     22.617        12.585        .33724E-06    .19221E-01
  14  Prefactor     8.1808        10.058        .57108E-06   -.40747E-02
  15  Prefactor     .66613E-09    2.6710       -.10621E-06** at limit **
  16  norm           .0000        1.0264        .33422E-07** at limit **
  17  Prefactor     7.8638        6.7312        .40858E-06   -.48965E-01
  18  Prefactor     .12224E-06    82.470       -.66649E-05** at limit **
  19  norm          1.3742        .55343       -.78586E-08    .37176E-02
  20  Prefactor     3.4279        6.4303       -.86754E-06   -.34328E-01
  21  norm          .26830        2.9487        .25743E-05    .24062E-02
  22  norm           .0000        1.2758       -.85515E-07** at limit **
  23  norm          9.2484        6.8030        .42884E-06    .11314E-01
  24  Prefactor     38.986        28.970       -.37325E-05    .16749E-01
  25  Prefactor      .0000        12.380       -.19216E-05** at limit **
  26  norm           .0000        1.9359       -.27458E-06** at limit **
  27  Normalizat    .81024        .19887        .77921E-05   -.15633E-03
  28  Prefactor     1.0386        .18881        .14420E-05   -.13136E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9372
  Prefactor  = 8.27116e-09
  norm       = 9.99201e-10
  norm       = 1.74155
  norm       = 1.26806
  Prefactor  = 4.1804
  Prefactor  = 0
  norm       = 18.5778
  Prefactor  = 12.2435
  Prefactor  = 3.19701
  Prefactor  = 11.1381
  norm       = 0
  Prefactor  = 22.6172
  Prefactor  = 8.18075
  Prefactor  = 6.66134e-10
  norm       = 0
  Prefactor  = 7.8638
  Prefactor  = 1.22236e-07
  norm       = 1.37421
  Prefactor  = 3.42789
  norm       = 0.268301
  norm       = 0
  norm       = 9.24839
  Prefactor  = 38.9858
  Prefactor  = 0
  norm       = 0
  Normalizat = 0.810238
  Prefactor  = 1.03857
 **********
 **   18 **HESSE 
 **********

 FCN=   6601.809     FROM HESSE     STATUS=OK           589 CALLS     3139 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.937        8.4682        .25861E-03   -1.5631    
   2  Prefactor     .82712E-08    27.196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .99920E-09    2.1593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7416        3.3728        .79446E-03   -1.5682    
   5  norm          1.2681        .38545        .59166E-03   -1.5685    
   6  Prefactor     4.1804        7.8442        .49487E-03   -1.5667    
   7  Prefactor      .0000        1.1725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          18.578        13.442        .23232E-03   -1.5622    
   9  Prefactor     12.244        15.895        .28507E-03   -1.5638    
  10  Prefactor     3.1970        20.193        .54761E-03   -1.5672    
  11  Prefactor     11.138        17.478        .29907E-03   -1.5641    
  12  norm           .0000        .62454        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.617        37.708        .21317E-03   -1.5613    
  14  Prefactor     8.1808        10.110        .34896E-03   -1.5651    
  15  Prefactor     .66613E-09    2.6944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        1.0335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.8638        8.3552        .35677E-03   -1.5652    
  18  Prefactor     .12224E-06    10.543        .53757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3742        .63582        .82328E-03   -1.5685    
  20  Prefactor     3.4279        8.2504        .54451E-03   -1.5671    
  21  norm          .26830        11.620        .10463E-01   -1.5698    
  22  norm           .0000        1.2775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.2484        6.8816        .32928E-03   -1.5647    
  24  Prefactor     38.986        30.332        .16120E-03   -1.5583    
  25  Prefactor      .0000        12.506        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm           .0000        1.9310        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .81024        .17189        .43749E-01   -.99690    
  28  Prefactor     1.0386        .16150        .40654E-01   -.91455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26301e-07
Minuit parameter uncertainties:
  1  8.46819
  2  0.000948856
  3  9.20227e-05
  4  3.37277
  5  0.385446
  6  7.84426
  7  9.08443e-06
  8  13.4422
  9  15.895
  10  16.0697
  11  17.478
  12  3.55508e-06
  13  37.7087
  14  10.1096
  15  8.48775e-05
  16  5.10246e-06
  17  8.35521
  18  0.00227064
  19  0.635816
  20  8.25038
  21  3.53134
  22  6.06909e-06
  23  6.88156
  24  30.332
  25  2.85753e-05
  26  4.21189e-07
  27  0.172006
  28  0.161577
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.197e+00  1.607e+01  0.000e+00  1.000e+06 ( 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.039e+00  1.616e-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:  8.102e-01  1.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 6.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/776474/likelihoodResults_688780801_689040001_4FGL_J2235.8-3627_daily_bin1734.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) = 6601.78837812
delta logL = 0.0209599961654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6601.78828008
delta logL = 0.0210580295998

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1971       1.0000          .0000       .10000E+07
     2 'Index     '    2.5837       1.0000          .0000       10.000    
     3 'Normalizat'    .80653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0401       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=   6601.788     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      245 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2000        14.263        .22657E-04    .11109E-02
   2  Index         2.5851        1.7746        .59454E-02    .19878E-03
   3  Normalizat    .80651        .18730        .25412E-03    .12960E-02
   4  Prefactor     1.0401        .18688        .22656E-03    .12336E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.19998
  Index      = 2.58507
  Normalizat = 0.806506
  Prefactor  = 1.0401
 **********
 **   18 **HESSE 
 **********

 FCN=   6601.788     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2000        13.285        .90627E-06   -1.5672    
   2  Index         2.5851        1.7157        .23781E-03   -.50406    
   3  Normalizat    .80651        .18748        .50824E-04   -.99828    
   4  Prefactor     1.0401        .18702        .45312E-04   -.91405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10992e-09
Minuit parameter uncertainties:
  1  13.0402
  2  1.76291
  3  0.187633
  4  0.187139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776474': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6601.78827962
delta logL = 0.0210584956994

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.200e+00  1.304e+01  0.000e+00  1.000e+06 ( 1.000e-13)
273        Index:  2.585e+00  1.763e+00  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.040e+00  1.871e-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:  8.065e-01  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 338.971 -36.461

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/776474/cmap_HighResolution_688780801_689040001_4FGL_J2235.8-3627_daily_bin1734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-03', job_status='DONE', photon_flux_upper_limit='6.54e-08', time_completed='2022-11-02 00:48:41.642709', job_id='776474', GAL2='1.04', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1667375321.64', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.11e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1734' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov  2 00:48:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 776474: <4FGL_J2235.8-3627_daily_bin1734> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1734> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Nov  2 00:35:28 2022
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov  2 00:35:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov  2 00:35:29 2022
Terminated at Wed Nov  2 00:48:42 2022
Results reported at Wed Nov  2 00:48:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1734 338.971 -36.4605 688780801 689040001 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 :                                   683.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            794 sec.

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

