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


Performing analysis on: 4FGL_J2001.2+4353_weekly_bin731
RA = 300.302, Dec = 43.8862
tmin = 681091201, tmax = 681696001
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='129122', job_status='RUN', time_executed='2022-08-09 00:59:29.028822', time_epoch_executed='1660031969.03' WHERE source_name='4FGL J2001.2+4353' and cadence='weekly' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/129122

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/129122/ft1_4FGL_J2001.2+4353_weekly_bin731.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/129122/ft2_4FGL_J2001.2+4353_weekly_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/129122/ft1_4FGL_J2001.2+4353_weekly_bin731.fits outfile=/scratch/kocevski/129122/ft1_filteredMKT_4FGL_J2001.2+4353_weekly_bin731.fits ra=300.302 dec=43.8862 rad=12.0 tmin=681091201.0 tmax=681696001.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 5.79
user 5.48
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/129122/ft2_4FGL_J2001.2+4353_weekly_bin731.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/129122/ft2_4FGL_J2001.2+4353_weekly_bin731.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/129122/ft1_filteredMKT_4FGL_J2001.2+4353_weekly_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/129122/ft1_filtered_4FGL_J2001.2+4353_weekly_bin731.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.39
sys 0.16

Number of photons that the gtmktime cut: 18293

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/129122/ft1_filtered_4FGL_J2001.2+4353_weekly_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/129122/ft2_4FGL_J2001.2+4353_weekly_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/129122/ltcube_681091201_681696001_4FGL_J2001.2+4353_weekly_bin731.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/129122/ft2_4FGL_J2001.2+4353_weekly_bin731.fits
.....................!
real 27.45
user 27.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/129122/ft1_filtered_4FGL_J2001.2+4353_weekly_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/129122/ft2_4FGL_J2001.2+4353_weekly_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/129122/ltcube_681091201_681696001_4FGL_J2001.2+4353_weekly_bin731.fits outfile=/scratch/kocevski/129122/expmap_681091201_681696001_4FGL_J2001.2+4353_weekly_bin731.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/129122/ltcube_681091201_681696001_4FGL_J2001.2+4353_weekly_bin731.fits
.....................!
real 190.54
user 185.36
sys 4.85

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 HB 21 in ROI with RadialDisk 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 FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 200 point sources and 5 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 J2001.2+4353 @ 300.302 43.8862

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/129122/ft1_filtered_4FGL_J2001.2+4353_weekly_bin731.fits scfile=/scratch/kocevski/129122/ft2_4FGL_J2001.2+4353_weekly_bin731.fits outfile=/scratch/kocevski/129122/cmap_681091201_681696001_4FGL_J2001.2+4353_weekly_bin731.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=300.302 yref=43.8862 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.61
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/129122/ft1_filtered_4FGL_J2001.2+4353_weekly_bin731.fits scfile=/scratch/kocevski/129122/ft2_4FGL_J2001.2+4353_weekly_bin731.fits outfile=/scratch/kocevski/129122/cmap_HighResolution_681091201_681696001_4FGL_J2001.2+4353_weekly_bin731.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=300.302 yref=43.8862 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.61
user 0.45
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/129122/ft1_filtered_4FGL_J2001.2+4353_weekly_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/129122/ft2_4FGL_J2001.2+4353_weekly_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/129122/Model_4FGL_J2001.2+4353_weekly_bin731.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 FHES J2129.9+5833
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/129122/ft1_filtered_4FGL_J2001.2+4353_weekly_bin731.fits.....................!
real 3831.59
user 3823.90
sys 1.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/129122/ft1_filtered_4FGL_J2001.2+4353_weekly_bin731.fits', '/scratch/kocevski/129122/ft2_4FGL_J2001.2+4353_weekly_bin731.fits', expMap='/scratch/kocevski/129122/expmap_681091201_681696001_4FGL_J2001.2+4353_weekly_bin731.fits', expCube='/scratch/kocevski/129122/ltcube_681091201_681696001_4FGL_J2001.2+4353_weekly_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/129122/Model_4FGL_J2001.2+4353_weekly_bin731.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2001.2+4353'

4FGL J2001.2+4353
   Spectrum: LogParabola
