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


Performing analysis on: 4FGL_J1412.9+5018_daily_bin1766
RA = 213.241, Dec = 50.301
tmin = 697075201, tmax = 697334401
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='850778', job_status='RUN', time_executed='2023-02-06 00:57:41.109586', time_epoch_executed='1675673861.11' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/850778

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/850778/ft1_4FGL_J1412.9+5018_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/850778/ft2_4FGL_J1412.9+5018_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/850778/ft1_4FGL_J1412.9+5018_daily_bin1766.fits outfile=/scratch/kocevski/850778/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1766.fits ra=213.241 dec=50.301 rad=12.0 tmin=697075201.0 tmax=697334401.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.76
user 3.50
sys 0.19

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

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

Number of photons that the gtmktime cut: 564

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/850778/ft1_filtered_4FGL_J1412.9+5018_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/850778/ft2_4FGL_J1412.9+5018_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/850778/ltcube_697075201_697334401_4FGL_J1412.9+5018_daily_bin1766.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/850778/ft2_4FGL_J1412.9+5018_daily_bin1766.fits
.....................!
real 15.40
user 14.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/850778/ft1_filtered_4FGL_J1412.9+5018_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/850778/ft2_4FGL_J1412.9+5018_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/850778/ltcube_697075201_697334401_4FGL_J1412.9+5018_daily_bin1766.fits outfile=/scratch/kocevski/850778/expmap_697075201_697334401_4FGL_J1412.9+5018_daily_bin1766.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/850778/ltcube_697075201_697334401_4FGL_J1412.9+5018_daily_bin1766.fits
.....................!
real 193.15
user 186.53
sys 5.34

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/850778/ft1_filtered_4FGL_J1412.9+5018_daily_bin1766.fits scfile=/scratch/kocevski/850778/ft2_4FGL_J1412.9+5018_daily_bin1766.fits outfile=/scratch/kocevski/850778/cmap_697075201_697334401_4FGL_J1412.9+5018_daily_bin1766.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/850778/ft1_filtered_4FGL_J1412.9+5018_daily_bin1766.fits scfile=/scratch/kocevski/850778/ft2_4FGL_J1412.9+5018_daily_bin1766.fits outfile=/scratch/kocevski/850778/cmap_HighResolution_697075201_697334401_4FGL_J1412.9+5018_daily_bin1766.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5801       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.7708       1.0000          .0000       .10000E+07
     3 'Prefactor '    75.184       1.0000          .0000       .10000E+07
     4 'norm      '    .44409E-09   1.0000          .0000       .10000E+07
     5 'Prefactor '    .79296E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .26479E-07   1.0000          .0000       .10000E+07
     7 'norm      '    .91112E-05   1.0000          .0000       .10000E+07
     8 'norm      '    9.5687       1.0000          .0000       .10000E+07
     9 'Prefactor '    .27089E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .61422E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .26812E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .36438E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.1955       1.0000          .0000       .10000E+07
    14 'Prefactor '    .41869       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11481E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    10.317       1.0000          .0000       .10000E+07
    17 'Prefactor '    .61126E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .23824E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .40523E-07   1.0000          .0000       .10000E+07
    20 'norm      '    4.4031       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.8717       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.1596       1.0000          .0000       .10000E+07
    23 'Prefactor '    2.9903       1.0000          .0000       .10000E+07
    24 'norm      '    .58838E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    .96887       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89008       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=   6162.832     FROM MIGRAD    STATUS=CONVERGED    257 CALLS     2302 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6781        3.9831       -.72823E-07   -.54561E-03
   2  Prefactor     .15210E-05    3694.5       -.14395E-05** at limit **
   3  Prefactor     81.429        38.196       -.40222E-06   -.64608E-03
   4  norm           .0000        1.4067       -.28177E-07** at limit **
   5  Prefactor     .24980E-08    42.202       -.30255E-06** at limit **
   6  norm           .0000        .34616        .17054E-07** at limit **
   7  norm           .0000        2.4035        .10414E-07** at limit **
   8  norm          9.5329        8.9964        .48469E-07   -.39774E-03
   9  Prefactor     .54068E-07    16.460        .61468E-08** at limit **
  10  Prefactor     .24425E-08    48.335        .25532E-06** at limit **
  11  Prefactor      .0000        1.2542        .10531E-07** at limit **
  12  Prefactor     .11102E-09    34.156       -.19825E-06** at limit **
  13  Prefactor     5.1929        9.8449       -.42553E-07    .12972E-01
  14  Prefactor     .43506        3.4945        .52591E-08    .71545E-04
  15  Prefactor     .19595E-07    16.430        .95496E-08** at limit **
  16  Prefactor     10.169        16.332        .74591E-08    .56477E-03
  17  Prefactor     .16653E-08    16.022       -.10141E-07** at limit **
  18  Prefactor     .10547E-08    14.272        .28216E-09** at limit **
  19  Prefactor      .0000        3.0274       -.55922E-07** at limit **
  20  norm          4.4046        1.5962        .48483E-08    .14723E-02
  21  Prefactor     5.7997        8.3259        .55390E-07    .79528E-03
  22  Prefactor     1.1907        4.0700        .42255E-07    .15343E-03
  23  Prefactor     3.0006        6.3552        .20017E-07    .59658E-03
  24  norm           .0000        1.8788       -.14002E-07** at limit **
  25  Normalizat    .96756        .17891       -.63231E-06   -.62907E-04
  26  Prefactor     .89099        .20881        .23656E-06   -.26979E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.67807
  Prefactor  = 1.52095e-06
  Prefactor  = 81.4295
  norm       = 0
  Prefactor  = 2.498e-09
  norm       = 0
  norm       = 0
  norm       = 9.53291
  Prefactor  = 5.40679e-08
  Prefactor  = 2.44249e-09
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 5.19289
  Prefactor  = 0.435058
  Prefactor  = 1.95954e-08
  Prefactor  = 10.1689
  Prefactor  = 1.66533e-09
  Prefactor  = 1.05471e-09
  Prefactor  = 0
  norm       = 4.40457
  Prefactor  = 5.79973
  Prefactor  = 1.1907
  Prefactor  = 3.00062
  norm       = 0
  Normalizat = 0.967564
  Prefactor  = 0.89099
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.832     FROM HESSE     STATUS=OK           514 CALLS     2816 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6781        4.1323        .47011E-03   -1.5665    
   2  Prefactor     .15210E-05    124.10        .95123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     81.429        50.646        .11534E-03   -1.5527    
   4  norm           .0000        1.4062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .24980E-08    42.437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .34611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        2.4075        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.5329        9.0135        .32372E-03   -1.5646    
   9  Prefactor     .54068E-07    19.332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .24425E-08    48.386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        1.2574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11102E-09    34.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1929        20.642        .44079E-03   -1.5662    
  14  Prefactor     .43506        2.0916        .33566E-02   -1.5695    
  15  Prefactor     .19595E-07    17.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.169        16.705        .31171E-03   -1.5644    
  17  Prefactor     .16653E-08    16.124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10547E-08    14.357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        3.0113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.4046        1.5982        .47971E-03   -1.5666    
  21  Prefactor     5.7997        8.4210        .41420E-03   -1.5660    
  22  Prefactor     1.1907        4.1151        .10701E-02   -1.5686    
  23  Prefactor     3.0006        6.4143        .58679E-03   -1.5673    
  24  norm           .0000        1.8804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .96756        .15272        .45776E-01   -.94125    
  26  Prefactor     .89099        .17640        .44878E-01   -.96457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32169e-08
