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


Performing analysis on: 4FGL_J0205.7+6449_weekly_bin730
RA = 31.4273, Dec = 64.8239
tmin = 680486401, tmax = 681091201
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='657298', job_status='RUN', time_executed='2022-08-02 00:37:09.943079', time_epoch_executed='1659425829.94' WHERE source_name='4FGL J0205.7+6449' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657298

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657298/ft1_4FGL_J0205.7+6449_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657298/ft2_4FGL_J0205.7+6449_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657298/ft1_4FGL_J0205.7+6449_weekly_bin730.fits outfile=/scratch/kocevski/657298/ft1_filteredMKT_4FGL_J0205.7+6449_weekly_bin730.fits ra=31.4273 dec=64.8239 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.48
user 6.09
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/657298/ft2_4FGL_J0205.7+6449_weekly_bin730.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/657298/ft1_filteredMKT_4FGL_J0205.7+6449_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/657298/ft1_filtered_4FGL_J0205.7+6449_weekly_bin730.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.61
user 0.39
sys 0.18

Number of photons that the gtmktime cut: 15218

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657298/ft1_filtered_4FGL_J0205.7+6449_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/657298/ft2_4FGL_J0205.7+6449_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/657298/ltcube_680486401_681091201_4FGL_J0205.7+6449_weekly_bin730.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/657298/ft2_4FGL_J0205.7+6449_weekly_bin730.fits
.....................!
real 37.62
user 36.83
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657298/ft1_filtered_4FGL_J0205.7+6449_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/657298/ft2_4FGL_J0205.7+6449_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/657298/ltcube_680486401_681091201_4FGL_J0205.7+6449_weekly_bin730.fits outfile=/scratch/kocevski/657298/expmap_680486401_681091201_4FGL_J0205.7+6449_weekly_bin730.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/657298/ltcube_680486401_681091201_4FGL_J0205.7+6449_weekly_bin730.fits
.....................!
real 196.11
user 190.57
sys 4.94

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/657298/ft1_filtered_4FGL_J0205.7+6449_weekly_bin730.fits scfile=/scratch/kocevski/657298/ft2_4FGL_J0205.7+6449_weekly_bin730.fits outfile=/scratch/kocevski/657298/cmap_680486401_681091201_4FGL_J0205.7+6449_weekly_bin730.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.65
user 0.45
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657298/ft1_filtered_4FGL_J0205.7+6449_weekly_bin730.fits scfile=/scratch/kocevski/657298/ft2_4FGL_J0205.7+6449_weekly_bin730.fits outfile=/scratch/kocevski/657298/cmap_HighResolution_680486401_681091201_4FGL_J0205.7+6449_weekly_bin730.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.61
user 0.45
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/657298/ft1_filtered_4FGL_J0205.7+6449_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/657298/ft2_4FGL_J0205.7+6449_weekly_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/657298/Model_4FGL_J0205.7+6449_weekly_bin730.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/657298/ft1_filtered_4FGL_J0205.7+6449_weekly_bin730.fits.....................!
real 2009.86
user 2001.93
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/657298/ft1_filtered_4FGL_J0205.7+6449_weekly_bin730.fits', '/scratch/kocevski/657298/ft2_4FGL_J0205.7+6449_weekly_bin730.fits', expMap='/scratch/kocevski/657298/expmap_680486401_681091201_4FGL_J0205.7+6449_weekly_bin730.fits', expCube='/scratch/kocevski/657298/ltcube_680486401_681091201_4FGL_J0205.7+6449_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/657298/Model_4FGL_J0205.7+6449_weekly_bin730.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/657298/ft1_filtered_4FGL_J0205.7+6449_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/657298/ft2_4FGL_J0205.7+6449_weekly_bin730.fits
Exposure map: /scratch/kocevski/657298/expmap_680486401_681091201_4FGL_J0205.7+6449_weekly_bin730.fits
Exposure cube: /scratch/kocevski/657298/ltcube_680486401_681091201_4FGL_J0205.7+6449_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/657298/Model_4FGL_J0205.7+6449_weekly_bin730.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) = 141336.013625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0347       1.0000         .10000E-03   10000.    
     3 'norm      '    5.3886       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5236       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8761       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1280       1.0000         .10000E-03   10000.    
    11 'norm      '    .53390       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71468E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.616       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8738       1.0000         .10000E-03   10000.    
    15 'norm      '    6.4743       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4444       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2283       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5323       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2084       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3334       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99198       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=   141336.0     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2341 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7537       -.33525E-06** at limit **
   2  norm          3.0347        1.8374       -.19376E-06    .83609E-04
   3  norm          5.3886        2.0816        .10159E-06   -.63167E-03
   4  norm          .10000E-03    2.4955       -.13832E-06** at limit **
   5  Prefactor     .10000E-03    1.9904        .18494E-06** at limit **
   6  norm          .10000E-03    .43508        .76468E-07** at limit **
   7  Prefactor     1.5238        1.3556       -.21822E-08   -.15057E-03
   8  Prefactor     .10000E-03    4.8914       -.53388E-06** at limit **
   9  Prefactor     8.8847        14.197        .14931E-04    .29731E-03
  10  Prefactor     1.1280        .40910       -.21391E-07   -.22004E-03
  11  norm          .53117        2.7262       -.47021E-05   -.67076E-03
  12  Prefactor     .73129E-01    .28862       -.87243E-06    .20970E-02
  13  Prefactor     58.599        53.730       -.21992E-04    .24910E-03
  14  norm          3.8738        .29298       -.18242E-08    .26175E-03
  15  norm          6.4745        3.8369       -.53210E-07    .17877E-03
  16  norm          1.4446        .36311        .79977E-07   -.39596E-02
  17  Prefactor     6.2269        15.782       -.37416E-05    .57009E-04
  18  Prefactor     2.5323        1.5556        .12974E-06   -.10238E-02
  19  Prefactor     1.2084        1.0792        .85850E-07    .15206E-03
  20  Normalizat    1.3334        .16480        .74951E-06    .77209E-03
  21  Prefactor     .99198        .15818E-01   -.26999E-07    .36675E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.0347
  norm       = 5.38859
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.52377
  Prefactor  = 0.0001
  Prefactor  = 8.88473
  Prefactor  = 1.12802
  norm       = 0.531168
  Prefactor  = 0.073129
  Prefactor  = 58.5988
  norm       = 3.87379
  norm       = 6.47447
  norm       = 1.44457
  Prefactor  = 6.22688
  Prefactor  = 2.53226
  Prefactor  = 1.20844
  Normalizat = 1.33336
  Prefactor  = 0.991979
 **********
 **   18 **HESSE 
 **********

 FCN=   141336.0     FROM HESSE     STATUS=OK           333 CALLS     2674 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0347        1.8375        .23293E-03   -1.5360    
   3  norm          5.3886        2.0883        .86558E-03   -1.5244    
   4  norm          .10000E-03    2.6137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .44226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.5238        1.3423        .34603E-03   -1.5461    
   8  Prefactor     .10000E-03    4.9714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.8847        14.403        .13454E-03   -1.5112    
  10  Prefactor     1.1280        .40121        .13875E-03   -1.5496    
  11  norm          .53117        2.6532        .45634E-03   -1.5562    
  12  Prefactor     .73129E-01    .35733        .53809E-01   -1.5654    
  13  Prefactor     58.599        53.093        .52401E-04   -1.4175    
  14  norm          3.8738        .29263        .53548E-04   -1.5314    
  15  norm          6.4745        3.8364        .78865E-03   -1.5199    
  16  norm          1.4446        1.7813        .17938E-02   -1.5468    
  17  Prefactor     6.2269        15.742        .16085E-03   -1.5209    
  18  Prefactor     2.5323        1.5753        .12834E-02   -1.5390    
  19  Prefactor     1.2084        1.0576        .35017E-03   -1.5488    
  20  Normalizat    1.3334        .16287        .10380E-02   -.82576    
  21  Prefactor     .99198        .15968E-01    .11945E-03   -.92997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3224e-08
