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


Performing analysis on: 4FGL_J0204.8+1513_daily_bin1722
RA = 31.2182, Dec = 15.2326
tmin = 685670401, tmax = 685929601
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='229270', job_status='RUN', time_executed='2022-09-27 00:08:38.659206', time_epoch_executed='1664262518.66' WHERE source_name='4FGL J0204.8+1513' and cadence='daily' and bin_id='1722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229270/ft1_4FGL_J0204.8+1513_daily_bin1722.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229270/ft2_4FGL_J0204.8+1513_daily_bin1722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229270/ft1_4FGL_J0204.8+1513_daily_bin1722.fits outfile=/scratch/kocevski/229270/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1722.fits ra=31.2182 dec=15.2326 rad=12.0 tmin=685670401.0 tmax=685929601.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.67
user 3.42
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/229270/ft2_4FGL_J0204.8+1513_daily_bin1722.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229270/ft2_4FGL_J0204.8+1513_daily_bin1722.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/229270/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1722.fits evtable="EVENTS" outfile="/scratch/kocevski/229270/ft1_filtered_4FGL_J0204.8+1513_daily_bin1722.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 687

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229270/ft1_filtered_4FGL_J0204.8+1513_daily_bin1722.fits" evtable="EVENTS" scfile=/scratch/kocevski/229270/ft2_4FGL_J0204.8+1513_daily_bin1722.fits sctable="SC_DATA" outfile=/scratch/kocevski/229270/ltcube_685670401_685929601_4FGL_J0204.8+1513_daily_bin1722.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/229270/ft2_4FGL_J0204.8+1513_daily_bin1722.fits
.....................!
real 13.68
user 13.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229270/ft1_filtered_4FGL_J0204.8+1513_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229270/ft2_4FGL_J0204.8+1513_daily_bin1722.fits sctable="SC_DATA" expcube=/scratch/kocevski/229270/ltcube_685670401_685929601_4FGL_J0204.8+1513_daily_bin1722.fits outfile=/scratch/kocevski/229270/expmap_685670401_685929601_4FGL_J0204.8+1513_daily_bin1722.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/229270/ltcube_685670401_685929601_4FGL_J0204.8+1513_daily_bin1722.fits
.....................!
real 191.65
user 185.79
sys 5.29

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

