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


Performing analysis on: 4FGL_J0205.7+6449_weekly_bin715
RA = 31.4273, Dec = 64.8239
tmin = 671414401, tmax = 672019201
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='933679', job_status='RUN', time_executed='2022-04-19 02:21:53.423391', time_epoch_executed='1650360113.42' WHERE source_name='4FGL J0205.7+6449' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933679

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933679/ft1_4FGL_J0205.7+6449_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933679/ft2_4FGL_J0205.7+6449_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933679/ft1_4FGL_J0205.7+6449_weekly_bin715.fits outfile=/scratch/kocevski/933679/ft1_filteredMKT_4FGL_J0205.7+6449_weekly_bin715.fits ra=31.4273 dec=64.8239 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.66
user 7.29
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/933679/ft2_4FGL_J0205.7+6449_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933679/ft2_4FGL_J0205.7+6449_weekly_bin715.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/933679/ft1_filteredMKT_4FGL_J0205.7+6449_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/933679/ft1_filtered_4FGL_J0205.7+6449_weekly_bin715.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.57
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 9431

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933679/ft1_filtered_4FGL_J0205.7+6449_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/933679/ft2_4FGL_J0205.7+6449_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/933679/ltcube_671414401_672019201_4FGL_J0205.7+6449_weekly_bin715.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/933679/ft2_4FGL_J0205.7+6449_weekly_bin715.fits
.....................!
real 28.50
user 27.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933679/ft1_filtered_4FGL_J0205.7+6449_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933679/ft2_4FGL_J0205.7+6449_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/933679/ltcube_671414401_672019201_4FGL_J0205.7+6449_weekly_bin715.fits outfile=/scratch/kocevski/933679/expmap_671414401_672019201_4FGL_J0205.7+6449_weekly_bin715.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/933679/ltcube_671414401_672019201_4FGL_J0205.7+6449_weekly_bin715.fits
.....................!
real 193.09
user 187.20
sys 5.42

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 187 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0205.7+6449 @ 31.4273 64.8239

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/933679/ft1_filtered_4FGL_J0205.7+6449_weekly_bin715.fits scfile=/scratch/kocevski/933679/ft2_4FGL_J0205.7+6449_weekly_bin715.fits outfile=/scratch/kocevski/933679/cmap_671414401_672019201_4FGL_J0205.7+6449_weekly_bin715.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.4273 yref=64.8239 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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933679/ft1_filtered_4FGL_J0205.7+6449_weekly_bin715.fits scfile=/scratch/kocevski/933679/ft2_4FGL_J0205.7+6449_weekly_bin715.fits outfile=/scratch/kocevski/933679/cmap_HighResolution_671414401_672019201_4FGL_J0205.7+6449_weekly_bin715.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.4273 yref=64.8239 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.60
user 0.45
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933679/ft1_filtered_4FGL_J0205.7+6449_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933679/ft2_4FGL_J0205.7+6449_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933679/Model_4FGL_J0205.7+6449_weekly_bin715.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 CTB 109
adding source EG_v02
adding source G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/933679/ft1_filtered_4FGL_J0205.7+6449_weekly_bin715.fits.....................!
real 1201.94
user 1198.22
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933679/ft1_filtered_4FGL_J0205.7+6449_weekly_bin715.fits', '/scratch/kocevski/933679/ft2_4FGL_J0205.7+6449_weekly_bin715.fits', expMap='/scratch/kocevski/933679/expmap_671414401_672019201_4FGL_J0205.7+6449_weekly_bin715.fits', expCube='/scratch/kocevski/933679/ltcube_671414401_672019201_4FGL_J0205.7+6449_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933679/Model_4FGL_J0205.7+6449_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0205.7+6449'

4FGL J0205.7+6449
   Spectrum: PLSuperExpCutoff2
