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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1734
RA = 324.062, Dec = 0.5488
tmin = 688780801, tmax = 689040001
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='776372', job_status='RUN', time_executed='2022-11-02 00:37:12.981169', time_epoch_executed='1667374632.98' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776372/ft1_4FGL_J2136.2+0032_daily_bin1734.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776372/ft2_4FGL_J2136.2+0032_daily_bin1734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776372/ft1_4FGL_J2136.2+0032_daily_bin1734.fits outfile=/scratch/kocevski/776372/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1734.fits ra=324.062 dec=0.5488 rad=12.0 tmin=688780801.0 tmax=689040001.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.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/776372/ft2_4FGL_J2136.2+0032_daily_bin1734.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/776372/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1734.fits evtable="EVENTS" outfile="/scratch/kocevski/776372/ft1_filtered_4FGL_J2136.2+0032_daily_bin1734.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 670

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776372/ft1_filtered_4FGL_J2136.2+0032_daily_bin1734.fits" evtable="EVENTS" scfile=/scratch/kocevski/776372/ft2_4FGL_J2136.2+0032_daily_bin1734.fits sctable="SC_DATA" outfile=/scratch/kocevski/776372/ltcube_688780801_689040001_4FGL_J2136.2+0032_daily_bin1734.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/776372/ft2_4FGL_J2136.2+0032_daily_bin1734.fits
.....................!
real 12.08
user 11.67
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776372/ft1_filtered_4FGL_J2136.2+0032_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/776372/ft2_4FGL_J2136.2+0032_daily_bin1734.fits sctable="SC_DATA" expcube=/scratch/kocevski/776372/ltcube_688780801_689040001_4FGL_J2136.2+0032_daily_bin1734.fits outfile=/scratch/kocevski/776372/expmap_688780801_689040001_4FGL_J2136.2+0032_daily_bin1734.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/776372/ltcube_688780801_689040001_4FGL_J2136.2+0032_daily_bin1734.fits
.....................!
real 190.95
user 185.27
sys 5.31

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/776372/ft1_filtered_4FGL_J2136.2+0032_daily_bin1734.fits scfile=/scratch/kocevski/776372/ft2_4FGL_J2136.2+0032_daily_bin1734.fits outfile=/scratch/kocevski/776372/cmap_688780801_689040001_4FGL_J2136.2+0032_daily_bin1734.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776372/ft1_filtered_4FGL_J2136.2+0032_daily_bin1734.fits scfile=/scratch/kocevski/776372/ft2_4FGL_J2136.2+0032_daily_bin1734.fits outfile=/scratch/kocevski/776372/cmap_HighResolution_688780801_689040001_4FGL_J2136.2+0032_daily_bin1734.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97892E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .57509E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .23537E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .63806E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    22.233       1.0000          .0000       .10000E+07
     6 'Prefactor '    .51235E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .16019E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .16785E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.6351       1.0000          .0000       .10000E+07
    10 'Prefactor '    .32752E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    56.162       1.0000          .0000       .10000E+07
    12 'norm      '    .19682E-05   1.0000          .0000       .10000E+07
    13 'norm      '    21.381       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13509E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.0457       1.0000          .0000       .10000E+07
    16 'Prefactor '    14.666       1.0000          .0000       .10000E+07
    17 'Prefactor '    10.966       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.0616       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0099       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0431       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=   7520.776     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1602 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.5751        .19161E-07** at limit **
   2  Prefactor     .33307E-08    10.567       -.37387E-05** at limit **
   3  Prefactor     .16653E-09    26.153       -.12277E-04** at limit **
   4  Prefactor     .14433E-08    13.567        .24587E-06** at limit **
   5  Prefactor     21.753        24.214        .61050E-05   -.71342E-02
   6  Prefactor     .19619E-05    152.04        .28240E-04** at limit **
   7  Prefactor     .55511E-10    2.5265       -.10749E-05** at limit **
   8  Prefactor      .0000        2.1108        .73943E-06** at limit **
   9  Prefactor     2.6363        2.0325       -.52590E-07    .49582E-02
  10  Prefactor     .49960E-08    8.9509       -.49870E-05** at limit **
  11  Prefactor     51.466        59.721       -.74615E-05   -.42832E-03
  12  norm          .16653E-09    .94257       -.11270E-05** at limit **
  13  norm          21.780        8.8021        .13229E-05   -.20471E-01
  14  Prefactor      .0000        11.181        .41669E-05** at limit **
  15  Prefactor     2.9734        9.3239        .19630E-06    .46029E-03
  16  Prefactor     14.697        2.2046       -.50982E-06   -.11565E-01
  17  Prefactor     10.961        2.8247        .68820E-06   -.32741E-02
  18  Prefactor     2.3499        2.7357       -.34051E-06   -.10558E-01
  19  Normalizat    1.0123        .27029       -.50834E-04    .17910E-03
  20  Prefactor     1.0432        .13473        .17754E-04    .39964E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.33067e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 1.44329e-09
  Prefactor  = 21.7534
  Prefactor  = 1.96193e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 2.63626
  Prefactor  = 4.996e-09
  Prefactor  = 51.4662
  norm       = 1.66533e-10
  norm       = 21.7803
  Prefactor  = 0
  Prefactor  = 2.97343
  Prefactor  = 14.6974
  Prefactor  = 10.9612
  Prefactor  = 2.34992
  Normalizat = 1.01234
  Prefactor  = 1.04316
 **********
 **   18 **HESSE 
 **********

 FCN=   7520.776     FROM HESSE     STATUS=OK           333 CALLS     1935 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33307E-08    10.775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-09    26.142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .14433E-08    13.610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.753        29.166        .21214E-03   -1.5615    
   6  Prefactor     .19619E-05    26.193        .15492E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    2.5277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.1097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6363        2.1209        .62789E-03   -1.5675    
  10  Prefactor     .49960E-08    9.0706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     51.466        60.228        .13345E-03   -1.5564    
  12  norm          .16653E-09    .93991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.780        24.290        .21633E-03   -1.5615    
  14  Prefactor      .0000        11.210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9734        9.5578        .58111E-03   -1.5673    
  16  Prefactor     14.697        19.535        .26128E-03   -1.5631    
  17  Prefactor     10.961        22.934        .30230E-03   -1.5642    
  18  Prefactor     2.3499        30.669        .71941E-03   -1.5677    
  19  Normalizat    1.0123        .24069        .80931E-01   -.92618    
  20  Prefactor     1.0432        .11404        .40330E-01   -.91304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0174e-08
