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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1758
RA = 324.062, Dec = 0.5488
tmin = 695001601, tmax = 695260801
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='383679', job_status='RUN', time_executed='2023-01-13 01:46:44.524750', time_epoch_executed='1673603204.52' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383679/ft1_4FGL_J2136.2+0032_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383679/ft2_4FGL_J2136.2+0032_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383679/ft1_4FGL_J2136.2+0032_daily_bin1758.fits outfile=/scratch/kocevski/383679/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1758.fits ra=324.062 dec=0.5488 rad=12.0 tmin=695001601.0 tmax=695260801.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 2.76
user 2.54
sys 0.20

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

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

Number of photons that the gtmktime cut: 579

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383679/ft1_filtered_4FGL_J2136.2+0032_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/383679/ft2_4FGL_J2136.2+0032_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/383679/ltcube_695001601_695260801_4FGL_J2136.2+0032_daily_bin1758.fits outfile=/scratch/kocevski/383679/expmap_695001601_695260801_4FGL_J2136.2+0032_daily_bin1758.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/383679/ltcube_695001601_695260801_4FGL_J2136.2+0032_daily_bin1758.fits
.....................!
real 193.90
user 187.85
sys 5.65

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/383679/ft1_filtered_4FGL_J2136.2+0032_daily_bin1758.fits scfile=/scratch/kocevski/383679/ft2_4FGL_J2136.2+0032_daily_bin1758.fits outfile=/scratch/kocevski/383679/cmap_695001601_695260801_4FGL_J2136.2+0032_daily_bin1758.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.60
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383679/ft1_filtered_4FGL_J2136.2+0032_daily_bin1758.fits scfile=/scratch/kocevski/383679/ft2_4FGL_J2136.2+0032_daily_bin1758.fits outfile=/scratch/kocevski/383679/cmap_HighResolution_695001601_695260801_4FGL_J2136.2+0032_daily_bin1758.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.80
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.895       1.0000          .0000       .10000E+07
     2 'Prefactor '    .33910E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.4638       1.0000          .0000       .10000E+07
     4 'Prefactor '    129.56       1.0000          .0000       .10000E+07
     5 'Prefactor '    53.563       1.0000          .0000       .10000E+07
     6 'Prefactor '    37.068       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10253E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    8.2935       1.0000          .0000       .10000E+07
     9 'Prefactor '    .80822E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    25.942       1.0000          .0000       .10000E+07
    11 'Prefactor '    .36896E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .95495       1.0000          .0000       .10000E+07
    13 'norm      '    .12459E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    11.547       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13637E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.0073       1.0000          .0000       .10000E+07
    17 'Prefactor '    9.0101       1.0000          .0000       .10000E+07
    18 'Prefactor '    39.829       1.0000          .0000       .10000E+07
    19 'Normalizat'    .89874       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91316       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=   6583.387     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     1659 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.866        10.881       -.14572E-06    .24747E-03
   2  Prefactor     .44409E-09    20.762       -.32376E-06** at limit **
   3  Prefactor     7.4863        13.018        .24593E-06    .49521E-03
   4  Prefactor     132.43        118.05        .37888E-05   -.81715E-03
   5  Prefactor     53.655        33.936       -.30882E-05   -.13660E-02
   6  Prefactor     37.922        68.464       -.62111E-05    .34712E-03
   7  Prefactor     .11102E-09    3.3403       -.50846E-07** at limit **
   8  Prefactor     8.3064        11.006       -.25784E-06   -.16373E-02
   9  Prefactor     .55511E-09    10.477       -.99448E-06** at limit **
  10  Prefactor     26.107        45.365        .19499E-05   -.48669E-03
  11  Prefactor     .16653E-09    15.874        .46254E-07** at limit **
  12  norm          .95718        1.2733        .18966E-07    .50637E-02
  13  norm           .0000        7.1582       -.14540E-06** at limit **
  14  Prefactor     11.577        8.0631       -.76636E-07    .10906E-02
  15  Prefactor     .55511E-10    3.3760        .55153E-08** at limit **
  16  Prefactor     2.9934        9.0164       -.10056E-05    .16683E-02
  17  Prefactor     9.0415        14.432        .64134E-05    .57833E-03
  18  Prefactor     39.882        16.843       -.15701E-05    .60843E-03
  19  Normalizat    .89603        .30932        .94131E-05   -.64216E-04
  20  Prefactor     .91343        .14236       -.41981E-05   -.20361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8665
  Prefactor  = 4.44089e-10
  Prefactor  = 7.48626
  Prefactor  = 132.431
  Prefactor  = 53.6545
  Prefactor  = 37.9221
  Prefactor  = 1.11022e-10
  Prefactor  = 8.30643
  Prefactor  = 5.55112e-10
  Prefactor  = 26.1074
  Prefactor  = 1.66533e-10
  norm       = 0.957178
  norm       = 0
  Prefactor  = 11.5767
  Prefactor  = 5.55112e-11
  Prefactor  = 2.99337
  Prefactor  = 9.04146
  Prefactor  = 39.8822
  Normalizat = 0.896027
  Prefactor  = 0.913428
 **********
 **   18 **HESSE 
 **********

 FCN=   6583.387     FROM HESSE     STATUS=OK           341 CALLS     2000 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.866        10.878        .27869E-03   -1.5636    
   2  Prefactor     .44409E-09    20.772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4863        13.026        .36686E-03   -1.5653    
   4  Prefactor     132.43        117.98        .87862E-04   -1.5478    
   5  Prefactor     53.655        33.862        .13665E-03   -1.5561    
   6  Prefactor     37.922        72.878        .16427E-03   -1.5585    
   7  Prefactor     .11102E-09    3.3368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3064        10.992        .34788E-03   -1.5650    
   9  Prefactor     .55511E-09    2.3826        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.107        45.927        .19638E-03   -1.5606    
  11  Prefactor     .16653E-09    15.874        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .95718        1.2785        .42163E-03   -1.5688    
  13  norm           .0000        7.1609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.577        8.0621        .29457E-03   -1.5640    
  15  Prefactor     .55511E-10    3.3749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9934        9.0595        .58503E-03   -1.5673    
  17  Prefactor     9.0415        14.459        .33366E-03   -1.5648    
  18  Prefactor     39.882        16.781        .15847E-03   -1.5582    
  19  Normalizat    .89603        .25940        .82919E-01   -.96600    
  20  Prefactor     .91343        .11863        .45173E-01   -.95673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39351e-10
