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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1773
RA = 324.062, Dec = 0.5488
tmin = 698889601, tmax = 699148801
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='804518', job_status='RUN', time_executed='2023-02-27 10:32:53.029742', time_epoch_executed='1677522773.03' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804518

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804518/ft1_4FGL_J2136.2+0032_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804518/ft2_4FGL_J2136.2+0032_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804518/ft1_4FGL_J2136.2+0032_daily_bin1773.fits outfile=/scratch/kocevski/804518/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1773.fits ra=324.062 dec=0.5488 rad=12.0 tmin=698889601.0 tmax=699148801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.94
user 2.73
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/804518/ft2_4FGL_J2136.2+0032_daily_bin1773.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/804518/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/804518/ft1_filtered_4FGL_J2136.2+0032_daily_bin1773.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.34
sys 0.14

Number of photons that the gtmktime cut: 274

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804518/ft1_filtered_4FGL_J2136.2+0032_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/804518/ft2_4FGL_J2136.2+0032_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/804518/ltcube_698889601_699148801_4FGL_J2136.2+0032_daily_bin1773.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/804518/ft2_4FGL_J2136.2+0032_daily_bin1773.fits
.....................!
real 16.16
user 15.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804518/ft1_filtered_4FGL_J2136.2+0032_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/804518/ft2_4FGL_J2136.2+0032_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/804518/ltcube_698889601_699148801_4FGL_J2136.2+0032_daily_bin1773.fits outfile=/scratch/kocevski/804518/expmap_698889601_699148801_4FGL_J2136.2+0032_daily_bin1773.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/804518/ltcube_698889601_699148801_4FGL_J2136.2+0032_daily_bin1773.fits
.....................!
real 192.60
user 186.56
sys 4.97

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/804518/ft1_filtered_4FGL_J2136.2+0032_daily_bin1773.fits scfile=/scratch/kocevski/804518/ft2_4FGL_J2136.2+0032_daily_bin1773.fits outfile=/scratch/kocevski/804518/cmap_698889601_699148801_4FGL_J2136.2+0032_daily_bin1773.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804518/ft1_filtered_4FGL_J2136.2+0032_daily_bin1773.fits scfile=/scratch/kocevski/804518/ft2_4FGL_J2136.2+0032_daily_bin1773.fits outfile=/scratch/kocevski/804518/cmap_HighResolution_698889601_699148801_4FGL_J2136.2+0032_daily_bin1773.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.57
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/804518/ft1_filtered_4FGL_J2136.2+0032_daily_bin1773.fits', '/scratch/kocevski/804518/ft2_4FGL_J2136.2+0032_daily_bin1773.fits', expMap='/scratch/kocevski/804518/expmap_698889601_699148801_4FGL_J2136.2+0032_daily_bin1773.fits', expCube='/scratch/kocevski/804518/ltcube_698889601_699148801_4FGL_J2136.2+0032_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/804518/Model_4FGL_J2136.2+0032_daily_bin1773.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/804518/ft1_filtered_4FGL_J2136.2+0032_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/804518/ft2_4FGL_J2136.2+0032_daily_bin1773.fits
Exposure map: /scratch/kocevski/804518/expmap_698889601_699148801_4FGL_J2136.2+0032_daily_bin1773.fits
Exposure cube: /scratch/kocevski/804518/ltcube_698889601_699148801_4FGL_J2136.2+0032_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/804518/Model_4FGL_J2136.2+0032_daily_bin1773.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) = 3277.10855172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3276.99610882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2644       1.0000          .0000       .10000E+07
     2 'Prefactor '    13.369       1.0000          .0000       .10000E+07
     3 'Prefactor '    .84861E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .23980E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .12607E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4824       1.0000          .0000       .10000E+07
     7 'Prefactor '    9.6309       1.0000          .0000       .10000E+07
     8 'Prefactor '    .32190E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.5522       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11792E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .17434       1.0000          .0000       .10000E+07
    12 'norm      '    4.8613       1.0000          .0000       .10000E+07
    13 'norm      '    7.9533       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12761E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    9.3696       1.0000          .0000       .10000E+07
    16 'Prefactor '    .38989E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12243E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    7.1383       1.0000          .0000       .10000E+07
    19 'Normalizat'    .71006       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0098       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=   3276.970     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     1582 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4239        9.7291        .28052E-06    .91915E-04
   2  Prefactor     14.052        4.6765        .11826E-08   -.60816E-03
   3  Prefactor      .0000        16.968        .32669E-06** at limit **
   4  Prefactor     .55511E-10    45.885        .14321E-05** at limit **
   5  Prefactor     .61617E-08    20.397        .21105E-05** at limit **
   6  Prefactor     .92654E-06    698.04        .33954E-04** at limit **
   7  Prefactor     10.122        12.353        .72076E-06    .52161E-02
   8  Prefactor     .63838E-07    15.695       -.52023E-05** at limit **
   9  Prefactor     4.6382        5.6440       -.14992E-05    .60930E-02
  10  Prefactor     .22204E-09    21.844        .82563E-05** at limit **
  11  Prefactor     .17597E-07    50.335       -.94127E-06** at limit **
  12  norm          4.4568        6.2809       -.27300E-06    .19596E-02
  13  norm          15.167        68.382        .52292E-05    .17008E-02
  14  Prefactor     .16098E-08    18.446       -.20349E-06** at limit **
  15  Prefactor     9.2032        8.8208        .27196E-05   -.13616E-01
  16  Prefactor     .11247E-06    11.850        .35725E-06** at limit **
  17  Prefactor     .28810E-07    27.687       -.62002E-05** at limit **
  18  Prefactor     28.297        134.57        .50376E-05    .38997E-03
  19  Normalizat    .69361        .49654       -.46458E-04    .84138E-04
  20  Prefactor     1.0098        .20908        .29371E-05    .24115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.42394
  Prefactor  = 14.0515
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 6.16174e-09
  Prefactor  = 9.26537e-07
  Prefactor  = 10.1216
  Prefactor  = 6.38378e-08
  Prefactor  = 4.63815
  Prefactor  = 2.22045e-10
  Prefactor  = 1.7597e-08
  norm       = 4.45679
  norm       = 15.1668
  Prefactor  = 1.60982e-09
  Prefactor  = 9.20322
  Prefactor  = 1.12466e-07
  Prefactor  = 2.88103e-08
  Prefactor  = 28.2969
  Normalizat = 0.693606
  Prefactor  = 1.00984
 **********
 **   18 **HESSE 
 **********

 FCN=   3276.970     FROM HESSE     STATUS=OK           329 CALLS     1911 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4239        9.7702        .37191E-03   -1.5653    
   2  Prefactor     14.052        25.765        .27369E-03   -1.5633    
   3  Prefactor      .0000        16.993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    45.943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .61617E-08    20.549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .92654E-06    696.79        .88099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.122        12.344        .32267E-03   -1.5644    
   8  Prefactor     .63838E-07    23.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6382        5.6641        .47158E-03   -1.5665    
  10  Prefactor     .22204E-09    26.961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17597E-07    49.345        .12252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4568        6.4989        .45600E-03   -1.5666    
  13  norm          15.167        72.557        .35530E-03   -1.5630    
  14  Prefactor     .16098E-08    18.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.2032        27.238        .32716E-03   -1.5647    
  16  Prefactor     .11247E-06    23.825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .28810E-07    29.315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.297        134.02        .37521E-03   -1.5602    
  19  Normalizat    .69361        .43281        .10041       -1.0415    
  20  Prefactor     1.0098        .17694        .43350E-01   -.92402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70244e-08
