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


Performing analysis on: 4FGL_J2009.9+3544_weekly_bin716
RA = 302.489, Dec = 35.746
tmin = 672019201, tmax = 672624001
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='659295', job_status='RUN', time_executed='2022-04-26 01:23:15.912271', time_epoch_executed='1650961395.91' WHERE source_name='4FGL J2009.9+3544' and cadence='weekly' and bin_id='716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659295

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659295/ft1_4FGL_J2009.9+3544_weekly_bin716.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659295/ft2_4FGL_J2009.9+3544_weekly_bin716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659295/ft1_4FGL_J2009.9+3544_weekly_bin716.fits outfile=/scratch/kocevski/659295/ft1_filteredMKT_4FGL_J2009.9+3544_weekly_bin716.fits ra=302.489 dec=35.746 rad=12.0 tmin=672019201.0 tmax=672624001.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 8.89
user 8.49
sys 0.36

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/659295/ft2_4FGL_J2009.9+3544_weekly_bin716.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659295/ft2_4FGL_J2009.9+3544_weekly_bin716.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/659295/ft1_filteredMKT_4FGL_J2009.9+3544_weekly_bin716.fits evtable="EVENTS" outfile="/scratch/kocevski/659295/ft1_filtered_4FGL_J2009.9+3544_weekly_bin716.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.40
sys 0.16

Number of photons that the gtmktime cut: 14596

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659295/ft1_filtered_4FGL_J2009.9+3544_weekly_bin716.fits" evtable="EVENTS" scfile=/scratch/kocevski/659295/ft2_4FGL_J2009.9+3544_weekly_bin716.fits sctable="SC_DATA" outfile=/scratch/kocevski/659295/ltcube_672019201_672624001_4FGL_J2009.9+3544_weekly_bin716.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/659295/ft2_4FGL_J2009.9+3544_weekly_bin716.fits
.....................!
real 31.53
user 29.41
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659295/ft1_filtered_4FGL_J2009.9+3544_weekly_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/659295/ft2_4FGL_J2009.9+3544_weekly_bin716.fits sctable="SC_DATA" expcube=/scratch/kocevski/659295/ltcube_672019201_672624001_4FGL_J2009.9+3544_weekly_bin716.fits outfile=/scratch/kocevski/659295/expmap_672019201_672624001_4FGL_J2009.9+3544_weekly_bin716.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/659295/ltcube_672019201_672624001_4FGL_J2009.9+3544_weekly_bin716.fits
.....................!
real 191.36
user 186.11
sys 4.91

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 gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 216 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 J2009.9+3544 @ 302.489 35.746

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/659295/ft1_filtered_4FGL_J2009.9+3544_weekly_bin716.fits scfile=/scratch/kocevski/659295/ft2_4FGL_J2009.9+3544_weekly_bin716.fits outfile=/scratch/kocevski/659295/cmap_672019201_672624001_4FGL_J2009.9+3544_weekly_bin716.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=302.489 yref=35.746 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.62
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659295/ft1_filtered_4FGL_J2009.9+3544_weekly_bin716.fits scfile=/scratch/kocevski/659295/ft2_4FGL_J2009.9+3544_weekly_bin716.fits outfile=/scratch/kocevski/659295/cmap_HighResolution_672019201_672624001_4FGL_J2009.9+3544_weekly_bin716.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=302.489 yref=35.746 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.68
user 0.45
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659295/ft1_filtered_4FGL_J2009.9+3544_weekly_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/659295/ft2_4FGL_J2009.9+3544_weekly_bin716.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659295/Model_4FGL_J2009.9+3544_weekly_bin716.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/659295/ft1_filtered_4FGL_J2009.9+3544_weekly_bin716.fits.....................!
real 3062.80
user 3055.27
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659295/ft1_filtered_4FGL_J2009.9+3544_weekly_bin716.fits', '/scratch/kocevski/659295/ft2_4FGL_J2009.9+3544_weekly_bin716.fits', expMap='/scratch/kocevski/659295/expmap_672019201_672624001_4FGL_J2009.9+3544_weekly_bin716.fits', expCube='/scratch/kocevski/659295/ltcube_672019201_672624001_4FGL_J2009.9+3544_weekly_bin716.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659295/Model_4FGL_J2009.9+3544_weekly_bin716.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2009.9+3544'

