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


Performing analysis on: 4FGL_J2136.2+0032_weekly_bin743
RA = 324.062, Dec = 0.5488
tmin = 688348801, tmax = 688953601
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='422774', job_status='RUN', time_executed='2022-11-01 00:46:04.705879', time_epoch_executed='1667288764.71' WHERE source_name='4FGL J2136.2+0032' and cadence='weekly' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422774

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422774/ft1_4FGL_J2136.2+0032_weekly_bin743.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422774/ft2_4FGL_J2136.2+0032_weekly_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422774/ft1_4FGL_J2136.2+0032_weekly_bin743.fits outfile=/scratch/kocevski/422774/ft1_filteredMKT_4FGL_J2136.2+0032_weekly_bin743.fits ra=324.062 dec=0.5488 rad=12.0 tmin=688348801.0 tmax=688953601.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 5.66
user 5.35
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/422774/ft2_4FGL_J2136.2+0032_weekly_bin743.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/422774/ft1_filteredMKT_4FGL_J2136.2+0032_weekly_bin743.fits evtable="EVENTS" outfile="/scratch/kocevski/422774/ft1_filtered_4FGL_J2136.2+0032_weekly_bin743.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.45
user 0.28
sys 0.15

Number of photons that the gtmktime cut: 1398

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422774/ft1_filtered_4FGL_J2136.2+0032_weekly_bin743.fits" evtable="EVENTS" scfile=/scratch/kocevski/422774/ft2_4FGL_J2136.2+0032_weekly_bin743.fits sctable="SC_DATA" outfile=/scratch/kocevski/422774/ltcube_688348801_688953601_4FGL_J2136.2+0032_weekly_bin743.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/422774/ft2_4FGL_J2136.2+0032_weekly_bin743.fits
.....................!
real 19.57
user 19.24
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422774/ft1_filtered_4FGL_J2136.2+0032_weekly_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/422774/ft2_4FGL_J2136.2+0032_weekly_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/422774/ltcube_688348801_688953601_4FGL_J2136.2+0032_weekly_bin743.fits outfile=/scratch/kocevski/422774/expmap_688348801_688953601_4FGL_J2136.2+0032_weekly_bin743.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/422774/ltcube_688348801_688953601_4FGL_J2136.2+0032_weekly_bin743.fits
.....................!
real 140.66
user 137.04
sys 3.34

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/422774/ft1_filtered_4FGL_J2136.2+0032_weekly_bin743.fits scfile=/scratch/kocevski/422774/ft2_4FGL_J2136.2+0032_weekly_bin743.fits outfile=/scratch/kocevski/422774/cmap_688348801_688953601_4FGL_J2136.2+0032_weekly_bin743.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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422774/ft1_filtered_4FGL_J2136.2+0032_weekly_bin743.fits scfile=/scratch/kocevski/422774/ft2_4FGL_J2136.2+0032_weekly_bin743.fits outfile=/scratch/kocevski/422774/cmap_HighResolution_688348801_688953601_4FGL_J2136.2+0032_weekly_bin743.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.47
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17102E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .40513E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .12660E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .13683E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    10.416       1.0000          .0000       .10000E+07
     6 'Prefactor '    .86323E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .11405E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12736E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .25198E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .22565E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    51.653       1.0000          .0000       .10000E+07
    12 'norm      '    .11999       1.0000          .0000       .10000E+07
    13 'norm      '    .24214E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.6430       1.0000          .0000       .10000E+07
    15 'Prefactor '    10.460       1.0000          .0000       .10000E+07
    16 'Prefactor '    .27858E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .76321E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.7484       1.0000          .0000       .10000E+07
    19 'Normalizat'    .99576       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0076       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=   15653.55     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1595 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76994E-07    3.0319       -.31686E-06** at limit **
   2  Prefactor     .24480E-07    32.325       -.20076E-05** at limit **
   3  Prefactor     .13811E-06    3.4864       -.10192E-06** at limit **
   4  Prefactor     .26146E-07    14.938        .16564E-05** at limit **
   5  Prefactor     10.411        1.4608       -.20794E-06    .90538E-03
   6  Prefactor     .66058E-08    24.879        .18401E-05** at limit **
   7  Prefactor     .71221E-07    2.5775        .81292E-06** at limit **
   8  Prefactor     .19429E-08    2.6408        .20218E-06** at limit **
   9  Prefactor     .31086E-08    5.7244        .76508E-06** at limit **
  10  Prefactor     .54612E-06    6.1223       -.21395E-05** at limit **
  11  Prefactor     51.842        3.1437        .32863E-06   -.12622    
  12  norm          .11939        2.7716       -.65884E-06** at limit **
  13  norm          .35805E-06    3.2541        .15445E-05** at limit **
  14  Prefactor     4.6480        4.4655       -.63212E-07    .26217E-02
  15  Prefactor     10.493        7.1548       -.90399E-06   -.13257E-01
  16  Prefactor     .23875E-06    5.2105        .17328E-05** at limit **
  17  Prefactor     .16653E-08    5.4090       -.10082E-05** at limit **
  18  Prefactor     3.7423        8.0694        .39595E-05    .32768E-01
  19  Normalizat    .99559        .17782        .45021E-05    .31683E-03
  20  Prefactor     1.0077        .89582E-01   -.23644E-05    .42376E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.6994e-08
  Prefactor  = 2.44804e-08
  Prefactor  = 1.38112e-07
  Prefactor  = 2.61458e-08
  Prefactor  = 10.4113
  Prefactor  = 6.60583e-09
  Prefactor  = 7.12208e-08
  Prefactor  = 1.94289e-09
  Prefactor  = 3.10862e-09
  Prefactor  = 5.46119e-07
  Prefactor  = 51.8417
  norm       = 0.119392
  norm       = 3.58047e-07
  Prefactor  = 4.64801
  Prefactor  = 10.4931
  Prefactor  = 2.38753e-07
  Prefactor  = 1.66533e-09
  Prefactor  = 3.74233
  Normalizat = 0.995594
  Prefactor  = 1.0077
 **********
 **   18 **HESSE 
 **********

 FCN=   15653.55     FROM HESSE     STATUS=OK           335 CALLS     1930 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76994E-07    4.6278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .24480E-07    32.294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .13811E-06    9.5235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .26146E-07    15.303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.411        14.812        .31021E-03   -1.5643    
   6  Prefactor     .66058E-08    24.448        .14312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .71221E-07    4.7005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .19429E-08    2.6324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .31086E-08    .58433        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .54612E-06    10.509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     51.842        33.899        .13915E-03   -1.5564    
  12  norm          .11939        .46362        .47431E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .35805E-06    8.5963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6480        4.6420        .46684E-03   -1.5665    
  15  Prefactor     10.493        7.1790        .30955E-03   -1.5643    
  16  Prefactor     .23875E-06    7.1781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16653E-08    5.8296        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.7423        8.6584        .52126E-03   -1.5669    
  19  Normalizat    .99559        .15141        .77250E-01   -.93178    
  20  Prefactor     1.0077        .74381E-01    .43698E-01   -.92473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54348e-07
