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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin1769
RA = 171.964, Dec = 36.314
tmin = 697852801, tmax = 698112001
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='432246', job_status='RUN', time_executed='2023-02-15 00:36:03.160798', time_epoch_executed='1676450163.16' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432246

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432246/ft1_4FGL_J1127.8+3618_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432246/ft2_4FGL_J1127.8+3618_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432246/ft1_4FGL_J1127.8+3618_daily_bin1769.fits outfile=/scratch/kocevski/432246/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin1769.fits ra=171.964 dec=36.314 rad=12.0 tmin=697852801.0 tmax=698112001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.34
user 4.13
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/432246/ft2_4FGL_J1127.8+3618_daily_bin1769.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/432246/ft2_4FGL_J1127.8+3618_daily_bin1769.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/432246/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin1769.fits evtable="EVENTS" outfile="/scratch/kocevski/432246/ft1_filtered_4FGL_J1127.8+3618_daily_bin1769.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.49
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 792

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432246/ft1_filtered_4FGL_J1127.8+3618_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/432246/ft2_4FGL_J1127.8+3618_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/432246/ltcube_697852801_698112001_4FGL_J1127.8+3618_daily_bin1769.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/432246/ft2_4FGL_J1127.8+3618_daily_bin1769.fits
.....................!
real 11.72
user 11.41
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432246/ft1_filtered_4FGL_J1127.8+3618_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/432246/ft2_4FGL_J1127.8+3618_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/432246/ltcube_697852801_698112001_4FGL_J1127.8+3618_daily_bin1769.fits outfile=/scratch/kocevski/432246/expmap_697852801_698112001_4FGL_J1127.8+3618_daily_bin1769.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/432246/ltcube_697852801_698112001_4FGL_J1127.8+3618_daily_bin1769.fits
.....................!
real 189.28
user 185.07
sys 3.90

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 202 point sources and 0 extended sources

