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


Performing analysis on: 4FGL_J0105.1+3929_daily_bin1780
RA = 16.2913, Dec = 39.4963
tmin = 700704001, tmax = 700963201
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='49057', job_status='RUN', time_executed='2023-03-20 00:05:37.154697', time_epoch_executed='1679295937.15' WHERE source_name='4FGL J0105.1+3929' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49057

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49057/ft1_4FGL_J0105.1+3929_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49057/ft2_4FGL_J0105.1+3929_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49057/ft1_4FGL_J0105.1+3929_daily_bin1780.fits outfile=/scratch/kocevski/49057/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin1780.fits ra=16.2913 dec=39.4963 rad=12.0 tmin=700704001.0 tmax=700963201.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.19
user 3.87
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/49057/ft2_4FGL_J0105.1+3929_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49057/ft2_4FGL_J0105.1+3929_daily_bin1780.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/49057/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/49057/ft1_filtered_4FGL_J0105.1+3929_daily_bin1780.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.58
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 546

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49057/ft1_filtered_4FGL_J0105.1+3929_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/49057/ft2_4FGL_J0105.1+3929_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/49057/ltcube_700704001_700963201_4FGL_J0105.1+3929_daily_bin1780.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/49057/ft2_4FGL_J0105.1+3929_daily_bin1780.fits
.....................!
real 11.90
user 11.54
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49057/ft1_filtered_4FGL_J0105.1+3929_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/49057/ft2_4FGL_J0105.1+3929_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/49057/ltcube_700704001_700963201_4FGL_J0105.1+3929_daily_bin1780.fits outfile=/scratch/kocevski/49057/expmap_700704001_700963201_4FGL_J0105.1+3929_daily_bin1780.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/49057/ltcube_700704001_700963201_4FGL_J0105.1+3929_daily_bin1780.fits
.....................!
real 190.98
user 185.66
sys 4.95

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

