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


Performing analysis on: 4FGL_J2009.9+3544_weekly_bin713
RA = 302.489, Dec = 35.746
tmin = 670204801, tmax = 670809601
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='952147', job_status='RUN', time_executed='2022-04-05 00:56:26.115826', time_epoch_executed='1649145386.12' WHERE source_name='4FGL J2009.9+3544' and cadence='weekly' and bin_id='713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952147

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952147/ft1_4FGL_J2009.9+3544_weekly_bin713.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952147/ft2_4FGL_J2009.9+3544_weekly_bin713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952147/ft1_4FGL_J2009.9+3544_weekly_bin713.fits outfile=/scratch/kocevski/952147/ft1_filteredMKT_4FGL_J2009.9+3544_weekly_bin713.fits ra=302.489 dec=35.746 rad=12.0 tmin=670204801.0 tmax=670809601.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 9.09
user 8.76
sys 0.31

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

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

Number of photons that the gtmktime cut: 13145

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952147/ft1_filtered_4FGL_J2009.9+3544_weekly_bin713.fits" evtable="EVENTS" scfile=/scratch/kocevski/952147/ft2_4FGL_J2009.9+3544_weekly_bin713.fits sctable="SC_DATA" outfile=/scratch/kocevski/952147/ltcube_670204801_670809601_4FGL_J2009.9+3544_weekly_bin713.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/952147/ft2_4FGL_J2009.9+3544_weekly_bin713.fits
.....................!
real 26.41
user 26.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952147/ft1_filtered_4FGL_J2009.9+3544_weekly_bin713.fits evtable="EVENTS" scfile=/scratch/kocevski/952147/ft2_4FGL_J2009.9+3544_weekly_bin713.fits sctable="SC_DATA" expcube=/scratch/kocevski/952147/ltcube_670204801_670809601_4FGL_J2009.9+3544_weekly_bin713.fits outfile=/scratch/kocevski/952147/expmap_670204801_670809601_4FGL_J2009.9+3544_weekly_bin713.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/952147/ltcube_670204801_670809601_4FGL_J2009.9+3544_weekly_bin713.fits
.....................!
real 191.76
user 186.21
sys 5.20

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/952147/ft1_filtered_4FGL_J2009.9+3544_weekly_bin713.fits scfile=/scratch/kocevski/952147/ft2_4FGL_J2009.9+3544_weekly_bin713.fits outfile=/scratch/kocevski/952147/cmap_670204801_670809601_4FGL_J2009.9+3544_weekly_bin713.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.60
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952147/ft1_filtered_4FGL_J2009.9+3544_weekly_bin713.fits scfile=/scratch/kocevski/952147/ft2_4FGL_J2009.9+3544_weekly_bin713.fits outfile=/scratch/kocevski/952147/cmap_HighResolution_670204801_670809601_4FGL_J2009.9+3544_weekly_bin713.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.60
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/952147/ft1_filtered_4FGL_J2009.9+3544_weekly_bin713.fits evtable="EVENTS" scfile=/scratch/kocevski/952147/ft2_4FGL_J2009.9+3544_weekly_bin713.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/952147/Model_4FGL_J2009.9+3544_weekly_bin713.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/952147/ft1_filtered_4FGL_J2009.9+3544_weekly_bin713.fits.....................!
real 2713.15
user 2707.43
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/952147/ft1_filtered_4FGL_J2009.9+3544_weekly_bin713.fits', '/scratch/kocevski/952147/ft2_4FGL_J2009.9+3544_weekly_bin713.fits', expMap='/scratch/kocevski/952147/expmap_670204801_670809601_4FGL_J2009.9+3544_weekly_bin713.fits', expCube='/scratch/kocevski/952147/ltcube_670204801_670809601_4FGL_J2009.9+3544_weekly_bin713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/952147/Model_4FGL_J2009.9+3544_weekly_bin713.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/952147/ft1_filtered_4FGL_J2009.9+3544_weekly_bin713.fits
Spacecraft file(s): /scratch/kocevski/952147/ft2_4FGL_J2009.9+3544_weekly_bin713.fits
Exposure map: /scratch/kocevski/952147/expmap_670204801_670809601_4FGL_J2009.9+3544_weekly_bin713.fits
Exposure cube: /scratch/kocevski/952147/ltcube_670204801_670809601_4FGL_J2009.9+3544_weekly_bin713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/952147/Model_4FGL_J2009.9+3544_weekly_bin713.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) = 114616.191436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5794       1.0000         .10000E-03   10000.    
     4 'norm      '    12.860       1.0000         .10000E-03   10000.    
     5 'norm      '    .10577E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.820       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.415       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4449       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7768       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1555       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17216E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .24336       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.171       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9700       1.0000         .10000E-03   10000.    
    17 'norm      '    37.172       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.570       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0986       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0018       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=   114616.2     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2147 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5104       -.19627E-07** at limit **
   2  Prefactor     .10000E-03    39.611       -.22309E-06** at limit **
   3  Prefactor     2.5808        4.2865        .69104E-06   -.63875E-03
   4  norm          12.861        9.0053       -.19004E-05    .60320E-05
   5  norm          .10000E-03    .64345        .32525E-07** at limit **
   6  Prefactor     .10000E-03    1.9306        .59891E-07** at limit **
   7  norm          11.821        6.0944       -.37959E-05   -.16144E-05
   8  Prefactor     15.414        14.333        .79010E-07    .18498E-04
   9  norm          1.4451        .95831        .24722E-07   -.53102E-04
  10  norm          1.7767        1.1045       -.18549E-06   -.24106E-02
  11  Prefactor     2.1555        .14713       -.28795E-08    .69662E-03
  12  Prefactor     .20900        3.5505       -.14375E-07    .33123E-04
  13  norm          .24028        .56591       -.10035E-07   -.84550E-04
  14  norm          .10000E-03    1.7029        .65519E-08** at limit **
  15  norm          10.172        3.3091        .26417E-06    .62089E-04
  16  Prefactor     3.9701        2.3563        .80592E-07   -.74108E-03
  17  norm          37.173        19.977       -.10841E-05    .89824E-06
  18  Prefactor     14.572        21.038        .10689E-04    .62798E-05
  19  Normalizat    1.0984        .19633       -.17266E-05   -.65201E-04
  20  Prefactor     1.0018        .16938E-01    .77651E-07    .23285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.58077
  norm       = 12.8607
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8205
  Prefactor  = 15.4139
  norm       = 1.44512
  norm       = 1.77671
  Prefactor  = 2.15553
  Prefactor  = 0.209004
  norm       = 0.240284
  norm       = 0.0001
  norm       = 10.1723
  Prefactor  = 3.97014
  norm       = 37.1728
  Prefactor  = 14.5723
  Normalizat = 1.09844
  Prefactor  = 1.00177
 **********
 **   18 **HESSE 
 **********

 FCN=   114616.2     FROM HESSE     STATUS=OK           309 CALLS     2456 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5808        4.6232        .12706E-02   -1.5387    
   4  norm          12.861        9.0049        .11170E-03   -1.4991    
   5  norm          .10000E-03    2.0883        .52704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.821        6.0871        .11652E-03   -1.5020    
   8  Prefactor     15.414        14.378        .10201E-03   -1.4923    
   9  norm          1.4451        .95547        .26300E-03   -1.5468    
  10  norm          1.7767        2.4188        .15702E-02   -1.5441    
  11  Prefactor     2.1555        .14673        .31820E-04   -1.5414    
  12  Prefactor     .20900        3.1464        .18926       -1.5617    
  13  norm          .24028        1.5865        .36314E-02   -1.5610    
  14  norm          .10000E-03    1.7658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.172        3.3122        .12564E-03   -1.5070    
  16  Prefactor     3.9701        2.3986        .10122E-02   -1.5309    
  17  norm          37.173        19.976        .65735E-04   -1.4488    
  18  Prefactor     14.572        21.020        .10493E-03   -1.4944    
  19  Normalizat    1.0984        .18387        .13994E-02   -.89802    
  20  Prefactor     1.0018        .16516E-01    .12437E-03   -.92671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90588e-07
