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


Performing analysis on: 4FGL_J1412.9+5018_daily_bin1767
RA = 213.241, Dec = 50.301
tmin = 697334401, tmax = 697593601
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='80356', job_status='RUN', time_executed='2023-02-09 01:23:30.417721', time_epoch_executed='1675934610.42' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/80356

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/80356/ft1_4FGL_J1412.9+5018_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/80356/ft2_4FGL_J1412.9+5018_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/80356/ft1_4FGL_J1412.9+5018_daily_bin1767.fits outfile=/scratch/kocevski/80356/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1767.fits ra=213.241 dec=50.301 rad=12.0 tmin=697334401.0 tmax=697593601.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.71
user 3.37
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/80356/ft2_4FGL_J1412.9+5018_daily_bin1767.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/80356/ft2_4FGL_J1412.9+5018_daily_bin1767.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/80356/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1767.fits evtable="EVENTS" outfile="/scratch/kocevski/80356/ft1_filtered_4FGL_J1412.9+5018_daily_bin1767.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 558

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/80356/ft1_filtered_4FGL_J1412.9+5018_daily_bin1767.fits" evtable="EVENTS" scfile=/scratch/kocevski/80356/ft2_4FGL_J1412.9+5018_daily_bin1767.fits sctable="SC_DATA" outfile=/scratch/kocevski/80356/ltcube_697334401_697593601_4FGL_J1412.9+5018_daily_bin1767.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/80356/ft2_4FGL_J1412.9+5018_daily_bin1767.fits
.....................!
real 15.14
user 14.64
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/80356/ft1_filtered_4FGL_J1412.9+5018_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/80356/ft2_4FGL_J1412.9+5018_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/80356/ltcube_697334401_697593601_4FGL_J1412.9+5018_daily_bin1767.fits outfile=/scratch/kocevski/80356/expmap_697334401_697593601_4FGL_J1412.9+5018_daily_bin1767.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/80356/ltcube_697334401_697593601_4FGL_J1412.9+5018_daily_bin1767.fits
.....................!
real 193.57
user 187.60
sys 5.50

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

