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


Performing analysis on: 4FGL_J2032.6+4053_weekly_bin723
RA = 308.153, Dec = 40.8939
tmin = 676252801, tmax = 676857601
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='718035', job_status='RUN', time_executed='2022-06-14 02:47:20.775349', time_epoch_executed='1655200040.78' WHERE source_name='4FGL J2032.6+4053' and cadence='weekly' and bin_id='723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/718035

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/718035/ft1_4FGL_J2032.6+4053_weekly_bin723.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/718035/ft2_4FGL_J2032.6+4053_weekly_bin723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/718035/ft1_4FGL_J2032.6+4053_weekly_bin723.fits outfile=/scratch/kocevski/718035/ft1_filteredMKT_4FGL_J2032.6+4053_weekly_bin723.fits ra=308.153 dec=40.8939 rad=12.0 tmin=676252801.0 tmax=676857601.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.99
user 5.65
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/718035/ft2_4FGL_J2032.6+4053_weekly_bin723.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/718035/ft1_filteredMKT_4FGL_J2032.6+4053_weekly_bin723.fits evtable="EVENTS" outfile="/scratch/kocevski/718035/ft1_filtered_4FGL_J2032.6+4053_weekly_bin723.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.17

Number of photons that the gtmktime cut: 19501

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/718035/ft1_filtered_4FGL_J2032.6+4053_weekly_bin723.fits" evtable="EVENTS" scfile=/scratch/kocevski/718035/ft2_4FGL_J2032.6+4053_weekly_bin723.fits sctable="SC_DATA" outfile=/scratch/kocevski/718035/ltcube_676252801_676857601_4FGL_J2032.6+4053_weekly_bin723.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/718035/ft2_4FGL_J2032.6+4053_weekly_bin723.fits
.....................!
real 32.30
user 31.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/718035/ft1_filtered_4FGL_J2032.6+4053_weekly_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/718035/ft2_4FGL_J2032.6+4053_weekly_bin723.fits sctable="SC_DATA" expcube=/scratch/kocevski/718035/ltcube_676252801_676857601_4FGL_J2032.6+4053_weekly_bin723.fits outfile=/scratch/kocevski/718035/expmap_676252801_676857601_4FGL_J2032.6+4053_weekly_bin723.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/718035/ltcube_676252801_676857601_4FGL_J2032.6+4053_weekly_bin723.fits
.....................!
real 191.89
user 185.99
sys 5.48

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/718035/ft1_filtered_4FGL_J2032.6+4053_weekly_bin723.fits scfile=/scratch/kocevski/718035/ft2_4FGL_J2032.6+4053_weekly_bin723.fits outfile=/scratch/kocevski/718035/cmap_676252801_676857601_4FGL_J2032.6+4053_weekly_bin723.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.63
user 0.45
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/718035/ft1_filtered_4FGL_J2032.6+4053_weekly_bin723.fits scfile=/scratch/kocevski/718035/ft2_4FGL_J2032.6+4053_weekly_bin723.fits outfile=/scratch/kocevski/718035/cmap_HighResolution_676252801_676857601_4FGL_J2032.6+4053_weekly_bin723.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.45
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/718035/ft1_filtered_4FGL_J2032.6+4053_weekly_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/718035/ft2_4FGL_J2032.6+4053_weekly_bin723.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/718035/Model_4FGL_J2032.6+4053_weekly_bin723.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/718035/ft1_filtered_4FGL_J2032.6+4053_weekly_bin723.fits.....................!
real 4152.91
user 4141.04
sys 1.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1670       1.0000         .10000E-03   10000.    
     2 'norm      '    .15094E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .57927       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11976E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10763E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4303       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4222       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1981       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12395E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .15817E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4140       1.0000         .10000E-03   10000.    
    14 'norm      '    2.4562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42503E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.897       1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .18775E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.6096       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98266       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.

 FCN=   175007.9     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2280 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1681        2.8505         .0000        .10672    
   2  norm          .10001E-03    1.7713         .0000    ** at limit **
   3  norm          .58240        1.0395         .0000        .93415E-02
   4  Prefactor     .10000E-03    6.5043         .0000    ** at limit **
   5  norm          .10000E-03    3.5067         .0000    ** at limit **
   6  Prefactor     .10000E-03    2.5328         .0000    ** at limit **
   7  norm          2.4308        .82535         .0000        .32841E-02
   8  norm          1.4236        1.9034         .0000        .70616E-02
   9  Prefactor     2.1980        .12618         .0000        .55020E-02
  10  Prefactor     .10000E-03    3.0628         .0000    ** at limit **
  11  norm          .10000E-03    .21078         .0000    ** at limit **
  12  norm          .10000E-03    .47309         .0000    ** at limit **
  13  norm          6.4127        2.8468         .0000        .44572E-01
  14  norm          2.4571        2.2247         .0000        .33986E-02
  15  Prefactor     .10000E-03    5.5305         .0000    ** at limit **
  16  Prefactor     21.969        16.307         .0000        .26861E-04
  17  norm          .10000E-03    .18938         .0000    ** at limit **
  18  norm          .11383E-01    1.3143         .0000        .16746E-02
  19  Normalizat    1.6095        .17312         .0000        .54610E-03
  20  Prefactor     .98268        .13664E-01     .0000       -.21276E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16812
  norm       = 0.000100011
  norm       = 0.582399
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.43079
  norm       = 1.42363
  Prefactor  = 2.19799
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.41272
  norm       = 2.45707
  Prefactor  = 0.0001
  Prefactor  = 21.9693
  norm       = 0.0001
  norm       = 0.0113834
  Normalizat = 1.60948
  Prefactor  = 0.982683
 **********
 **   18 **HESSE 
 **********

 FCN=   175007.9     FROM HESSE     STATUS=OK           327 CALLS     2607 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1681        2.8167        .21271E-02   -1.5492    
   2  norm          .10001E-03    1.7153        .19666       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .58240        2.3465        .54926E-02   -1.5555    
   4  Prefactor     .10000E-03    6.6477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.6324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4308        .82417        .21544E-03   -1.5396    
   8  norm          1.4236        1.8862        .36267E-03   -1.5469    
   9  Prefactor     2.1980        .12566        .33246E-04   -1.5411    
  10  Prefactor     .10000E-03    2.5937        .21147       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2039        .35896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9827        .55800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4127        2.8453        .79239E-03   -1.5201    
  14  norm          2.4571        2.2152        .26098E-03   -1.5394    
  15  Prefactor     .10000E-03    5.7518        .42471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.969        16.305        .85596E-04   -1.4770    
  17  norm          .10000E-03    .19466        .35549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .11383E-01    1.3129        .19766       -1.5687    
  19  Normalizat    1.6095        .16919        .13132E-02   -.74747    
  20  Prefactor     .98268        .13753E-01    .12694E-03   -.93309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31184e-06
