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 173 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_J2032.6+4053_weekly_bin731
RA = 308.153, Dec = 40.8939
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='129177', job_status='RUN', time_executed='2022-08-09 00:58:36.356688', time_epoch_executed='1660031916.36' WHERE source_name='4FGL J2032.6+4053' and cadence='weekly' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/129177

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


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/129177/ft1_4FGL_J2032.6+4053_weekly_bin731.fits outfile=/scratch/kocevski/129177/ft1_filteredMKT_4FGL_J2032.6+4053_weekly_bin731.fits ra=308.153 dec=40.8939 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.80
user 5.49
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/129177/ft2_4FGL_J2032.6+4053_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/129177/ft1_filteredMKT_4FGL_J2032.6+4053_weekly_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/129177/ft1_filtered_4FGL_J2032.6+4053_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.56
user 0.39
sys 0.16

Number of photons that the gtmktime cut: 20701

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/129177/ft1_filtered_4FGL_J2032.6+4053_weekly_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/129177/ft2_4FGL_J2032.6+4053_weekly_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/129177/ltcube_681091201_681696001_4FGL_J2032.6+4053_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/129177/ft2_4FGL_J2032.6+4053_weekly_bin731.fits
.....................!
real 27.64
user 27.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/129177/ft1_filtered_4FGL_J2032.6+4053_weekly_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/129177/ft2_4FGL_J2032.6+4053_weekly_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/129177/ltcube_681091201_681696001_4FGL_J2032.6+4053_weekly_bin731.fits outfile=/scratch/kocevski/129177/expmap_681091201_681696001_4FGL_J2032.6+4053_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/129177/ltcube_681091201_681696001_4FGL_J2032.6+4053_weekly_bin731.fits
.....................!
real 189.03
user 184.85
sys 3.82

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/129177/ft1_filtered_4FGL_J2032.6+4053_weekly_bin731.fits scfile=/scratch/kocevski/129177/ft2_4FGL_J2032.6+4053_weekly_bin731.fits outfile=/scratch/kocevski/129177/cmap_681091201_681696001_4FGL_J2032.6+4053_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=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.45
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/129177/ft1_filtered_4FGL_J2032.6+4053_weekly_bin731.fits scfile=/scratch/kocevski/129177/ft2_4FGL_J2032.6+4053_weekly_bin731.fits outfile=/scratch/kocevski/129177/cmap_HighResolution_681091201_681696001_4FGL_J2032.6+4053_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=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/129177/ft1_filtered_4FGL_J2032.6+4053_weekly_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/129177/ft2_4FGL_J2032.6+4053_weekly_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/129177/Model_4FGL_J2032.6+4053_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/129177/ft1_filtered_4FGL_J2032.6+4053_weekly_bin731.fits.....................!
real 4364.41
user 4355.54
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/129177/ft1_filtered_4FGL_J2032.6+4053_weekly_bin731.fits', '/scratch/kocevski/129177/ft2_4FGL_J2032.6+4053_weekly_bin731.fits', expMap='/scratch/kocevski/129177/expmap_681091201_681696001_4FGL_J2032.6+4053_weekly_bin731.fits', expCube='/scratch/kocevski/129177/ltcube_681091201_681696001_4FGL_J2032.6+4053_weekly_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/129177/Model_4FGL_J2032.6+4053_weekly_bin731.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/129177/ft1_filtered_4FGL_J2032.6+4053_weekly_bin731.fits
Spacecraft file(s): /scratch/kocevski/129177/ft2_4FGL_J2032.6+4053_weekly_bin731.fits
Exposure map: /scratch/kocevski/129177/expmap_681091201_681696001_4FGL_J2032.6+4053_weekly_bin731.fits
Exposure cube: /scratch/kocevski/129177/ltcube_681091201_681696001_4FGL_J2032.6+4053_weekly_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/129177/Model_4FGL_J2032.6+4053_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) = 185648.736242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8535       1.0000         .10000E-03   10000.    
     2 'norm      '    .20551E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .91953       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5879       1.0000         .10000E-03   10000.    
     5 'norm      '    5.2829       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5483       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4443       1.0000         .10000E-03   10000.    
     8 'norm      '    13.423       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2298       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3457       1.0000         .10000E-03   10000.    
    11 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .15555       1.0000         .10000E-03   10000.    
    13 'norm      '    10.408       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6805       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6651       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22160E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .33054       1.0000         .10000E-03   10000.    
    18 'norm      '    5.0770       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2796       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98657       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   185648.6     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     1480 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8549        2.5497        .20908E-06   -.36876E-03
   2  norm          .10001E-03    84.315       -.45522E-05** at limit **
   3  norm          .92077        2.3228        .44616E-06   -.43814E-03
   4  Prefactor     2.5680        5.9551       -.11850E-04    .72086E-03
   5  norm          5.2940        3.2678       -.31978E-05   -.77542E-02
   6  Prefactor     3.5656        4.3191       -.85838E-05    .40629E-02
   7  norm          1.4442        .86755        .44269E-08    .76359E-04
   8  norm          13.419        3.0279       -.57163E-06   -.23777E-02
   9  Prefactor     2.2298        .12494        .65226E-08   -.20166E-02
  10  Prefactor     9.2960        8.0761        .30832E-05    .24622E-03
  11  norm          .10000E-03    .51739       -.36318E-06** at limit **
  12  norm          .15730        2.8994        .82088E-05    .27185E-02
  13  norm          10.406        2.9040        .85574E-06    .20251E-02
  14  norm          3.6807        2.0324       -.15123E-06   -.43608E-03
  15  Prefactor     3.6769        3.4389       -.18399E-05    .56235E-03
  16  Prefactor     .10000E-03    5.6834        .47791E-06** at limit **
  17  norm          .33014        .34278       -.98988E-07    .13142E-03
  18  norm          5.0807        2.4143        .79332E-06   -.46859E-03
  19  Normalizat    1.2794        .15776        .14046E-05   -.52188E-04
  20  Prefactor     .98657        .13188E-01   -.33403E-07   -.11352E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.85489
  norm       = 0.000100011
  norm       = 0.920766
  Prefactor  = 2.56804
  norm       = 5.29396
  Prefactor  = 3.5656
  norm       = 1.4442
  norm       = 13.4186
  Prefactor  = 2.22984
  Prefactor  = 9.29597
  norm       = 0.0001
  norm       = 0.157298
  norm       = 10.4063
  norm       = 3.68074
  Prefactor  = 3.67692
  Prefactor  = 0.0001
  norm       = 0.330143
  norm       = 5.08068
  Normalizat = 1.27939
  Prefactor  = 0.986568
 **********
 **   18 **HESSE 
 **********

 FCN=   185648.6     FROM HESSE     STATUS=OK           359 CALLS     1839 TOTAL
                     EDM=   .34E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8549        2.5554        .60170E-02   -1.5370    
   2  norm          .10001E-03    1.3134        .19664       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .92077        2.3291        .12878E-01   -1.5516    
   4  Prefactor     2.5680        7.8528        .63415E-02   -1.5387    
   5  norm          5.2940        4.9161        .43717E-02   -1.5248    
   6  Prefactor     3.5656        11.847        .53644E-02   -1.5330    
   7  norm          1.4442        .87784        .89698E-02   -1.5468    
   8  norm          13.419        3.0684        .27332E-02   -1.4975    
   9  Prefactor     2.2298        .12557        .68829E-02   -1.5409    
  10  Prefactor     9.2960        8.5852        .32774E-02   -1.5098    
  11  norm          .10000E-03    .50210        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .15730        .50544        .97728E-01   -1.5629    
  13  norm          10.406        2.9119        .31049E-02   -1.5063    
  14  norm          3.6807        2.0402        .52632E-02   -1.5324    
  15  Prefactor     3.6769        3.4399        .52748E-02   -1.5324    
  16  Prefactor     .10000E-03    5.6723        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .33014        .42099        .58448E-01   -1.5593    
  18  norm          5.0807        4.3948        .44611E-02   -1.5257    
  19  Normalizat    1.2794        .16874        .31632       -.84184    
  20  Prefactor     .98657        .13533E-01    .28536E-01   -.93179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40783e-05
