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


Performing analysis on: 4FGL_J0204.8+1513_daily_bin1740
RA = 31.2182, Dec = 15.2326
tmin = 690336001, tmax = 690595201
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='822850', job_status='RUN', time_executed='2022-11-20 00:11:17.472498', time_epoch_executed='1668931877.47' WHERE source_name='4FGL J0204.8+1513' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822850

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822850/ft1_4FGL_J0204.8+1513_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822850/ft2_4FGL_J0204.8+1513_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822850/ft1_4FGL_J0204.8+1513_daily_bin1740.fits outfile=/scratch/kocevski/822850/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1740.fits ra=31.2182 dec=15.2326 rad=12.0 tmin=690336001.0 tmax=690595201.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.01
user 2.76
sys 0.17

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

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

Number of photons that the gtmktime cut: 193

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822850/ft1_filtered_4FGL_J0204.8+1513_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/822850/ft2_4FGL_J0204.8+1513_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/822850/ltcube_690336001_690595201_4FGL_J0204.8+1513_daily_bin1740.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/822850/ft2_4FGL_J0204.8+1513_daily_bin1740.fits
.....................!
real 13.56
user 13.07
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822850/ft1_filtered_4FGL_J0204.8+1513_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822850/ft2_4FGL_J0204.8+1513_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/822850/ltcube_690336001_690595201_4FGL_J0204.8+1513_daily_bin1740.fits outfile=/scratch/kocevski/822850/expmap_690336001_690595201_4FGL_J0204.8+1513_daily_bin1740.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/822850/ltcube_690336001_690595201_4FGL_J0204.8+1513_daily_bin1740.fits
.....................!
real 190.98
user 185.42
sys 4.85

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/822850/ft1_filtered_4FGL_J0204.8+1513_daily_bin1740.fits scfile=/scratch/kocevski/822850/ft2_4FGL_J0204.8+1513_daily_bin1740.fits outfile=/scratch/kocevski/822850/cmap_690336001_690595201_4FGL_J0204.8+1513_daily_bin1740.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822850/ft1_filtered_4FGL_J0204.8+1513_daily_bin1740.fits scfile=/scratch/kocevski/822850/ft2_4FGL_J0204.8+1513_daily_bin1740.fits outfile=/scratch/kocevski/822850/cmap_HighResolution_690336001_690595201_4FGL_J0204.8+1513_daily_bin1740.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/822850/ft1_filtered_4FGL_J0204.8+1513_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822850/ft2_4FGL_J0204.8+1513_daily_bin1740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/822850/Model_4FGL_J0204.8+1513_daily_bin1740.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/822850/ft1_filtered_4FGL_J0204.8+1513_daily_bin1740.fits......................!
real 37.51
user 35.55
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822850/ft1_filtered_4FGL_J0204.8+1513_daily_bin1740.fits', '/scratch/kocevski/822850/ft2_4FGL_J0204.8+1513_daily_bin1740.fits', expMap='/scratch/kocevski/822850/expmap_690336001_690595201_4FGL_J0204.8+1513_daily_bin1740.fits', expCube='/scratch/kocevski/822850/ltcube_690336001_690595201_4FGL_J0204.8+1513_daily_bin1740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822850/Model_4FGL_J0204.8+1513_daily_bin1740.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/822850/ft1_filtered_4FGL_J0204.8+1513_daily_bin1740.fits
Spacecraft file(s): /scratch/kocevski/822850/ft2_4FGL_J0204.8+1513_daily_bin1740.fits
Exposure map: /scratch/kocevski/822850/expmap_690336001_690595201_4FGL_J0204.8+1513_daily_bin1740.fits
Exposure cube: /scratch/kocevski/822850/ltcube_690336001_690595201_4FGL_J0204.8+1513_daily_bin1740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822850/Model_4FGL_J0204.8+1513_daily_bin1740.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) = 2408.39796528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1864       1.0000          .0000       .10000E+07
     2 'Prefactor '    56.233       1.0000          .0000       .10000E+07
     3 'norm      '    .62968E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.9611       1.0000          .0000       .10000E+07
     5 'Prefactor '    .25717E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .60051E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .56454E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    7.7331       1.0000          .0000       .10000E+07
     9 'norm      '    1283.4       1.0000          .0000       .10000E+07
    10 'Prefactor '    .34451E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    133.17       1.0000          .0000       .10000E+07
    12 'Prefactor '    166.32       1.0000          .0000       .10000E+07
    13 'Prefactor '    53.445       1.0000          .0000       .10000E+07
    14 'Prefactor '    .80724E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .38237E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21908       1.0000          .0000       .10000E+07
    17 'norm      '    .36330E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .48342       1.0000          .0000       .10000E+07
    19 'norm      '    .48942E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .69374E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .67718E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .16874E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    .56591       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1478       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=   2407.992     FROM MIGRAD    STATUS=CONVERGED    241 CALLS     2042 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.450        65.686       -.14453E-08    .27921E-01
   2  Prefactor     56.958        36.375        .14248E-09    .21835E-01
   3  norm          .46074E-08    24.379        .73977E-09** at limit **
   4  Prefactor     7.0697        13.636        .83114E-09   -.40071E-02
   5  Prefactor     .16653E-09    4.1419       -.56352E-09** at limit **
   6  norm           .0000        3.3991       -.79610E-09** at limit **
   7  Prefactor     .83267E-09    27.659        .11856E-08** at limit **
   8  Prefactor     7.7760        5.4259       -.19657E-09   -.61402E-02
   9  norm          1289.9        102.70        .15572E-08   -1.6739    
  10  Prefactor     .28344E-05    45.605        .59698E-08** at limit **
  11  Prefactor     104.43        59.323       -.91817E-09   -.12136    
  12  Prefactor     166.57        57.457        .23442E-08   -.35299    
  13  Prefactor     143.94        260.51        .70025E-08   -.16558E-02
  14  Prefactor     .61062E-09    17.996       -.38266E-09** at limit **
  15  Prefactor     .47240E-07    31.426       -.91983E-09** at limit **
  16  Prefactor     .18319E-08    99.410        .48169E-09** at limit **
  17  norm           .0000        7.2518        .76475E-09** at limit **
  18  Prefactor     .59208E-06    155.05        .22740E-08** at limit **
  19  norm          .27200E-08    23.714        .18018E-08** at limit **
  20  Prefactor     .11990E-07    52.263       -.19266E-08** at limit **
  21  Prefactor     .32175E-04    201.38       -.37230E-09** at limit **
  22  Prefactor     .26024E-04    65.699        .30251E-08** at limit **
  23  Normalizat    .57902        .37434        .48296E-08   -.26529E-03
  24  Prefactor     1.1345        .23696        .52005E-08   -.14779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4505
  Prefactor  = 56.9582
  norm       = 4.60743e-09
  Prefactor  = 7.06971
  Prefactor  = 1.66533e-10
  norm       = 0
  Prefactor  = 8.32667e-10
  Prefactor  = 7.776
  norm       = 1289.91
  Prefactor  = 2.8344e-06
  Prefactor  = 104.428
  Prefactor  = 166.571
  Prefactor  = 143.939
  Prefactor  = 6.10623e-10
  Prefactor  = 4.724e-08
  Prefactor  = 1.83187e-09
  norm       = 0
  Prefactor  = 5.92082e-07
  norm       = 2.72005e-09
  Prefactor  = 1.19904e-08
  Prefactor  = 3.21752e-05
  Prefactor  = 2.60236e-05
  Normalizat = 0.579019
  Prefactor  = 1.13451
 **********
 **   18 **HESSE 
 **********

 FCN=   2407.992     FROM HESSE     STATUS=OK           439 CALLS     2481 TOTAL
                     EDM=   .11E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.450        70.179        .35016E-03   -1.5632    
   2  Prefactor     56.958        36.511        .13336E-03   -1.5557    
   3  norm          .46074E-08    24.328        .15057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0697        13.628        .38001E-03   -1.5655    
   5  Prefactor     .16653E-09    4.2227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        3.4320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .83267E-09    27.724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7760        5.4559        .36036E-03   -1.5652    
   9  norm          1289.9        708.24        .27932E-04   -1.4990    
  10  Prefactor     .28344E-05    103.48        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     104.43        165.54        .86661E-04   -1.5504    
  12  Prefactor     166.57        178.97        .77546E-04   -1.5450    
  13  Prefactor     143.94        273.83        .13680E-03   -1.5468    
  14  Prefactor     .61062E-09    18.152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .47240E-07    31.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .18319E-08    98.529        .11446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        2.6038        .28472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .59208E-06    155.61        .80395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .27200E-08    23.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11990E-07    52.203        .14839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .32175E-04    202.19        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .26024E-04    95.935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .57902        .34372        .92960E-01   -1.0888    
  24  Prefactor     1.1345        .21875        .36001E-01   -.88371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00112311