Minuit parameter uncertainties:
  1  1.70678e-06
  2  1.83753
  3  2.08838
  4  2.29782e-06
  5  2.34981e-06
  6  4.6927e-07
  7  1.34231
  8  1.1487e-05
  9  14.4085
  10  0.401213
  11  2.37424
  12  0.323084
  13  53.136
  14  0.292628
  15  3.83654
  16  1.78141
  17  15.7522
  18  1.57534
  19  1.05764
  20  0.16293
  21  0.0159683
Done.

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

Extracting fit parameters...

4FGL J0205.7+6449
   Spectrum: PLSuperExpCutoff2
255    Prefactor:  1.128e+00  4.012e-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.920e-01  1.597e-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.333e+00  1.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.79
Ra Dec: 31.427 64.824
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 7.90e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 9.05e-06

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) = 141335.737512
delta logL = 0.253637470421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 141335.724437
delta logL = 0.266713005985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2376       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.7549       1.0000          .0000       10.000    
     3 'Normalizat'    1.3454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99188       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=   141335.7     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      279 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2376        .45688        .15037E-03   -.14323E-02
   2  Index1        1.7549        .37436        .76649E-02    .27938E-03
   3  Normalizat    1.3455        .15387        .10343E-02    .19979E-04
   4  Prefactor     .99187        .15772E-01    .11946E-03    .60906E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.23761
  Index1     = 1.75488
  Normalizat = 1.34546
  Prefactor  = 0.991874
 **********
 **   18 **HESSE 
 **********

 FCN=   141335.7     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2376        .45556        .60148E-05   -1.5485    
   2  Index1        1.7549        .37319        .15330E-02   -.70630    
   3  Normalizat    1.3455        .15384        .20685E-03   -.82219    
   4  Prefactor     .99187        .15773E-01    .47785E-05   -.93001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15985e-10
