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


Performing analysis on: 4FGL_J2136.2+0032_daily_bin1695
RA = 324.062, Dec = 0.5488
tmin = 678672001, tmax = 678931201
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='731131', job_status='RUN', time_executed='2022-07-08 00:36:25.355145', time_epoch_executed='1657265785.36' WHERE source_name='4FGL J2136.2+0032' and cadence='daily' and bin_id='1695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731131/ft1_4FGL_J2136.2+0032_daily_bin1695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731131/ft2_4FGL_J2136.2+0032_daily_bin1695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731131/ft1_4FGL_J2136.2+0032_daily_bin1695.fits outfile=/scratch/kocevski/731131/ft1_filteredMKT_4FGL_J2136.2+0032_daily_bin1695.fits ra=324.062 dec=0.5488 rad=12.0 tmin=678672001.0 tmax=678931201.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.60
user 3.39
sys 0.20

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

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

Number of photons that the gtmktime cut: 557

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731131/ft1_filtered_4FGL_J2136.2+0032_daily_bin1695.fits" evtable="EVENTS" scfile=/scratch/kocevski/731131/ft2_4FGL_J2136.2+0032_daily_bin1695.fits sctable="SC_DATA" outfile=/scratch/kocevski/731131/ltcube_678672001_678931201_4FGL_J2136.2+0032_daily_bin1695.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/731131/ft2_4FGL_J2136.2+0032_daily_bin1695.fits
.....................!
real 12.27
user 11.88
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731131/ft1_filtered_4FGL_J2136.2+0032_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731131/ft2_4FGL_J2136.2+0032_daily_bin1695.fits sctable="SC_DATA" expcube=/scratch/kocevski/731131/ltcube_678672001_678931201_4FGL_J2136.2+0032_daily_bin1695.fits outfile=/scratch/kocevski/731131/expmap_678672001_678931201_4FGL_J2136.2+0032_daily_bin1695.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/731131/ltcube_678672001_678931201_4FGL_J2136.2+0032_daily_bin1695.fits
.....................!
real 190.41
user 184.89
sys 4.91

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/731131/ft1_filtered_4FGL_J2136.2+0032_daily_bin1695.fits scfile=/scratch/kocevski/731131/ft2_4FGL_J2136.2+0032_daily_bin1695.fits outfile=/scratch/kocevski/731131/cmap_678672001_678931201_4FGL_J2136.2+0032_daily_bin1695.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=324.062 yref=0.5488 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731131/ft1_filtered_4FGL_J2136.2+0032_daily_bin1695.fits scfile=/scratch/kocevski/731131/ft2_4FGL_J2136.2+0032_daily_bin1695.fits outfile=/scratch/kocevski/731131/cmap_HighResolution_678672001_678931201_4FGL_J2136.2+0032_daily_bin1695.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.54
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9631       1.0000         .10000E-03   10000.    
     2 'Prefactor '    57.830       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5862       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.494       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0976       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .66028       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5825       1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6038       1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.025       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.1634       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0658       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91204       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=   6104.840     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2876 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9617        5.9839        .13046E-05   -.10984E-04
   2  Prefactor     57.830        49.063       -.22286E-06   -.30734E-05
   3  Prefactor     .10000E-03    8.6320       -.14306E-07** at limit **
   4  Prefactor     9.5853        14.129        .14863E-07    .20254E-06
   5  Prefactor     .10000E-03    20.815       -.17037E-06** at limit **
   6  Prefactor     27.493        24.558        .27787E-07   -.15902E-05
   7  Prefactor     .10000E-03    103.22       -.30484E-06** at limit **
   8  Prefactor     .10000E-03    2.7269       -.15988E-07** at limit **
   9  Prefactor     7.0972        7.0867        .68646E-08   -.13711E-04
  10  Prefactor     .65444        2.2973        .15242E-05   -.16412E-04
  11  Prefactor     .10000E-03    34.403       -.11958E-06** at limit **
  12  Prefactor     .10000E-03    38.711       -.66657E-06** at limit **
  13  Prefactor     .10000E-03    79.994       -.16813E-05** at limit **
  14  Prefactor     .10000E-03    13.232       -.11398E-06** at limit **
  15  norm          1.5822        1.6230       -.26085E-06   -.34404E-04
  16  norm          .10000E-03    35.804        .97552E-07** at limit **
  17  Prefactor     .10000E-03    2.4157       -.19552E-07** at limit **
  18  Prefactor     .10000E-03    6.6680       -.19642E-06** at limit **
  19  Prefactor     .10000E-03    14.117        .13630E-06** at limit **
  20  Prefactor     .10000E-03    7.6946        .21982E-07** at limit **
  21  Prefactor     7.6082        16.043        .12968E-06    .11722E-04
  22  Prefactor     32.027        29.560        .13484E-06    .71671E-06
  23  Prefactor     8.1640        11.050        .85966E-07    .33060E-05
  24  Normalizat    1.0657        .23553        .92248E-07   -.25719E-04
  25  Prefactor     .91215        .11620        .91622E-08   -.72032E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.96172
  Prefactor  = 57.8303
  Prefactor  = 0.0001
  Prefactor  = 9.58533
  Prefactor  = 0.0001
  Prefactor  = 27.493
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.09724
  Prefactor  = 0.654439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58219
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.60823
  Prefactor  = 32.0271
  Prefactor  = 8.16405
  Normalizat = 1.06568
  Prefactor  = 0.912151
 **********
 **   18 **HESSE 
 **********

 FCN=   6104.840     FROM HESSE     STATUS=OK           425 CALLS     3301 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9617        5.9935        .14802E-02   -1.5428    
   2  Prefactor     57.830        49.074        .52755E-04   -1.4186    
   3  Prefactor     .10000E-03    8.6439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5853        14.128        .64716E-03   -1.5089    
   5  Prefactor     .10000E-03    20.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.493        24.566        .76403E-04   -1.4659    
   7  Prefactor     .10000E-03    104.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7401        .12599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0972        7.0942        .15057E-03   -1.5175    
  10  Prefactor     .65444        2.2857        .20846E-03   -1.5546    
  11  Prefactor     .10000E-03    34.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    80.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5822        1.6137        .97394E-04   -1.5456    
  16  norm          .10000E-03    36.708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4198        .11859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.181        .38792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.6082        16.020        .14543E-03   -1.5156    
  22  Prefactor     32.027        29.572        .70805E-04   -1.4576    
  23  Prefactor     8.1640        11.055        .70161E-03   -1.5136    
  24  Normalizat    1.0657        .28133        .32039E-03   -.90861    
  25  Prefactor     .91215        .14050        .17627E-03   -.95718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09552e-09
