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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1684
RA = 324.062, Dec = 0.5488
tmin = 675820801, tmax = 676080001
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='192821', job_status='RUN', time_executed='2022-06-05 00:44:01.792855', time_epoch_executed='1654415041.79' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192821/ft1_4FGL_J2136.2+0032_daily_bin1684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192821/ft2_4FGL_J2136.2+0032_daily_bin1684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192821/ft1_4FGL_J2136.2+0032_daily_bin1684.fits outfile=/scratch/kocevski/192821/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1684.fits ra=324.062 dec=0.5488 rad=12.0 tmin=675820801.0 tmax=676080001.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.50
user 4.23
sys 0.25

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

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

Number of photons that the gtmktime cut: 822

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192821/ft1_filtered_4FGL_J2136.2+0032_daily_bin1684.fits" evtable="EVENTS" scfile=/scratch/kocevski/192821/ft2_4FGL_J2136.2+0032_daily_bin1684.fits sctable="SC_DATA" outfile=/scratch/kocevski/192821/ltcube_675820801_676080001_4FGL_J2136.2+0032_daily_bin1684.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/192821/ft2_4FGL_J2136.2+0032_daily_bin1684.fits
.....................!
real 14.48
user 14.07
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192821/ft1_filtered_4FGL_J2136.2+0032_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/192821/ft2_4FGL_J2136.2+0032_daily_bin1684.fits sctable="SC_DATA" expcube=/scratch/kocevski/192821/ltcube_675820801_676080001_4FGL_J2136.2+0032_daily_bin1684.fits outfile=/scratch/kocevski/192821/expmap_675820801_676080001_4FGL_J2136.2+0032_daily_bin1684.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/192821/ltcube_675820801_676080001_4FGL_J2136.2+0032_daily_bin1684.fits
.....................!
real 193.43
user 187.17
sys 5.86

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/192821/ft1_filtered_4FGL_J2136.2+0032_daily_bin1684.fits scfile=/scratch/kocevski/192821/ft2_4FGL_J2136.2+0032_daily_bin1684.fits outfile=/scratch/kocevski/192821/cmap_675820801_676080001_4FGL_J2136.2+0032_daily_bin1684.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.56
user 0.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7074       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0055       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .56330       1.0000         .10000E-03   10000.    
    11 'Prefactor '    57.137       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.005       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.879       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2858       1.0000         .10000E-03   10000.    
    16 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.016       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4297       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    44.175       1.0000         .10000E-03   10000.    
    23 'Prefactor '    59.393       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0111       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79979       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=   8878.933     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2889 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9140        .69021E-06** at limit **
   2  Prefactor     .10000E-03    24.446        .26546E-06** at limit **
   3  Prefactor     7.7136        16.155        .57533E-07   -.41709E-05
   4  Prefactor     .10000E-03    9.2107        .31225E-07** at limit **
   5  Prefactor     .10000E-03    32.732       -.11240E-06** at limit **
   6  Prefactor     .10000E-03    18.649       -.17181E-06** at limit **
   7  Prefactor     .10000E-03    16.082       -.35023E-06** at limit **
   8  Prefactor     .10000E-03    4.3900        .12394E-06** at limit **
   9  Prefactor     1.0054        3.7246        .26373E-05    .53377E-04
  10  Prefactor     .56791        1.4472       -.51063E-07   -.71403E-04
  11  Prefactor     57.103        30.903       -.68393E-07   -.20444E-03
  12  Prefactor     16.997        25.338        .43664E-07   -.34217E-04
  13  Prefactor     .10000E-03    35.803       -.22824E-06** at limit **
  14  Prefactor     18.883        32.117        .38126E-07   -.87976E-06
  15  norm          1.2862        2.0787        .58672E-06    .78435E-04
  16  norm          .10000E-03    14.382       -.36612E-08** at limit **
  17  Prefactor     .10000E-03    3.9711        .62960E-07** at limit **
  18  Prefactor     11.017        7.2365        .60246E-07   -.10229E-04
  19  Prefactor     .10000E-03    11.075        .62390E-06** at limit **
  20  Prefactor     7.4302        8.3414        .50774E-07   -.53244E-05
  21  Prefactor     .10000E-03    4.4566        .44315E-07** at limit **
  22  Prefactor     44.185        29.710        .24083E-06    .46168E-04
  23  Prefactor     59.397        14.338        .19276E-07   -.61353E-05
  24  Normalizat    1.0103        .19411        .10886E-05   -.27446E-03
  25  Prefactor     .80019        .94812E-01   -.11293E-05   -.20715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.71363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00535
  Prefactor  = 0.567906
  Prefactor  = 57.103
  Prefactor  = 16.9974
  Prefactor  = 0.0001
  Prefactor  = 18.8829
  norm       = 1.28622
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0166
  Prefactor  = 0.0001
  Prefactor  = 7.43018
  Prefactor  = 0.0001
  Prefactor  = 44.1846
  Prefactor  = 59.3973
  Normalizat = 1.01029
  Prefactor  = 0.80019
 **********
 **   18 **HESSE 
 **********

 FCN=   8878.933     FROM HESSE     STATUS=OK           423 CALLS     3312 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5483        .30116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7136        16.125        .14444E-03   -1.5152    
   4  Prefactor     .10000E-03    9.2222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0054        3.7924        .33983E-03   -1.5507    
  10  Prefactor     .56791        1.3891        .16823E-03   -1.5557    
  11  Prefactor     57.103        30.734        .53072E-04   -1.4195    
  12  Prefactor     16.997        25.289        .97126E-04   -1.4883    
  13  Prefactor     .10000E-03    35.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.883        32.053        .92178E-04   -1.4839    
  15  norm          1.2862        2.0886        .16444E-03   -1.5481    
  16  norm          .10000E-03    14.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.017        7.2344        .12071E-03   -1.5044    
  19  Prefactor     .10000E-03    11.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4302        8.3381        .14714E-03   -1.5163    
  21  Prefactor     .10000E-03    4.4654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     44.185        29.750        .60320E-04   -1.4378    
  23  Prefactor     59.397        14.348        .52060E-04   -1.4165    
  24  Normalizat    1.0103        .22670        .30782E-03   -.92686    
  25  Prefactor     .80019        .11072        .17492E-03   -.99721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58258e-10
