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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1663
RA = 324.062, Dec = 0.5488
tmin = 670377601, tmax = 670636801
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='261468', job_status='RUN', time_executed='2022-04-03 00:39:00.782088', time_epoch_executed='1648971540.78' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261468

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261468/ft1_4FGL_J2136.2+0032_daily_bin1663.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261468/ft2_4FGL_J2136.2+0032_daily_bin1663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261468/ft1_4FGL_J2136.2+0032_daily_bin1663.fits outfile=/scratch/kocevski/261468/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1663.fits ra=324.062 dec=0.5488 rad=12.0 tmin=670377601.0 tmax=670636801.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.84
user 3.60
sys 0.21

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

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

Number of photons that the gtmktime cut: 667

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261468/ft1_filtered_4FGL_J2136.2+0032_daily_bin1663.fits" evtable="EVENTS" scfile=/scratch/kocevski/261468/ft2_4FGL_J2136.2+0032_daily_bin1663.fits sctable="SC_DATA" outfile=/scratch/kocevski/261468/ltcube_670377601_670636801_4FGL_J2136.2+0032_daily_bin1663.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/261468/ft2_4FGL_J2136.2+0032_daily_bin1663.fits
.....................!
real 12.01
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261468/ft1_filtered_4FGL_J2136.2+0032_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/261468/ft2_4FGL_J2136.2+0032_daily_bin1663.fits sctable="SC_DATA" expcube=/scratch/kocevski/261468/ltcube_670377601_670636801_4FGL_J2136.2+0032_daily_bin1663.fits outfile=/scratch/kocevski/261468/expmap_670377601_670636801_4FGL_J2136.2+0032_daily_bin1663.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/261468/ltcube_670377601_670636801_4FGL_J2136.2+0032_daily_bin1663.fits
.....................!
real 189.31
user 184.54
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/261468/ft1_filtered_4FGL_J2136.2+0032_daily_bin1663.fits scfile=/scratch/kocevski/261468/ft2_4FGL_J2136.2+0032_daily_bin1663.fits outfile=/scratch/kocevski/261468/cmap_670377601_670636801_4FGL_J2136.2+0032_daily_bin1663.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261468/ft1_filtered_4FGL_J2136.2+0032_daily_bin1663.fits scfile=/scratch/kocevski/261468/ft2_4FGL_J2136.2+0032_daily_bin1663.fits outfile=/scratch/kocevski/261468/cmap_HighResolution_670377601_670636801_4FGL_J2136.2+0032_daily_bin1663.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.57
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27340E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1137       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.872       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9955       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.925       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10728E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .68647       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.644       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.005       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9919       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.150       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3714       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74351       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=   7355.161     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2900 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4834        .27006E-07** at limit **
   2  Prefactor     .10000E-03    128.03        .17174E-04** at limit **
   3  Prefactor     8.0979        27.672       -.53896E-05   -.22750E-04
   4  Prefactor     .10000E-03    10.867        .28711E-05** at limit **
   5  Prefactor     .10000E-03    15.023        .36430E-05** at limit **
   6  Prefactor     15.868        23.481        .23851E-05    .51429E-05
   7  Prefactor     .10000E-03    18.878       -.38264E-05** at limit **
   8  Prefactor     .10000E-03    3.0132       -.20504E-07** at limit **
   9  Prefactor     1.9911        2.2361        .32250E-06   -.12440E-02
  10  Prefactor     .10000E-03    1.3652        .72613E-07** at limit **
  11  Prefactor     59.920        35.202       -.23350E-05   -.12409E-04
  12  Prefactor     .10000E-03    10.491       -.36838E-05** at limit **
  13  Prefactor     .10000E-03    18.256       -.72295E-05** at limit **
  14  Prefactor     .10000E-03    132.82       -.16879E-04** at limit **
  15  norm          .10000E-03    .67283       -.10006E-07** at limit **
  16  norm          .10000E-03    7.8605        .57633E-06** at limit **
  17  Prefactor     .65472        6.9818        .80247E-06   -.10245E-03
  18  Prefactor     10.643        12.126       -.36170E-06   -.20730E-04
  19  Prefactor     .10000E-03    20.017        .82778E-05** at limit **
  20  Prefactor     .10000E-03    6.6459       -.25640E-06** at limit **
  21  Prefactor     10.007        15.613       -.26085E-05   -.33785E-04
  22  Prefactor     6.9929        24.938       -.21636E-05   -.20942E-04
  23  Prefactor     19.150        13.799        .49277E-06    .58191E-05
  24  Normalizat    1.3711        .21846        .95802E-06   -.12517E-03
  25  Prefactor     .74371        .10325       -.42114E-07   -.10257E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.09793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.99114
  Prefactor  = 0.0001
  Prefactor  = 59.92
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.654723
  Prefactor  = 10.6431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0065
  Prefactor  = 6.99286
  Prefactor  = 19.1499
  Normalizat = 1.37111
  Prefactor  = 0.743714
 **********
 **   18 **HESSE 
 **********

 FCN=   7355.161     FROM HESSE     STATUS=OK           427 CALLS     3327 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9155        .25943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    129.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0979        27.757        .14075E-03   -1.5139    
   4  Prefactor     .10000E-03    10.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.868        23.518        .10053E-03   -1.4911    
   7  Prefactor     .10000E-03    18.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0302        .14537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9911        7.2331        .14662E-02   -1.5426    
  10  Prefactor     .10000E-03    1.4102        .19521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     59.920        35.313        .51829E-04   -1.4158    
  12  Prefactor     .10000E-03    10.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    133.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .67786        .68672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.8748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .65472        25.906        .42178E-02   -1.5546    
  18  Prefactor     10.643        12.114        .12281E-03   -1.5055    
  19  Prefactor     .10000E-03    20.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.6553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.007        15.623        .12668E-03   -1.5075    
  22  Prefactor     6.9929        24.975        .15172E-03   -1.5179    
  23  Prefactor     19.150        13.821        .91524E-04   -1.4832    
  24  Normalizat    1.3711        .26566        .29177E-03   -.81468    
  25  Prefactor     .74371        .12437        .18787E-03   -1.0184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73321e-08