Setting source of interest to:
4FGL J1127.8+3618 @ 171.964 36.314

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/432246/ft1_filtered_4FGL_J1127.8+3618_daily_bin1769.fits scfile=/scratch/kocevski/432246/ft2_4FGL_J1127.8+3618_daily_bin1769.fits outfile=/scratch/kocevski/432246/cmap_697852801_698112001_4FGL_J1127.8+3618_daily_bin1769.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=171.964 yref=36.314 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.53
user 0.41
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432246/ft1_filtered_4FGL_J1127.8+3618_daily_bin1769.fits scfile=/scratch/kocevski/432246/ft2_4FGL_J1127.8+3618_daily_bin1769.fits outfile=/scratch/kocevski/432246/cmap_HighResolution_697852801_698112001_4FGL_J1127.8+3618_daily_bin1769.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=171.964 yref=36.314 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.53
user 0.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/432246/ft1_filtered_4FGL_J1127.8+3618_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/432246/ft2_4FGL_J1127.8+3618_daily_bin1769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432246/Model_4FGL_J1127.8+3618_daily_bin1769.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/432246/ft1_filtered_4FGL_J1127.8+3618_daily_bin1769.fits.....................!
real 68.38
user 67.19
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/432246/ft1_filtered_4FGL_J1127.8+3618_daily_bin1769.fits', '/scratch/kocevski/432246/ft2_4FGL_J1127.8+3618_daily_bin1769.fits', expMap='/scratch/kocevski/432246/expmap_697852801_698112001_4FGL_J1127.8+3618_daily_bin1769.fits', expCube='/scratch/kocevski/432246/ltcube_697852801_698112001_4FGL_J1127.8+3618_daily_bin1769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/432246/Model_4FGL_J1127.8+3618_daily_bin1769.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1127.8+3618'

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.787e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/432246/ft1_filtered_4FGL_J1127.8+3618_daily_bin1769.fits
Spacecraft file(s): /scratch/kocevski/432246/ft2_4FGL_J1127.8+3618_daily_bin1769.fits
Exposure map: /scratch/kocevski/432246/expmap_697852801_698112001_4FGL_J1127.8+3618_daily_bin1769.fits
Exposure cube: /scratch/kocevski/432246/ltcube_697852801_698112001_4FGL_J1127.8+3618_daily_bin1769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/432246/Model_4FGL_J1127.8+3618_daily_bin1769.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) = 7957.75905117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.678       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.6789       1.0000          .0000       .10000E+07
     3 'Prefactor '    .72875E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .89623E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .38911       1.0000          .0000       .10000E+07
     6 'norm      '    1.0536       1.0000          .0000       .10000E+07
     7 'Prefactor '    .12212E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    17.504       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20095E-06   1.0000          .0000       .10000E+07
    10 'norm      '    .16931E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12268E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .36970E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.5066       1.0000          .0000       .10000E+07
    14 'norm      '    9.0547       1.0000          .0000       .10000E+07
    15 'Prefactor '    7.2914       1.0000          .0000       .10000E+07
    16 'Prefactor '    8.7914       1.0000          .0000       .10000E+07
    17 'Prefactor '    31.034       1.0000          .0000       .10000E+07
    18 'norm      '    .12865E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .21000E-06   1.0000          .0000       .10000E+07
    20 'norm      '    8.7778       1.0000          .0000       .10000E+07
    21 'Prefactor '    .57778E-05   1.0000          .0000       .10000E+07
    22 'norm      '    47.956       1.0000          .0000       .10000E+07
    23 'Prefactor '    .79381E-08   1.0000          .0000       .10000E+07
    24 'Normalizat'    .89126       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90870       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7957.727     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     2249 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.698        3.6208       -.22147E-07    .17219    
   2  Prefactor     1.6788        2.0605       -.52611E-07   -.13509E-02
   3  Prefactor     .33307E-09    9.1607        .88414E-07** at limit **
   4  Prefactor     .21055E-06    510.77       -.18340E-05** at limit **
   5  Prefactor     .38914        11.107       -.89291E-07    .33225E-01
   6  norm          1.0536        .28349        .16564E-07    .13893E-01
   7  Prefactor      .0000        1.6903        .11995E-06** at limit **
   8  Prefactor     17.507        9.1694        .38938E-07    .64198E-01
   9  Prefactor      .0000        4.5191        .13156E-06** at limit **
  10  norm           .0000        3.1027        .16276E-06** at limit **
  11  Prefactor      .0000        1.3701        .17800E-06** at limit **
  12  Prefactor     .55511E-10    13.234        .19978E-06** at limit **
  13  Prefactor     6.5037        7.0298        .12474E-07   -.41756E-01
  14  norm          9.0555        3.2926       -.64418E-07   -.17715E-02
  15  Prefactor     7.2925        7.9475        .12829E-06    .21312E-01
  16  Prefactor     8.7918        5.0075       -.31363E-08    .17475E-02
  17  Prefactor     31.087        37.633        .15193E-06    .15511E-01
  18  norm          .55511E-10    1.4453       -.21085E-06** at limit **
  19  Prefactor     .24702E-07    12.078       -.11927E-06** at limit **
  20  norm          8.7787        6.3878        .18509E-07    .74212E-03
  21  Prefactor     .16653E-09    21.929        .13267E-07** at limit **
  22  norm          47.956        3.5724       -.16773E-07   -.39386E-04
  23  Prefactor      .0000        3.1673        .32075E-06** at limit **
  24  Normalizat    .89121        .18698        .23040E-05    .92784E-04
  25  Prefactor     .90879        .21969       -.96786E-06    .59514E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.6982
  Prefactor  = 1.67882
  Prefactor  = 3.33067e-10
  Prefactor  = 2.10554e-07
  Prefactor  = 0.389141
  norm       = 1.05356
  Prefactor  = 0
  Prefactor  = 17.5066
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 6.50372
  norm       = 9.05546
  Prefactor  = 7.29251
  Prefactor  = 8.7918
  Prefactor  = 31.0873
  norm       = 5.55112e-11
  Prefactor  = 2.47025e-08
  norm       = 8.77868
  Prefactor  = 1.66533e-10
  norm       = 47.9561
  Prefactor  = 0
  Normalizat = 0.89121
  Prefactor  = 0.908789
 **********
 **   18 **HESSE 
 **********

 FCN=   7957.727     FROM HESSE     STATUS=OK           483 CALLS     2732 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.698        26.249        .17496E-03   -1.5594    
   2  Prefactor     1.6788        2.0707        .81277E-03   -1.5682    
   3  Prefactor     .33307E-09    9.1638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .21055E-06    512.49        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .38914        6.1806        .90760E-02   -1.5695    
   6  norm          1.0536        .28530        .53355E-03   -1.5687    
   7  Prefactor      .0000        1.6773        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.507        13.103        .23912E-03   -1.5624    
   9  Prefactor      .0000        4.5227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        3.1064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        1.3592        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    13.257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5037        12.287        .39320E-03   -1.5657    
  14  norm          9.0555        3.2973        .33284E-03   -1.5648    
  15  Prefactor     7.2925        9.0517        .37121E-03   -1.5654    
  16  Prefactor     8.7918        5.0138        .33781E-03   -1.5649    
  17  Prefactor     31.087        39.658        .17953E-03   -1.5596    
  18  norm          .55511E-10    .61815        .21029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .24702E-07    12.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.7787        6.3859        .33808E-03   -1.5649    
  21  Prefactor     .16653E-09    21.952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          47.956        3.5790        .14441E-03   -1.5569    
  23  Prefactor      .0000        3.1671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89121        .16206        .44790E-01   -.96770    
  25  Prefactor     .90879        .18723        .73189E-01   -.95835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7982e-07