336         norm:  9.913e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
337        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
338         beta:  9.675e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
339           Eb:  2.071e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/129122/ft1_filtered_4FGL_J2001.2+4353_weekly_bin731.fits
Spacecraft file(s): /scratch/kocevski/129122/ft2_4FGL_J2001.2+4353_weekly_bin731.fits
Exposure map: /scratch/kocevski/129122/expmap_681091201_681696001_4FGL_J2001.2+4353_weekly_bin731.fits
Exposure cube: /scratch/kocevski/129122/ltcube_681091201_681696001_4FGL_J2001.2+4353_weekly_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/129122/Model_4FGL_J2001.2+4353_weekly_bin731.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) = 164128.615795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8491       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8891       1.0000         .10000E-03   10000.    
     4 'norm      '    .18983E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .69155       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1263       1.0000         .10000E-03   10000.    
     8 'norm      '    4.9801       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1304       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3414       1.0000         .10000E-03   10000.    
    11 'norm      '    12.966       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2051       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .30564E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    9.6109       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4174       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5645       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2652       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0017       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   164128.6     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2012 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8640        9.9487         .0000        .16532E-03
   2  Prefactor     .10000E-03    517.66         .0000    ** at limit **
   3  Prefactor     2.8892        2.5796         .0000        .33006E-03
   4  norm          .10000E-03    1.2846         .0000    ** at limit **
   5  Prefactor     .10000E-03    5.9161         .0000    ** at limit **
   6  norm          .69157        2.2446         .0000        .19994    
   7  Prefactor     2.1264        7.7564         .0000        .11739E-01
   8  norm          4.9791        4.8370         .0000        .44421E-03
   9  Prefactor     2.1302        14.779         .0000        .22039E-03
  10  norm          1.3413        .86420         .0000        .18705E-01
  11  norm          12.967        3.0425         .0000        .13799E-01
  12  Prefactor     2.2051        .12543         .0000        .59252E-02
  13  norm          .10000E-03    .60748         .0000    ** at limit **
  14  norm          .10000E-03    .39263         .0000    ** at limit **
  15  norm          9.6097        2.9081         .0000        .33056E-01
  16  norm          3.4167        1.9865         .0000        .60814E-01
  17  Prefactor     3.5651        3.3594         .0000       -.56545E-03
  18  Normalizat    1.2652        .11565         .0000        .43424E-03
  19  Prefactor     1.0018        .13396E-01     .0000       -.24629E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.864
  Prefactor  = 0.000100002
  Prefactor  = 2.88915
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.691567
  Prefactor  = 2.12635
  norm       = 4.97911
  Prefactor  = 2.13017
  norm       = 1.34125
  norm       = 12.9668
  Prefactor  = 2.20513
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.60966
  norm       = 3.41672
  Prefactor  = 3.56507
  Normalizat = 1.26522
  Prefactor  = 1.00175
 **********
 **   18 **HESSE 
 **********

 FCN=   164128.6     FROM HESSE     STATUS=OK           296 CALLS     2308 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8640        9.9444        .14312E-03   -1.5147    
   2  Prefactor     .10000E-03    534.14        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8892        2.5793        .23909E-03   -1.5368    
   4  norm          .10000E-03    1.2936        .18624       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .69157        2.2723        .24059E-02   -1.5542    
   7  Prefactor     2.1264        7.7379        .14139E-02   -1.5416    
   8  norm          4.9791        4.8275        .18021E-03   -1.5262    
   9  Prefactor     2.1302        14.768        .28247E-03   -1.5416    
  10  norm          1.3413        .85341        .29311E-03   -1.5476    
  11  norm          12.967        3.0392        .55620E-03   -1.4988    
  12  Prefactor     2.2051        .12497        .31789E-04   -1.5411    
  13  norm          .10000E-03    .62871        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .42270        .91377E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.6097        2.9127        .64632E-03   -1.5088    
  16  norm          3.4167        1.9832        .10941E-02   -1.5338    
  17  Prefactor     3.5651        3.3654        .21407E-03   -1.5330    
  18  Normalizat    1.2652        .11423        .10750E-02   -.84610    
  19  Prefactor     1.0018        .13611E-01    .13020E-03   -.92671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67116e-10
Minuit parameter uncertainties:
  1  9.94652
  2  0.0018508
  3  2.57944
  4  1.38558e-05
  5  1.27044e-05
  6  2.2726
  7  7.74156
  8  4.82784
  9  11.2212
  10  0.853422
  11  3.03925
  12  0.124975
  13  2.84283e-07
  14  1.15576e-05
  15  2.91275
  16  1.98322
  17  3.3656
  18  0.11425
  19  0.0136106
Done.

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

Extracting fit parameters...

4FGL J2001.2+4353
   Spectrum: LogParabola
