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


Performing analysis on: 4FGL_J0205.7+6449_monthly_bin172
RA = 31.4273, Dec = 64.8239
tmin = 682819201, tmax = 685411201
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='851474', job_status='RUN', time_executed='2022-09-21 01:01:06.170245', time_epoch_executed='1663747266.17' WHERE source_name='4FGL J0205.7+6449' and cadence='monthly' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851474

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851474/ft1_4FGL_J0205.7+6449_monthly_bin172.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851474/ft2_4FGL_J0205.7+6449_monthly_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851474/ft1_4FGL_J0205.7+6449_monthly_bin172.fits outfile=/scratch/kocevski/851474/ft1_filteredMKT_4FGL_J0205.7+6449_monthly_bin172.fits ra=31.4273 dec=64.8239 rad=12.0 tmin=682819201.0 tmax=685411201.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 36.45
user 33.54
sys 0.99

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851474/ft2_4FGL_J0205.7+6449_monthly_bin172.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/851474/ft1_filteredMKT_4FGL_J0205.7+6449_monthly_bin172.fits evtable="EVENTS" outfile="/scratch/kocevski/851474/ft1_filtered_4FGL_J0205.7+6449_monthly_bin172.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 1.42
user 0.71
sys 0.21

Number of photons that the gtmktime cut: 52267

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851474/ft1_filtered_4FGL_J0205.7+6449_monthly_bin172.fits" evtable="EVENTS" scfile=/scratch/kocevski/851474/ft2_4FGL_J0205.7+6449_monthly_bin172.fits sctable="SC_DATA" outfile=/scratch/kocevski/851474/ltcube_682819201_685411201_4FGL_J0205.7+6449_monthly_bin172.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/851474/ft2_4FGL_J0205.7+6449_monthly_bin172.fits
.....................!
real 133.25
user 132.05
sys 0.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851474/ft1_filtered_4FGL_J0205.7+6449_monthly_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/851474/ft2_4FGL_J0205.7+6449_monthly_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/851474/ltcube_682819201_685411201_4FGL_J0205.7+6449_monthly_bin172.fits outfile=/scratch/kocevski/851474/expmap_682819201_685411201_4FGL_J0205.7+6449_monthly_bin172.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/851474/ltcube_682819201_685411201_4FGL_J0205.7+6449_monthly_bin172.fits
.....................!
real 192.24
user 186.79
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
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_8years/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/851474/ft1_filtered_4FGL_J0205.7+6449_monthly_bin172.fits scfile=/scratch/kocevski/851474/ft2_4FGL_J0205.7+6449_monthly_bin172.fits outfile=/scratch/kocevski/851474/cmap_682819201_685411201_4FGL_J0205.7+6449_monthly_bin172.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.92
user 0.73
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851474/ft1_filtered_4FGL_J0205.7+6449_monthly_bin172.fits scfile=/scratch/kocevski/851474/ft2_4FGL_J0205.7+6449_monthly_bin172.fits outfile=/scratch/kocevski/851474/cmap_HighResolution_682819201_685411201_4FGL_J0205.7+6449_monthly_bin172.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.93
user 0.72
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851474/ft1_filtered_4FGL_J0205.7+6449_monthly_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/851474/ft2_4FGL_J0205.7+6449_monthly_bin172.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851474/Model_4FGL_J0205.7+6449_monthly_bin172.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/851474/ft1_filtered_4FGL_J0205.7+6449_monthly_bin172.fits.....................!
real 6936.06
user 6910.03
sys 3.91

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6898       1.0000          .0000       .10000E+07
     2 'norm      '    1.2536       1.0000          .0000       .10000E+07
     3 'norm      '    3.0664       1.0000          .0000       .10000E+07
     4 'norm      '    .65868E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .21205E-06   1.0000          .0000       .10000E+07
     6 'norm      '    .73552E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.6414       1.0000          .0000       .10000E+07
     8 'Prefactor '    .49559       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.6369       1.0000         .10000E-03   10000.    
    10 'norm      '    .72202       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.5029       1.0000          .0000       .10000E+07
    12 'norm      '    4.1328       1.0000          .0000       .10000E+07
    13 'norm      '    7.7897       1.0000          .0000       .10000E+07
    14 'norm      '    1.7017       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.2121       1.0000          .0000       .10000E+07
    16 'Prefactor '    .36943       1.0000          .0000       .10000E+07
    17 'Prefactor '    .43919       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3587       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97217       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   485130.5     FROM MIGRAD    STATUS=CONVERGED     79 CALLS     1100 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7197        5.4890        .52745E-06   -.82247E-03
   2  norm          1.2534        .75531       -.56617E-08    .45514E-03
   3  norm          3.0655        1.0382        .10749E-07   -.24567E-02
   4  norm          .16653E-09    7.7713       -.84920E-06** at limit **
   5  Prefactor      .0000        1.5798        .16992E-06** at limit **
   6  norm           .0000        .13442       -.10329E-06** at limit **
   7  Prefactor     1.6412        .70035        .36367E-07   -.91101E-02
   8  Prefactor     .48825        .63053       -.68460E-07    .23990E-02
   9  Prefactor     1.6368        .23067        .29280E-07   -.15358E-02
  10  norm          .72350        1.2773        .11611E-07   -.49862E-03
  11  Prefactor     3.5022        .75847        .15622E-07   -.80492E-02
  12  norm          4.1328        .15886        .29811E-08   -.13329E-02
  13  norm          7.7876        2.1341       -.53356E-08    .25937E-03
  14  norm          1.7032        1.0234       -.90609E-07    .44945E-02
  15  Prefactor     4.1237        6.3950       -.20202E-06    .82493E-03
  16  Prefactor     .36951        .63774       -.31644E-07    .18274E-03
  17  Prefactor     .43969        .38457        .81365E-08   -.12223E-02
  18  Normalizat    1.3588        .86301E-01    .21073E-05    .55114E-04
  19  Prefactor     .97216        .85494E-02   -.22538E-06    .13848E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71967
  norm       = 1.25343
  norm       = 3.06548
  norm       = 1.66533e-10
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.64115
  Prefactor  = 0.488254
  Prefactor  = 1.63682
  norm       = 0.723503
  Prefactor  = 3.50224
  norm       = 4.13283
  norm       = 7.78756
  norm       = 1.7032
  Prefactor  = 4.12372
  Prefactor  = 0.369512
  Prefactor  = 0.439694
  Normalizat = 1.35883
  Prefactor  = 0.972163
 **********
 **   18 **HESSE 
 **********

 FCN=   485130.5     FROM HESSE     STATUS=OK           332 CALLS     1432 TOTAL
                     EDM=   .23E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7197        5.5422        .80951E-03   -1.5682    
   2  norm          1.2534        .76154        .99763E-03   -1.5686    
   3  norm          3.0655        1.0701        .57904E-03   -1.5673    
   4  norm          .16653E-09    .25240        .81073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.6054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .13604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6412        .70628        .82436E-03   -1.5682    
   8  Prefactor     .48825        1.5680        .19525E-01   -1.5694    
   9  Prefactor     1.6368        .23314        .82590E-02   -1.5452    
  10  norm          .72350        1.3122        .58938E-03   -1.5691    
  11  Prefactor     3.5022        .80746        .53995E-03   -1.5671    
  12  norm          4.1328        .16025        .49560E-03   -1.5667    
  13  norm          7.7876        2.1355        .35904E-03   -1.5652    
  14  norm          1.7032        1.0350        .80602E-03   -1.5682    
  15  Prefactor     4.1237        6.4562        .49077E-03   -1.5667    
  16  Prefactor     .36951        .65707        .93118E-03   -1.5696    
  17  Prefactor     .43969        .38217        .85080E-03   -1.5695    
  18  Normalizat    1.3588        .88951E-01    .22995       -.81827    
  19  Prefactor     .97216        .84742E-02    .26985E-01   -.93663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29096e-05
