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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1719
RA = 324.062, Dec = 0.5488
tmin = 684892801, tmax = 685152001
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='666673', job_status='RUN', time_executed='2022-09-18 01:18:47.180869', time_epoch_executed='1663489127.18' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666673

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666673/ft1_4FGL_J2136.2+0032_daily_bin1719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666673/ft2_4FGL_J2136.2+0032_daily_bin1719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666673/ft1_4FGL_J2136.2+0032_daily_bin1719.fits outfile=/scratch/kocevski/666673/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1719.fits ra=324.062 dec=0.5488 rad=12.0 tmin=684892801.0 tmax=685152001.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.20
user 2.96
sys 0.20

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

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

Number of photons that the gtmktime cut: 208

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/666673/ft1_filtered_4FGL_J2136.2+0032_daily_bin1719.fits" evtable="EVENTS" scfile=/scratch/kocevski/666673/ft2_4FGL_J2136.2+0032_daily_bin1719.fits sctable="SC_DATA" outfile=/scratch/kocevski/666673/ltcube_684892801_685152001_4FGL_J2136.2+0032_daily_bin1719.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/666673/ft2_4FGL_J2136.2+0032_daily_bin1719.fits
.....................!
real 16.82
user 16.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666673/ft1_filtered_4FGL_J2136.2+0032_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/666673/ft2_4FGL_J2136.2+0032_daily_bin1719.fits sctable="SC_DATA" expcube=/scratch/kocevski/666673/ltcube_684892801_685152001_4FGL_J2136.2+0032_daily_bin1719.fits outfile=/scratch/kocevski/666673/expmap_684892801_685152001_4FGL_J2136.2+0032_daily_bin1719.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/666673/ltcube_684892801_685152001_4FGL_J2136.2+0032_daily_bin1719.fits
.....................!
real 192.67
user 187.51
sys 4.53

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/666673/ft1_filtered_4FGL_J2136.2+0032_daily_bin1719.fits scfile=/scratch/kocevski/666673/ft2_4FGL_J2136.2+0032_daily_bin1719.fits outfile=/scratch/kocevski/666673/cmap_684892801_685152001_4FGL_J2136.2+0032_daily_bin1719.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666673/ft1_filtered_4FGL_J2136.2+0032_daily_bin1719.fits scfile=/scratch/kocevski/666673/ft2_4FGL_J2136.2+0032_daily_bin1719.fits outfile=/scratch/kocevski/666673/cmap_HighResolution_684892801_685152001_4FGL_J2136.2+0032_daily_bin1719.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/666673/ft1_filtered_4FGL_J2136.2+0032_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/666673/ft2_4FGL_J2136.2+0032_daily_bin1719.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/666673/Model_4FGL_J2136.2+0032_daily_bin1719.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/666673/ft1_filtered_4FGL_J2136.2+0032_daily_bin1719.fits.....................!
real 35.23
user 33.88
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21603E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .20922E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .17514E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .23993E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .95923E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .33048       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.4349       1.0000          .0000       .10000E+07
     8 'Prefactor '    20.789       1.0000          .0000       .10000E+07
     9 'Prefactor '    .23254E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .15249E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    10.437       1.0000          .0000       .10000E+07
    12 'norm      '    7.3806       1.0000          .0000       .10000E+07
    13 'norm      '    10.214       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14886E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12054E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    17.063       1.0000          .0000       .10000E+07
    17 'Prefactor '    .13668E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .91964E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    .27559       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0496       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=   2547.457     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1517 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.167        .44650E-06** at limit **
   2  Prefactor     .51124E-04    19.146        .91370E-06** at limit **
   3  Prefactor      .0000        34.430       -.18784E-05** at limit **
   4  Prefactor     .11668E-06    27.605        .71937E-06** at limit **
   5  Prefactor     .11280E-06    24.755        .13077E-05** at limit **
   6  Prefactor     .31641E-08    92.278        .32252E-05** at limit **
   7  Prefactor     5.4276        9.0784       -.65449E-06    .11639E-02
   8  Prefactor     20.702        6.6837       -.26845E-07    .12652    
   9  Prefactor      .0000        2.4819        .49115E-06** at limit **
  10  Prefactor     .11713E-04    26.050        .66847E-06** at limit **
  11  Prefactor     9.5487        9.1724       -.16282E-06    .51195E-01
  12  norm          7.4240        5.0226       -.49513E-06    .62195E-02
  13  norm          9.0583        11.570        .53177E-07   -.11238    
  14  Prefactor      .0000        7.8915        .14806E-05** at limit **
  15  Prefactor     .23322E-05    53.076        .84433E-06** at limit **
  16  Prefactor     17.344        9.9874        .19758E-06   -.40921E-01
  17  Prefactor     .15266E-06    21.290        .72375E-06** at limit **
  18  Prefactor     .55511E-09    171.03       -.16759E-05** at limit **
  19  Normalizat    .27869        .44518        .40370E-04    .55251E-05
  20  Prefactor     1.0492        .20755       -.15065E-05    .26463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 5.11239e-05
  Prefactor  = 0
  Prefactor  = 1.16684e-07
  Prefactor  = 1.12799e-07
  Prefactor  = 3.16414e-09
  Prefactor  = 5.42761
  Prefactor  = 20.7016
  Prefactor  = 0
  Prefactor  = 1.17128e-05
  Prefactor  = 9.54869
  norm       = 7.42401
  norm       = 9.05831
  Prefactor  = 0
  Prefactor  = 2.33219e-06
  Prefactor  = 17.3443
  Prefactor  = 1.52656e-07
  Prefactor  = 5.55112e-10
  Normalizat = 0.27869
  Prefactor  = 1.04917
 **********
 **   18 **HESSE 
 **********

 FCN=   2547.457     FROM HESSE     STATUS=OK           331 CALLS     1848 TOTAL
                     EDM=   .43E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.1511        .51232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .51124E-04    61.282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        33.882        .17206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11668E-06    28.665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11280E-06    25.456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .31641E-08    92.083        .98028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4276        9.2384        .43079E-03   -1.5661    
   8  Prefactor     20.702        24.352        .21939E-03   -1.5617    
   9  Prefactor      .0000        2.4888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11713E-04    50.669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5487        929.07        .30990E-03   -1.5646    
  12  norm          7.4240        6.1639        .36894E-03   -1.5653    
  13  norm          9.0583        246.01        .31328E-03   -1.5648    
  14  Prefactor      .0000        7.9159        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .23322E-05    73.927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.344        68.060        .24219E-03   -1.5625    
  17  Prefactor     .15266E-06    52.042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-09    180.09        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .27869        .59906        .13631       -1.2413    
  20  Prefactor     1.0492        .25384        .39934E-01   -.91108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29451e-05
