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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin1750
RA = 174.075, Dec = 34.129
tmin = 692928001, tmax = 693187201
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='8695', job_status='RUN', time_executed='2022-12-20 00:41:22.398570', time_epoch_executed='1671525682.4' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8695

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8695/ft1_4FGL_J1136.2+3407_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8695/ft2_4FGL_J1136.2+3407_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8695/ft1_4FGL_J1136.2+3407_daily_bin1750.fits outfile=/scratch/kocevski/8695/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin1750.fits ra=174.075 dec=34.129 rad=12.0 tmin=692928001.0 tmax=693187201.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.54
user 3.26
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/8695/ft2_4FGL_J1136.2+3407_daily_bin1750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8695/ft2_4FGL_J1136.2+3407_daily_bin1750.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/8695/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/8695/ft1_filtered_4FGL_J1136.2+3407_daily_bin1750.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.31
sys 0.17

Number of photons that the gtmktime cut: 727

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8695/ft1_filtered_4FGL_J1136.2+3407_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/8695/ft2_4FGL_J1136.2+3407_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/8695/ltcube_692928001_693187201_4FGL_J1136.2+3407_daily_bin1750.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/8695/ft2_4FGL_J1136.2+3407_daily_bin1750.fits
.....................!
real 11.99
user 11.47
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8695/ft1_filtered_4FGL_J1136.2+3407_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/8695/ft2_4FGL_J1136.2+3407_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/8695/ltcube_692928001_693187201_4FGL_J1136.2+3407_daily_bin1750.fits outfile=/scratch/kocevski/8695/expmap_692928001_693187201_4FGL_J1136.2+3407_daily_bin1750.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/8695/ltcube_692928001_693187201_4FGL_J1136.2+3407_daily_bin1750.fits
.....................!
real 193.52
user 186.52
sys 5.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 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J1136.2+3407 @ 174.075 34.129

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/8695/ft1_filtered_4FGL_J1136.2+3407_daily_bin1750.fits scfile=/scratch/kocevski/8695/ft2_4FGL_J1136.2+3407_daily_bin1750.fits outfile=/scratch/kocevski/8695/cmap_692928001_693187201_4FGL_J1136.2+3407_daily_bin1750.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=174.075 yref=34.129 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8695/ft1_filtered_4FGL_J1136.2+3407_daily_bin1750.fits scfile=/scratch/kocevski/8695/ft2_4FGL_J1136.2+3407_daily_bin1750.fits outfile=/scratch/kocevski/8695/cmap_HighResolution_692928001_693187201_4FGL_J1136.2+3407_daily_bin1750.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=174.075 yref=34.129 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/8695/ft1_filtered_4FGL_J1136.2+3407_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/8695/ft2_4FGL_J1136.2+3407_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8695/Model_4FGL_J1136.2+3407_daily_bin1750.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/8695/ft1_filtered_4FGL_J1136.2+3407_daily_bin1750.fits.....................!
real 64.98
user 63.21
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/8695/ft1_filtered_4FGL_J1136.2+3407_daily_bin1750.fits', '/scratch/kocevski/8695/ft2_4FGL_J1136.2+3407_daily_bin1750.fits', expMap='/scratch/kocevski/8695/expmap_692928001_693187201_4FGL_J1136.2+3407_daily_bin1750.fits', expCube='/scratch/kocevski/8695/ltcube_692928001_693187201_4FGL_J1136.2+3407_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/8695/Model_4FGL_J1136.2+3407_daily_bin1750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1136.2+3407'

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.848e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/8695/ft1_filtered_4FGL_J1136.2+3407_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/8695/ft2_4FGL_J1136.2+3407_daily_bin1750.fits
Exposure map: /scratch/kocevski/8695/expmap_692928001_693187201_4FGL_J1136.2+3407_daily_bin1750.fits
Exposure cube: /scratch/kocevski/8695/ltcube_692928001_693187201_4FGL_J1136.2+3407_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/8695/Model_4FGL_J1136.2+3407_daily_bin1750.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) = 7553.51668067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32285E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .53268E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .50358E-03   1.0000          .0000       .10000E+07
     4 'norm      '    1.5261       1.0000          .0000       .10000E+07
     5 'Prefactor '    .95592       1.0000          .0000       .10000E+07
     6 'Prefactor '    9.4571       1.0000          .0000       .10000E+07
     7 'Prefactor '    .49860E-03   1.0000          .0000       .10000E+07
     8 'norm      '    5.2295       1.0000          .0000       .10000E+07
     9 'Prefactor '    .33473E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.0242       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10443E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .29678E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .35333E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.8852       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.1133       1.0000          .0000       .10000E+07
    16 'norm      '    2.6998       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.7132       1.0000          .0000       .10000E+07
    18 'Prefactor '    .33809       1.0000          .0000       .10000E+07
    19 'norm      '    10.470       1.0000          .0000       .10000E+07
    20 'Prefactor '    .84848E-02   1.0000          .0000       .10000E+07
    21 'norm      '    31.007       1.0000          .0000       .10000E+07
    22 'norm      '    7.5258       1.0000          .0000       .10000E+07
    23 'Prefactor '    .77106E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    .72709E-06   1.0000          .0000       .10000E+07
    25 'Prefactor '    2.2215       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0348       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87319       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7553.469     FROM MIGRAD    STATUS=CONVERGED    182 CALLS     1956 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65248E-06    29.606       -.34568E-05** at limit **
   2  Prefactor     .38858E-09    38.965       -.15747E-06** at limit **
   3  Prefactor     .38136E-07    12.197       -.29032E-05** at limit **
   4  norm          1.5262        .34785        .17815E-07    .79104E-02
   5  Prefactor     .95058        2.4376        .32898E-07    .47280E-03
   6  Prefactor     9.4352        2.1499        .29337E-06    .90056E-02
   7  Prefactor     .99920E-09    8.4459        .13901E-05** at limit **
   8  norm          5.2137        1.4154        .60805E-07    .13079E-01
   9  Prefactor     .45519E-08    2.0910        .29939E-06** at limit **
  10  Prefactor     1.9234        15.094       -.26372E-05    .36368E-01
  11  Prefactor     .10855E-05    16.319       -.70547E-06** at limit **
  12  norm          .13603E-03    10.383       -.12139E-05** at limit **
  13  Prefactor     .35527E-08    6.7536        .76978E-06** at limit **
  14  Prefactor     5.8422        5.5384        .11701E-06    .18170E-02
  15  Prefactor     3.2123        162.89        .46712E-05    .11558E-01
  16  norm          2.7306        1.3442        .19449E-06    .16666E-01
  17  Prefactor     6.8699        1.8281        .37457E-06    .15420E-01
  18  Prefactor     .33672        .91764        .86610E-07    .48687E-03
  19  norm          10.355        9.6342        .21360E-06    .61353E-03
  20  Prefactor     .49144E-06    14.365        .38475E-05** at limit **
  21  norm          30.996        2.9565        .78992E-08   -.24194E-02
  22  norm          7.5236        3.0894        .47118E-07   -.20144E-02
  23  Prefactor     .11102E-08    3.1794        .32515E-06** at limit **
  24  Prefactor     .24425E-08    2.2526        .46135E-06** at limit **
  25  Prefactor     2.2198        2.6964       -.25335E-06    .10739E-02
  26  Normalizat    1.0361        .20161        .30781E-04    .11594E-03
  27  Prefactor     .87294        .22265       -.31387E-04    .10351E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.52478e-07
  Prefactor  = 3.88578e-10
  Prefactor  = 3.81362e-08
  norm       = 1.52619
  Prefactor  = 0.95058
  Prefactor  = 9.43523
  Prefactor  = 9.99201e-10
  norm       = 5.21372
  Prefactor  = 4.55191e-09
  Prefactor  = 1.92336
  Prefactor  = 1.08547e-06
  norm       = 0.000136032
  Prefactor  = 3.55271e-09
  Prefactor  = 5.84222
  Prefactor  = 3.21234
  norm       = 2.73062
  Prefactor  = 6.86993
  Prefactor  = 0.336718
  norm       = 10.3545
  Prefactor  = 4.9144e-07
  norm       = 30.996
  norm       = 7.52359
  Prefactor  = 1.11022e-09
  Prefactor  = 2.44249e-09
  Prefactor  = 2.21982
  Normalizat = 1.0361
  Prefactor  = 0.872941
 **********
 **   18 **HESSE 
 **********

 FCN=   7553.469     FROM HESSE     STATUS=OK           552 CALLS     2508 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65248E-06    30.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .38858E-09    38.984        .15413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .38136E-07    12.296        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5262        .36090        .53269E-03   -1.5683    
   5  Prefactor     .95058        2.4507        .42198E-03   -1.5688    
   6  Prefactor     9.4352        18.918        .32564E-03   -1.5647    
   7  Prefactor     .99920E-09    8.4851        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.2137        16.201        .43932E-03   -1.5662    
   9  Prefactor     .45519E-08    2.0932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9234        99.967        .72700E-03   -1.5680    
  11  Prefactor     .10855E-05    17.685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .13603E-03    1.2612        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .35527E-08    6.7785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8422        5.5491        .41372E-03   -1.5660    
  15  Prefactor     3.2123        180.78        .44438E-03   -1.5672    
  16  norm          2.7306        1.3728        .61973E-03   -1.5675    
  17  Prefactor     6.8699        16.267        .38704E-03   -1.5656    
  18  Prefactor     .33672        .97683        .32066E-02   -1.5696    
  19  norm          10.355        9.6530        .30940E-03   -1.5644    
  20  Prefactor     .49144E-06    15.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          30.996        2.9817        .17961E-03   -1.5597    
  22  norm          7.5236        3.1062        .36533E-03   -1.5653    
  23  Prefactor     .11102E-08    3.1777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .24425E-08    2.2436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.2198        2.7201        .68964E-03   -1.5678    
  26  Normalizat    1.0361        .17400        .59795E-01   -.91831    
  27  Prefactor     .87294        .18805        .74350E-01   -.97093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47775e-07