Setting source of interest to:
4FGL J1412.9+5018 @ 213.241 50.301

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/80356/ft1_filtered_4FGL_J1412.9+5018_daily_bin1767.fits scfile=/scratch/kocevski/80356/ft2_4FGL_J1412.9+5018_daily_bin1767.fits outfile=/scratch/kocevski/80356/cmap_697334401_697593601_4FGL_J1412.9+5018_daily_bin1767.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=213.241 yref=50.301 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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/80356/ft1_filtered_4FGL_J1412.9+5018_daily_bin1767.fits scfile=/scratch/kocevski/80356/ft2_4FGL_J1412.9+5018_daily_bin1767.fits outfile=/scratch/kocevski/80356/cmap_HighResolution_697334401_697593601_4FGL_J1412.9+5018_daily_bin1767.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=213.241 yref=50.301 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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/80356/ft1_filtered_4FGL_J1412.9+5018_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/80356/ft2_4FGL_J1412.9+5018_daily_bin1767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/80356/Model_4FGL_J1412.9+5018_daily_bin1767.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/80356/ft1_filtered_4FGL_J1412.9+5018_daily_bin1767.fits.....................!
real 51.81
user 50.19
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/80356/ft1_filtered_4FGL_J1412.9+5018_daily_bin1767.fits', '/scratch/kocevski/80356/ft2_4FGL_J1412.9+5018_daily_bin1767.fits', expMap='/scratch/kocevski/80356/expmap_697334401_697593601_4FGL_J1412.9+5018_daily_bin1767.fits', expCube='/scratch/kocevski/80356/ltcube_697334401_697593601_4FGL_J1412.9+5018_daily_bin1767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/80356/Model_4FGL_J1412.9+5018_daily_bin1767.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1412.9+5018'

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  5.555e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
333        Index:  2.665e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  6.514e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/80356/ft1_filtered_4FGL_J1412.9+5018_daily_bin1767.fits
Spacecraft file(s): /scratch/kocevski/80356/ft2_4FGL_J1412.9+5018_daily_bin1767.fits
Exposure map: /scratch/kocevski/80356/expmap_697334401_697593601_4FGL_J1412.9+5018_daily_bin1767.fits
Exposure cube: /scratch/kocevski/80356/ltcube_697334401_697593601_4FGL_J1412.9+5018_daily_bin1767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/80356/Model_4FGL_J1412.9+5018_daily_bin1767.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) = 6003.70678554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4026       1.0000          .0000       .10000E+07
     2 'Prefactor '    12.970       1.0000          .0000       .10000E+07
     3 'Prefactor '    .72684E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .61645E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.214       1.0000          .0000       .10000E+07
     6 'norm      '    .48850E-08   1.0000          .0000       .10000E+07
     7 'norm      '    .88112E-04   1.0000          .0000       .10000E+07
     8 'norm      '    5.0016       1.0000          .0000       .10000E+07
     9 'Prefactor '    10.853       1.0000          .0000       .10000E+07
    10 'Prefactor '    .66089E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.5648       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.4640       1.0000          .0000       .10000E+07
    13 'Prefactor '    17.203       1.0000          .0000       .10000E+07
    14 'Prefactor '    .48981E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .10670E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11125E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .20599E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    31.479       1.0000          .0000       .10000E+07
    19 'Prefactor '    16.972       1.0000          .0000       .10000E+07
    20 'norm      '    3.3363       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.4563       1.0000          .0000       .10000E+07
    22 'Prefactor '    .77863E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    2.0252       1.0000          .0000       .10000E+07
    24 'norm      '    .15917E-02   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1541       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64193       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6003.703     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     2229 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4016        1.8006       -.87940E-07    .38501E-03
   2  Prefactor     12.862        11.651        .17023E-06    .14946    
   3  Prefactor     .12212E-08    24.517       -.15312E-05** at limit **
   4  norm          .55511E-10    1.4598        .10325E-06** at limit **
   5  Prefactor     15.838        32.321       -.51487E-06    .48119E-01
   6  norm           .0000        .78218        .10004E-06** at limit **
   7  norm          .11102E-09    2.3519        .11992E-06** at limit **
   8  norm          5.0014        6.4510        .15261E-06   -.31128E-02
   9  Prefactor     10.980        2.3491        .90207E-07    .13356E-01
  10  Prefactor     .61046E-06    6.8799       -.41472E-06** at limit **
  11  Prefactor     1.5644        2.6901       -.34653E-06    .93026E-03
  12  Prefactor     9.4511        1.6486       -.22016E-07   -.28975E-02
  13  Prefactor     17.235        6.9522       -.52896E-08    .36973E-01
  14  Prefactor     .18630E-06    7.1314       -.13068E-06** at limit **
  15  Prefactor     .83772E-06    5.2310       -.41928E-06** at limit **
  16  Prefactor     .33196E-07    8.0876       -.58259E-06** at limit **
  17  Prefactor      .0000        18.068       -.23948E-07** at limit **
  18  Prefactor     31.302        14.609       -.16320E-06    .52477E-01
  19  Prefactor     16.972        1.1510       -.51443E-08    .15594E-01
  20  norm          3.3355        1.6314        .10206E-07   -.29549E-03
  21  Prefactor     4.4381        6.4821        .22380E-06    .26496E-02
  22  Prefactor     .11102E-09    2.4555       -.74310E-07** at limit **
  23  Prefactor     1.9758        5.4873        .69503E-07   -.49042E-03
  24  norm          .14988E-08    5.2594       -.11257E-06** at limit **
  25  Normalizat    1.1549        .17379        .40264E-05   -.31882E-04
  26  Prefactor     .64165        .20682       -.48864E-05   -.10372E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40159
  Prefactor  = 12.8622
  Prefactor  = 1.22125e-09
  norm       = 5.55112e-11
  Prefactor  = 15.8376
  norm       = 0
  norm       = 1.11022e-10
  norm       = 5.00142
  Prefactor  = 10.9799
  Prefactor  = 6.10456e-07
  Prefactor  = 1.56437
  Prefactor  = 9.4511
  Prefactor  = 17.2348
  Prefactor  = 1.86295e-07
  Prefactor  = 8.37719e-07
  Prefactor  = 3.31957e-08
  Prefactor  = 0
  Prefactor  = 31.3022
  Prefactor  = 16.9717
  norm       = 3.33548
  Prefactor  = 4.43811
  Prefactor  = 1.11022e-10
  Prefactor  = 1.97575
  norm       = 1.4988e-09
  Normalizat = 1.15493
  Prefactor  = 0.641653
 **********
 **   18 **HESSE 
 **********

 FCN=   6003.703     FROM HESSE     STATUS=OK           516 CALLS     2745 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4016        1.8248        .91552E-03   -1.5684    
   2  Prefactor     12.862        24.425        .27788E-03   -1.5636    
   3  Prefactor     .12212E-08    24.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    1.4580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.838        40.148        .24847E-03   -1.5628    
   6  norm           .0000        .77192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .11102E-09    2.3544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0014        6.4574        .44942E-03   -1.5663    
   9  Prefactor     10.980        24.092        .30388E-03   -1.5642    
  10  Prefactor     .61046E-06    10.033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5644        2.7401        .84996E-03   -1.5683    
  12  Prefactor     9.4511        15.000        .32552E-03   -1.5646    
  13  Prefactor     17.235        15.661        .24120E-03   -1.5625    
  14  Prefactor     .18630E-06    1.2035        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .83772E-06    9.2662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .33196E-07    8.1126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        17.982        .16998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.302        43.004        .17826E-03   -1.5596    
  19  Prefactor     16.972        13.179        .24284E-03   -1.5626    
  20  norm          3.3355        1.6415        .55388E-03   -1.5671    
  21  Prefactor     4.4381        6.5289        .47676E-03   -1.5666    
  22  Prefactor     .11102E-09    2.4543        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.9758        5.5395        .72679E-03   -1.5680    
  24  norm          .14988E-08    5.0953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1549        .15427        .36129E-01   -.88007    
  26  Prefactor     .64165        .17875        .67174E-01   -1.0586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2858e-06