Minuit parameter uncertainties:
  1  0.00119388
  2  0.0017792
  3  0.0022938
  4  0.00126474
  5  14.8121
  6  0.000802703
  7  0.00115706
  8  0.000143705
  9  8.50968e-05
  10  0.00479154
  11  33.8994
  12  0.463625
  13  0.00350881
  14  4.64201
  15  7.17903
  16  0.00261835
  17  0.000197286
  18  8.65845
  19  0.151477
  20  0.0743881
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  5.461e-07  4.792e-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:  1.008e+00  7.439e-02  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:  9.956e-01  1.515e-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: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422774/likelihoodResults_688348801_688953601_4FGL_J2136.2+0032_weekly_bin743.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) = 15653.5943055
delta logL = -0.045989799024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15653.5483157
delta logL = 2.38596840063e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27867E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.9565       1.0000          .0000       10.000    
     3 'Normalizat'    .99560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0077       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=   15653.55     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      219 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32752E-08    74.449        .42118E-03** at limit **
   2  Index         1.4249        6.8021        .50000       -.30013E-08
   3  Normalizat    .99559        .12216E-01    .77250E-01   -.61469E-03
   4  Prefactor     1.0077        .62176E-02    .43685E-01   -.14266E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.27516e-09
  Index      = 1.42494
  Normalizat = 0.995593
  Prefactor  = 1.0077
 **********
 **   18 **HESSE 
 **********

 FCN=   15653.55     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      250 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32752E-08    359.50        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4249        7.8037        .50000       -.79664    
   3  Normalizat    .99559        .27849E-01    .34187E-03   -.93178    
   4  Prefactor     1.0077        .14199E-01    .17221E-03   -.92473    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31491e-08
Minuit parameter uncertainties:
  1  0.00217511
  2  43145.5
  3  0.0278492
  4  0.0141992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422774': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15653.5483157
delta logL = 2.55804479821e-08

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  3.275e-09  2.175e-03  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  1.425e+00  4.315e+04  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.008e+00  1.420e-02  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:  9.956e-01  2.785e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/422774/cmap_HighResolution_688348801_688953601_4FGL_J2136.2+0032_weekly_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-03', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2022-11-01 00:57:44.584893', job_id='422774', GAL2='1.01', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1667289464.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='743' AND source_name='4FGL J2136.2+0032' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Nov  1 00:57:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 422774: <4FGL_J2136.2+0032_weekly_bin743> in cluster <slac> Done

Job <4FGL_J2136.2+0032_weekly_bin743> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Nov  1 00:45:38 2022
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov  1 00:45:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov  1 00:45:38 2022
Terminated at Tue Nov  1 00:57:45 2022
Results reported at Tue Nov  1 00:57:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_weekly_bin743 324.062 0.5488 688348801 688953601 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 :                                   703.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            727 sec.

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