Minuit parameter uncertainties:
  1  0.00891798
  2  0.000251164
  3  0.00136958
  4  0.360901
  5  2.45068
  6  18.9184
  7  0.000186595
  8  16.201
  9  0.000194905
  10  27.733
  11  0.00876268
  12  0.026197
  13  0.000310734
  14  5.54913
  15  48.198
  16  1.37276
  17  16.2671
  18  0.976826
  19  9.65299
  20  0.00546971
  21  2.98168
  22  3.10617
  23  0.000120187
  24  0.000147895
  25  2.72013
  26  0.174092
  27  0.188188
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  5.842e+00  5.549e+00  0.000e+00  1.000e+06 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  8.729e-01  1.882e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.036e+00  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.05e-05

TS (Fixed Index): 1.65
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8695/likelihoodResults_692928001_693187201_4FGL_J1136.2+3407_daily_bin1750.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) = 7553.37139947
delta logL = 0.0976578547607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7553.36872927
delta logL = 0.100328059249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7785       1.0000          .0000       .10000E+07
     2 'Index     '    2.9189       1.0000          .0000       10.000    
     3 'Normalizat'    1.0211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88428       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7553.369     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      257 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7803        87.440        .46002E-03    .57349E-02
   2  Index         2.9193        6.4355        .22300        .11530E-03
   3  Normalizat    1.0210        .52802E-01    .43197E-01   -.18684E-03
   4  Prefactor     .88413        .58991E-01    .73929E-01   -.42061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.78028
  Index      = 2.9193
  Normalizat = 1.02103
  Prefactor  = 0.884132
 **********
 **   18 **HESSE 
 **********

 FCN=   7553.369     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7803        5.8642        .15494E-04   -1.5664    
   2  Index         2.9193        .91922        .82984E-02   -.42920    
   3  Normalizat    1.0210        .19661        .26593E-03   -.92329    
   4  Prefactor     .88413        .22290        .32714E-03   -.96698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78733e-10
