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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1680
RA = 324.062, Dec = 0.5488
tmin = 674784001, tmax = 675043201
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='598553', job_status='RUN', time_executed='2022-05-24 01:07:59.112098', time_epoch_executed='1653379679.11' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598553

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598553/ft1_4FGL_J2136.2+0032_daily_bin1680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598553/ft2_4FGL_J2136.2+0032_daily_bin1680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598553/ft1_4FGL_J2136.2+0032_daily_bin1680.fits outfile=/scratch/kocevski/598553/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1680.fits ra=324.062 dec=0.5488 rad=12.0 tmin=674784001.0 tmax=675043201.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.56
user 3.30
sys 0.25

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

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

Number of photons that the gtmktime cut: 681

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598553/ft1_filtered_4FGL_J2136.2+0032_daily_bin1680.fits evtable="EVENTS" scfile=/scratch/kocevski/598553/ft2_4FGL_J2136.2+0032_daily_bin1680.fits sctable="SC_DATA" expcube=/scratch/kocevski/598553/ltcube_674784001_675043201_4FGL_J2136.2+0032_daily_bin1680.fits outfile=/scratch/kocevski/598553/expmap_674784001_675043201_4FGL_J2136.2+0032_daily_bin1680.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/598553/ltcube_674784001_675043201_4FGL_J2136.2+0032_daily_bin1680.fits
.....................!
real 192.64
user 185.09
sys 6.00

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/598553/ft1_filtered_4FGL_J2136.2+0032_daily_bin1680.fits scfile=/scratch/kocevski/598553/ft2_4FGL_J2136.2+0032_daily_bin1680.fits outfile=/scratch/kocevski/598553/cmap_674784001_675043201_4FGL_J2136.2+0032_daily_bin1680.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 10.44
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598553/ft1_filtered_4FGL_J2136.2+0032_daily_bin1680.fits scfile=/scratch/kocevski/598553/ft2_4FGL_J2136.2+0032_daily_bin1680.fits outfile=/scratch/kocevski/598553/cmap_HighResolution_674784001_675043201_4FGL_J2136.2+0032_daily_bin1680.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 2.21
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5308       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.638       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16681E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7291       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7286       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5498       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.322       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.392       1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14446E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5266       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.142       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .33041E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.311       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76346       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0334       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=   7538.923     FROM MIGRAD    STATUS=CONVERGED   1024 CALLS     3342 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5285        5.7997        .25675E-03   -.94757E-04
   2  Prefactor     .10000E-03    15.214        .18142E-02** at limit **
   3  Prefactor     .10000E-03    8.4843        .18142E-02** at limit **
   4  Prefactor     .10000E-03    10.527        .18142E-02** at limit **
   5  Prefactor     .10000E-03    33.468        .18142E-02** at limit **
   6  Prefactor     10.636        22.549        .12284E-03   -.15641E-04
   7  Prefactor     .10000E-03    217.85        .36285E-03** at limit **
   8  Prefactor     8.7294        7.2609        .13567E-03   -.27904E-04
   9  Prefactor     2.7277        4.7964        .24401E-03   -.56562E-04
  10  Prefactor     2.5517        2.7546        .13573E-03    .12832E-03
  11  Prefactor     22.321        34.296        .84779E-04    .12203E-04
  12  Prefactor     .10000E-03    9.5490        .18142E-02** at limit **
  13  Prefactor     .10000E-03    22.169        .18142E-02** at limit **
  14  Prefactor     15.513        53.788        .10209E-03   -.17595E-04
  15  norm          .10000E-03    .74732        .72523E-03** at limit **
  16  norm          .10000E-03    25.969        .18142E-02** at limit **
  17  Prefactor     6.5158        9.9981        .15709E-03   -.86628E-04
  18  Prefactor     .10000E-03    20.755        .36285E-03** at limit **
  19  Prefactor     .10000E-03    7.9344        .18142E-02** at limit **
  20  Prefactor     36.140        19.881        .66663E-04   -.44170E-04
  21  Prefactor     .10000E-03    11.128        .18142E-02** at limit **
  22  Prefactor     .10000E-03    30.353        .12133    ** at limit **
  23  Prefactor     15.315        13.543        .10236E-03   -.15660E-04
  24  Normalizat    .76323        .26203        .37101E-03   -.10075E-03
  25  Prefactor     1.0336        .12823        .16735E-03    .13315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6356
  Prefactor  = 0.000100001
  Prefactor  = 8.72938
  Prefactor  = 2.72775
  Prefactor  = 2.55172
  Prefactor  = 22.3215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5131
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.51577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.1397
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 15.3153
  Normalizat = 0.763226
  Prefactor  = 1.03356
 **********
 **   18 **HESSE 
 **********

 FCN=   7538.923     FROM HESSE     STATUS=OK           411 CALLS     3753 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5285        5.7986        .10270E-04   -1.5390    
   2  Prefactor     .10000E-03    15.215        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.4848        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.636        22.545        .49137E-05   -1.5056    
   7  Prefactor     .10000E-03    217.85        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7294        7.2608        .54268E-05   -1.5117    
   9  Prefactor     2.7277        4.7960        .97602E-05   -1.5378    
  10  Prefactor     2.5517        2.7539        .54292E-05   -1.5388    
  11  Prefactor     22.321        34.283        .33911E-05   -1.4763    
  12  Prefactor     .10000E-03    9.5490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.513        53.757        .40835E-05   -1.4920    
  15  norm          .10000E-03    .74741        .14505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    25.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5158        9.9941        .62836E-05   -1.5197    
  18  Prefactor     .10000E-03    20.756        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.9347        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.140        19.881        .26665E-05   -1.4505    
  21  Prefactor     .10000E-03    11.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.463        .12368       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.315        13.542        .40944E-05   -1.4925    
  24  Normalizat    .76323        .26217        .14840E-04   -1.0145    
  25  Prefactor     1.0336        .12832        .33469E-04   -.91619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83749e-10