Minuit parameter uncertainties:
  1  0.000134608
  2  0.000206497
  3  27.8014
  4  3.4644e-05
  5  1.19934e-05
  6  23.5317
  7  2.7364e-06
  8  1.05635e-06
  9  7.23622
  10  7.73109e-06
  11  35.3251
  12  9.66107e-06
  13  2.97872e-05
  14  0.000228815
  15  7.11942e-07
  16  2.07184e-06
  17  8.24
  18  12.1167
  19  2.3723e-05
  20  8.83058e-06
  21  15.6294
  22  25.0126
  23  13.8238
  24  0.265922
  25  0.12442
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  5.992e+01  3.533e+01  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:  7.437e-01  1.244e-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.371e+00  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.46
Ra Dec: 324.062 0.549
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 9.94e-08 +/- 5.85e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.25e-05

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) = 7355.15896783
delta logL = 0.00197187338381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7355.15864129
delta logL = 0.00229841600049

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.230       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9288       1.0000          .0000       10.000    
     3 'Normalizat'    1.3672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74529       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=   7355.159     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      256 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.234        37.031        .52131E-04   -.11752E-02
   2  Index         2.9285        .77184        .10744E-01   -.41281E-03
   3  Normalizat    1.3675        .26109        .29209E-03    .24123E-03
   4  Prefactor     .74514        .12593        .18771E-03    .44106E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.234
  Index      = 2.9285
  Normalizat = 1.36749
  Prefactor  = 0.745144
 **********
 **   18 **HESSE 
 **********

 FCN=   7355.159     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.234        36.453        .10426E-04   -1.4167    
   2  Index         2.9285        .75934        .42974E-03   -.42717    
   3  Normalizat    1.3675        .26141        .58419E-04   -.81574    
   4  Prefactor     .74514        .12602        .37542E-04   -1.0178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82477e-09
Minuit parameter uncertainties:
  1  36.4671
  2  0.762907
  3  0.261666
  4  0.126072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261468': 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) = 7355.15864061
delta logL = 0.00229909671179

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  5.923e+01  3.647e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.929e+00  7.629e-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:  7.451e-01  1.261e-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.367e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.47
Ra Dec: 324.062 0.549
Photon Index (Free Index): 2.93 +/- 0.76
Photon Flux (Free Index): 1.02e-07 +/- 6.77e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.25e-05

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/261468/cmap_HighResolution_670377601_670636801_4FGL_J2136.2+0032_daily_bin1663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.94e-08', energy_flux2='2.11e-05', photon_flux_error='5.85e-08', dlogl='2.30e-03', energy_flux='2.12e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2022-04-03 00:50:13.235122', photon_index_error2='0.76', photon_index2='2.93', ts='4.46', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='1.37', time_epoch_completed='1648972213.24', return_code='0', job_id='261468', GAL2='0.75', EG2='1.37', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='6.77e-08', ts2='4.47', photon_index='2.88' WHERE bin_id='1663' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr  3 00:50:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 261468: <4FGL_J2136.2+0032_daily_bin1663> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin1663> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr  3 00:35:29 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr  3 00:35:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr  3 00:35:31 2022
Terminated at Sun Apr  3 00:50:14 2022
Results reported at Sun Apr  3 00:50:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1663 324.062 0.5488 670377601 670636801 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 :                                   674.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            885 sec.

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