Minuit parameter uncertainties:
  1  63.6918
  2  36.5115
  3  0.000670092
  4  13.6279
  5  5.52698e-05
  6  5.27179e-07
  7  0.000308581
  8  5.4559
  9  708.289
  10  0.034253
  11  165.549
  12  178.971
  13  273.849
  14  0.000212111
  15  0.00243697
  16  0.000847895
  17  1.67639e-05
  18  0.0191982
  19  0.000508271
  20  0.00158117
  21  0.161318
  22  0.0999329
  23  0.344997
  24  0.218919
Done.

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

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  1.665e-10  5.527e-05  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.135e+00  2.189e-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:  5.790e-01  3.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 31.218 15.233
Photon Flux Upper Limit: 2.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/822850/likelihoodResults_690336001_690595201_4FGL_J0204.8+1513_daily_bin1740.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) = 2407.99529255
delta logL = -0.0028377344147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2407.99246178
delta logL = -6.96745382811e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10548E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.3856       1.0000          .0000       10.000    
     3 'Normalizat'    .57840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1345       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2407.992     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      235 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.9459        .42118E-03** at limit **
   2  Index         3.4798        1.4650       -.16938E-04     .0000    
   3  Normalizat    .57903        .91533       -.21771E-05   -.38016E-04
   4  Prefactor     1.1345        1.1291        .88913E-05   -.10695E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.4798
  Normalizat = 0.579032
  Prefactor  = 1.1345
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2407.992     FROM HESSE     STATUS=FAILED         9 CALLS      244 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.9459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3479        2.2056       -.16938E-04   -.30893    
   3  Normalizat    .57903        .91533       -.21771E-05   -1.0888    
   4  Prefactor     1.1345        1.1291        .88913E-05   -.88371    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.66309e-11