Minuit parameter uncertainties:
  1  2.55547
  2  0.000238867
  3  2.32934
  4  7.85595
  5  4.91649
  6  11.8546
  7  0.87785
  8  3.06841
  9  0.12557
  10  8.58636
  11  3.26022e-06
  12  0.505454
  13  2.91199
  14  2.04028
  15  3.44007
  16  7.39015e-05
  17  0.420994
  18  4.39506
  19  0.16881
  20  0.0135334
Done.

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

Extracting fit parameters...

4FGL J2032.6+4053
   Spectrum: LogParabola
360         norm:  1.041e+01  2.912e+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:  9.866e-01  1.353e-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.279e+00  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.29
Ra Dec: 308.153 40.894
Photon Index (Fixed Index): 2.96 +/- 0.00
Photon Flux (Fixed Index): 2.52e-07 +/- 7.05e-08
Energy Flux (Fixed Index): 7.46e-05 +/- 2.09e-05

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) = 185647.98759
delta logL = 0.657667217019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 185647.985426
delta logL = 0.659831447876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9437       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5342       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98703       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   185648.0     FROM MIGRAD    STATUS=FAILED        86 CALLS      340 TOTAL
                     EDM=   .24E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9437        17.204        .90442E-03   -.26435E-02
   2  alpha         3.5342        1.8056        .17282E-01    .51111E-02
   3  Normalizat    1.2445        .17477        .14389E-02    .42198E-03
   4  Prefactor     .98703        .12171E-01    .12605E-03   -.52956E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   185648.0     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      422 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9437        17.204        .15567E-03   -.26435E-02
   2  alpha         3.5342        1.8056        .16215E-02    .51111E-02
   3  Normalizat    1.2445        .17477        .17505E-03    .42198E-03
   4  Prefactor     .98703        .12171E-01    .16560E-04   -.52956E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   185648.0     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      458 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9437        8.5288        .36177E-04    .52292E-03
   2  alpha         3.5342        .99703        .34564E-02    .52310E-04
   3  Normalizat    1.2445        .16939        .57555E-04    .24019E-04
   4  Prefactor     .98703        .13341E-01    .25209E-04   -.17317E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.94366
  alpha      = 3.53418
  Normalizat = 1.2445
  Prefactor  = 0.987029
 **********
 **   18 **HESSE 
 **********

 FCN=   185648.0     FROM HESSE     STATUS=OK            23 CALLS      481 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9437        5.0479        .14471E-05   -1.5263    
   2  alpha         3.5342        .60315        .13826E-03    .42649    
   3  Normalizat    1.2445        .15987        .11511E-04   -.85239    
   4  Prefactor     .98703        .12976E-01    .50419E-05   -.93163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04829e-11