336         norm:  4.979e+00  4.828e+00  1.000e-04  1.000e+04 ( 1.000e-13)
337        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
338         beta:  9.675e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
339           Eb:  2.071e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.002e+00  1.361e-02  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  1.265e+00  1.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 300.302 43.886
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 9.80e-09 +/- 9.50e-09
Energy Flux (Fixed Index): 1.15e-05 +/- 1.11e-05

TS (Fixed Index): 1.51
Ra Dec: 300.302 43.886
Photon Flux Upper Limit: 3.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/129122/likelihoodResults_681091201_681696001_4FGL_J2001.2+4353_weekly_bin731.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) = 164127.821717
delta logL = 0.731864647794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 164127.807528
delta logL = 0.746054209536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8675       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1967       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0014       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   164127.8     FROM MIGRAD    STATUS=FAILED       103 CALLS      354 TOTAL
                     EDM=   .30E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8726        32.288        .15241E-02    .85404E-03
   2  alpha         3.1955        4.0823        .20750E-01    .32667E-02
   3  Normalizat    1.2338        .11608        .10851E-02    .75768E-04
   4  Prefactor     1.0014        .10047E-01    .13020E-03    .12098E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   164127.8     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      436 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8726        32.288        .18387E-03    .85404E-03
   2  alpha         3.1955        4.0823        .24039E-02    .32667E-02
   3  Normalizat    1.2338        .11608        .13697E-03    .75768E-04
   4  Prefactor     1.0014        .10047E-01    .75908E-05    .12098E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   164127.8     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      512 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8726        4.9523        .24386E-05   -.29836E-04
   2  alpha         3.1955        1.2426        .83001E-03   -.13149E-05
   3  Normalizat    1.2338        .11758        .86811E-05    .67051E-04
   4  Prefactor     1.0014        .12496E-01    .10416E-05    .10537E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.87255
  alpha      = 3.19547
  Normalizat = 1.23375
  Prefactor  = 1.00138
 **********
 **   18 **HESSE 
 **********

 FCN=   164127.8     FROM HESSE     STATUS=OK            23 CALLS      535 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8726        3.8456        .48772E-06   -1.5434    
   2  alpha         3.1955        .99179        .33200E-04    .28191    
   3  Normalizat    1.2338        .11490        .17362E-05   -.85566    
   4  Prefactor     1.0014        .12324E-01    .22098E-06   -.92684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30874e-11
Minuit parameter uncertainties:
  1  3.84614
  2  1.0224
  3  0.114923
  4  0.0123235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/129122': 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) = 164127.807527
delta logL = 0.746055312775

Extracting fit parameters...

4FGL J2001.2+4353
   Spectrum: LogParabola
336         norm:  1.873e+00  3.846e+00  1.000e-04  1.000e+04 ( 1.000e-13)
337        alpha:  3.195e+00  1.022e+00  0.000e+00  5.000e+00 ( 1.000e+00)
338         beta:  9.675e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
339           Eb:  2.071e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.001e+00  1.232e-02  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  1.234e+00  1.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.07
Ra Dec: 300.302 43.886
Photon Index (Free Index): 3.20 +/- 1.02
Photon Flux (Free Index): 7.22e-08 +/- 6.02e-08
Energy Flux (Free Index): 1.53e-05 +/- 9.36e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/129122/cmap_HighResolution_681091201_681696001_4FGL_J2001.2+4353_weekly_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-05', comment='SUCCESS', photon_flux='9.80e-09', energy_flux2='1.53e-05', photon_flux_error='9.50e-09', dlogl='7.46e-01', energy_flux='1.15e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2022-08-09 04:56:46.676686', photon_index_error2='1.02', photon_index2='3.20', ts='1.51', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='3.13e-08', energy_flux_error2='9.36e-06', EG='1.27', time_epoch_completed='1660046206.68', return_code='0', job_id='129122', GAL2='1.00', EG2='1.23', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='6.02e-08', ts2='3.07', photon_index='1.81' WHERE bin_id='731' AND source_name='4FGL J2001.2+4353' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  9 04:56:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 129122: <4FGL_J2001.2+4353_weekly_bin731> in cluster <slac> Done

Job <4FGL_J2001.2+4353_weekly_bin731> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug  9 00:55:28 2022
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  9 00:55:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  9 00:55:29 2022
Terminated at Tue Aug  9 04:56:48 2022
Results reported at Tue Aug  9 04:56:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2001.2+4353_weekly_bin731 300.302 43.8862 681091201 681696001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2001.2+4353 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14226.00 sec.
    Max Memory :                                 657 MB
    Average Memory :                             613.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14479 sec.
    Turnaround time :                            14480 sec.

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

