aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 49 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0245.4+2408_weekly_bin630
RA = 41.3545, Dec = 24.1498
tmin = 620006401, tmax = 620611201
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='692420', job_status='RUN', time_executed='2021-07-05 14:40:03.329743', time_epoch_executed='1625521203.33' WHERE source_name='4FGL J0245.4+2408' and cadence='weekly' and bin_id='630'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692420

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692420/ft1_4FGL_J0245.4+2408_weekly_bin630.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692420/ft2_4FGL_J0245.4+2408_weekly_bin630.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692420/ft1_4FGL_J0245.4+2408_weekly_bin630.fits outfile=/scratch/kocevski/692420/ft1_filteredMKT_4FGL_J0245.4+2408_weekly_bin630.fits ra=41.3545 dec=24.1498 rad=12.0 tmin=620006401.0 tmax=620611201.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 10.53
user 8.33
sys 0.51

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/692420/ft2_4FGL_J0245.4+2408_weekly_bin630.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692420/ft2_4FGL_J0245.4+2408_weekly_bin630.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/692420/ft1_filteredMKT_4FGL_J0245.4+2408_weekly_bin630.fits evtable="EVENTS" outfile="/scratch/kocevski/692420/ft1_filtered_4FGL_J0245.4+2408_weekly_bin630.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 2.83
user 0.40
sys 0.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692420/ft1_filtered_4FGL_J0245.4+2408_weekly_bin630.fits" evtable="EVENTS" scfile=/scratch/kocevski/692420/ft2_4FGL_J0245.4+2408_weekly_bin630.fits sctable="SC_DATA" outfile=/scratch/kocevski/692420/ltcube_620006401_620611201_4FGL_J0245.4+2408_weekly_bin630.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/692420/ft2_4FGL_J0245.4+2408_weekly_bin630.fits
.....................!
real 29.78
user 26.24
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692420/ft1_filtered_4FGL_J0245.4+2408_weekly_bin630.fits evtable="EVENTS" scfile=/scratch/kocevski/692420/ft2_4FGL_J0245.4+2408_weekly_bin630.fits sctable="SC_DATA" expcube=/scratch/kocevski/692420/ltcube_620006401_620611201_4FGL_J0245.4+2408_weekly_bin630.fits outfile=/scratch/kocevski/692420/expmap_620006401_620611201_4FGL_J0245.4+2408_weekly_bin630.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/692420/ltcube_620006401_620611201_4FGL_J0245.4+2408_weekly_bin630.fits
.....................!
real 199.47
user 185.31
sys 4.79

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