Setting source of interest to:
4FGL J0204.8+1513 @ 31.2182 15.2326

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/229270/ft1_filtered_4FGL_J0204.8+1513_daily_bin1722.fits scfile=/scratch/kocevski/229270/ft2_4FGL_J0204.8+1513_daily_bin1722.fits outfile=/scratch/kocevski/229270/cmap_685670401_685929601_4FGL_J0204.8+1513_daily_bin1722.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=31.2182 yref=15.2326 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229270/ft1_filtered_4FGL_J0204.8+1513_daily_bin1722.fits scfile=/scratch/kocevski/229270/ft2_4FGL_J0204.8+1513_daily_bin1722.fits outfile=/scratch/kocevski/229270/cmap_HighResolution_685670401_685929601_4FGL_J0204.8+1513_daily_bin1722.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=31.2182 yref=15.2326 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/229270/ft1_filtered_4FGL_J0204.8+1513_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229270/ft2_4FGL_J0204.8+1513_daily_bin1722.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/229270/Model_4FGL_J0204.8+1513_daily_bin1722.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/229270/ft1_filtered_4FGL_J0204.8+1513_daily_bin1722.fits.....................!
real 88.03
user 86.64
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/229270/ft1_filtered_4FGL_J0204.8+1513_daily_bin1722.fits', '/scratch/kocevski/229270/ft2_4FGL_J0204.8+1513_daily_bin1722.fits', expMap='/scratch/kocevski/229270/expmap_685670401_685929601_4FGL_J0204.8+1513_daily_bin1722.fits', expCube='/scratch/kocevski/229270/ltcube_685670401_685929601_4FGL_J0204.8+1513_daily_bin1722.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/229270/Model_4FGL_J0204.8+1513_daily_bin1722.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0204.8+1513'

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  1.139e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
232        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/229270/ft1_filtered_4FGL_J0204.8+1513_daily_bin1722.fits
Spacecraft file(s): /scratch/kocevski/229270/ft2_4FGL_J0204.8+1513_daily_bin1722.fits
Exposure map: /scratch/kocevski/229270/expmap_685670401_685929601_4FGL_J0204.8+1513_daily_bin1722.fits
Exposure cube: /scratch/kocevski/229270/ltcube_685670401_685929601_4FGL_J0204.8+1513_daily_bin1722.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/229270/Model_4FGL_J0204.8+1513_daily_bin1722.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) = 7626.48769179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20032E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    14.627       1.0000          .0000       .10000E+07
     3 'norm      '    .26090E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    .56152E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.5509       1.0000          .0000       .10000E+07
     6 'norm      '    1.9031       1.0000          .0000       .10000E+07
     7 'Prefactor '    .81929E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.0840       1.0000          .0000       .10000E+07
     9 'norm      '    .24088E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.410       1.0000          .0000       .10000E+07
    11 'Prefactor '    57.320       1.0000          .0000       .10000E+07
    12 'Prefactor '    13.974       1.0000          .0000       .10000E+07
    13 'Prefactor '    .47051E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.1312       1.0000          .0000       .10000E+07
    15 'Prefactor '    .14452E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .20030E-02   1.0000          .0000       .10000E+07
    17 'norm      '    1.1178       1.0000          .0000       .10000E+07
    18 'Prefactor '    .93192E-02   1.0000          .0000       .10000E+07
    19 'norm      '    5.5737       1.0000          .0000       .10000E+07
    20 'Prefactor '    11.829       1.0000          .0000       .10000E+07
    21 'Prefactor '    121.06       1.0000          .0000       .10000E+07
    22 'Prefactor '    23.569       1.0000          .0000       .10000E+07
    23 'Normalizat'    .44019       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3166       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7626.337     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     2039 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28466E-05    29.701       -.43633E-05** at limit **
   2  Prefactor     14.591        11.192       -.16342E-06    .16467E-03
   3  norm          .22204E-09    7.0888       -.79770E-07** at limit **
   4  Prefactor     .11657E-08    9.8855       -.56790E-07** at limit **
   5  Prefactor     7.5539        3.8273       -.21234E-06   -.10239E-02
   6  norm          1.9121        4.1768        .48068E-07   -.84252E-03
   7  Prefactor      .0000        2.0357       -.63387E-07** at limit **
   8  Prefactor     4.0145        3.2065        .24916E-06   -.80188E-02
   9  norm          .16653E-08    83.984        .48083E-05** at limit **
  10  Prefactor     8.9822        6.6037        .26148E-06   -.58108E-02
  11  Prefactor     58.041        29.331        .73873E-05   -.92591E-01
  12  Prefactor     26.905        91.923        .68077E-05   -.40275E-03
  13  Prefactor     .13343E-05    27.527       -.55579E-05** at limit **
  14  Prefactor     4.0451        8.9743        .68398E-06    .28332E-02
  15  Prefactor     .30531E-08    10.103       -.12430E-06** at limit **
  16  Prefactor     .11102E-09    7.3059       -.27627E-06** at limit **
  17  norm          1.1155        .56854       -.62918E-07    .10628E-01
  18  Prefactor     .58607E-05    19.516        .13399E-04** at limit **
  19  norm          5.4945        10.090        .57432E-06   -.20553E-02
  20  Prefactor     11.898        3.3403        .10826E-06    .35195E-01
  21  Prefactor     122.92        49.924       -.30399E-05    .28215E-01
  22  Prefactor     23.458        18.465        .22242E-05    .17487E-01
  23  Normalizat    .44082        .23549        .24263E-05   -.52023E-04
  24  Prefactor     1.3143        .13451       -.89601E-05   -.41963E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.84661e-06
  Prefactor  = 14.5906
  norm       = 2.22045e-10
  Prefactor  = 1.16573e-09
  Prefactor  = 7.55395
  norm       = 1.91208
  Prefactor  = 0
  Prefactor  = 4.01455
  norm       = 1.66533e-09
  Prefactor  = 8.98221
  Prefactor  = 58.0414
  Prefactor  = 26.9049
  Prefactor  = 1.33427e-06
  Prefactor  = 4.04509
  Prefactor  = 3.05311e-09
  Prefactor  = 1.11022e-10
  norm       = 1.11549
  Prefactor  = 5.8607e-06
  norm       = 5.49451
  Prefactor  = 11.898
  Prefactor  = 122.925
  Prefactor  = 23.4578
  Normalizat = 0.440825
  Prefactor  = 1.31434
 **********
 **   18 **HESSE 
 **********

 FCN=   7626.337     FROM HESSE     STATUS=OK           449 CALLS     2488 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28466E-05    35.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.591        11.260        .26163E-03   -1.5632    
   3  norm          .22204E-09    7.0825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11657E-08    9.8155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.5539        3.8443        .36472E-03   -1.5653    
   6  norm          1.9121        4.2143        .75352E-03   -1.5680    
   7  Prefactor      .0000        2.0341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0145        3.4024        .49864E-03   -1.5668    
   9  norm          .16653E-08    83.049        .16781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.9822        28.738        .31029E-03   -1.5648    
  11  Prefactor     58.041        37.218        .13209E-03   -1.5556    
  12  Prefactor     26.905        92.110        .26769E-03   -1.5604    
  13  Prefactor     .13343E-05    29.848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0451        8.9892        .49570E-03   -1.5668    
  15  Prefactor     .30531E-08    10.080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    7.3034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1155        .60789        .10183E-02   -1.5687    
  18  Prefactor     .58607E-05    31.406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.4945        10.104        .42530E-03   -1.5661    
  20  Prefactor     11.898        15.349        .29102E-03   -1.5639    
  21  Prefactor     122.92        50.858        .90893E-04   -1.5486    
  22  Prefactor     23.458        18.593        .20603E-03   -1.5611    
  23  Normalizat    .44082        .24024        .11291       -1.1524    
  24  Prefactor     1.3143        .13262        .32327E-01   -.82882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67817e-07