Minuit parameter uncertainties:
  1  9.81015e-06
  2  8.77133e-06
  3  4.62384
  4  9.00586
  5  1.15027e-05
  6  5.43833e-06
  7  6.08738
  8  14.3809
  9  0.955479
  10  2.41898
  11  0.14673
  12  1.62157
  13  1.23463
  14  4.57161e-07
  15  3.31224
  16  2.39863
  17  19.9791
  18  21.0304
  19  0.183974
  20  0.0165162
Done.

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

Extracting fit parameters...

4FGL J2009.9+3544
   Spectrum: PowerLaw
388    Prefactor:  1.541e+01  1.438e+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.002e+00  1.652e-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.098e+00  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 302.489 35.746
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.68e-05

TS (Fixed Index): 1.71
Ra Dec: 302.489 35.746
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/952147/likelihoodResults_670204801_670809601_4FGL_J2009.9+3544_weekly_bin713.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): 102
logL (Free Index) = 114615.984496
delta logL = 0.196027966187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 114615.98432
delta logL = 0.196204298729

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0715       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7005       1.0000          .0000       10.000    
     3 'Normalizat'    1.0872       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0007       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   114616.0     FROM MIGRAD    STATUS=FAILED        95 CALLS      334 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0739        209.37        .14112E-03    .15622E-02
   2  Index         2.7003        3.5957        .18671E-01    .13640E-02
   3  Normalizat    1.0872        .17533        .14047E-02    .46772E-03
   4  Prefactor     1.0007        .12680E-01    .12441E-03    .69078E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   114616.0     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      413 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0739        209.37        .32039E-03    .15622E-02
   2  Index         2.7003        3.5957        .80598E-03    .13640E-02
   3  Normalizat    1.0872        .17533        .17766E-03    .46772E-03
   4  Prefactor     1.0007        .12680E-01    .12804E-04    .69078E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   114616.0     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      442 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0741        15.079        .56449E-05    .16305E-02
   2  Index         2.7003        .77534        .74683E-03    .48493E-03
   3  Normalizat    1.0872        .17912        .56189E-04    .44998E-03
   4  Prefactor     1.0007        .15661E-01    .24882E-04    .67213E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.0741
  Index      = 2.70031
  Normalizat = 1.08724
  Prefactor  = 1.00072
 **********
 **   18 **HESSE 
 **********

 FCN=   114616.0     FROM HESSE     STATUS=OK            23 CALLS      465 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0741        14.216        .11290E-05   -1.5140    
   2  Index         2.7003        .72985        .29873E-04   -.47793    
   3  Normalizat    1.0872        .17892        .11238E-04   -.90163    
   4  Prefactor     1.0007        .15660E-01    .49764E-05   -.92705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49884e-09