Setting source of interest to:
4FGL J0245.4+2408 @ 41.3545 24.1498

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/692420/ft1_filtered_4FGL_J0245.4+2408_weekly_bin630.fits scfile=/scratch/kocevski/692420/ft2_4FGL_J0245.4+2408_weekly_bin630.fits outfile=/scratch/kocevski/692420/cmap_620006401_620611201_4FGL_J0245.4+2408_weekly_bin630.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=41.3545 yref=24.1498 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.91
user 0.40
sys 0.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692420/ft1_filtered_4FGL_J0245.4+2408_weekly_bin630.fits scfile=/scratch/kocevski/692420/ft2_4FGL_J0245.4+2408_weekly_bin630.fits outfile=/scratch/kocevski/692420/cmap_HighResolution_620006401_620611201_4FGL_J0245.4+2408_weekly_bin630.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=41.3545 yref=24.1498 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 1.12
user 0.42
sys 0.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692420/ft1_filtered_4FGL_J0245.4+2408_weekly_bin630.fits evtable="EVENTS" scfile=/scratch/kocevski/692420/ft2_4FGL_J0245.4+2408_weekly_bin630.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692420/Model_4FGL_J0245.4+2408_weekly_bin630.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/692420/ft1_filtered_4FGL_J0245.4+2408_weekly_bin630.fits.....................!
real 354.95
user 346.99
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/692420/ft1_filtered_4FGL_J0245.4+2408_weekly_bin630.fits', '/scratch/kocevski/692420/ft2_4FGL_J0245.4+2408_weekly_bin630.fits', expMap='/scratch/kocevski/692420/expmap_620006401_620611201_4FGL_J0245.4+2408_weekly_bin630.fits', expCube='/scratch/kocevski/692420/ltcube_620006401_620611201_4FGL_J0245.4+2408_weekly_bin630.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/692420/Model_4FGL_J0245.4+2408_weekly_bin630.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0245.4+2408'

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  3.151e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/692420/ft1_filtered_4FGL_J0245.4+2408_weekly_bin630.fits
Spacecraft file(s): /scratch/kocevski/692420/ft2_4FGL_J0245.4+2408_weekly_bin630.fits
Exposure map: /scratch/kocevski/692420/expmap_620006401_620611201_4FGL_J0245.4+2408_weekly_bin630.fits
Exposure cube: /scratch/kocevski/692420/ltcube_620006401_620611201_4FGL_J0245.4+2408_weekly_bin630.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/692420/Model_4FGL_J0245.4+2408_weekly_bin630.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) = 25304.7368347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23394E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26426E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .61236       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3912       1.0000         .10000E-03   10000.    
     6 'norm      '    18.867       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.171       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7157       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .74753       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1008       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9268       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.663       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .98972       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.991       1.0000         .10000E-03   10000.    
    20 'norm      '    .48218       1.0000         .10000E-03   10000.    
    21 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.6002       1.0000         .10000E-03   10000.    
    25 'norm      '    2.4496       1.0000         .10000E-03   10000.    
    26 'norm      '    11.577       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2192       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91523       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25304.73     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3584 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .88059       -.20421E-06** at limit **
   2  Prefactor     .10000E-03    72.226       -.27615E-05** at limit **
   3  Prefactor     .10014E-03    6.0517        .20452E-05** at limit **
   4  Prefactor     .61229        1.8627        .79956E-07   -.46737E-03
   5  Prefactor     1.3934        2.7703        .56880E-06   -.40678E-03
   6  norm          18.866        42.183       -.12929E-05   -.68230E-04
   7  Prefactor     .10000E-03    14.123       -.11023E-05** at limit **
   8  Prefactor     .10000E-03    2.0555        .12728E-06** at limit **
   9  Prefactor     46.169        32.637       -.10979E-05   -.24319E-03
  10  Prefactor     .10000E-03    3.4176        .22636E-07** at limit **
  11  norm          1.7156        1.0927        .97220E-07   -.43522E-03
  12  Prefactor     .10000E-03    2.5914        .80480E-08** at limit **
  13  norm          .74753        .31051        .96177E-08   -.18458E-03
  14  Prefactor     .10000E-03    6.9693       -.78157E-07** at limit **
  15  Prefactor     9.1008        8.8272       -.82957E-07   -.56727E-04
  16  Prefactor     5.9211        20.476       -.39196E-06   -.47095E-04
  17  Prefactor     10.662        6.2862        .39066E-08   -.17323E-03
  18  Prefactor     .98814        4.7315       -.23781E-06   -.10154E-03
  19  Prefactor     35.988        35.252       -.19504E-05   -.27128E-03
  20  norm          .48718        1.8162       -.31696E-06   -.77011E-04
  21  norm          .10001E-03    19.378       -.32467E-05** at limit **
  22  Prefactor     .10000E-03    51.783        .27372E-05** at limit **
  23  Prefactor     .10000E-03    1.2614       -.45114E-08** at limit **
  24  Prefactor     6.5997        6.3734       -.13811E-07   -.49592E-04
  25  norm          2.4495        1.3928        .85259E-07   -.16019E-03
  26  norm          11.577        8.3805        .34715E-07    .16285E-04
  27  Normalizat    1.2193        .13277       -.38688E-06   -.49119E-03
  28  Prefactor     .91520        .47827E-01    .37020E-07   -.73764E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100137
  Prefactor  = 0.612295
  Prefactor  = 1.39343
  norm       = 18.8657
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 46.1688
  Prefactor  = 0.0001
  norm       = 1.71564
  Prefactor  = 0.0001
  norm       = 0.747531
  Prefactor  = 0.0001
  Prefactor  = 9.10079
  Prefactor  = 5.92113
  Prefactor  = 10.6619
  Prefactor  = 0.988138
  Prefactor  = 35.988
  norm       = 0.487176
  norm       = 0.000100005
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 6.59972
  norm       = 2.44948
  norm       = 11.5774
  Normalizat = 1.21929
  Prefactor  = 0.9152
 **********
 **   18 **HESSE 
 **********

 FCN=   25304.73     FROM HESSE     STATUS=OK           535 CALLS     4119 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0833        .28020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    72.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10014E-03    20.763        .51479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61229        4.6637        .38818E-02   -1.5551    
   5  Prefactor     1.3934        3.0194        .36840E-03   -1.5472    
   6  norm          18.866        42.309        .92209E-04   -1.4839    
   7  Prefactor     .10000E-03    14.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0498        .44008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.169        32.754        .59007E-04   -1.4348    
  10  Prefactor     .10000E-03    3.4628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7156        1.1049        .12882E-03   -1.5446    
  12  Prefactor     .10000E-03    2.6137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .74753        .30420        .52634E-04   -1.5535    
  14  Prefactor     .10000E-03    6.9724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.1008        8.7855        .13285E-03   -1.5105    
  16  Prefactor     5.9211        20.470        .16495E-03   -1.5221    
  17  Prefactor     10.662        6.2996        .12270E-03   -1.5055    
  18  Prefactor     .98814        27.081        .67842E-02   -1.5509    
  19  Prefactor     35.988        35.792        .66801E-04   -1.4507    
  20  norm          .48718        8.2775        .40452E-02   -1.5568    
  21  norm          .10001E-03    20.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    52.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.2706        .17435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.5997        6.3759        .15620E-03   -1.5194    
  25  norm          2.4495        1.4129        .13696E-03   -1.5395    
  26  norm          11.577        8.3902        .11774E-03   -1.5027    
  27  Normalizat    1.2193        .14896        .37595E-03   -.86009    
  28  Prefactor     .91520        .54827E-01    .16253E-03   -.95612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7981e-07