Minuit parameter uncertainties:
  1  10.8778
  2  0.000196844
  3  13.0261
  4  117.986
  5  33.8617
  6  72.8796
  7  4.24804e-05
  8  10.9917
  9  7.25978e-05
  10  45.9274
  11  9.49269e-05
  12  1.27848
  13  1.21876e-05
  14  8.06208
  15  2.6703e-05
  16  9.05949
  17  14.4595
  18  16.781
  19  0.259758
  20  0.118666
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  9.134e-01  1.187e-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:  8.960e-01  2.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/383679/likelihoodResults_695001601_695260801_4FGL_J2136.2+0032_daily_bin1758.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) = 6582.89146081
delta logL = 0.495943715042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6582.88076099
delta logL = 0.506643536561

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7100       1.0000          .0000       .10000E+07
     2 'Index     '    6.2574       1.0000          .0000       10.000    
     3 'Normalizat'    .82984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94135       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=   6582.881     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      294 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7076        124.79        .12150E-04   -.34040E-02
   2  Index         6.2582        7.3517        .12875E-01   -.21682E-04
   3  Normalizat    .82995        .25552        .37998E-03    .15842E-03
   4  Prefactor     .94130        .12254        .17852E-03    .72969E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.70763
  Index      = 6.25825
  Normalizat = 0.829953
  Prefactor  = 0.941298
 **********
 **   18 **HESSE 
 **********

 FCN=   6582.881     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7076        9.8644        .48601E-06   -1.5675    
   2  Index         6.2582        3.1375        .51499E-03    .25438    
   3  Normalizat    .82995        .29353        .15199E-04   -.98967    
   4  Prefactor     .94130        .14354        .35704E-04   -.94713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30897e-10
Minuit parameter uncertainties:
  1  9.86448
  2  3.41361
  3  0.294094
  4  0.143602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383679': 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) = 6582.88076086
delta logL = 0.506643664376

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  2.708e+00  9.864e+00  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  6.258e+00  3.414e+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:  9.413e-01  1.436e-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:  8.300e-01  2.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 324.062 0.549
Photon Index (Free Index): 6.26 +/- 3.41
Photon Flux (Free Index): 9.18e-08 +/- 8.96e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/383679/cmap_HighResolution_695001601_695260801_4FGL_J2136.2+0032_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-02', comment='SUCCESS', energy_flux2='1.13e-05', dlogl='5.07e-01', photon_flux2='9.18e-08', job_status='DONE', time_completed='2023-01-13 01:56:42.355958', photon_index_error2='3.41', photon_index2='6.26', ts='0.42', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.95e-07', energy_flux_error2='1.13e-05', EG='0.90', time_epoch_completed='1673603802.36', return_code='0', job_id='383679', GAL2='0.94', EG2='0.83', return_code2='0', photon_flux_error2='8.96e-08', ts2='1.55', photon_index='2.88' WHERE bin_id='1758' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 01:56:42 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 383679: <4FGL_J2136.2+0032_daily_bin1758> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin1758> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jan 13 01:45:28 2023
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 01:45:55 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 01:45:55 2023
Terminated at Fri Jan 13 01:56:43 2023
Results reported at Fri Jan 13 01:56:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1758 324.062 0.5488 695001601 695260801 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 :                                   599.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   647 sec.
    Turnaround time :                            675 sec.

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