Minuit parameter uncertainties:
  1  5.5422
  2  0.761543
  3  1.07006
  4  1.25306e-05
  5  1.57203e-06
  6  8.54956e-07
  7  0.706281
  8  1.56803
  9  0.23314
  10  1.3122
  11  0.807464
  12  0.160248
  13  2.13548
  14  1.03498
  15  6.45622
  16  0.657068
  17  0.382166
  18  0.0889608
  19  0.00847417
Done.

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

Extracting fit parameters...

4FGL J0205.7+6449
   Spectrum: PLSuperExpCutoff2
255    Prefactor:  1.637e+00  2.331e-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.722e-01  8.474e-03  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.359e+00  8.896e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 87.35
Ra Dec: 31.427 64.824
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 1.63e-08
Energy Flux (Fixed Index): 3.69e-05 +/- 5.26e-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) = 485129.495109
delta logL = 0.955380900064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 485129.493972
delta logL = 0.956518401683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7671       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.8285       1.0000          .0000       10.000    
     3 'Normalizat'    1.3719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97203       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.

 FCN=   485129.5     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      236 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7670        2.4529        .78771E-02    .29575E-01
   2  Index1        1.8285        .76261        .26880        .26689E-02
   3  Normalizat    1.3719        .32410E-01    .22909        .18004E-02
   4  Prefactor     .97203        .25985E-02    .26988E-01   -.83551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.76701
  Index1     = 1.82852
  Normalizat = 1.37189
  Prefactor  = 0.972032
 **********
 **   18 **HESSE 
 **********

 FCN=   485129.5     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7670        .26821        .13156E-03   -1.5442    
   2  Index1        1.8285        .14656        .14115E-01   -.68710    
   3  Normalizat    1.3719        .83533E-01    .10230E-02   -.81445    
   4  Prefactor     .97203        .84740E-02    .11927E-03   -.93668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70674e-10
