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 177 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_J1412.9+5018_daily_bin1769
RA = 213.241, Dec = 50.301
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='435927', job_status='RUN', time_executed='2023-02-15 00:53:49.741042', time_epoch_executed='1676451229.74' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435927

Creating custom pfile directory:
/scratch/kocevski/435927/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/435927/ft1_4FGL_J1412.9+5018_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/435927/ft2_4FGL_J1412.9+5018_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435927/ft1_4FGL_J1412.9+5018_daily_bin1769.fits outfile=/scratch/kocevski/435927/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1769.fits ra=213.241 dec=50.301 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.41
user 4.15
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435927/ft2_4FGL_J1412.9+5018_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/435927/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1769.fits evtable="EVENTS" outfile="/scratch/kocevski/435927/ft1_filtered_4FGL_J1412.9+5018_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.48
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 475

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435927/ft1_filtered_4FGL_J1412.9+5018_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/435927/ft2_4FGL_J1412.9+5018_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/435927/ltcube_697852801_698112001_4FGL_J1412.9+5018_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/435927/ft2_4FGL_J1412.9+5018_daily_bin1769.fits
.....................!
real 11.71
user 11.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435927/ft1_filtered_4FGL_J1412.9+5018_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/435927/ft2_4FGL_J1412.9+5018_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/435927/ltcube_697852801_698112001_4FGL_J1412.9+5018_daily_bin1769.fits outfile=/scratch/kocevski/435927/expmap_697852801_698112001_4FGL_J1412.9+5018_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/435927/ltcube_697852801_698112001_4FGL_J1412.9+5018_daily_bin1769.fits
.....................!
real 190.14
user 185.74
sys 4.09

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/435927/ft1_filtered_4FGL_J1412.9+5018_daily_bin1769.fits scfile=/scratch/kocevski/435927/ft2_4FGL_J1412.9+5018_daily_bin1769.fits outfile=/scratch/kocevski/435927/cmap_697852801_698112001_4FGL_J1412.9+5018_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=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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435927/ft1_filtered_4FGL_J1412.9+5018_daily_bin1769.fits scfile=/scratch/kocevski/435927/ft2_4FGL_J1412.9+5018_daily_bin1769.fits outfile=/scratch/kocevski/435927/cmap_HighResolution_697852801_698112001_4FGL_J1412.9+5018_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=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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/435927/ft1_filtered_4FGL_J1412.9+5018_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/435927/ft2_4FGL_J1412.9+5018_daily_bin1769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/435927/Model_4FGL_J1412.9+5018_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/435927/ft1_filtered_4FGL_J1412.9+5018_daily_bin1769.fits.....................!
real 45.11
user 43.88
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/435927/ft1_filtered_4FGL_J1412.9+5018_daily_bin1769.fits', '/scratch/kocevski/435927/ft2_4FGL_J1412.9+5018_daily_bin1769.fits', expMap='/scratch/kocevski/435927/expmap_697852801_698112001_4FGL_J1412.9+5018_daily_bin1769.fits', expCube='/scratch/kocevski/435927/ltcube_697852801_698112001_4FGL_J1412.9+5018_daily_bin1769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/435927/Model_4FGL_J1412.9+5018_daily_bin1769.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/435927/ft1_filtered_4FGL_J1412.9+5018_daily_bin1769.fits
Spacecraft file(s): /scratch/kocevski/435927/ft2_4FGL_J1412.9+5018_daily_bin1769.fits
Exposure map: /scratch/kocevski/435927/expmap_697852801_698112001_4FGL_J1412.9+5018_daily_bin1769.fits
Exposure cube: /scratch/kocevski/435927/ltcube_697852801_698112001_4FGL_J1412.9+5018_daily_bin1769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/435927/Model_4FGL_J1412.9+5018_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) = 5102.93981322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25096E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    49.838       1.0000          .0000       .10000E+07
     3 'Prefactor '    .18876       1.0000          .0000       .10000E+07
     4 'norm      '    4.3051       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17876E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .26923E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .45463E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .12079E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    150.26       1.0000          .0000       .10000E+07
    10 'Prefactor '    .13967E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .19645E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.8260       1.0000          .0000       .10000E+07
    13 'Prefactor '    .51403E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.0928       1.0000          .0000       .10000E+07
    15 'Prefactor '    .28610E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    73.215       1.0000          .0000       .10000E+07
    17 'Prefactor '    .36249E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    12.554       1.0000          .0000       .10000E+07
    19 'Prefactor '    10.634       1.0000          .0000       .10000E+07
    20 'norm      '    3.0245       1.0000          .0000       .10000E+07
    21 'Prefactor '    .51566E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    7.6560       1.0000          .0000       .10000E+07
    23 'Prefactor '    5.6015       1.0000          .0000       .10000E+07
    24 'norm      '    .12443E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1146       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .49022       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=   5102.875     FROM MIGRAD    STATUS=CONVERGED    201 CALLS     2268 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6186        .11268E-06** at limit **
   2  Prefactor     49.530        3.5789       -.37012E-08    .45984E-01
   3  Prefactor     .45020E-07    43.140        .89599E-06** at limit **
   4  norm          4.3105        3.6643        .14055E-07   -.28244E-03
   5  Prefactor     .19273E-04    66.454       -.32326E-07** at limit **
   6  norm           .0000        1.7255        .34374E-07** at limit **
   7  norm           .0000        2.0761        .28895E-06** at limit **
   8  norm           .0000        2.7788       -.54066E-06** at limit **
   9  Prefactor     147.47        52.078       -.12822E-05    .25591    
  10  Prefactor     .22044E-03    108.56       -.39010E-05** at limit **
  11  Prefactor      .0000        7.5211       -.61037E-06** at limit **
  12  Prefactor     5.8368        19.676        .44648E-06    .29779E-01
  13  Prefactor     .33307E-09    5.1974        .22482E-06** at limit **
  14  Prefactor     1.1409        2.8120        .15433E-05    .23958E-02
  15  Prefactor     .55511E-10    5.0157        .17199E-06** at limit **
  16  Prefactor     72.557        28.059       -.35153E-06   -.30817    
  17  Prefactor     .21538E-07    23.074        .19618E-05** at limit **
  18  Prefactor     12.482        6.6184        .92826E-08    .15543E-01
  19  Prefactor     10.620        1.3780        .21072E-07   -.13705E-01
  20  norm          3.0244        1.6379       -.48634E-07    .54725E-03
  21  Prefactor     .11102E-09    9.1062       -.10092E-05** at limit **
  22  Prefactor     7.6860        6.6573        .13663E-06    .65351E-03
  23  Prefactor     5.5704        8.6984       -.66256E-06    .15950E-02
  24  norm           .0000        2.0913       -.72169E-07** at limit **
  25  Normalizat    1.1163        .18785        .66243E-05   -.61699E-05
  26  Prefactor     .48949        .20742       -.96067E-05   -.26330E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 49.5299
  Prefactor  = 4.50195e-08
  norm       = 4.31045
  Prefactor  = 1.92731e-05
  norm       = 0
  norm       = 0
  norm       = 0
  Prefactor  = 147.47
  Prefactor  = 0.000220441
  Prefactor  = 0
  Prefactor  = 5.83681
  Prefactor  = 3.33067e-10
  Prefactor  = 1.14086
  Prefactor  = 5.55112e-11
  Prefactor  = 72.5568
  Prefactor  = 2.15383e-08
  Prefactor  = 12.4816
  Prefactor  = 10.6197
  norm       = 3.02437
  Prefactor  = 1.11022e-10
  Prefactor  = 7.68595
  Prefactor  = 5.57035
  norm       = 0
  Normalizat = 1.11626
  Prefactor  = 0.489486
 **********
 **   18 **HESSE 
 **********

 FCN=   5102.875     FROM HESSE     STATUS=OK           504 CALLS     2772 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.530        35.613        .14166E-03   -1.5567    
   3  Prefactor     .45020E-07    43.052        .11979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.3105        3.6931        .48529E-03   -1.5666    
   5  Prefactor     .19273E-04    70.477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.6594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        2.0711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        2.7760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     147.47        67.277        .81585E-04   -1.5465    
  10  Prefactor     .22044E-03    146.69        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        7.4661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8368        20.599        .41585E-03   -1.5660    
  13  Prefactor     .33307E-09    5.2099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1409        3.0191        .11420E-02   -1.5687    
  15  Prefactor     .55511E-10    5.0314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     72.557        35.762        .11688E-03   -1.5538    
  17  Prefactor     .21538E-07    23.096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.482        21.908        .28246E-03   -1.5637    
  19  Prefactor     10.620        10.557        .30700E-03   -1.5643    
  20  norm          3.0244        1.6437        .58327E-03   -1.5673    
  21  Prefactor     .11102E-09    9.0954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.6860        6.6822        .36219E-03   -1.5653    
  23  Prefactor     5.5704        8.6977        .42423E-03   -1.5661    
  24  norm           .0000        2.0957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1163        .16662        .37436E-01   -.89232    
  26  Prefactor     .48949        .18292        .72061E-01   -1.1246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69056e-06
