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 154 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_J2032.6+4053_weekly_bin716
RA = 308.153, Dec = 40.8939
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='659330', job_status='RUN', time_executed='2022-04-26 01:22:24.330819', time_epoch_executed='1650961344.33' WHERE source_name='4FGL J2032.6+4053' and cadence='weekly' and bin_id='716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659330

Creating custom pfile directory:
/scratch/kocevski/659330/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/659330/ft1_4FGL_J2032.6+4053_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/659330/ft2_4FGL_J2032.6+4053_weekly_bin716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659330/ft1_4FGL_J2032.6+4053_weekly_bin716.fits outfile=/scratch/kocevski/659330/ft1_filteredMKT_4FGL_J2032.6+4053_weekly_bin716.fits ra=308.153 dec=40.8939 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.94
user 8.45
sys 0.39

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/659330/ft2_4FGL_J2032.6+4053_weekly_bin716.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659330/ft2_4FGL_J2032.6+4053_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/659330/ft1_filteredMKT_4FGL_J2032.6+4053_weekly_bin716.fits evtable="EVENTS" outfile="/scratch/kocevski/659330/ft1_filtered_4FGL_J2032.6+4053_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.64
user 0.41
sys 0.17

Number of photons that the gtmktime cut: 15346

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659330/ft1_filtered_4FGL_J2032.6+4053_weekly_bin716.fits" evtable="EVENTS" scfile=/scratch/kocevski/659330/ft2_4FGL_J2032.6+4053_weekly_bin716.fits sctable="SC_DATA" outfile=/scratch/kocevski/659330/ltcube_672019201_672624001_4FGL_J2032.6+4053_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/659330/ft2_4FGL_J2032.6+4053_weekly_bin716.fits
.....................!
real 30.51
user 29.81
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659330/ft1_filtered_4FGL_J2032.6+4053_weekly_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/659330/ft2_4FGL_J2032.6+4053_weekly_bin716.fits sctable="SC_DATA" expcube=/scratch/kocevski/659330/ltcube_672019201_672624001_4FGL_J2032.6+4053_weekly_bin716.fits outfile=/scratch/kocevski/659330/expmap_672019201_672624001_4FGL_J2032.6+4053_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/659330/ltcube_672019201_672624001_4FGL_J2032.6+4053_weekly_bin716.fits
.....................!
real 193.28
user 186.58
sys 5.44

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 185 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 J2032.6+4053 @ 308.153 40.8939

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/659330/ft1_filtered_4FGL_J2032.6+4053_weekly_bin716.fits scfile=/scratch/kocevski/659330/ft2_4FGL_J2032.6+4053_weekly_bin716.fits outfile=/scratch/kocevski/659330/cmap_672019201_672624001_4FGL_J2032.6+4053_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=308.153 yref=40.8939 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659330/ft1_filtered_4FGL_J2032.6+4053_weekly_bin716.fits scfile=/scratch/kocevski/659330/ft2_4FGL_J2032.6+4053_weekly_bin716.fits outfile=/scratch/kocevski/659330/cmap_HighResolution_672019201_672624001_4FGL_J2032.6+4053_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=308.153 yref=40.8939 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.46
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659330/ft1_filtered_4FGL_J2032.6+4053_weekly_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/659330/ft2_4FGL_J2032.6+4053_weekly_bin716.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659330/Model_4FGL_J2032.6+4053_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 FHES J2129.9+5833
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/659330/ft1_filtered_4FGL_J2032.6+4053_weekly_bin716.fits.....................!
real 3248.22
user 3222.10
sys 1.86

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659330/ft1_filtered_4FGL_J2032.6+4053_weekly_bin716.fits', '/scratch/kocevski/659330/ft2_4FGL_J2032.6+4053_weekly_bin716.fits', expMap='/scratch/kocevski/659330/expmap_672019201_672624001_4FGL_J2032.6+4053_weekly_bin716.fits', expCube='/scratch/kocevski/659330/ltcube_672019201_672624001_4FGL_J2032.6+4053_weekly_bin716.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659330/Model_4FGL_J2032.6+4053_weekly_bin716.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2032.6+4053'

4FGL J2032.6+4053
   Spectrum: LogParabola