Minuit parameter uncertainties:
  1  2.81697
  2  0.000276861
  3  2.33801
  4  1.54877e-06
  5  4.2478e-07
  6  1.60709e-07
  7  0.824176
  8  1.88625
  9  0.125661
  10  4.27042e-06
  11  1.55648e-07
  12  1.9239e-07
  13  2.84535
  14  2.21529
  15  1.41236e-06
  16  16.3086
  17  3.33848e-08
  18  0.243428
  19  0.169253
  20  0.0137533
Done.

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

Extracting fit parameters...

4FGL J2032.6+4053
   Spectrum: LogParabola
360         norm:  6.413e+00  2.845e+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.827e-01  1.375e-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.609e+00  1.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.84
Ra Dec: 308.153 40.894
Photon Index (Fixed Index): 2.96 +/- 0.00
Photon Flux (Fixed Index): 1.55e-07 +/- 6.89e-08
Energy Flux (Fixed Index): 4.60e-05 +/- 2.04e-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) = 175006.774551
delta logL = 1.16983100606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 175006.72313
delta logL = 1.22125162036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7698       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6896       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98205       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   175006.7     FROM MIGRAD    STATUS=FAILED       100 CALLS      350 TOTAL
                     EDM=   .39E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7792        16.656        .23377E-03   -.31903E-03
   2  alpha         3.6880        3.9127        .23044E-01    .51331E-02
   3  Normalizat    1.5811        .18283        .13213E-02    .16796E-04
   4  Prefactor     .98204        .13907E-01    .12694E-03   -.19776E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   175006.7     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      439 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7792        16.656        .70242E-04   -.31903E-03
   2  alpha         3.6880        3.9127        .74471E-03    .51331E-02
   3  Normalizat    1.5811        .18283        .10586E-03    .16796E-04
   4  Prefactor     .98204        .13907E-01    .99367E-05   -.19776E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   175006.7     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      470 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7792        3.1182        .93508E-05   -.35015E-03
   2  alpha         3.6880        .60057        .46088E-02   -.11209E-04
   3  Normalizat    1.5811        .16520        .52850E-04    .16521E-04
   4  Prefactor     .98204        .13410E-01    .50774E-05   -.20062E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.77924
  alpha      = 3.68797
  Normalizat = 1.58109
  Prefactor  = 0.982037
 **********
 **   18 **HESSE 
 **********

 FCN=   175006.7     FROM HESSE     STATUS=OK            23 CALLS      493 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7792        2.5709        .18702E-05   -1.5375    
   2  alpha         3.6880        .49676        .18435E-03    .49518    
   3  Normalizat    1.5811        .16450        .10570E-04   -.75524    
   4  Prefactor     .98204        .13371E-01    .10155E-05   -.93331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5949e-12