Minuit parameter uncertainties:
  1  6.10776e-05
  2  0.00109124
  3  0.00336948
  4  3.37978
  5  3.01977
  6  42.3768
  7  0.000186196
  8  1.44002e-05
  9  32.7665
  10  2.82664e-06
  11  1.1049
  12  1.9618e-06
  13  0.3042
  14  8.46554e-06
  15  8.78678
  16  20.4939
  17  6.3
  18  10.3507
  19  35.8138
  20  4.01652
  21  0.000644272
  22  0.00092327
  23  3.03017e-07
  24  6.37658
  25  1.41296
  26  8.39104
  27  0.149017
  28  0.0548303
Done.

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

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  1.066e+01  6.300e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.152e-01  5.483e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.219e+00  1.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.64
Ra Dec: 41.355 24.150
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 6.12e-08 +/- 3.61e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 8.88e-06

TS (Fixed Index): 3.64
Ra Dec: 41.355 24.150
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/692420/likelihoodResults_620006401_620611201_4FGL_J0245.4+2408_weekly_bin630.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) = 25304.7260442
delta logL = 9.03325089894e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25304.725986
delta logL = 0.000148545856064

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.599       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6869       1.0000          .0000       10.000    
     3 'Normalizat'    1.2188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91529       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   25304.73     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      275 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.595        7.9351        .61535E-03   -.73679E-04
   2  Index         2.6861        .61961        .11940E-01    .48183E-04
   3  Normalizat    1.2189        .14344        .37600E-03    .42330E-05
   4  Prefactor     .91532        .54044E-01    .16252E-03   -.50365E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5945
  Index      = 2.68611
  Normalizat = 1.21887
  Prefactor  = 0.915315
 **********
 **   18 **HESSE 
 **********

 FCN=   25304.73     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.595        7.3799        .24614E-04   -1.5057    
   2  Index         2.6861        .57596        .47760E-03   -.48113    
   3  Normalizat    1.2189        .14339        .15040E-04   -.86022    
   4  Prefactor     .91532        .53983E-01    .65009E-05   -.95608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14232e-11
Minuit parameter uncertainties:
  1  7.38057
  2  0.577591
  3  0.143437
  4  0.0539864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692420': 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) = 25304.725983
delta logL = 0.000151569605805

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  1.059e+01  7.381e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.686e+00  5.776e-01  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.153e-01  5.399e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.219e+00  1.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 41.355 24.150
Photon Index (Free Index): 2.69 +/- 0.58
Photon Flux (Free Index): 6.15e-08 +/- 3.97e-08
Energy Flux (Free Index): 1.50e-05 +/- 9.27e-06

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/692420/cmap_HighResolution_620006401_620611201_4FGL_J0245.4+2408_weekly_bin630.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', photon_flux='6.12e-08', energy_flux2='1.50e-05', photon_flux_error='3.61e-08', dlogl='1.52e-04', energy_flux='1.50e-05', photon_flux2='6.15e-08', job_status='DONE', time_completed='2021-07-05 15:19:54.880283', photon_index_error2='0.58', photon_index2='2.69', ts='3.64', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='9.27e-06', EG='1.22', time_epoch_completed='1625523594.88', return_code='0', job_id='692420', GAL2='0.92', EG2='1.22', return_code2='0', energy_flux_error='8.88e-06', photon_flux_error2='3.97e-08', ts2='3.64', photon_index='2.68' WHERE bin_id='630' AND source_name='4FGL J0245.4+2408' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul  5 15:19:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0140>
Subject: Job 692420: <4FGL_J0245.4+2408_weekly_bin630> in cluster <slac> Done

Job <4FGL_J0245.4+2408_weekly_bin630> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul  5 02:51:18 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 02:51:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul  5 02:51:19 2021
Terminated at Mon Jul  5 15:20:08 2021
Results reported at Mon Jul  5 15:20:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.4+2408_weekly_bin630 41.3545 24.1498 620006401 620611201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0245.4+2408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2355.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             63.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   44927 sec.
    Turnaround time :                            44930 sec.

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

