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


Performing analysis on: 4FGL_J0205.7+6449_monthly_bin170
RA = 31.4273, Dec = 64.8239
tmin = 677635201, tmax = 680227201
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='84819', job_status='RUN', time_executed='2022-07-23 00:42:38.067985', time_epoch_executed='1658562158.07' WHERE source_name='4FGL J0205.7+6449' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/84819

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/84819/ft1_4FGL_J0205.7+6449_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/84819/ft2_4FGL_J0205.7+6449_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/84819/ft1_4FGL_J0205.7+6449_monthly_bin170.fits outfile=/scratch/kocevski/84819/ft1_filteredMKT_4FGL_J0205.7+6449_monthly_bin170.fits ra=31.4273 dec=64.8239 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.51
user 31.65
sys 0.77

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

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

Number of photons that the gtmktime cut: 41376

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/84819/ft1_filtered_4FGL_J0205.7+6449_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/84819/ft2_4FGL_J0205.7+6449_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/84819/ltcube_677635201_680227201_4FGL_J0205.7+6449_monthly_bin170.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/84819/ft2_4FGL_J0205.7+6449_monthly_bin170.fits
.....................!
real 107.85
user 107.26
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/84819/ft1_filtered_4FGL_J0205.7+6449_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/84819/ft2_4FGL_J0205.7+6449_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/84819/ltcube_677635201_680227201_4FGL_J0205.7+6449_monthly_bin170.fits outfile=/scratch/kocevski/84819/expmap_677635201_680227201_4FGL_J0205.7+6449_monthly_bin170.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/84819/ltcube_677635201_680227201_4FGL_J0205.7+6449_monthly_bin170.fits
.....................!
real 191.43
user 185.82
sys 5.23

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/84819/ft1_filtered_4FGL_J0205.7+6449_monthly_bin170.fits scfile=/scratch/kocevski/84819/ft2_4FGL_J0205.7+6449_monthly_bin170.fits outfile=/scratch/kocevski/84819/cmap_677635201_680227201_4FGL_J0205.7+6449_monthly_bin170.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.89
user 0.67
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/84819/ft1_filtered_4FGL_J0205.7+6449_monthly_bin170.fits scfile=/scratch/kocevski/84819/ft2_4FGL_J0205.7+6449_monthly_bin170.fits outfile=/scratch/kocevski/84819/cmap_HighResolution_677635201_680227201_4FGL_J0205.7+6449_monthly_bin170.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.86
user 0.68
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/84819/ft1_filtered_4FGL_J0205.7+6449_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/84819/ft2_4FGL_J0205.7+6449_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/84819/Model_4FGL_J0205.7+6449_monthly_bin170.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/84819/ft1_filtered_4FGL_J0205.7+6449_monthly_bin170.fits.....................!
real 5341.42
user 5331.27
sys 1.70

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .69838       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5902       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8700       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .27015       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22427       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .49712E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5648       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6316       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8028       1.0000         .10000E-03   10000.    
    14 'norm      '    4.8603       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4077       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.850       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5165       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9466       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2957       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97513       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=   383971.1     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     1683 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0149        .32707E-06** at limit **
   2  norm          .69834        .61868        .74614E-08    .14889E-05
   3  norm          5.5901        1.2725        .13865E-06    .32537E-04
   4  norm          3.8692        1.9179       -.13745E-05   -.24299E-03
   5  Prefactor     .10000E-03    2.0151        .22194E-06** at limit **
   6  norm          .27208        .45178       -.20574E-06   -.12266E-04
   7  Prefactor     .22449        .62575        .18563E-06    .12265E-05
   8  Prefactor     .10000E-03    2.6015        .95692E-06** at limit **
   9  Prefactor     .10000E-03    39.870        .50491E-05** at limit **
  10  Prefactor     1.5648        .25669       -.82360E-08   -.11549E-04
  11  norm          .10000E-03    .94998        .45585E-06** at limit **
  12  Prefactor     2.6315        .83714       -.12882E-06   -.52459E-04
  13  Prefactor     2.8061        1.1513        .33085E-06   -.22056E-03
  14  norm          4.8604        .19877       -.44754E-08    .67844E-05
  15  norm          3.4078        1.9616        .11090E-05    .12872E-03
  16  norm          .10000E-03    2.4812       -.14055E-05** at limit **
  17  Prefactor     13.840        8.9386        .37067E-05   -.20090E-03
  18  Prefactor     1.5165        .95784       -.70407E-07   -.48464E-06
  19  Prefactor     1.9467        .77589       -.15067E-06    .99599E-06
  20  Normalizat    1.2957        .96282E-01    .13519E-06   -.34589E-05
  21  Prefactor     .97513        .95794E-02   -.60097E-08   -.12200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.698341
  norm       = 5.59008
  norm       = 3.86923
  Prefactor  = 0.0001
  norm       = 0.272081
  Prefactor  = 0.224487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.56481
  norm       = 0.0001
  Prefactor  = 2.63147
  Prefactor  = 2.80607
  norm       = 4.86035
  norm       = 3.40778
  norm       = 0.0001
  Prefactor  = 13.8399
  Prefactor  = 1.51651
  Prefactor  = 1.94671
  Normalizat = 1.29568
  Prefactor  = 0.97513
 **********
 **   18 **HESSE 
 **********

 FCN=   383971.1     FROM HESSE     STATUS=OK           381 CALLS     2064 TOTAL
                     EDM=   .19E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8825        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .69834        .60869        .12056E-01   -1.5541    
   3  norm          5.5901        1.2753        .42478E-02   -1.5235    
   4  norm          3.8692        1.9258        .51281E-02   -1.5315    
   5  Prefactor     .10000E-03    1.9313        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .27208        .35410        .10293       -1.5604    
   7  Prefactor     .22449        .61421        .10088E-01   -1.5613    
   8  Prefactor     .10000E-03    2.5118        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3518        .20552       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5648        .25894        .85007E-02   -1.5458    
  11  norm          .10000E-03    .93132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6315        .87857        .62843E-02   -1.5384    
  13  Prefactor     2.8061        20.197        .60748E-02   -1.5373    
  14  norm          4.8604        .19916        .45615E-02   -1.5267    
  15  norm          3.4078        1.9661        .54787E-02   -1.5339    
  16  norm          .10000E-03    .11622        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.840        9.0880        .26907E-02   -1.4964    
  18  Prefactor     1.5165        .96132        .86777E-02   -1.5462    
  19  Prefactor     1.9467        .78255        .74372E-02   -1.5429    
  20  Normalizat    1.2957        .99678E-01    .23322       -.83695    
  21  Prefactor     .97513        .95439E-02    .26958E-01   -.93563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000192689