4FGL J2009.9+3544
   Spectrum: PowerLaw
388    Prefactor:  3.794e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
389        Index:  2.217e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
390        Scale:  3.849e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/659295/ft1_filtered_4FGL_J2009.9+3544_weekly_bin716.fits
Spacecraft file(s): /scratch/kocevski/659295/ft2_4FGL_J2009.9+3544_weekly_bin716.fits
Exposure map: /scratch/kocevski/659295/expmap_672019201_672624001_4FGL_J2009.9+3544_weekly_bin716.fits
Exposure cube: /scratch/kocevski/659295/ltcube_672019201_672624001_4FGL_J2009.9+3544_weekly_bin716.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659295/Model_4FGL_J2009.9+3544_weekly_bin716.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) = 131987.868578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.453       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8931       1.0000         .10000E-03   10000.    
     4 'norm      '    8.3141       1.0000         .10000E-03   10000.    
     5 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.251       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2027       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7128       1.0000         .10000E-03   10000.    
     9 'norm      '    3.2076       1.0000         .10000E-03   10000.    
    10 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3284       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .28961       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5781       1.0000         .10000E-03   10000.    
    15 'norm      '    2.3875       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0667       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   131986.8     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     1900 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.453        12.086       -.36342E-06    .11014E-04
   2  Prefactor     .10000E-03    85.054       -.11126E-04** at limit **
   3  Prefactor     6.8930        4.1187       -.26740E-05   -.10116E-03
   4  norm          8.3143        6.6365        .38870E-07   -.10530E-03
   5  norm          .10000E-03    .51564        .18370E-06** at limit **
   6  Prefactor     15.251        8.8577       -.39547E-06   -.65159E-04
   7  norm          3.2028        4.9602       -.10620E-05   -.44758E-04
   8  Prefactor     3.6972        11.908       -.17206E-04   -.88982E-04
   9  norm          3.2076        1.2498       -.63559E-07   -.30062E-03
  10  norm          .10000E-03    .52918        .38893E-06** at limit **
  11  Prefactor     2.3283        .14454        .48759E-09   -.30898E-02
  12  Prefactor     .10000E-03    13.812        .33923E-06** at limit **
  13  norm          .28732        .62289        .39454E-07   -.33660E-03
  14  norm          3.5781        2.4419       -.41941E-07   -.73370E-04
  15  norm          2.3874        .82837        .12917E-06   -.37866E-02
  16  Prefactor     .10000E-03    .44324       -.48085E-07** at limit **
  17  norm          .10016E-03    4.0805        .72711E-06** at limit **
  18  Prefactor     .10000E-03    6.3456        .20971E-06** at limit **
  19  Normalizat    1.0667        .19963        .19371E-05    .13825E-04
  20  Prefactor     1.0255        .16357E-01    .27783E-08   -.19583E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.453
  Prefactor  = 0.0001
  Prefactor  = 6.89301
  norm       = 8.31427
  norm       = 0.0001
  Prefactor  = 15.2507
  norm       = 3.20276
  Prefactor  = 3.69718
  norm       = 3.20761
  norm       = 0.0001
  Prefactor  = 2.32835
  Prefactor  = 0.0001
  norm       = 0.287322
  norm       = 3.57813
  norm       = 2.38744
  Prefactor  = 0.0001
  norm       = 0.000100156
  Prefactor  = 0.0001
  Normalizat = 1.06675
  Prefactor  = 1.02549
 **********
 **   18 **HESSE 
 **********

 FCN=   131986.8     FROM HESSE     STATUS=OK           321 CALLS     2221 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.453        12.064        .11351E-03   -1.5002    
   2  Prefactor     .10000E-03    85.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.8930        4.1108        .15281E-03   -1.5183    
   4  norm          8.3143        6.6423        .69518E-03   -1.5131    
   5  norm          .10000E-03    2.7480        .50363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.251        8.8108        .10256E-03   -1.4927    
   7  norm          3.2028        4.9478        .22640E-03   -1.5350    
   8  Prefactor     3.6972        11.915        .20958E-03   -1.5323    
   9  norm          3.2076        1.2485        .22622E-03   -1.5350    
  10  norm          .10000E-03    2.7976        .50671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3283        .14642        .32604E-04   -1.5403    
  12  Prefactor     .10000E-03    13.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .28732        2.2314        .39994E-02   -1.5601    
  14  norm          3.5781        2.4395        .21364E-03   -1.5330    
  15  norm          2.3874        3.2641        .13254E-02   -1.5399    
  16  Prefactor     .10000E-03    .44080        .91178E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10016E-03    3.9569        .36789       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0667        .18378        .15079E-02   -.90827    
  20  Prefactor     1.0255        .16056E-01    .12697E-03   -.91885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1439e-07