Minuit parameter uncertainties:
  1  4.13231
  2  0.0274778
  3  50.6463
  4  4.95401e-06
  5  0.000653089
  6  6.94207e-07
  7  2.48826e-06
  8  9.01352
  9  0.00204515
  10  0.000688724
  11  3.56133e-06
  12  0.000131902
  13  20.642
  14  1.90785
  15  0.00116984
  16  16.7048
  17  0.000326091
  18  0.0002438
  19  1.26195e-05
  20  1.59817
  21  8.421
  22  4.11516
  23  6.41435
  24  2.98931e-06
  25  0.152793
  26  0.176517
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  2.442e-09  6.887e-04  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:  8.910e-01  1.765e-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:  9.676e-01  1.528e-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: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/850778/likelihoodResults_697075201_697334401_4FGL_J1412.9+5018_daily_bin1766.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) = 6162.84254254
delta logL = -0.0103527829524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6162.82885013
delta logL = 0.00333961913839

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6162.829     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      302 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6665        106.79        .25341E-04   -.30372E-03
   2  Index         1.9910        2.3254        .23390E-01   -.10282E-04
   3  Normalizat    .96813        .17219        .21027E-03   -.24731E-03
   4  Prefactor     .88908        .20928        .26283E-03   -.20542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.66652
  Index      = 1.99099
  Normalizat = 0.968126
  Prefactor  = 0.889076
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.829     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6665        101.21        .10137E-05   -1.5675    
   2  Index         1.9910        2.2753        .93560E-03   -.64575    
   3  Normalizat    .96813        .17232        .42055E-04   -.94106    
   4  Prefactor     .88908        .20935        .10513E-04   -.96524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06319e-10
Minuit parameter uncertainties:
  1  32.8558
  2  2.42088
  3  0.172423
  4  0.209535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/850778': 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) = 6162.8287534
delta logL = 0.00343635348509

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  2.667e+00  3.286e+01  0.000e+00  1.000e+06 ( 1.000e-13)
333        Index:  1.991e+00  2.421e+00  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:  8.891e-01  2.095e-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:  9.681e-01  1.724e-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/850778/cmap_HighResolution_697075201_697334401_4FGL_J1412.9+5018_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2023-02-06 01:09:47.108499', job_id='850778', GAL2='0.89', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1675674587.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.44e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1766' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:09:47 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 850778: <4FGL_J1412.9+5018_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin1766> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb  6 00:55:24 2023
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 00:56:13 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 00:56:13 2023
Terminated at Mon Feb  6 01:09:47 2023
Results reported at Mon Feb  6 01:09:47 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin1766 213.241 50.301 697075201 697334401 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 :                                   725.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            863 sec.

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