360         norm:  3.020e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.963e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  3.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  1.188e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/659330/ft1_filtered_4FGL_J2032.6+4053_weekly_bin716.fits
Spacecraft file(s): /scratch/kocevski/659330/ft2_4FGL_J2032.6+4053_weekly_bin716.fits
Exposure map: /scratch/kocevski/659330/expmap_672019201_672624001_4FGL_J2032.6+4053_weekly_bin716.fits
Exposure cube: /scratch/kocevski/659330/ltcube_672019201_672624001_4FGL_J2032.6+4053_weekly_bin716.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659330/Model_4FGL_J2032.6+4053_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) = 138423.754584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5688       1.0000         .10000E-03   10000.    
     2 'norm      '    8.6787       1.0000         .10000E-03   10000.    
     3 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.728       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2752       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5543       1.0000         .10000E-03   10000.    
     7 'norm      '    3.4212       1.0000         .10000E-03   10000.    
     8 'norm      '    .10729E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3381       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .84667E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .43198       1.0000         .10000E-03   10000.    
    12 'norm      '    .51059       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5499       1.0000         .10000E-03   10000.    
    14 'norm      '    5.8922       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2015       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47303E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .38506       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8163       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2078       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   138422.9     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     1811 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5893        4.0088        .92971E-07   -.14347E-04
   2  norm          8.6754        6.7966       -.42316E-06   -.39214E-04
   3  norm          .10000E-03    .50524        .26613E-07** at limit **
   4  Prefactor     14.731        8.7643       -.28198E-06   -.35763E-04
   5  norm          3.2636        3.6078        .73780E-06   -.21603E-02
   6  Prefactor     4.5300        12.248       -.57593E-05   -.94159E-04
   7  norm          3.4237        1.2849       -.17661E-07   -.68325E-03
   8  norm          .10000E-03    .54025        .13083E-06** at limit **
   9  Prefactor     2.3379        .14739       -.13099E-08   -.47269E-03
  10  Prefactor     .10000E-03    17.005        .75117E-05** at limit **
  11  norm          .43246        .75011       -.15219E-06   -.90434E-03
  12  norm          .50544        1.0897       -.17976E-06   -.13252E-03
  13  norm          2.5624        3.2431       -.25769E-06   -.47747E-03
  14  norm          5.8928        3.3444       -.10332E-05   -.27449E-03
  15  Prefactor     3.2000        2.9694       -.18852E-06    .21143E-02
  16  Prefactor     .10000E-03    14.413       -.74766E-05** at limit **
  17  norm          .38577        .52370       -.29987E-08    .18213E-03
  18  norm          1.8135        2.4631        .63973E-07   -.93826E-03
  19  Normalizat    1.2076        .20014        .20457E-06    .38680E-04
  20  Prefactor     1.0141        .16150E-01    .76376E-07    .38522E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.58932
  norm       = 8.67538
  norm       = 0.0001
  Prefactor  = 14.7307
  norm       = 3.26363
  Prefactor  = 4.53001
  norm       = 3.42367
  norm       = 0.0001
  Prefactor  = 2.33794
  Prefactor  = 0.0001
  norm       = 0.432465
  norm       = 0.505438
  norm       = 2.56245
  norm       = 5.89285
  Prefactor  = 3.19996
  Prefactor  = 0.0001
  norm       = 0.385775
  norm       = 1.81346
  Normalizat = 1.20764
  Prefactor  = 1.01412
 **********
 **   18 **HESSE 
 **********

 FCN=   138422.9     FROM HESSE     STATUS=OK           315 CALLS     2126 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5893        3.9996        .15658E-03   -1.5195    
   2  norm          8.6754        6.7970        .13607E-03   -1.5119    
   3  norm          .10000E-03    2.7508        .51079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.731        8.7302        .10437E-03   -1.4940    
   5  norm          3.2636        4.9776        .11188E-02   -1.5347    
   6  Prefactor     4.5300        12.259        .18863E-03   -1.5282    
   7  norm          3.4237        1.2839        .21870E-03   -1.5338    
   8  norm          .10000E-03    3.2143        .52363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3379        .14636        .33338E-04   -1.5402    
  10  Prefactor     .10000E-03    17.241        .20868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .43246        1.6329        .40997E-02   -1.5576    
  12  norm          .50544        3.9518        .55704E-02   -1.5566    
  13  norm          2.5624        3.2556        .25570E-03   -1.5388    
  14  norm          5.8928        3.3469        .16544E-03   -1.5222    
  15  Prefactor     3.2000        3.3248        .11322E-02   -1.5350    
  16  Prefactor     .10000E-03    14.565        .21185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .38577        .45664        .30473E-02   -1.5584    
  18  norm          1.8135        2.5002        .15495E-02   -1.5439    
  19  Normalizat    1.2076        .18549        .14804E-02   -.86367    
  20  Prefactor     1.0141        .15714E-01    .12670E-03   -.92260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98435e-06