Minuit parameter uncertainties:
  1  0.019967
  2  11.2603
  3  8.18732e-05
  4  0.000214873
  5  3.84435
  6  4.2143
  7  1.1971e-05
  8  3.4024
  9  0.000745903
  10  28.7387
  11  37.2179
  12  92.1145
  13  0.0126213
  14  8.98925
  15  0.000350849
  16  6.14821e-05
  17  0.607889
  18  0.0271338
  19  10.1044
  20  15.3488
  21  50.8583
  22  18.5927
  23  0.240808
  24  0.132653
Done.

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

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  7.554e+00  3.844e+00  0.000e+00  1.000e+06 ( 1.000e-12)
232        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.314e+00  1.327e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  4.408e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.97
Ra Dec: 31.218 15.233
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 5.75e-08
Energy Flux (Fixed Index): 4.19e-05 +/- 2.13e-05

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) = 7626.28768873
delta logL = 0.0495049221481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7626.28339675
delta logL = 0.0537969010729

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7626.283     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4935        49.585        .39370E-03    .37079E-02
   2  Index         2.4748        2.7945        .14139        .15990E-03
   3  Normalizat    .42372        .94903E-01    .11505        .72103E-04
   4  Prefactor     1.3212        .47678E-01    .32244E-01   -.52478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.49351
  Index      = 2.47484
  Normalizat = 0.423715
  Prefactor  = 1.3212
 **********
 **   18 **HESSE 
 **********

 FCN=   7626.283     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4935        5.3978        .10308E-04   -1.5657    
   2  Index         2.4748        .56571        .51359E-02   -.52942    
   3  Normalizat    .42372        .23497        .51004E-03   -1.1609    
   4  Prefactor     1.3212        .13420        .17445E-03   -.82679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28762e-11
Minuit parameter uncertainties:
  1  5.39781
  2  0.567338
  3  0.235516
  4  0.134233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229270': 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) = 7626.28339036
delta logL = 0.0538032895574

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  6.494e+00  5.398e+00  0.000e+00  1.000e+06 ( 1.000e-12)
232        Index:  2.475e+00  5.673e-01  0.000e+00  1.000e+01 (-1.000e+00)
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.321e+00  1.342e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  4.237e-01  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.09
Ra Dec: 31.218 15.233
Photon Index (Free Index): 2.47 +/- 0.57
Photon Flux (Free Index): 1.25e-07 +/- 6.86e-08
Energy Flux (Free Index): 3.73e-05 +/- 2.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/229270/cmap_HighResolution_685670401_685929601_4FGL_J0204.8+1513_daily_bin1722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='3.73e-05', photon_flux_error='5.75e-08', dlogl='5.38e-02', energy_flux='4.19e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2022-09-27 00:19:09.645388', photon_index_error2='0.57', photon_index2='2.47', ts='5.97', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='0.44', time_epoch_completed='1664263149.65', return_code='0', job_id='229270', GAL2='1.32', EG2='0.42', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='6.86e-08', ts2='6.09', photon_index='2.31' WHERE bin_id='1722' AND source_name='4FGL J0204.8+1513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 27 00:19:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 229270: <4FGL_J0204.8+1513_daily_bin1722> in cluster <slac> Done

Job <4FGL_J0204.8+1513_daily_bin1722> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 27 00:04:57 2022
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 00:05:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 00:05:09 2022
Terminated at Tue Sep 27 00:19:10 2022
Results reported at Tue Sep 27 00:19:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0204.8+1513_daily_bin1722 31.2182 15.2326 685670401 685929601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0204.8+1513 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   633.00 sec.
    Max Memory :                                 1092 MB
    Average Memory :                             299.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            853 sec.

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

