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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1780
RA = 324.062, Dec = 0.5488
tmin = 700704001, tmax = 700963201
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='77895', job_status='RUN', time_executed='2023-03-20 01:46:07.290021', time_epoch_executed='1679301967.29' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77895

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77895/ft1_4FGL_J2136.2+0032_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77895/ft2_4FGL_J2136.2+0032_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77895/ft1_4FGL_J2136.2+0032_daily_bin1780.fits outfile=/scratch/kocevski/77895/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1780.fits ra=324.062 dec=0.5488 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.13
user 3.90
sys 0.20

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

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

Number of photons that the gtmktime cut: 494

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77895/ft1_filtered_4FGL_J2136.2+0032_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/77895/ft2_4FGL_J2136.2+0032_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/77895/ltcube_700704001_700963201_4FGL_J2136.2+0032_daily_bin1780.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/77895/ft2_4FGL_J2136.2+0032_daily_bin1780.fits
.....................!
real 12.54
user 12.14
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77895/ft1_filtered_4FGL_J2136.2+0032_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/77895/ft2_4FGL_J2136.2+0032_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/77895/ltcube_700704001_700963201_4FGL_J2136.2+0032_daily_bin1780.fits outfile=/scratch/kocevski/77895/expmap_700704001_700963201_4FGL_J2136.2+0032_daily_bin1780.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/77895/ltcube_700704001_700963201_4FGL_J2136.2+0032_daily_bin1780.fits
.....................!
real 191.10
user 185.97
sys 4.62

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/77895/ft1_filtered_4FGL_J2136.2+0032_daily_bin1780.fits scfile=/scratch/kocevski/77895/ft2_4FGL_J2136.2+0032_daily_bin1780.fits outfile=/scratch/kocevski/77895/cmap_700704001_700963201_4FGL_J2136.2+0032_daily_bin1780.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77895/ft1_filtered_4FGL_J2136.2+0032_daily_bin1780.fits scfile=/scratch/kocevski/77895/ft2_4FGL_J2136.2+0032_daily_bin1780.fits outfile=/scratch/kocevski/77895/cmap_HighResolution_700704001_700963201_4FGL_J2136.2+0032_daily_bin1780.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7017       1.0000          .0000       .10000E+07
     2 'Prefactor '    .68948E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .29577E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.4043       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.858       1.0000          .0000       .10000E+07
     6 'Prefactor '    38.144       1.0000          .0000       .10000E+07
     7 'Prefactor '    .30309E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.3005       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2348       1.0000          .0000       .10000E+07
    10 'Prefactor '    .95526E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.5571       1.0000          .0000       .10000E+07
    12 'norm      '    3.6141       1.0000          .0000       .10000E+07
    13 'norm      '    12.016       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10568E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19252E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    11.243       1.0000          .0000       .10000E+07
    17 'Prefactor '    .42183E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.5179       1.0000          .0000       .10000E+07
    19 'Normalizat'    .98984       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80726       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=   5576.261     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1791 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7002        4.4183        .42414E-07    .84748E-04
   2  Prefactor     .74940E-08    17.449        .24966E-06** at limit **
   3  Prefactor     .60840E-07    38.644        .93621E-06** at limit **
   4  Prefactor     7.3825        1.6427        .64724E-07   -.41648E-01
   5  Prefactor     11.862        1.2007        .13522E-07    .13004E-01
   6  Prefactor     38.131        1.5917        .26425E-07   -.11931    
   7  Prefactor      .0000        2.1229        .20054E-06** at limit **
   8  Prefactor     2.3006        3.0277        .49503E-07   -.33824E-03
   9  Prefactor     2.2351        2.7198       -.33359E-06    .18856E-02
  10  Prefactor     .47856E-04    386.41        .25943E-05** at limit **
  11  Prefactor     7.8006        6.9992       -.22818E-06    .12729    
  12  norm          3.6138        2.5266        .38036E-07   -.26023E-03
  13  norm          11.998        2.0909        .63277E-07   -.37746E-01
  14  Prefactor     .55511E-10    3.5756        .37200E-06** at limit **
  15  Prefactor     .71776E-07    25.568       -.21780E-06** at limit **
  16  Prefactor     11.236        15.413       -.30098E-06    .72658E-02
  17  Prefactor     .15543E-08    12.000        .24532E-06** at limit **
  18  Prefactor     1.5142        42.038       -.13299E-05   -.71405E-02
  19  Normalizat    .98958        .27804       -.12721E-04    .72960E-04
  20  Prefactor     .80735        .13505        .17199E-05    .12025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.70024
  Prefactor  = 7.49401e-09
  Prefactor  = 6.08402e-08
  Prefactor  = 7.38246
  Prefactor  = 11.8619
  Prefactor  = 38.1306
  Prefactor  = 0
  Prefactor  = 2.3006
  Prefactor  = 2.23512
  Prefactor  = 4.78561e-05
  Prefactor  = 7.80062
  norm       = 3.61382
  norm       = 11.9979
  Prefactor  = 5.55112e-11
  Prefactor  = 7.17759e-08
  Prefactor  = 11.236
  Prefactor  = 1.55431e-09
  Prefactor  = 1.51419
  Normalizat = 0.989575
  Prefactor  = 0.80735
 **********
 **   18 **HESSE 
 **********

 FCN=   5576.261     FROM HESSE     STATUS=OK           335 CALLS     2126 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7002        4.4405        .52466E-03   -1.5669    
   2  Prefactor     .74940E-08    17.548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .60840E-07    38.587        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.3825        138.62        .36835E-03   -1.5654    
   5  Prefactor     11.862        27.261        .29066E-03   -1.5639    
   6  Prefactor     38.131        46.344        .16193E-03   -1.5584    
   7  Prefactor      .0000        2.1214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.3006        3.0379        .67633E-03   -1.5678    
   9  Prefactor     2.2351        2.9698        .68735E-03   -1.5678    
  10  Prefactor     .47856E-04    397.98        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.8006        68.936        .36457E-03   -1.5652    
  12  norm          3.6138        2.5611        .53123E-03   -1.5670    
  13  norm          11.998        18.493        .28873E-03   -1.5639    
  14  Prefactor     .55511E-10    3.5723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .71776E-07    25.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.236        15.440        .29854E-03   -1.5641    
  17  Prefactor     .15543E-08    11.975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5142        44.272        .86712E-03   -1.5683    
  19  Normalizat    .98958        .24330        .71677E-01   -.93380    
  20  Prefactor     .80735        .11179        .43812E-01   -.99458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24774e-06