Minuit parameter uncertainties:
  1  14.2215
  2  0.733178
  3  0.179024
  4  0.0156601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952147': 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) = 114615.98432
delta logL = 0.196204395892

Extracting fit parameters...

4FGL J2009.9+3544
   Spectrum: PowerLaw
388    Prefactor:  8.074e+00  1.422e+01  1.000e-04  1.000e+04 ( 1.000e-14)
389        Index:  2.700e+00  7.332e-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.001e+00  1.566e-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.087e+00  1.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 302.489 35.746
Photon Index (Free Index): 2.70 +/- 0.73
Photon Flux (Free Index): 9.08e-08 +/- 9.07e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.66e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/952147/cmap_HighResolution_670204801_670809601_4FGL_J2009.9+3544_weekly_bin713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.58e-03', comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='2.18e-05', photon_flux_error='3.87e-08', dlogl='1.96e-01', energy_flux='1.81e-05', photon_flux2='9.08e-08', job_status='DONE', time_completed='2022-04-05 04:02:30.796375', photon_index_error2='0.73', photon_index2='2.70', ts='1.71', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.66e-05', EG='1.10', time_epoch_completed='1649156550.8', return_code='0', job_id='952147', GAL2='1.00', EG2='1.09', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='9.07e-08', ts2='2.10', photon_index='2.22' WHERE bin_id='713' AND source_name='4FGL J2009.9+3544' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr  5 04:02:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 952147: <4FGL_J2009.9+3544_weekly_bin713> in cluster <slac> Done

Job <4FGL_J2009.9+3544_weekly_bin713> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Apr  5 00:55:31 2022
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr  5 00:55:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr  5 00:55:32 2022
Terminated at Tue Apr  5 04:02:32 2022
Results reported at Tue Apr  5 04:02:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2009.9+3544_weekly_bin713 302.489 35.746 670204801 670809601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2009.9+3544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11154.00 sec.
    Max Memory :                                 643 MB
    Average Memory :                             558.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11219 sec.
    Turnaround time :                            11221 sec.

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

