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 88 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1681
RA = 324.062, Dec = 0.5488
tmin = 675043201, tmax = 675302401
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='755828', job_status='RUN', time_executed='2022-05-27 00:58:12.402902', time_epoch_executed='1653638292.4' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755828

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755828/ft1_4FGL_J2136.2+0032_daily_bin1681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755828/ft2_4FGL_J2136.2+0032_daily_bin1681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755828/ft1_4FGL_J2136.2+0032_daily_bin1681.fits outfile=/scratch/kocevski/755828/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1681.fits ra=324.062 dec=0.5488 rad=12.0 tmin=675043201.0 tmax=675302401.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.55
user 3.31
sys 0.20

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

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

Number of photons that the gtmktime cut: 743

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755828/ft1_filtered_4FGL_J2136.2+0032_daily_bin1681.fits" evtable="EVENTS" scfile=/scratch/kocevski/755828/ft2_4FGL_J2136.2+0032_daily_bin1681.fits sctable="SC_DATA" outfile=/scratch/kocevski/755828/ltcube_675043201_675302401_4FGL_J2136.2+0032_daily_bin1681.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/755828/ft2_4FGL_J2136.2+0032_daily_bin1681.fits
.....................!
real 12.60
user 12.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755828/ft1_filtered_4FGL_J2136.2+0032_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/755828/ft2_4FGL_J2136.2+0032_daily_bin1681.fits sctable="SC_DATA" expcube=/scratch/kocevski/755828/ltcube_675043201_675302401_4FGL_J2136.2+0032_daily_bin1681.fits outfile=/scratch/kocevski/755828/expmap_675043201_675302401_4FGL_J2136.2+0032_daily_bin1681.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/755828/ltcube_675043201_675302401_4FGL_J2136.2+0032_daily_bin1681.fits
.....................!
real 191.20
user 186.34
sys 4.41

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/755828/ft1_filtered_4FGL_J2136.2+0032_daily_bin1681.fits scfile=/scratch/kocevski/755828/ft2_4FGL_J2136.2+0032_daily_bin1681.fits outfile=/scratch/kocevski/755828/cmap_675043201_675302401_4FGL_J2136.2+0032_daily_bin1681.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/755828/ft1_filtered_4FGL_J2136.2+0032_daily_bin1681.fits scfile=/scratch/kocevski/755828/ft2_4FGL_J2136.2+0032_daily_bin1681.fits outfile=/scratch/kocevski/755828/cmap_HighResolution_675043201_675302401_4FGL_J2136.2+0032_daily_bin1681.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/755828/ft1_filtered_4FGL_J2136.2+0032_daily_bin1681.fits', '/scratch/kocevski/755828/ft2_4FGL_J2136.2+0032_daily_bin1681.fits', expMap='/scratch/kocevski/755828/expmap_675043201_675302401_4FGL_J2136.2+0032_daily_bin1681.fits', expCube='/scratch/kocevski/755828/ltcube_675043201_675302401_4FGL_J2136.2+0032_daily_bin1681.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/755828/Model_4FGL_J2136.2+0032_daily_bin1681.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  1.000e-04  1.000e+04 ( 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/755828/ft1_filtered_4FGL_J2136.2+0032_daily_bin1681.fits
Spacecraft file(s): /scratch/kocevski/755828/ft2_4FGL_J2136.2+0032_daily_bin1681.fits
Exposure map: /scratch/kocevski/755828/expmap_675043201_675302401_4FGL_J2136.2+0032_daily_bin1681.fits
Exposure cube: /scratch/kocevski/755828/ltcube_675043201_675302401_4FGL_J2136.2+0032_daily_bin1681.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/755828/Model_4FGL_J2136.2+0032_daily_bin1681.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) = 8201.04761832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    63.627       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15485E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.351       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.581       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11603E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .84810       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.828       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11977E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    23.717       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .72766       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5676       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.699       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.760       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0818       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81442       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8201.040     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2892 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5473       -.41682E-07** at limit **
   2  Prefactor     .10000E-03    21.244       -.64218E-06** at limit **
   3  Prefactor     63.622        24.890        .14261E-06    .54249E-04
   4  Prefactor     .10000E-03    27.170       -.45944E-07** at limit **
   5  Prefactor     45.336        46.910        .17039E-05    .68770E-04
   6  Prefactor     .10000E-03    6.4597       -.34099E-07** at limit **
   7  Prefactor     47.597        37.679       -.95533E-06   -.70008E-04
   8  Prefactor     .10005E-03    5.1869       -.17327E-05** at limit **
   9  Prefactor     .10000E-03    1.3811       -.17484E-07** at limit **
  10  Prefactor     .84672        2.1515        .28083E-06    .17239E-03
  11  Prefactor     .10000E-03    10.637        .14122E-06** at limit **
  12  Prefactor     17.830        20.849        .11692E-06    .56517E-05
  13  Prefactor     .10001E-03    90.867        .92432E-05** at limit **
  14  Prefactor     .10001E-03    65.334       -.72141E-05** at limit **
  15  norm          .10000E-03    1.1125       -.73739E-07** at limit **
  16  norm          23.709        20.650        .10319E-06   -.10398E-04
  17  Prefactor     .72359        8.3795        .29848E-05   -.29085E-03
  18  Prefactor     3.5679        10.744        .18887E-05    .25685E-03
  19  Prefactor     .10000E-03    23.668        .90133E-06** at limit **
  20  Prefactor     .10000E-03    20.574       -.72015E-06** at limit **
  21  Prefactor     32.699        21.661        .23099E-07    .91370E-05
  22  Prefactor     .10000E-03    22.202        .33755E-06** at limit **
  23  Prefactor     32.760        15.276        .69019E-07    .20346E-04
  24  Normalizat    1.0818        .20443       -.40900E-06    .35438E-04
  25  Prefactor     .81441        .96920E-01    .11400E-07    .10680E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.6222
  Prefactor  = 0.0001
  Prefactor  = 45.3355
  Prefactor  = 0.0001
  Prefactor  = 47.5967
  Prefactor  = 0.000100053
  Prefactor  = 0.0001
  Prefactor  = 0.846716
  Prefactor  = 0.0001
  Prefactor  = 17.8297
  Prefactor  = 0.00010001
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 23.7093
  Prefactor  = 0.723589
  Prefactor  = 3.5679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.6988
  Prefactor  = 0.0001
  Prefactor  = 32.7598
  Normalizat = 1.08183
  Prefactor  = 0.814408
 **********
 **   18 **HESSE 
 **********

 FCN=   8201.040     FROM HESSE     STATUS=OK           423 CALLS     3315 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5584        .10999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     63.622        24.863        .50308E-04   -1.4111    
   4  Prefactor     .10000E-03    27.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.336        47.053        .59536E-04   -1.4360    
   6  Prefactor     .10000E-03    6.4751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     47.597        36.931        .58130E-04   -1.4327    
   8  Prefactor     .10005E-03    22.668        .34317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3857        .10393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .84672        2.0676        .18430E-03   -1.5524    
  11  Prefactor     .10000E-03    10.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.830        20.836        .94857E-04   -1.4863    
  13  Prefactor     .10001E-03    93.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    67.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1425        .18607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          23.709        20.565        .82252E-04   -1.4734    
  17  Prefactor     .72359        13.520        .39432E-02   -1.5538    
  18  Prefactor     3.5679        11.089        .10699E-02   -1.5330    
  19  Prefactor     .10000E-03    23.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.699        21.696        .70073E-04   -1.4564    
  22  Prefactor     .10000E-03    22.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.760        15.304        .70009E-04   -1.4563    
  24  Normalizat    1.0818        .24222        .31540E-03   -.90337    
  25  Prefactor     .81441        .11595        .18049E-03   -.99199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94977e-09