Minuit parameter uncertainties:
  1  26.249
  2  2.07067
  3  0.000112822
  4  0.0207778
  5  3.1017
  6  0.285304
  7  1.52683e-06
  8  13.1034
  9  1.70421e-05
  10  1.14674e-06
  11  8.17121e-06
  12  5.0771e-05
  13  12.2871
  14  3.29731
  15  9.05171
  16  5.01375
  17  39.6579
  18  1.02845e-05
  19  0.00109903
  20  6.38595
  21  0.000116653
  22  3.57896
  23  1.71812e-05
  24  0.162144
  25  0.187364
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  8.171e-06  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  9.088e-01  1.874e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  8.912e-01  1.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 6.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432246/likelihoodResults_697852801_698112001_4FGL_J1127.8+3618_daily_bin1769.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) = 7957.73865994
delta logL = -0.0116710361099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7957.72699239
delta logL = -3.48824414687e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7957.727     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      233 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .72087        .42118E-03** at limit **
   2  Index         1.3707        .78071       -.15397E-05     .0000    
   3  Normalizat    .89121        1.2270        .66860E-05   -.40038E-04
   4  Prefactor     .90879        1.2533       -.11757E-04    .25122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.3707
  Normalizat = 0.891208
  Prefactor  = 0.90879
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7957.727     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .72087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .15360        1.3118       -.15397E-05   -.81228    
   3  Normalizat    .89121        1.2270        .66860E-05   -.96770    
   4  Prefactor     .90879        1.2533       -.11757E-04   -.95835    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.30972e-11
Minuit parameter uncertainties:
  1  5.47208e-07
  2  0.787573
  3  1.26896
  4  1.2969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432246': 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): 101
logL (Free Index) = 7957.72698891
delta logL = -5.45696821064e-12

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  5.472e-07  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  1.371e+00  7.876e-01  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  9.088e-01  1.297e+00  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  8.912e-01  1.269e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 171.964 36.314

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/432246/cmap_HighResolution_697852801_698112001_4FGL_J1127.8+3618_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-03', job_status='DONE', photon_flux_upper_limit='6.08e-08', time_completed='2023-02-15 00:49:29.889894', job_id='432246', GAL2='0.91', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1676450969.89', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-5.46e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1769' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 00:49:29 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 432246: <4FGL_J1127.8+3618_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin1769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Feb 15 00:35:30 2023
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 00:35:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 00:35:31 2023
Terminated at Wed Feb 15 00:49:30 2023
Results reported at Wed Feb 15 00:49:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin1769 171.964 36.314 697852801 698112001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.8+3618 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   808.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            840 sec.

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