Minuit parameter uncertainties:
  1  5.04834
  2  0.610445
  3  0.159931
  4  0.0129761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/129177': 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) = 185647.985426
delta logL = 0.65983144872

Extracting fit parameters...

4FGL J2032.6+4053
   Spectrum: LogParabola
360         norm:  4.944e+00  5.048e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  3.534e+00  6.104e-01  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:  9.870e-01  1.298e-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.244e+00  1.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.70
Ra Dec: 308.153 40.894
Photon Index (Free Index): 3.53 +/- 0.61
Photon Flux (Free Index): 3.30e-07 +/- 9.87e-08
Energy Flux (Free Index): 7.27e-05 +/- 2.02e-05

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/129177/cmap_HighResolution_681091201_681696001_4FGL_J2032.6+4053_weekly_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.52e-07', energy_flux2='7.27e-05', photon_flux_error='7.05e-08', dlogl='6.60e-01', energy_flux='7.46e-05', photon_flux2='3.30e-07', job_status='DONE', time_completed='2022-08-09 04:12:24.677531', photon_index_error2='0.61', photon_index2='3.53', ts='15.29', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.02e-05', EG='1.28', time_epoch_completed='1660043544.68', return_code='0', job_id='129177', GAL2='0.99', EG2='1.24', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='9.87e-08', ts2='16.70', photon_index='2.96' WHERE bin_id='731' AND source_name='4FGL J2032.6+4053' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  9 04:12:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 129177: <4FGL_J2032.6+4053_weekly_bin731> in cluster <slac> Done

Job <4FGL_J2032.6+4053_weekly_bin731> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug  9 00:55:32 2022
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  9 00:55:33 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:33 2022
Terminated at Tue Aug  9 04:12:26 2022
Results reported at Tue Aug  9 04:12:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2032.6+4053_weekly_bin731 308.153 40.8939 681091201 681696001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2032.6+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11614.00 sec.
    Max Memory :                                 911 MB
    Average Memory :                             628.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   11813 sec.
    Turnaround time :                            11814 sec.

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