Minuit parameter uncertainties:
  1  0.268206
  2  0.146592
  3  0.0835411
  4  0.00847397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851474': 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) = 485129.493972
delta logL = 0.95651850797

Extracting fit parameters...

4FGL J0205.7+6449
   Spectrum: PLSuperExpCutoff2
255    Prefactor:  1.767e+00  2.682e-01  1.000e-04  1.000e+04 ( 1.000e-11)
256       Index1:  1.829e+00  1.466e-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.720e-01  8.474e-03  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.372e+00  8.354e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 89.22
Ra Dec: 31.427 64.824
Photon Index (Free Index): 1.83 +/- 0.15
Photon Flux (Free Index): 9.42e-08 +/- 2.02e-08
Energy Flux (Free Index): 3.70e-05 +/- 5.42e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -5.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  5.550e+00 [aplpy.core]
Saving /scratch/kocevski/851474/cmap_HighResolution_682819201_685411201_4FGL_J0205.7+6449_monthly_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='3.70e-05', photon_flux_error='1.63e-08', dlogl='9.57e-01', energy_flux='3.69e-05', photon_flux2='9.42e-08', job_status='DONE', time_completed='2022-09-21 06:47:53.220929', photon_index_error2='0.15', photon_index2='1.83', ts='87.35', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='5.42e-06', EG='1.36', time_epoch_completed='1663768073.22', return_code='0', job_id='851474', GAL2='0.97', EG2='1.37', return_code2='0', energy_flux_error='5.26e-06', photon_flux_error2='2.02e-08', ts2='89.22', photon_index='2.02' WHERE bin_id='172' AND source_name='4FGL J0205.7+6449' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Wed Sep 21 06:47:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 851474: <4FGL_J0205.7+6449_monthly_bin172> in cluster <slac> Done

Job <4FGL_J0205.7+6449_monthly_bin172> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 21 01:00:38 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 21 01:00:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 21 01:00:55 2022
Terminated at Wed Sep 21 06:47:56 2022
Results reported at Wed Sep 21 06:47:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.7+6449_monthly_bin172 31.4273 64.8239 682819201 685411201 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 :                                   20702.00 sec.
    Max Memory :                                 1310 MB
    Average Memory :                             966.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   20820 sec.
    Turnaround time :                            20838 sec.

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