Minuit parameter uncertainties:
  1  2.57098
  2  0.501079
  3  0.164559
  4  0.0133708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/718035': 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) = 175006.723123
delta logL = 1.22125853787

Extracting fit parameters...

4FGL J2032.6+4053
   Spectrum: LogParabola
360         norm:  2.779e+00  2.571e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  3.688e+00  5.011e-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.820e-01  1.337e-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.581e+00  1.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.33
Ra Dec: 308.153 40.894
Photon Index (Free Index): 3.69 +/- 0.50
Photon Flux (Free Index): 2.48e-07 +/- 9.29e-08
Energy Flux (Free Index): 5.14e-05 +/- 1.90e-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/718035/cmap_HighResolution_676252801_676857601_4FGL_J2032.6+4053_weekly_bin723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.55e-07', energy_flux2='5.14e-05', photon_flux_error='6.89e-08', dlogl='1.22e+00', energy_flux='4.60e-05', photon_flux2='2.48e-07', job_status='DONE', time_completed='2022-06-14 06:28:38.256164', photon_index_error2='0.50', photon_index2='3.69', ts='5.84', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='1.61', time_epoch_completed='1655213318.26', return_code='0', job_id='718035', GAL2='0.98', EG2='1.58', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='9.29e-08', ts2='8.33', photon_index='2.96' WHERE bin_id='723' AND source_name='4FGL J2032.6+4053' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 14 06:28:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 718035: <4FGL_J2032.6+4053_weekly_bin723> in cluster <slac> Done

Job <4FGL_J2032.6+4053_weekly_bin723> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jun 14 02:35:26 2022
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 14 02:44:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 14 02:44:02 2022
Terminated at Tue Jun 14 06:28:39 2022
Results reported at Tue Jun 14 06:28:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2032.6+4053_weekly_bin723 308.153 40.8939 676252801 676857601 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 :                                   13258.00 sec.
    Max Memory :                                 660 MB
    Average Memory :                             612.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13477 sec.
    Turnaround time :                            13993 sec.

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