Minuit parameter uncertainties:
  1  9.7702
  2  25.7653
  3  1.73522e-05
  4  0.000102236
  5  0.000712103
  6  0.0508238
  7  12.3441
  8  0.00246898
  9  5.66407
  10  0.00016031
  11  0.00186512
  12  6.49892
  13  66.3475
  14  0.000342192
  15  27.2387
  16  0.00327392
  17  0.00183878
  18  123.168
  19  0.434958
  20  0.177043
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  2.220e-10  1.603e-04  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:  1.010e+00  1.770e-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:  6.936e-01  4.350e-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: 1.94e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.54e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804518/likelihoodResults_698889601_699148801_4FGL_J2136.2+0032_daily_bin1773.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) = 3276.97020083
delta logL = -9.9320184745e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3276.97010155
delta logL = -4.49790604762e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31014E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.5140       1.0000          .0000       10.000    
     3 'Normalizat'    .69363       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0098       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=   3276.970     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      266 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.451        .42118E-03** at limit **
   2  Index         4.0951        1.4368        .48537E-04     .0000    
   3  Normalizat    .69361        1.0332       -.19107E-04    .19738E-05
   4  Prefactor     1.0098        1.2658        .15155E-05   -.52798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.0951
  Normalizat = 0.693608
  Prefactor  = 1.00984
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3276.970     FROM HESSE     STATUS=FAILED         9 CALLS      275 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8097        2.3249        .48537E-04   -.18198    
   3  Normalizat    .69361        1.0332       -.19107E-04   -1.0415    
   4  Prefactor     1.0098        1.2658        .15155E-05   -.92402    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.10381e-11
Minuit parameter uncertainties:
  1  1.89541e-05
  2  1.45806
  3  1.06454
  4  1.30632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804518': 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) = 3276.97010151
delta logL = 2.27373675443e-11

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  0.000e+00  1.895e-05  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  4.095e+00  1.458e+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:  1.010e+00  1.306e+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:  6.936e-01  1.065e+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/804518/cmap_HighResolution_698889601_699148801_4FGL_J2136.2+0032_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', job_status='DONE', photon_flux_upper_limit='1.94e-07', time_completed='2023-02-27 10:40:20.784458', job_id='804518', GAL2='1.01', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1677523220.78', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.27e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='1773' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:40:20 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 804518: <4FGL_J2136.2+0032_daily_bin1773> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin1773> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Feb 27 10:30:29 2023
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 10:30:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 10:30:29 2023
Terminated at Mon Feb 27 10:40:36 2023
Results reported at Mon Feb 27 10:40:36 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1773 324.062 0.5488 698889601 699148801 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 :                                   448.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            607 sec.

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