255    Prefactor:  1.841e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256       Index1:  2.024e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
257        Scale:  9.344e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
258    Expfactor:  5.317e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
259       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/933679/ft1_filtered_4FGL_J0205.7+6449_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/933679/ft2_4FGL_J0205.7+6449_weekly_bin715.fits
Exposure map: /scratch/kocevski/933679/expmap_671414401_672019201_4FGL_J0205.7+6449_weekly_bin715.fits
Exposure cube: /scratch/kocevski/933679/ltcube_671414401_672019201_4FGL_J0205.7+6449_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933679/Model_4FGL_J0205.7+6449_weekly_bin715.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) = 87472.0240887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.270       1.0000         .10000E-03   10000.    
     2 'norm      '    .33336E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    8.7059       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4903       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.833       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7490       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.907       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6378       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7746       1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5136       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.3695       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9305       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7772       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.347       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7406       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1882       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   87472.01     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2279 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.272        17.615       -.69569E-05   -.19364E-04
   2  norm          .25896E-01    .72862        .21331E-06   -.19385E-03
   3  norm          8.7058        3.2277       -.50364E-06    .20418E-04
   4  norm          1.4905        3.6097       -.11245E-05   -.45877E-04
   5  Prefactor     15.833        10.930        .19861E-05    .10770E-04
   6  norm          .10000E-03    .79642       -.10680E-07** at limit **
   7  Prefactor     2.7490        1.6802       -.28329E-07   -.12015E-02
   8  Prefactor     10.906        9.2604       -.34081E-05   -.19220E-05
   9  Prefactor     9.6282        26.661       -.32987E-06   -.61546E-05
  10  Prefactor     1.7746        .54211       -.31584E-07   -.43789E-03
  11  norm          .10000E-03    3.7264       -.19638E-07** at limit **
  12  Prefactor     9.5132        2.3322       -.20171E-08   -.10806E-02
  13  Prefactor     .10000E-03    141.27       -.38086E-05** at limit **
  14  norm          3.3695        .34332       -.96434E-08   -.41620E-03
  15  norm          1.9306        3.6516       -.61517E-06   -.67654E-04
  16  norm          2.7771        1.7001        .39326E-06   -.19885E-02
  17  Prefactor     20.345        19.958        .24870E-05   -.77032E-05
  18  Prefactor     2.7405        1.8518       -.35728E-06   -.18122E-02
  19  Prefactor     .10000E-03    .46805       -.70225E-07** at limit **
  20  Normalizat    1.1883        .21971        .20082E-05    .70811E-04
  21  Prefactor     .97171        .20557E-01   -.56613E-07   -.17355E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2725
  norm       = 0.0258958
  norm       = 8.70583
  norm       = 1.49053
  Prefactor  = 15.8328
  norm       = 0.0001
  Prefactor  = 2.74897
  Prefactor  = 10.9055
  Prefactor  = 9.62822
  Prefactor  = 1.77455
  norm       = 0.0001
  Prefactor  = 9.51319
  Prefactor  = 0.0001
  norm       = 3.36948
  norm       = 1.93056
  norm       = 2.77708
  Prefactor  = 20.3446
  Prefactor  = 2.74054
  Prefactor  = 0.0001
  Normalizat = 1.18834
  Prefactor  = 0.971709
 **********
 **   18 **HESSE 
 **********

 FCN=   87472.01     FROM HESSE     STATUS=OK           337 CALLS     2616 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.272        17.642        .10250E-03   -1.4926    
   2  norm          .25896E-01    .69514        .10067       -1.5676    
   3  norm          8.7058        3.2210        .13585E-03   -1.5118    
   4  norm          1.4905        3.6075        .35119E-03   -1.5464    
   5  Prefactor     15.833        10.933        .10065E-03   -1.4912    
   6  norm          .10000E-03    .81998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7490        1.7905        .12277E-02   -1.5376    
   8  Prefactor     10.906        9.2545        .12131E-03   -1.5047    
   9  Prefactor     9.6282        26.543        .12908E-03   -1.5087    
  10  Prefactor     1.7746        .53903        .11548E-03   -1.5442    
  11  norm          .10000E-03    3.7435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.5132        2.3714        .64964E-03   -1.5091    
  13  Prefactor     .10000E-03    142.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3695        .34279        .52907E-04   -1.5341    
  15  norm          1.9306        3.6360        .29894E-03   -1.5430    
  16  norm          2.7771        2.2227        .12210E-02   -1.5375    
  17  Prefactor     20.345        19.927        .88794E-04   -1.4806    
  18  Prefactor     2.7405        2.4342        .12297E-02   -1.5377    
  19  Prefactor     .10000E-03    .47121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1883        .21026        .10850E-02   -.86964    
  21  Prefactor     .97171        .20272E-01    .11895E-03   -.93679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90943e-09