Minuit parameter uncertainties:
  1  1.82326e-06
  2  0.6087
  3  1.27532
  4  1.92586
  5  2.70308e-08
  6  0.354099
  7  0.61423
  8  5.39923e-07
  9  9.59508e-06
  10  0.258939
  11  5.13055e-08
  12  0.878579
  13  15.0632
  14  0.199155
  15  1.96618
  16  1.64051e-08
  17  9.0889
  18  0.961332
  19  0.78255
  20  0.0996924
  21  0.00954392
Done.

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

Extracting fit parameters...

4FGL J0205.7+6449
   Spectrum: PLSuperExpCutoff2
255    Prefactor:  1.565e+00  2.589e-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.751e-01  9.544e-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.296e+00  9.969e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 66.14
Ra Dec: 31.427 64.824
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 1.81e-08
Energy Flux (Fixed Index): 3.53e-05 +/- 5.84e-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) = 383970.10254
delta logL = 1.00886385824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 383970.102331
delta logL = 1.00907304737

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6916       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.7652       1.0000          .0000       10.000    
     3 'Normalizat'    1.3115       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97506       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=   383970.1     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      241 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6917        2.8181        .80907E-02    .21577E-01
   2  Index1        1.7652        1.0055        .27344        .16127E-02
   3  Normalizat    1.3115        .39247E-01    .23210        .14854E-02
   4  Prefactor     .97506        .30489E-02    .26961E-01   -.73277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.6917
  Index1     = 1.76518
  Normalizat = 1.31155
  Prefactor  = 0.975055
 **********
 **   18 **HESSE 
 **********

 FCN=   383970.1     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6917        .29453        .13500E-03   -1.5448    
   2  Index1        1.7652        .18951        .16568E-01   -.70360    
   3  Normalizat    1.3115        .92767E-01    .10366E-02   -.83222    
   4  Prefactor     .97506        .94700E-02    .11915E-03   -.93566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88416e-10
Minuit parameter uncertainties:
  1  0.294529
  2  0.189589
  3  0.0927789
  4  0.00947002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/84819': 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) = 383970.102331
delta logL = 1.00907311199

Extracting fit parameters...

4FGL J0205.7+6449
   Spectrum: PLSuperExpCutoff2
255    Prefactor:  1.692e+00  2.945e-01  1.000e-04  1.000e+04 ( 1.000e-11)
256       Index1:  1.765e+00  1.896e-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.751e-01  9.470e-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.312e+00  9.278e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 68.14
Ra Dec: 31.427 64.824
Photon Index (Free Index): 1.77 +/- 0.19
Photon Flux (Free Index): 8.30e-08 +/- 2.33e-08
Energy Flux (Free Index): 3.50e-05 +/- 6.03e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -4.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  4.440e+00 [aplpy.core]
Saving /scratch/kocevski/84819/cmap_HighResolution_677635201_680227201_4FGL_J0205.7+6449_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='3.50e-05', photon_flux_error='1.81e-08', dlogl='1.01e+00', energy_flux='3.53e-05', photon_flux2='8.30e-08', job_status='DONE', time_completed='2022-07-23 06:19:45.435850', photon_index_error2='0.19', photon_index2='1.77', ts='66.14', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='6.03e-06', EG='1.30', time_epoch_completed='1658582385.44', return_code='0', job_id='84819', GAL2='0.98', EG2='1.31', return_code2='0', energy_flux_error='5.84e-06', photon_flux_error2='2.33e-08', ts2='68.14', photon_index='2.02' WHERE bin_id='170' AND source_name='4FGL J0205.7+6449' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 06:19:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 84819: <4FGL_J0205.7+6449_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0205.7+6449_monthly_bin170> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jul 23 00:40:35 2022
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:40:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:40:36 2022
Terminated at Sat Jul 23 06:19:48 2022
Results reported at Sat Jul 23 06:19:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.7+6449_monthly_bin170 31.4273 64.8239 677635201 680227201 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 :                                   20195.00 sec.
    Max Memory :                                 991 MB
    Average Memory :                             870.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   20351 sec.
    Turnaround time :                            20353 sec.

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