Minuit parameter uncertainties:
  1  12.0659
  2  2.17644e-05
  3  4.11094
  4  6.64288
  5  3.4827e-05
  6  8.81157
  7  4.94847
  8  11.9225
  9  1.2485
  10  7.47794e-05
  11  0.146424
  12  4.79929e-06
  13  1.60121
  14  2.43959
  15  3.2643
  16  4.70681e-06
  17  0.00156901
  18  4.29946e-06
  19  0.183889
  20  0.016056
Done.

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

Extracting fit parameters...

4FGL J2009.9+3544
   Spectrum: PowerLaw
388    Prefactor:  3.697e+00  1.192e+01  1.000e-04  1.000e+04 ( 1.000e-14)
389        Index:  2.217e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
390        Scale:  3.849e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
787    Prefactor:  1.025e+00  1.606e-02  0.000e+00  1.000e+01 ( 1.000e+00)
788        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
789        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
786   Normalization:  1.067e+00  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 302.489 35.746
Photon Flux Upper Limit: 9.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659295/likelihoodResults_672019201_672624001_4FGL_J2009.9+3544_weekly_bin716.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 131986.797264
delta logL = 0.0306751826429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 131986.777555
delta logL = 0.050384751783

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   131986.8     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      273 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9297        17.396        .15247E-03    .47720E-04
   2  Index         1.9081        .86194        .46675E-02    .32673E-03
   3  Normalizat    1.0679        .17762        .15073E-02    .30339E-03
   4  Prefactor     1.0254        .15105E-01    .12697E-03    .71741E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.92969
  Index      = 1.90813
  Normalizat = 1.06789
  Prefactor  = 1.02545
 **********
 **   18 **HESSE 
 **********

 FCN=   131986.8     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9297        17.228        .60988E-05   -1.5181    
   2  Index         1.9081        .85453        .18670E-03   -.66667    
   3  Normalizat    1.0679        .17755        .60290E-04   -.90790    
   4  Prefactor     1.0254        .15101E-01    .25394E-04   -.91886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55197e-09
Minuit parameter uncertainties:
  1  17.2404
  2  0.861418
  3  0.177652
  4  0.0151007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659295': 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) = 131986.777554
delta logL = 0.0503848184308

Extracting fit parameters...

4FGL J2009.9+3544
   Spectrum: PowerLaw
388    Prefactor:  6.930e+00  1.724e+01  1.000e-04  1.000e+04 ( 1.000e-14)
389        Index:  1.908e+00  8.614e-01  0.000e+00  1.000e+01 (-1.000e+00)
390        Scale:  3.849e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
787    Prefactor:  1.025e+00  1.510e-02  0.000e+00  1.000e+01 ( 1.000e+00)
788        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
789        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
786   Normalization:  1.068e+00  1.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 302.489 35.746

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/659295/cmap_HighResolution_672019201_672624001_4FGL_J2009.9+3544_weekly_bin716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2022-04-26 04:35:13.917855', job_id='659295', GAL2='1.03', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1650972913.92', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='5.04e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='716' AND source_name='4FGL J2009.9+3544' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 26 04:35:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 659295: <4FGL_J2009.9+3544_weekly_bin716> in cluster <slac> Done

Job <4FGL_J2009.9+3544_weekly_bin716> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 26 00:50:27 2022
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 26 01:19:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 26 01:19:15 2022
Terminated at Tue Apr 26 04:35:16 2022
Results reported at Tue Apr 26 04:35:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11503.00 sec.
    Max Memory :                                 645 MB
    Average Memory :                             570.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11761 sec.
    Turnaround time :                            13489 sec.

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