Minuit parameter uncertainties:
  1  1.82477
  2  24.4249
  3  0.000344998
  4  1.85347e-05
  5  40.1491
  6  2.32433e-06
  7  3.57893e-05
  8  6.45741
  9  24.0925
  10  0.00494945
  11  2.74009
  12  15
  13  15.6611
  14  0.000946997
  15  0.00557222
  16  0.00103765
  17  2.26432e-05
  18  43.004
  19  13.1792
  20  1.64147
  21  6.52886
  22  3.51127e-05
  23  5.53954
  24  0.000173775
  25  0.154328
  26  0.178908
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  6.105e-07  4.949e-03  0.000e+00  1.000e+06 ( 1.000e-13)
333        Index:  2.665e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  6.514e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  6.417e-01  1.789e-01  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  1.155e+00  1.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 213.241 50.301
Photon Flux Upper Limit: 4.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/80356/likelihoodResults_697334401_697593601_4FGL_J1412.9+5018_daily_bin1767.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) = 6003.70514495
delta logL = -0.00239292190963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6003.70275314
delta logL = -1.1154997992e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6003.703     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      229 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.5079        .42118E-03** at limit **
   2  Index         1.2723        .72165       -.17585E-04     .0000    
   3  Normalizat    1.1549        1.1242        .64150E-05   -.10262E-04
   4  Prefactor     .64165        .99069       -.10132E-04    .11484E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.27228
  Normalizat = 1.15493
  Prefactor  = 0.641654
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6003.703     FROM HESSE     STATUS=FAILED         9 CALLS      238 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.5079        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .11991        1.2408       -.17585E-04   -.84135    
   3  Normalizat    1.1549        1.1242        .64150E-05   -.88007    
   4  Prefactor     .64165        .99069       -.10132E-04   -1.0586    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.66609e-12
Minuit parameter uncertainties:
  1  7.67208e-06
  2  0.727413
  3  1.14898
  4  1.01988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/80356': 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) = 6003.702752
delta logL = 3.04162313114e-08

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  0.000e+00  7.672e-06  0.000e+00  1.000e+06 ( 1.000e-13)
333        Index:  1.272e+00  7.274e-01  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  6.514e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  6.417e-01  1.020e+00  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  1.155e+00  1.149e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 213.241 50.301

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/80356/cmap_HighResolution_697334401_697593601_4FGL_J1412.9+5018_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-03', job_status='DONE', photon_flux_upper_limit='4.20e-08', time_completed='2023-02-09 01:35:09.441368', job_id='80356', GAL2='0.64', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1675935309.44', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='3.04e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1767' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 01:35:09 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 80356: <4FGL_J1412.9+5018_daily_bin1767> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin1767> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Feb  9 01:20:27 2023
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 01:20:50 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 01:20:50 2023
Terminated at Thu Feb  9 01:35:10 2023
Results reported at Thu Feb  9 01:35:10 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin1767 213.241 50.301 697334401 697593601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1412.9+5018 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   700.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            883 sec.

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

