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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1764
RA = 324.062, Dec = 0.5488
tmin = 696556801, tmax = 696816001
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='464655', job_status='RUN', time_executed='2023-01-31 01:56:56.749817', time_epoch_executed='1675159016.75' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/464655

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/464655/ft1_4FGL_J2136.2+0032_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/464655/ft2_4FGL_J2136.2+0032_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/464655/ft1_4FGL_J2136.2+0032_daily_bin1764.fits outfile=/scratch/kocevski/464655/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1764.fits ra=324.062 dec=0.5488 rad=12.0 tmin=696556801.0 tmax=696816001.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.74
user 3.48
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/464655/ft2_4FGL_J2136.2+0032_daily_bin1764.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/464655/ft2_4FGL_J2136.2+0032_daily_bin1764.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/464655/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1764.fits evtable="EVENTS" outfile="/scratch/kocevski/464655/ft1_filtered_4FGL_J2136.2+0032_daily_bin1764.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 495

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/464655/ft1_filtered_4FGL_J2136.2+0032_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/464655/ft2_4FGL_J2136.2+0032_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/464655/ltcube_696556801_696816001_4FGL_J2136.2+0032_daily_bin1764.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/464655/ft2_4FGL_J2136.2+0032_daily_bin1764.fits
.....................!
real 16.08
user 15.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/464655/ft1_filtered_4FGL_J2136.2+0032_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/464655/ft2_4FGL_J2136.2+0032_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/464655/ltcube_696556801_696816001_4FGL_J2136.2+0032_daily_bin1764.fits outfile=/scratch/kocevski/464655/expmap_696556801_696816001_4FGL_J2136.2+0032_daily_bin1764.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/464655/ltcube_696556801_696816001_4FGL_J2136.2+0032_daily_bin1764.fits
.....................!
real 192.19
user 186.52
sys 4.71

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

Setting source of interest to:
4FGL J2136.2+0032 @ 324.062 0.5488

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/464655/ft1_filtered_4FGL_J2136.2+0032_daily_bin1764.fits scfile=/scratch/kocevski/464655/ft2_4FGL_J2136.2+0032_daily_bin1764.fits outfile=/scratch/kocevski/464655/cmap_696556801_696816001_4FGL_J2136.2+0032_daily_bin1764.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=324.062 yref=0.5488 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.58
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/464655/ft1_filtered_4FGL_J2136.2+0032_daily_bin1764.fits scfile=/scratch/kocevski/464655/ft2_4FGL_J2136.2+0032_daily_bin1764.fits outfile=/scratch/kocevski/464655/cmap_HighResolution_696556801_696816001_4FGL_J2136.2+0032_daily_bin1764.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=324.062 yref=0.5488 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/464655/ft1_filtered_4FGL_J2136.2+0032_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/464655/ft2_4FGL_J2136.2+0032_daily_bin1764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/464655/Model_4FGL_J2136.2+0032_daily_bin1764.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/464655/ft1_filtered_4FGL_J2136.2+0032_daily_bin1764.fits.....................!
real 56.17
user 54.70
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/464655/ft1_filtered_4FGL_J2136.2+0032_daily_bin1764.fits', '/scratch/kocevski/464655/ft2_4FGL_J2136.2+0032_daily_bin1764.fits', expMap='/scratch/kocevski/464655/expmap_696556801_696816001_4FGL_J2136.2+0032_daily_bin1764.fits', expCube='/scratch/kocevski/464655/ltcube_696556801_696816001_4FGL_J2136.2+0032_daily_bin1764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/464655/Model_4FGL_J2136.2+0032_daily_bin1764.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2136.2+0032'

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  8.984e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  2.877e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  3.302e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/464655/ft1_filtered_4FGL_J2136.2+0032_daily_bin1764.fits
Spacecraft file(s): /scratch/kocevski/464655/ft2_4FGL_J2136.2+0032_daily_bin1764.fits
Exposure map: /scratch/kocevski/464655/expmap_696556801_696816001_4FGL_J2136.2+0032_daily_bin1764.fits
Exposure cube: /scratch/kocevski/464655/ltcube_696556801_696816001_4FGL_J2136.2+0032_daily_bin1764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/464655/Model_4FGL_J2136.2+0032_daily_bin1764.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) = 5465.13334911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9971       1.0000          .0000       .10000E+07
     2 'Prefactor '    .14706E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.2492       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19816E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .13516E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .23518E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .31796E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    11.455       1.0000          .0000       .10000E+07
     9 'Prefactor '    .63592E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .86523E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .83270E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .65945E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .66261E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .62184E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .18851E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    33.789       1.0000          .0000       .10000E+07
    17 'Prefactor '    .60528E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .36927E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    .89748       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91522       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5464.972     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1213 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0318        4.3964        .45897E-07    .21891E-02
   2  Prefactor     .15765E-07    3.9392       -.10514E-06** at limit **
   3  Prefactor     7.4699        1.5383        .49314E-08   -.53552E-02
   4  Prefactor     .17390E-05    7.9818        .18488E-07** at limit **
   5  Prefactor     .66891E-07    22.337       -.13099E-06** at limit **
   6  Prefactor     .23564E-06    4.3972       -.12046E-07** at limit **
   7  Prefactor     .38858E-09    2.3681       -.95413E-07** at limit **
   8  Prefactor     11.467        8.0648       -.11618E-07   -.75063E-02
   9  Prefactor     .63411E-01    4.8507       -.93799E-07** at limit **
  10  Prefactor     .83739E-06    4.5935       -.29596E-07** at limit **
  11  Prefactor     .60507E-08    40.244        .29695E-07** at limit **
  12  norm          .55511E-10    1.7193        .46787E-07** at limit **
  13  norm          .10658E-07    4.7390       -.12554E-06** at limit **
  14  Prefactor     .38580E-06    4.0418       -.16325E-06** at limit **
  15  Prefactor     .11618E-05    3.2954       -.85296E-09** at limit **
  16  Prefactor     33.823        1.0508       -.91199E-09    .42465E-02
  17  Prefactor     .54790E-07    3.0175       -.11290E-06** at limit **
  18  Prefactor     .29421E-06    4.3689       -.14395E-06** at limit **
  19  Normalizat    .89757        .25874       -.94409E-06   -.32921E-03
  20  Prefactor     .91511        .13455       -.72753E-06   -.64991E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.03178
  Prefactor  = 1.57652e-08
  Prefactor  = 7.46994
  Prefactor  = 1.739e-06
  Prefactor  = 6.68909e-08
  Prefactor  = 2.35645e-07
  Prefactor  = 3.88578e-10
  Prefactor  = 11.4667
  Prefactor  = 0.063411
  Prefactor  = 8.37386e-07
  Prefactor  = 6.05072e-09
  norm       = 5.55112e-11
  norm       = 1.06581e-08
  Prefactor  = 3.85803e-07
  Prefactor  = 1.16179e-06
  Prefactor  = 33.8233
  Prefactor  = 5.47895e-08
  Prefactor  = 2.94209e-07
  Normalizat = 0.897573
  Prefactor  = 0.915112
 **********
 **   18 **HESSE 
 **********

 FCN=   5464.972     FROM HESSE     STATUS=OK           333 CALLS     1546 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0318        4.3866        .50421E-03   -1.5668    
   2  Prefactor     .15765E-07    9.1935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4699        12.908        .37230E-03   -1.5653    
   4  Prefactor     .17390E-05    14.313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .66891E-07    22.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .23564E-06    12.794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38858E-09    2.3684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.467        8.0620        .29575E-03   -1.5640    
   9  Prefactor     .63411E-01    1.1744        .28262E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83739E-06    12.174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .60507E-08    40.069        .14402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.6830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10658E-07    8.3267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .38580E-06    6.2499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11618E-05    7.0655        .12013E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.823        19.214        .17206E-03   -1.5592    
  17  Prefactor     .54790E-07    8.8250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .29421E-06    6.0055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89757        .21968        .72463E-01   -.96545    
  20  Prefactor     .91511        .11248        .45199E-01   -.95615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34535e-07