Minuit parameter uncertainties:
  1  3.73752e-06
  2  0.000377506
  3  0.00012052
  4  0.000281829
  5  29.1667
  6  0.0143373
  7  2.74697e-05
  8  6.43047e-06
  9  2.12088
  10  0.000424663
  11  60.2287
  12  2.44427e-05
  13  24.2899
  14  2.66343e-05
  15  9.55787
  16  19.5347
  17  22.9339
  18  16.9789
  19  0.240948
  20  0.11407
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  4.996e-09  4.247e-04  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  2.877e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  3.302e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.043e+00  1.141e-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.012e+00  2.409e-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.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/776372/likelihoodResults_688780801_689040001_4FGL_J2136.2+0032_daily_bin1734.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) = 7520.77564201
delta logL = -5.76947695663e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7520.77563633
delta logL = -8.58090061229e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54068E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .79509       1.0000          .0000       10.000    
     3 'Normalizat'    1.0123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0432       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7520.776     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      268 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.1925        .42118E-03** at limit **
   2  Index         6.4656        2.0211        .18871E-04     .0000    
   3  Normalizat    1.0123        1.3031       -.90714E-06   -.21976E-04
   4  Prefactor     1.0432        1.1995       -.10173E-06   -.33535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 6.4656
  Normalizat = 1.01234
  Prefactor  = 1.04316
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7520.776     FROM HESSE     STATUS=FAILED         9 CALLS      277 TOTAL
                     EDM=   .25E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.9454        2.3827        .18871E-04    .29749    
   3  Normalizat    1.0123        1.3031       -.90714E-06   -.92618    
   4  Prefactor     1.0432        1.1995       -.10173E-06   -.91304    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.54101e-12
Minuit parameter uncertainties:
  1  1.63027e-06
  2  2.08679
  3  1.34795
  4  1.23265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776372': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 7520.77563624
delta logL = 3.10137693305e-10

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  0.000e+00  1.630e-06  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  6.466e+00  2.087e+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.043e+00  1.233e+00  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.012e+00  1.348e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 324.062 0.549

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/776372/cmap_HighResolution_688780801_689040001_4FGL_J2136.2+0032_daily_bin1734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2022-11-02 00:47:08.428817', job_id='776372', GAL2='1.04', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1667375228.43', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.10e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='1734' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov  2 00:47:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 776372: <4FGL_J2136.2+0032_daily_bin1734> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin1734> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Nov  2 00:35:20 2022
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov  2 00:35:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov  2 00:35:21 2022
Terminated at Wed Nov  2 00:47:09 2022
Results reported at Wed Nov  2 00:47:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1734 324.062 0.5488 688780801 689040001 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 :                                   598.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            709 sec.

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