Minuit parameter uncertainties:
  1  4.44049
  2  0.000725841
  3  0.00306469
  4  63.9823
  5  27.2612
  6  46.3444
  7  1.34607e-05
  8  3.03788
  9  2.96979
  10  0.276032
  11  46.3793
  12  2.56109
  13  18.4933
  14  2.10684e-05
  15  0.00270316
  16  15.44
  17  0.00027325
  18  16.3752
  19  0.243577
  20  0.111819
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  4.786e-05  2.760e-01  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:  8.074e-01  1.118e-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:  9.896e-01  2.436e-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.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77895/likelihoodResults_700704001_700963201_4FGL_J2136.2+0032_daily_bin1780.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) = 5576.26214865
delta logL = -0.00145434265323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5576.24298922
delta logL = 0.0177050865641

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33696       1.0000          .0000       .10000E+07
     2 'Index     '    6.7227       1.0000          .0000       10.000    
     3 'Normalizat'    .96671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81485       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5576.243     FROM MIGRAD    STATUS=FAILED        92 CALLS      292 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33700        341.65        .15345E-03   -.30463E-01
   2  Index         6.7244        5.4648        .34430E-01   -.13933E-03
   3  Normalizat    .96665        .12490        .32052E-03   -.98595E-03
   4  Prefactor     .81486        .59258E-01    .16993E-03   -.10220E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5576.243     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      386 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33700        341.65        .18883E-04   -.30463E-01
   2  Index         6.7244        5.4648        .45940E-02   -.13933E-03
   3  Normalizat    .96665        .12490        .19571E-03   -.98595E-03
   4  Prefactor     .81486        .59258E-01    .51818E-04   -.10220E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5576.243     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      420 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33561        308.56        .61382E-05   -.65565E-03
   2  Index         6.7286        6.4996        .13772E-02   -.22949E-05
   3  Normalizat    .96666        .31582        .64104E-04    .19232E-03
   4  Prefactor     .81486        .14310        .33985E-04    .67098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.335608
  Index      = 6.72862
  Normalizat = 0.96666
  Prefactor  = 0.814859
 **********
 **   18 **HESSE 
 **********

 FCN=   5576.243     FROM HESSE     STATUS=OK            23 CALLS      443 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33561        42.106        .24553E-06   -1.5696    
   2  Index         6.7286        5.9647        .55087E-04    .35301    
   3  Normalizat    .96666        .29921        .12821E-04   -.94156    
   4  Prefactor     .81486        .14072        .67971E-05   -.99183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73875e-10
Minuit parameter uncertainties:
  1  7.51832
  2  20.2459
  3  0.299729
  4  0.140784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77895': 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) = 5576.24298905
delta logL = 0.0177052558129

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  3.356e-01  7.518e+00  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  6.729e+00  2.025e+01  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.149e-01  1.408e-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:  9.667e-01  2.997e-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/77895/cmap_HighResolution_700704001_700963201_4FGL_J2136.2+0032_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.53e-07', time_completed='2023-03-20 01:55:20.106745', job_id='77895', GAL2='0.81', fit_tolerance='1e-08', EG2='0.97', EG='0.99', time_epoch_completed='1679302520.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.77e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='1780' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:55:20 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 77895: <4FGL_J2136.2+0032_daily_bin1780> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 01:45:15 2023
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:45:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:45:16 2023
Terminated at Mon Mar 20 01:55:20 2023
Results reported at Mon Mar 20 01:55:20 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1780 324.062 0.5488 700704001 700963201 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 :                                   553.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            605 sec.

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