Minuit parameter uncertainties:
  1  4.38658
  2  0.000761874
  3  12.9083
  4  0.0099781
  5  0.00245625
  6  0.00347266
  7  5.92707e-05
  8  8.06205
  9  0.545793
  10  0.00638572
  11  0.000986824
  12  1.52699e-05
  13  0.000595433
  14  0.00310572
  15  0.00573013
  16  19.2141
  17  0.00139056
  18  0.00265854
  19  0.219901
  20  0.11251
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  8.374e-07  6.386e-03  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  2.877e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  3.302e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  9.151e-01  1.125e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  8.976e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 324.062 0.549
Photon Flux Upper Limit: 8.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/464655/likelihoodResults_696556801_696816001_4FGL_J2136.2+0032_daily_bin1764.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) = 5464.97207525
delta logL = -7.76867518653e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5464.97199914
delta logL = -1.56943497132e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11058E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .96089       1.0000          .0000       10.000    
     3 'Normalizat'    .89715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91526       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5464.972     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.0306        .42118E-03** at limit **
   2  Index         5.6196        2.1927       -.27900E-02     .0000    
   3  Normalizat    .89758        1.2329       -.18227E-04    .78635E-04
   4  Prefactor     .91511        1.2593        .42815E-05   -.17948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 5.61957
  Normalizat = 0.897578
  Prefactor  = 0.915111
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5464.972     FROM HESSE     STATUS=FAILED         9 CALLS      268 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.0306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1187        2.4371       -.27900E-02    .12423    
   3  Normalizat    .89758        1.2329       -.18227E-04   -.96545    
   4  Prefactor     .91511        1.2593        .42815E-05   -.95615    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.126e-10
Minuit parameter uncertainties:
  1  1.54117e-05
  2  2.27118
  3  1.27524
  4  1.30325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/464655': 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): 101
logL (Free Index) = 5464.97199753
delta logL = 3.43889041687e-08

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  0.000e+00  1.541e-05  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  5.620e+00  2.271e+00  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  3.302e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  9.151e-01  1.303e+00  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  8.976e-01  1.275e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 324.062 0.549

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/464655/cmap_HighResolution_696556801_696816001_4FGL_J2136.2+0032_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2023-01-31 02:05:28.001891', job_id='464655', GAL2='0.92', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1675159528.0', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.44e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='1764' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 02:05:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 464655: <4FGL_J2136.2+0032_daily_bin1764> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin1764> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jan 31 01:55:16 2023
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 01:55:58 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 01:55:58 2023
Terminated at Tue Jan 31 02:05:28 2023
Results reported at Tue Jan 31 02:05:28 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1764 324.062 0.5488 696556801 696816001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2136.2+0032 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   511.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            612 sec.

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