Minuit parameter uncertainties:
  1  0.455562
  2  0.373788
  3  0.153891
  4  0.0157728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657298': 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) = 141335.724437
delta logL = 0.266713034303

Extracting fit parameters...

4FGL J0205.7+6449
   Spectrum: PLSuperExpCutoff2
255    Prefactor:  1.238e+00  4.556e-01  1.000e-04  1.000e+04 ( 1.000e-11)
256       Index1:  1.755e+00  3.738e-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.919e-01  1.577e-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.345e+00  1.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.31
Ra Dec: 31.427 64.824
Photon Index (Free Index): 1.75 +/- 0.37
Photon Flux (Free Index): 5.99e-08 +/- 3.49e-08
Energy Flux (Free Index): 2.56e-05 +/- 9.39e-06

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/657298/cmap_HighResolution_680486401_681091201_4FGL_J0205.7+6449_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.90e-08', energy_flux2='2.56e-05', photon_flux_error='2.81e-08', dlogl='2.67e-01', energy_flux='2.54e-05', photon_flux2='5.99e-08', job_status='DONE', time_completed='2022-08-02 03:07:55.323863', photon_index_error2='0.37', photon_index2='1.75', ts='11.79', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='9.39e-06', EG='1.33', time_epoch_completed='1659434875.32', return_code='0', job_id='657298', GAL2='0.99', EG2='1.35', return_code2='0', energy_flux_error='9.05e-06', photon_flux_error2='3.49e-08', ts2='12.31', photon_index='2.02' WHERE bin_id='730' AND source_name='4FGL J0205.7+6449' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 03:07:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 657298: <4FGL_J0205.7+6449_weekly_bin730> in cluster <slac> Done

Job <4FGL_J0205.7+6449_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:04:50 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 00:35:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 00:35:48 2022
Terminated at Tue Aug  2 03:07:56 2022
Results reported at Tue Aug  2 03:07:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.7+6449_weekly_bin730 31.4273 64.8239 680486401 681091201 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 :                                   9032.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             555.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9128 sec.
    Turnaround time :                            10986 sec.

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