Minuit parameter uncertainties:
  1  9.21625e-07
  2  0.111947
  3  5.14858e-05
  4  0.00365791
  5  0.00338879
  6  0.00108306
  7  9.23842
  8  24.3519
  9  2.74821e-06
  10  0.0487232
  11  188.407
  12  6.16395
  13  94.4177
  14  1.38411e-05
  15  0.0262615
  16  68.0625
  17  0.00563709
  18  0.000628313
  19  0.613705
  20  0.254127
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.171e-05  4.872e-02  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.049e+00  2.541e-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:  2.787e-01  6.137e-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: 2.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/666673/likelihoodResults_684892801_685152001_4FGL_J2136.2+0032_daily_bin1719.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) = 2547.46668621
delta logL = -0.0094731973777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2547.45721527
delta logL = -2.25775966101e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13772E-03   1.0000          .0000       .10000E+07
     2 'Index     '    2.2395       1.0000          .0000       10.000    
     3 'Normalizat'    .27815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0494       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.

 FCN=   2547.457     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      235 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33862E-08    15.082        .42118E-03** at limit **
   2  Index         6.2545        7.3279        .50000        .12506E-09
   3  Normalizat    .27869        .47014        .13631        .59184E-04
   4  Prefactor     1.0492        .22411        .39946E-01    .96655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.38618e-09
  Index      = 6.2545
  Normalizat = 0.278691
  Prefactor  = 1.04917
 **********
 **   18 **HESSE 
 **********

 FCN=   2547.457     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33862E-08    15.329        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.2545        7.3264        .50000        .25361    
   3  Normalizat    .27869        .42270        .60205E-03   -1.2413    
   4  Prefactor     1.0492        .20102        .14843E-03   -.91108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34613e-10
Minuit parameter uncertainties:
  1  0.000454992
  2  4.84442
  3  0.427674
  4  0.201165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666673': 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) = 2547.4572129
delta logL = 1.15429884318e-07

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  3.386e-09  4.550e-04  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  6.255e+00  4.844e+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.049e+00  2.012e-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:  2.787e-01  4.277e-01  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/666673/cmap_HighResolution_684892801_685152001_4FGL_J2136.2+0032_daily_bin1719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-02', job_status='DONE', photon_flux_upper_limit='2.44e-07', time_completed='2022-09-18 01:25:45.722419', job_id='666673', GAL2='1.05', fit_tolerance='1e-08', EG2='0.28', EG='0.28', time_epoch_completed='1663489545.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='1719' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 18 01:25:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 666673: <4FGL_J2136.2+0032_daily_bin1719> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin1719> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 18 01:15:41 2022
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 18 01:16:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 18 01:16:58 2022
Terminated at Sun Sep 18 01:25:46 2022
Results reported at Sun Sep 18 01:25:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1719 324.062 0.5488 684892801 685152001 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 :                                   420.49 sec.
    Max Memory :                                 1081 MB
    Average Memory :                             281.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   528 sec.
    Turnaround time :                            605 sec.

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