Minuit parameter uncertainties:
  1  7.73846e-06
  2  35.6133
  3  0.00278375
  4  3.69308
  5  0.0737116
  6  2.41001e-06
  7  1.4752e-06
  8  6.27638e-06
  9  67.2772
  10  0.359653
  11  2.59448e-05
  12  20.5993
  13  8.30992e-05
  14  3.01906
  15  2.48859e-05
  16  35.7623
  17  0.00141149
  18  21.9085
  19  10.557
  20  1.64368
  21  6.64315e-05
  22  6.68223
  23  8.69767
  24  9.55842e-09
  25  0.166702
  26  0.183145
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  2.204e-04  3.597e-01  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:  4.895e-01  1.831e-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.116e+00  1.667e-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: 7.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435927/likelihoodResults_697852801_698112001_4FGL_J1412.9+5018_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) = 5102.54627765
delta logL = 0.328927336551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5102.54617157
delta logL = 0.329033413121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0157       1.0000          .0000       .10000E+07
     2 'Index     '    4.7238       1.0000          .0000       10.000    
     3 'Normalizat'    1.0723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52022       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.

 FCN=   5102.546     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      434 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0157        56.056        .72876E-03    .56194E-02
   2  Index         4.7239        3.7697        .20168        .74471E-04
   3  Normalizat    1.0723        .34535E-01    .39262E-01    .21839E-05
   4  Prefactor     .52021        .39974E-01    .70027E-01    .26868E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.0157
  Index      = 4.7239
  Normalizat = 1.07226
  Prefactor  = 0.520208
 **********
 **   18 **HESSE 
 **********

 FCN=   5102.546     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      467 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0157        169.73        .12575E-04   -1.5680    
   2  Index         4.7239        6.7226        .71850E-02   -.55249E-01
   3  Normalizat    1.0723        .17030        .19219E-03   -.90647    
   4  Prefactor     .52021        .19349        .31000E-03   -1.1106    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54751e-09
Minuit parameter uncertainties:
  1  36.9944
  2  11.2173
  3  0.17039
  4  0.193739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435927': 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): 102
logL (Free Index) = 5102.54617156
delta logL = 0.329033418367

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  2.016e+00  3.699e+01  0.000e+00  1.000e+06 ( 1.000e-13)
333        Index:  4.724e+00  1.122e+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:  5.202e-01  1.937e-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.072e+00  1.704e-01  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/435927/cmap_HighResolution_697852801_698112001_4FGL_J1412.9+5018_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-03', job_status='DONE', photon_flux_upper_limit='7.71e-08', time_completed='2023-02-15 01:04:37.371350', job_id='435927', GAL2='0.52', fit_tolerance='1e-08', EG2='1.07', EG='1.12', time_epoch_completed='1676451877.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='3.29e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1769' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:04:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 435927: <4FGL_J1412.9+5018_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin1769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Feb 15 00:50:27 2023
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 00:50:28 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:50:28 2023
Terminated at Wed Feb 15 01:04:38 2023
Results reported at Wed Feb 15 01:04:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin1769 213.241 50.301 697852801 698112001 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 :                                   647.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