Minuit parameter uncertainties:
  1  5.99528
  2  49.108
  3  1.84054e-06
  4  14.1329
  5  3.00571e-05
  6  24.5753
  7  0.000492845
  8  2.17626e-07
  9  7.09505
  10  2.28604
  11  8.09289e-05
  12  0.000142447
  13  0.000297422
  14  1.53006e-05
  15  1.61369
  16  2.10966e-05
  17  1.61894e-06
  18  0.000113504
  19  1.14373e-05
  20  3.11699e-06
  21  16.0287
  22  29.5859
  23  11.0574
  24  0.281726
  25  0.140557
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  8.093e-05  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:  9.122e-01  1.406e-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.066e+00  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 324.062 0.549
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731131/likelihoodResults_678672001_678931201_4FGL_J2136.2+0032_daily_bin1695.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6104.84032294
delta logL = -0.000137621606882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6104.84018696
delta logL = -1.64211633091e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2042       1.0000          .0000       10.000    
     3 'Normalizat'    1.0657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91215       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6104.606     FROM MIGRAD    STATUS=FAILED       197 CALLS      383 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16522E-01    1.3199        .36859E-02    .66647E-02
   2  Index        10.0000        9.9000        .50000    ** at limit **
   3  Normalizat    1.0224        .69716E-01    .32039E-03   -.28387E-06
   4  Prefactor     .92751        .35482E-01    .17627E-03   -.91582E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6104.606     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      510 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16522E-01    1.3199        .83461E-06    .66647E-02
   2  Index        10.0000        9.9000        .42610E-01** at limit **
   3  Normalizat    1.0224        .69716E-01    .47738E-06   -.28387E-06
   4  Prefactor     .92751        .35482E-01    .37057E-07   -.91582E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6104.606     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      548 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16522E-01    .35202E-01    .17100E-03    .31802E-01
   2  Index        10.0000        8.5360        .50000    ** at limit **
   3  Normalizat    1.0224        .27894        .12816E-04    .92258E-05
   4  Prefactor     .92751        .14215        .70510E-05   -.96741E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0165219
  Index      = 10
  Normalizat = 1.02241
  Prefactor  = 0.927513
 **********
 **   18 **HESSE 
 **********

 FCN=   6104.606     FROM HESSE     STATUS=OK            31 CALLS      579 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16522E-01    .32517E-01    .34200E-04   -1.5682    
   2  Index        10.0000        8.1821        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0224        .27929        .25631E-05   -.92283    
   4  Prefactor     .92751        .14222        .14102E-05   -.95186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21627e-12
Minuit parameter uncertainties:
  1  0.0325171
  2  0.00031595
  3  0.27969
  4  0.142273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731131': 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) = 6104.60604646
delta logL = 0.234138858077

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  1.652e-02  3.252e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        Index:  1.000e+01  3.160e-04  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.275e-01  1.423e-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.022e+00  2.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.98e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2022-07-08 00:48:12.019706', job_id='731131', GAL2='0.93', fit_tolerance='1e-08', EG2='1.02', EG='1.07', time_epoch_completed='1657266492.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.34e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='1695' AND source_name='4FGL J2136.2+0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul  8 00:48:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 731131: <4FGL_J2136.2+0032_daily_bin1695> in cluster <slac> Done

Job <4FGL_J2136.2+0032_daily_bin1695> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jul  8 00:35:14 2022
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  8 00:35:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  8 00:35:14 2022
Terminated at Fri Jul  8 00:48:12 2022
Results reported at Fri Jul  8 00:48:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2136.2+0032_daily_bin1695 324.062 0.5488 678672001 678931201 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            778 sec.

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