Minuit parameter uncertainties:
  1  1.19166e-05
  2  1.48917
  3  0.941025
  4  1.15447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822850': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 2407.99245481
delta logL = 5.92081050854e-10

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  0.000e+00  1.192e-05  0.000e+00  1.000e+06 ( 1.000e-12)
232        Index:  3.480e+00  1.489e+00  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.135e+00  1.154e+00  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:  5.790e-01  9.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 31.218 15.233

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/822850/cmap_HighResolution_690336001_690595201_4FGL_J0204.8+1513_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-02', job_status='DONE', photon_flux_upper_limit='2.26e-07', time_completed='2022-11-20 00:18:16.592727', job_id='822850', GAL2='1.13', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1668932296.59', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='5.92e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1740' AND source_name='4FGL J0204.8+1513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:18:16 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 822767: <4FGL_J0204.8+1513_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0204.8+1513_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:11 2022
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:08:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:08:30 2022
Terminated at Sun Nov 20 00:16:22 2022
Results reported at Sun Nov 20 00:16:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0204.8+1513_daily_bin1740 31.2182 15.2326 690336001 690595201 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 :                                   426.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             283.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   472 sec.
    Turnaround time :                            671 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 822850: <4FGL_J0204.8+1513_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0204.8+1513_daily_bin1740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:17 2022
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:09:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:09:32 2022
Terminated at Sun Nov 20 00:18:17 2022
Results reported at Sun Nov 20 00:18:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0204.8+1513_daily_bin1740 31.2182 15.2326 690336001 690595201 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 :                                   418.00 sec.
    Max Memory :                                 1092 MB
    Average Memory :                             275.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   524 sec.
    Turnaround time :                            780 sec.

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