Minuit parameter uncertainties:
  1  1.8775e-06
  2  7.40467e-05
  3  24.8666
  4  2.02947e-05
  5  47.0914
  6  3.5953e-06
  7  36.9483
  8  0.00219525
  9  5.16931e-07
  10  2.06774
  11  4.62279e-06
  12  20.8444
  13  0.00190308
  14  0.00151299
  15  2.64769e-06
  16  20.5716
  17  6.25678
  18  11.095
  19  4.95072e-05
  20  7.64959e-05
  21  21.7009
  22  2.28187e-05
  23  15.3053
  24  0.242465
  25  0.115982
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  4.623e-06  1.000e-04  1.000e+04 ( 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:  8.144e-01  1.160e-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:  1.082e+00  2.425e-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: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755828/likelihoodResults_675043201_675302401_4FGL_J2136.2+0032_daily_bin1681.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) = 8201.04067138
delta logL = -0.000447654900199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8201.04022374
delta logL = -1.30148691824e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8819       1.0000          .0000       10.000    
     3 'Normalizat'    1.0818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81442       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8201.040     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      257 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    753.57        .18142E-02** at limit **
   2  Index         3.1330        6.1725        .50000       -.35016E-08
   3  Normalizat    1.0818        .45193E-01    .31540E-03   -.65891E-04
   4  Prefactor     .81441        .22904E-01    .18049E-03   -.11540E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.13304
  Normalizat = 1.08183
  Prefactor  = 0.814407
 **********
 **   18 **HESSE 
 **********

 FCN=   8201.040     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2274.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1330        8.4191        .50000       -.38266    
   3  Normalizat    1.0818        .14497        .12616E-04   -.90337    
   4  Prefactor     .81441        .73490E-01    .72195E-05   -.99199    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.49219e-12
Minuit parameter uncertainties:
  1  7.57323e-05
  2  5120.73
  3  0.145026
  4  0.0734989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755828': 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) = 8201.04022362
delta logL = 1.06670995592e-07

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  7.573e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  3.133e+00  5.121e+03  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:  8.144e-01  7.350e-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:  1.082e+00  1.450e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/755828/cmap_HighResolution_675043201_675302401_4FGL_J2136.2+0032_daily_bin1681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2022-05-27 01:11:54.401648', job_id='755828', GAL2='0.81', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1653639114.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='1681' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May 27 01:11:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 755828: <4FGL_J2136.2+0032_daily_bin1681> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin1681> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri May 27 00:55:22 2022
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May 27 00:56:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May 27 00:56:34 2022
Terminated at Fri May 27 01:11:54 2022
Results reported at Fri May 27 01:11:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1681 324.062 0.5488 675043201 675302401 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 :                                   823.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            992 sec.

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