Minuit parameter uncertainties:
  1  3.9998
  2  6.79757
  3  2.46658e-08
  4  8.73099
  5  4.97821
  6  12.2653
  7  1.2839
  8  3.48088e-05
  9  0.146364
  10  7.0014e-05
  11  1.63306
  12  2.82655
  13  3.25585
  14  3.34704
  15  3.32499
  16  8.05173e-05
  17  0.456642
  18  2.50034
  19  0.18559
  20  0.0157143
Done.

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

Extracting fit parameters...

4FGL J2032.6+4053
   Spectrum: LogParabola
360         norm:  2.562e+00  3.256e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.963e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  3.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  1.188e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  1.014e+00  1.571e-02  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.208e+00  1.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.71
Ra Dec: 308.153 40.894
Photon Flux Upper Limit: 2.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659330/likelihoodResults_672019201_672624001_4FGL_J2032.6+4053_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) = 138421.521561
delta logL = 1.34252748234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 138421.494964
delta logL = 1.36912450197

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15244       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0138       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+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.

 FCN=   138421.5     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      443 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15254        .10531        .63177E-03    .86532E-02
   2  alpha         5.0000        .52971        .50000    ** at limit **
   3  Normalizat    1.1613        .18296        .15027E-02   -.62705E-04
   4  Prefactor     1.0138        .14860E-01    .12666E-03   -.54574E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.152535
  alpha      = 5
  Normalizat = 1.16128
  Prefactor  = 1.01381
 **********
 **   18 **HESSE 
 **********

 FCN=   138421.5     FROM HESSE     STATUS=OK            31 CALLS      474 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15254        .94996E-01    .25271E-04   -1.5630    
   2  alpha         5.0000        .43620        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1613        .18303        .60106E-04   -.87808    
   4  Prefactor     1.0138        .14860E-01    .50662E-05   -.92271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.04091e-11
Minuit parameter uncertainties:
  1  0.0949963
  2  3.31455e-05
  3  0.183127
  4  0.0148597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659330': 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) = 138421.494963
delta logL = 1.36912541173

Extracting fit parameters...

4FGL J2032.6+4053
   Spectrum: LogParabola
360         norm:  1.525e-01  9.500e-02  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  5.000e+00  3.315e-05  0.000e+00  5.000e+00 ( 1.000e+00)
362         beta:  3.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  1.188e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  1.014e+00  1.486e-02  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.161e+00  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.48
Ra Dec: 308.153 40.894
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.96e-07 +/- 1.21e-07
Energy Flux (Free Index): 2.96e-05 +/- 1.84e-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/659330/cmap_HighResolution_672019201_672624001_4FGL_J2032.6+4053_weekly_bin716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-05', comment='SUCCESS', energy_flux2='2.96e-05', dlogl='1.37e+00', photon_flux2='1.96e-07', job_status='DONE', time_completed='2022-04-26 04:25:44.691137', photon_index_error2='0.00', photon_index2='5.00', ts='0.71', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='2.01e-07', energy_flux_error2='1.84e-05', EG='1.21', time_epoch_completed='1650972344.69', return_code='0', job_id='659330', GAL2='1.01', EG2='1.16', return_code2='0', photon_flux_error2='1.21e-07', ts2='3.48', photon_index='2.96' WHERE bin_id='716' AND source_name='4FGL J2032.6+4053' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 26 04:25:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 659330: <4FGL_J2032.6+4053_weekly_bin716> in cluster <slac> Done

Job <4FGL_J2032.6+4053_weekly_bin716> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 26 00:50:30 2022
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 26 01:19:39 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:39 2022
Terminated at Tue Apr 26 04:25:46 2022
Results reported at Tue Apr 26 04:25:46 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   10934.00 sec.
    Max Memory :                                 650 MB
    Average Memory :                             563.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11166 sec.
    Turnaround time :                            12916 sec.

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