Setting source of interest to:
4FGL J0105.1+3929 @ 16.2913 39.4963

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/49057/ft1_filtered_4FGL_J0105.1+3929_daily_bin1780.fits scfile=/scratch/kocevski/49057/ft2_4FGL_J0105.1+3929_daily_bin1780.fits outfile=/scratch/kocevski/49057/cmap_700704001_700963201_4FGL_J0105.1+3929_daily_bin1780.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=16.2913 yref=39.4963 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.74
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49057/ft1_filtered_4FGL_J0105.1+3929_daily_bin1780.fits scfile=/scratch/kocevski/49057/ft2_4FGL_J0105.1+3929_daily_bin1780.fits outfile=/scratch/kocevski/49057/cmap_HighResolution_700704001_700963201_4FGL_J0105.1+3929_daily_bin1780.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=16.2913 yref=39.4963 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/49057/ft1_filtered_4FGL_J0105.1+3929_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/49057/ft2_4FGL_J0105.1+3929_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/49057/Model_4FGL_J0105.1+3929_daily_bin1780.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/49057/ft1_filtered_4FGL_J0105.1+3929_daily_bin1780.fits.....................!
real 65.81
user 63.03
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49057/ft1_filtered_4FGL_J0105.1+3929_daily_bin1780.fits', '/scratch/kocevski/49057/ft2_4FGL_J0105.1+3929_daily_bin1780.fits', expMap='/scratch/kocevski/49057/expmap_700704001_700963201_4FGL_J0105.1+3929_daily_bin1780.fits', expCube='/scratch/kocevski/49057/ltcube_700704001_700963201_4FGL_J0105.1+3929_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49057/Model_4FGL_J0105.1+3929_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0105.1+3929'

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  5.058e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/49057/ft1_filtered_4FGL_J0105.1+3929_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/49057/ft2_4FGL_J0105.1+3929_daily_bin1780.fits
Exposure map: /scratch/kocevski/49057/expmap_700704001_700963201_4FGL_J0105.1+3929_daily_bin1780.fits
Exposure cube: /scratch/kocevski/49057/ltcube_700704001_700963201_4FGL_J0105.1+3929_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49057/Model_4FGL_J0105.1+3929_daily_bin1780.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) = 5667.05025248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40676E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .90047E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .94236E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    15.703       1.0000          .0000       .10000E+07
     5 'Prefactor '    26.608       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10089E-01   1.0000          .0000       .10000E+07
     7 'norm      '    2.6012       1.0000          .0000       .10000E+07
     8 'Prefactor '    .96657E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24056E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7202       1.0000          .0000       .10000E+07
    11 'Prefactor '    18.470       1.0000          .0000       .10000E+07
    12 'norm      '    20.540       1.0000          .0000       .10000E+07
    13 'norm      '    .47359E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    40.045       1.0000          .0000       .10000E+07
    15 'norm      '    .17236E-06   1.0000          .0000       .10000E+07
    16 'norm      '    1.0479       1.0000          .0000       .10000E+07
    17 'Prefactor '    14.226       1.0000          .0000       .10000E+07
    18 'Prefactor '    .66397E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    37.644       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.3149       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .76364       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5667.041     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1641 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    7.3537        .23696E-07** at limit **
   2  Prefactor      .0000        3.8955       -.17129E-06** at limit **
   3  Prefactor     .55511E-10    11.074        .17055E-06** at limit **
   4  Prefactor     15.951        28.755        .14283E-06    .45150E-03
   5  Prefactor     26.715        6.5169        .48908E-07    .14109E-01
   6  Prefactor      .0000        16.900        .28533E-07** at limit **
   7  norm          2.6018        2.5976       -.61188E-07    .64344E-03
   8  Prefactor      .0000        2.1620        .17252E-06** at limit **
   9  Prefactor      .0000        5.1620        .81013E-08** at limit **
  10  Prefactor     2.7200        13.758        .15871E-06    .13100E-02
  11  Prefactor     18.589        1.9609        .10753E-07    .55684E-02
  12  norm          20.541        3.3139        .27647E-07   -.15894E-02
  13  norm           .0000        2.5923       -.51376E-07** at limit **
  14  Prefactor     40.258        15.816        .99215E-07    .21976E-03
  15  norm           .0000        1.0957       -.83895E-07** at limit **
  16  norm          1.0481        .83990        .48573E-07   -.22412E-02
  17  Prefactor     14.197        2.6755        .72591E-08   -.21620E-01
  18  Prefactor     .27756E-09    5.5972       -.10432E-06** at limit **
  19  Prefactor     37.136        41.138       -.28091E-06    .28635E-02
  20  Normalizat    1.3148        .28245        .13649E-05   -.27796E-04
  21  Prefactor     .76355        .14490       -.53355E-06   -.32824E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 15.9505
  Prefactor  = 26.7151
  Prefactor  = 0
  norm       = 2.60176
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.71996
  Prefactor  = 18.5893
  norm       = 20.5412
  norm       = 0
  Prefactor  = 40.2581
  norm       = 0
  norm       = 1.04805
  Prefactor  = 14.1974
  Prefactor  = 2.77556e-10
  Prefactor  = 37.1358
  Normalizat = 1.31482
  Prefactor  = 0.76355
 **********
 **   18 **HESSE 
 **********

 FCN=   5667.041     FROM HESSE     STATUS=OK           359 CALLS     2000 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    7.3670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        3.8926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    10.903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.951        28.908        .25248E-03   -1.5628    
   5  Prefactor     26.715        42.971        .19390E-03   -1.5605    
   6  Prefactor      .0000        16.900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6018        2.6049        .63230E-03   -1.5676    
   8  Prefactor      .0000        2.1632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.1687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7200        14.842        .61722E-03   -1.5675    
  11  Prefactor     18.589        21.817        .23277E-03   -1.5622    
  12  norm          20.541        3.3106        .22072E-03   -1.5617    
  13  norm           .0000        2.5800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.258        44.998        .15804E-03   -1.5581    
  15  norm           .0000        1.0886        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0481        .86631        .12121E-02   -1.5687    
  17  Prefactor     14.197        13.423        .26530E-03   -1.5633    
  18  Prefactor     .27756E-09    5.5168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.136        44.825        .16300E-03   -1.5586    
  20  Normalizat    1.3148        .24928        .69149E-01   -.83125    
  21  Prefactor     .76355        .12395        .43242E-01   -1.0109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07274e-08