Minuit parameter uncertainties:
  1  5.79985
  2  3.0607e-05
  3  2.43452e-06
  4  1.7533e-05
  5  6.87141e-05
  6  22.5634
  7  0.00111352
  8  7.26148
  9  4.79672
  10  2.75405
  11  34.3136
  12  2.4168e-05
  13  1.2486e-05
  14  53.9253
  15  1.37288e-07
  16  0.000184324
  17  9.99664
  18  9.83184e-05
  19  4.35362e-06
  20  19.8849
  21  1.46425e-06
  22  0.000474085
  23  13.5447
  24  0.262608
  25  0.128359
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  2.232e+01  3.431e+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:  1.034e+00  1.284e-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:  7.632e-01  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 324.062 0.549
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/598553/likelihoodResults_674784001_675043201_4FGL_J2136.2+0032_daily_bin1680.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) = 7538.51766933
delta logL = 0.404935468335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7538.51454907
delta logL = 0.408055725222

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.501       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9877       1.0000          .0000       10.000    
     3 'Normalizat'    .79126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0221       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=   7538.515     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.501        23.399        .22115E-02   -.15707E-03
   2  Index         1.9874        .42268        .25860       -.77046E-04
   3  Normalizat    .79119        .20640        .82400E-01    .31889E-04
   4  Prefactor     1.0220        .10730        .41938E-01   -.26673E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5009
  Index      = 1.98742
  Normalizat = 0.791192
  Prefactor  = 1.02204
 **********
 **   18 **HESSE 
 **********

 FCN=   7538.515     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.501        30.479        .88460E-04   -1.4802    
   2  Index         1.9874        .78234        .89779E-02   -.64665    
   3  Normalizat    .79119        .24304        .36485E-03   -1.0040    
   4  Prefactor     1.0220        .12612        .16810E-03   -.91998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68555e-09
Minuit parameter uncertainties:
  1  30.5023
  2  0.787437
  3  0.243371
  4  0.126161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598553': 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) = 7538.51454795
delta logL = 0.408056848732

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  2.050e+01  3.050e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  1.987e+00  7.874e-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:  1.022e+00  1.262e-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:  7.912e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 324.062 0.549
Photon Index (Free Index): 1.99 +/- 0.79
Photon Flux (Free Index): 2.23e-08 +/- 3.54e-08
Energy Flux (Free Index): 1.59e-05 +/- 2.27e-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/598553/cmap_HighResolution_674784001_675043201_4FGL_J2136.2+0032_daily_bin1680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', energy_flux2='1.59e-05', dlogl='4.08e-01', photon_flux2='2.23e-08', job_status='DONE', time_completed='2022-05-24 01:22:14.960804', photon_index_error2='0.79', photon_index2='1.99', ts='0.55', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='2.27e-05', EG='0.76', time_epoch_completed='1653380534.96', return_code='0', job_id='598553', GAL2='1.02', EG2='0.79', return_code2='0', photon_flux_error2='3.54e-08', ts2='1.36', photon_index='2.88' WHERE bin_id='1680' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May 24 01:22:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 598553: <4FGL_J2136.2+0032_daily_bin1680> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin1680> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 01:05:37 2022
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 01:07:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 01:07:32 2022
Terminated at Tue May 24 01:22:15 2022
Results reported at Tue May 24 01:22:15 2022

Your job looked like:

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

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