Minuit parameter uncertainties:
  1  17.6479
  2  0.267822
  3  3.22104
  4  3.60802
  5  10.9344
  6  1.50617e-07
  7  1.79053
  8  9.25572
  9  26.5756
  10  0.539029
  11  2.52882e-07
  12  2.37139
  13  2.71359e-06
  14  0.342788
  15  3.63644
  16  2.22275
  17  19.9336
  18  2.43428
  19  3.08388e-06
  20  0.210414
  21  0.0202723
Done.

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

Extracting fit parameters...

4FGL J0205.7+6449
   Spectrum: PLSuperExpCutoff2
255    Prefactor:  1.775e+00  5.390e-01  1.000e-04  1.000e+04 ( 1.000e-11)
256       Index1:  2.024e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
257        Scale:  9.344e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
258    Expfactor:  5.317e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
259       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  9.717e-01  2.027e-02  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
637   Normalization:  1.188e+00  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.34
Ra Dec: 31.427 64.824
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 3.77e-08
Energy Flux (Fixed Index): 4.00e-05 +/- 1.22e-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) = 87470.1990575
delta logL = 1.80709912653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87470.1048034
delta logL = 1.90135318114

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3614       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.0152       1.0000          .0000       10.000    
     3 'Normalizat'    1.2279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97343       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+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=   87470.10     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      296 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3600        1.2327        .12782E-03   -.21345E-04
   2  Index1        1.0143        .76062        .30578E-02   -.20416E-04
   3  Normalizat    1.2277        .19409        .10707E-02    .23783E-05
   4  Prefactor     .97346        .19978E-01    .11889E-03    .35191E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.36
  Index1     = 1.0143
  Normalizat = 1.22767
  Prefactor  = 0.973462
 **********
 **   18 **HESSE 
 **********

 FCN=   87470.10     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .66E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3600        1.2452        .51130E-05   -1.5475    
   2  Index1        1.0143        .76812        .61156E-03   -.92254    
   3  Normalizat    1.2277        .19406        .42830E-04   -.85752    
   4  Prefactor     .97346        .19979E-01    .47554E-05   -.93619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57072e-14
Minuit parameter uncertainties:
  1  1.24518
  2  0.776661
  3  0.194172
  4  0.019979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933679': 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) = 87470.1048018
delta logL = 1.90135477822

Extracting fit parameters...

4FGL J0205.7+6449
   Spectrum: PLSuperExpCutoff2
255    Prefactor:  1.360e+00  1.245e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256       Index1:  1.014e+00  7.767e-01  0.000e+00  1.000e+01 (-1.000e+00)
257        Scale:  9.344e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
258    Expfactor:  5.317e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
259       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  9.735e-01  1.998e-02  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
637   Normalization:  1.228e+00  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.13
Ra Dec: 31.427 64.824
Photon Index (Free Index): 1.01 +/- 0.78
Photon Flux (Free Index): 3.27e-08 +/- 4.21e-08
Energy Flux (Free Index): 4.17e-05 +/- 1.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/933679/cmap_HighResolution_671414401_672019201_4FGL_J0205.7+6449_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='4.17e-05', photon_flux_error='3.77e-08', dlogl='1.90e+00', energy_flux='4.00e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2022-04-19 03:54:45.165685', photon_index_error2='0.78', photon_index2='1.01', ts='20.34', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='1.19', time_epoch_completed='1650365685.17', return_code='0', job_id='933679', GAL2='0.97', EG2='1.23', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='4.21e-08', ts2='24.13', photon_index='2.02' WHERE bin_id='715' AND source_name='4FGL J0205.7+6449' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:54:45 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 929989: <4FGL_J0205.7+6449_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0205.7+6449_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:05:33 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 01:56:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 01:56:21 2022
Terminated at Tue Apr 19 03:32:56 2022
Results reported at Tue Apr 19 03:32:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.7+6449_weekly_bin715 31.4273 64.8239 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0205.7+6449 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5573.00 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             464.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5795 sec.
    Turnaround time :                            12443 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 933679: <4FGL_J0205.7+6449_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0205.7+6449_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:16:24 2022
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:20:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:20:38 2022
Terminated at Tue Apr 19 03:54:46 2022
Results reported at Tue Apr 19 03:54:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.7+6449_weekly_bin715 31.4273 64.8239 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0205.7+6449 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5566.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             482.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5647 sec.
    Turnaround time :                            13102 sec.

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