Minuit parameter uncertainties:
  1  0.000220323
  2  8.39074e-05
  3  16.1341
  4  1.86478e-05
  5  5.09335e-05
  6  1.898e-05
  7  3.85774e-05
  8  2.55171e-06
  9  3.79332
  10  1.38916
  11  30.7425
  12  25.3054
  13  9.36625e-05
  14  32.0824
  15  2.08873
  16  3.41563e-05
  17  3.2578e-06
  18  7.23498
  19  4.88877e-05
  20  8.33937
  21  3.1185e-06
  22  29.7601
  23  14.3491
  24  0.226921
  25  0.110749
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  5.710e+01  3.074e+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:  8.002e-01  1.107e-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.010e+00  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.20
Ra Dec: 324.062 0.549
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 9.47e-08 +/- 5.09e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.09e-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) = 8878.84081363
delta logL = 0.0923342237802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8878.83365149
delta logL = 0.0994963567791

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8878.834     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      250 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.951        872.70        .12845E-02    .13383E-04
   2  Index         2.5767        5.9681        .23271       -.22427E-04
   3  Normalizat    1.0319        .21143        .68931E-01   -.14044E-03
   4  Prefactor     .79100        .15520        .43599E-01   -.32380E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.9506
  Index      = 2.57674
  Normalizat = 1.03186
  Prefactor  = 0.791005
 **********
 **   18 **HESSE 
 **********

 FCN=   8878.834     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.951        32.485        .51378E-04   -1.4145    
   2  Index         2.5767        .61743        .97363E-02   -.50597    
   3  Normalizat    1.0319        .22251        .30497E-03   -.91971    
   4  Prefactor     .79100        .11172        .17578E-03   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0823e-10
Minuit parameter uncertainties:
  1  32.4941
  2  0.619499
  3  0.222713
  4  0.111753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192821': 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) = 8878.83364874
delta logL = 0.099499110509

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  6.095e+01  3.249e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  2.577e+00  6.195e-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.910e-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:  1.032e+00  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.32
Ra Dec: 324.062 0.549
Photon Index (Free Index): 2.58 +/- 0.62
Photon Flux (Free Index): 8.40e-08 +/- 5.25e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.35e-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/192821/cmap_HighResolution_675820801_676080001_4FGL_J2136.2+0032_daily_bin1684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.47e-08', energy_flux2='2.25e-05', photon_flux_error='5.09e-08', dlogl='9.95e-02', energy_flux='2.02e-05', photon_flux2='8.40e-08', job_status='DONE', time_completed='2022-06-05 00:56:58.086437', photon_index_error2='0.62', photon_index2='2.58', ts='5.20', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='1.01', time_epoch_completed='1654415818.09', return_code='0', job_id='192821', GAL2='0.79', EG2='1.03', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='5.25e-08', ts2='5.32', photon_index='2.88' WHERE bin_id='1684' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun  5 00:56:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 192821: <4FGL_J2136.2+0032_daily_bin1684> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin1684> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jun  5 00:40:32 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun  5 00:42:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun  5 00:42:35 2022
Terminated at Sun Jun  5 00:56:58 2022
Results reported at Sun Jun  5 00:56:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1684 324.062 0.5488 675820801 676080001 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 :                                   778.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            986 sec.

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