Minuit parameter uncertainties:
  1  6.78006e-05
  2  1.10009e-05
  3  4.56593e-05
  4  28.9083
  5  42.9715
  6  4.82733e-06
  7  2.60491
  8  5.73678e-06
  9  2.08034e-05
  10  12.7075
  11  21.8172
  12  3.31061
  13  3.34093e-06
  14  44.9983
  15  2.2073e-06
  16  0.866313
  17  13.4226
  18  8.02153e-05
  19  44.8253
  20  0.249511
  21  0.123999
Done.

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

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.859e+01  2.182e+01  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  7.636e-01  1.240e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.315e+00  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 16.291 39.496
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 4.05e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.52e-05

TS (Fixed Index): 1.17
Ra Dec: 16.291 39.496
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49057/likelihoodResults_700704001_700963201_4FGL_J0105.1+3929_daily_bin1780.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) = 5666.95043249
delta logL = 0.0910506826767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5666.94630033
delta logL = 0.0951828377038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.009       1.0000          .0000       .10000E+07
     2 'Index     '    1.9689       1.0000          .0000       10.000    
     3 'Normalizat'    1.3247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75871       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   5666.946     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      290 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.012        31.902        .76981E-05   -.73716E-02
   2  Index         1.9688        .69410        .96378E-02   -.33234E-03
   3  Normalizat    1.3248        .27649        .30493E-03    .17542E-03
   4  Prefactor     .75874        .14278        .20122E-03    .33201E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0123
  Index      = 1.96883
  Normalizat = 1.32476
  Prefactor  = 0.758738
 **********
 **   18 **HESSE 
 **********

 FCN=   5666.946     FROM HESSE     STATUS=OK            23 CALLS      313 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.012        31.199        .15396E-05   -1.5604    
   2  Index         1.9688        .67897        .38551E-03   -.65132    
   3  Normalizat    1.3248        .27663        .60985E-04   -.82830    
   4  Prefactor     .75874        .14285        .40245E-04   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65033e-09
Minuit parameter uncertainties:
  1  31.1988
  2  0.682314
  3  0.27694
  4  0.142917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49057': 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) = 5666.94630012
delta logL = 0.0951830464928

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  2.701e+01  3.120e+01  0.000e+00  1.000e+06 ( 1.000e-13)
195        Index:  1.969e+00  6.823e-01  0.000e+00  1.000e+01 (-1.000e+00)
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  7.587e-01  1.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.325e+00  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 16.291 39.496
Photon Index (Free Index): 1.97 +/- 0.68
Photon Flux (Free Index): 3.03e-08 +/- 3.61e-08
Energy Flux (Free Index): 2.27e-05 +/- 3.71e-05

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/49057/cmap_HighResolution_700704001_700963201_4FGL_J0105.1+3929_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='2.27e-05', photon_flux_error='4.05e-08', dlogl='9.52e-02', energy_flux='1.30e-05', photon_flux2='3.03e-08', job_status='DONE', time_completed='2023-03-20 00:14:49.840371', photon_index_error2='0.68', photon_index2='1.97', ts='1.17', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='3.71e-05', EG='1.31', time_epoch_completed='1679296489.84', return_code='0', job_id='49057', GAL2='0.76', EG2='1.32', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='3.61e-08', ts2='1.36', photon_index='2.30' WHERE bin_id='1780' AND source_name='4FGL J0105.1+3929' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:14:49 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0284>
Subject: Job 49057: <4FGL_J0105.1+3929_daily_bin1780> in cluster <slac> Done

Job <4FGL_J0105.1+3929_daily_bin1780> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 20 00:04:55 2023
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:04:56 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:04:56 2023
Terminated at Mon Mar 20 00:14:50 2023
Results reported at Mon Mar 20 00:14:50 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0105.1+3929_daily_bin1780 16.2913 39.4963 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0105.1+3929 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   553.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            595 sec.

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