Minuit parameter uncertainties:
  1  5.86418
  2  0.925602
  3  0.196751
  4  0.223128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8695': 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) = 7553.36872748
delta logL = 0.100329840614

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  4.780e+00  5.864e+00  0.000e+00  1.000e+06 ( 1.000e-12)
307        Index:  2.919e+00  9.256e-01  0.000e+00  1.000e+01 (-1.000e+00)
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  8.841e-01  2.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.021e+00  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.92 +/- 0.93
Photon Flux (Free Index): 5.24e-08 +/- 4.90e-08
Energy Flux (Free Index): 1.09e-05 +/- 9.65e-06

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/8695/cmap_HighResolution_692928001_693187201_4FGL_J1136.2+3407_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.54e-03', comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='1.09e-05', photon_flux_error='3.84e-08', dlogl='1.00e-01', energy_flux='1.11e-05', photon_flux2='5.24e-08', job_status='DONE', time_completed='2022-12-20 00:54:13.297975', photon_index_error2='0.93', photon_index2='2.92', ts='1.65', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='9.65e-06', EG='1.04', time_epoch_completed='1671526453.3', return_code='0', job_id='8695', GAL2='0.88', EG2='1.02', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.90e-08', ts2='1.84', photon_index='2.55' WHERE bin_id='1750' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:54:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 8695: <4FGL_J1136.2+3407_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 00:40:14 2022
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:40:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:40:16 2022
Terminated at Tue Dec 20 00:54:13 2022
Results reported at Tue Dec 20 00:54:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin1750 174.075 34.129 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1136.2+3407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   771.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

