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


Performing analysis on: 4FGL_J2207.1+4316_monthly_bin168
RA = 331.788, Dec = 43.2677
tmin = 672451201, tmax = 675043201
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='652458', job_status='RUN', time_executed='2022-05-24 04:16:15.955356', time_epoch_executed='1653390975.96' WHERE source_name='4FGL J2207.1+4316' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652458

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652458/ft1_4FGL_J2207.1+4316_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652458/ft2_4FGL_J2207.1+4316_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652458/ft1_4FGL_J2207.1+4316_monthly_bin168.fits outfile=/scratch/kocevski/652458/ft1_filteredMKT_4FGL_J2207.1+4316_monthly_bin168.fits ra=331.788 dec=43.2677 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.90
user 27.97
sys 0.77

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/652458/ft2_4FGL_J2207.1+4316_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/652458/ft2_4FGL_J2207.1+4316_monthly_bin168.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/652458/ft1_filteredMKT_4FGL_J2207.1+4316_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/652458/ft1_filtered_4FGL_J2207.1+4316_monthly_bin168.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.90
user 0.67
sys 0.20

Number of photons that the gtmktime cut: 27965

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652458/ft1_filtered_4FGL_J2207.1+4316_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/652458/ft2_4FGL_J2207.1+4316_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/652458/ltcube_672451201_675043201_4FGL_J2207.1+4316_monthly_bin168.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/652458/ft2_4FGL_J2207.1+4316_monthly_bin168.fits
.....................!
real 138.45
user 137.74
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652458/ft1_filtered_4FGL_J2207.1+4316_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/652458/ft2_4FGL_J2207.1+4316_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/652458/ltcube_672451201_675043201_4FGL_J2207.1+4316_monthly_bin168.fits outfile=/scratch/kocevski/652458/expmap_672451201_675043201_4FGL_J2207.1+4316_monthly_bin168.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/652458/ltcube_672451201_675043201_4FGL_J2207.1+4316_monthly_bin168.fits
.....................!
real 192.59
user 187.07
sys 4.99

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 HB 21 in ROI with RadialDisk spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 192 point sources and 8 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 J2207.1+4316 @ 331.788 43.2677

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/652458/ft1_filtered_4FGL_J2207.1+4316_monthly_bin168.fits scfile=/scratch/kocevski/652458/ft2_4FGL_J2207.1+4316_monthly_bin168.fits outfile=/scratch/kocevski/652458/cmap_672451201_675043201_4FGL_J2207.1+4316_monthly_bin168.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=331.788 yref=43.2677 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.84
user 0.66
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/652458/ft1_filtered_4FGL_J2207.1+4316_monthly_bin168.fits scfile=/scratch/kocevski/652458/ft2_4FGL_J2207.1+4316_monthly_bin168.fits outfile=/scratch/kocevski/652458/cmap_HighResolution_672451201_675043201_4FGL_J2207.1+4316_monthly_bin168.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=331.788 yref=43.2677 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.84
user 0.66
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/652458/ft1_filtered_4FGL_J2207.1+4316_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/652458/ft2_4FGL_J2207.1+4316_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/652458/Model_4FGL_J2207.1+4316_monthly_bin168.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 CTB 109
adding source Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/652458/ft1_filtered_4FGL_J2207.1+4316_monthly_bin168.fits.....................!
real 5345.73
user 5321.84
sys 3.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/652458/ft1_filtered_4FGL_J2207.1+4316_monthly_bin168.fits', '/scratch/kocevski/652458/ft2_4FGL_J2207.1+4316_monthly_bin168.fits', expMap='/scratch/kocevski/652458/expmap_672451201_675043201_4FGL_J2207.1+4316_monthly_bin168.fits', expCube='/scratch/kocevski/652458/ltcube_672451201_675043201_4FGL_J2207.1+4316_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/652458/Model_4FGL_J2207.1+4316_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2207.1+4316'

4FGL J2207.1+4316
   Spectrum: PowerLaw
367    Prefactor:  2.525e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
368        Index:  2.045e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  4.087e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/652458/ft1_filtered_4FGL_J2207.1+4316_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/652458/ft2_4FGL_J2207.1+4316_monthly_bin168.fits
Exposure map: /scratch/kocevski/652458/expmap_672451201_675043201_4FGL_J2207.1+4316_monthly_bin168.fits
Exposure cube: /scratch/kocevski/652458/ltcube_672451201_675043201_4FGL_J2207.1+4316_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/652458/Model_4FGL_J2207.1+4316_monthly_bin168.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) = 266854.34588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5441       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31859       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11411       1.0000         .10000E-03   10000.    
     5 'norm      '    10.658       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3816       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18931E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17290E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .21106       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6708       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .63067       1.0000         .10000E-03   10000.    
    13 'Normalizat'    1.2107       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .92345       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   266853.6     FROM MIGRAD    STATUS=CONVERGED    279 CALLS     1126 TOTAL
                     EDM=   .46E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5494        2.4243         .0000        .10171E-01
   2  Prefactor     .31396        .47631         .0000        .15468E-01
   3  norm          .10000E-03    .33201E-01     .0000    ** at limit **
   4  norm          .11366        .13666         .0000        .23519E-01
   5  norm          10.658        .37440         .0000        .28231E-02
   6  Prefactor     3.3541        4.2779         .0000        .23437E-02
   7  Prefactor     .10000E-03    .62863         .0000    ** at limit **
   8  Prefactor     .10000E-03    3.3870         .0000    ** at limit **
   9  Prefactor     .10000E-03    .19015         .0000    ** at limit **
  10  norm          .21114        .46528         .0000        .89679E-03
  11  Prefactor     1.6718        1.4391         .0000       -.23092E-02
  12  Prefactor     .63027        1.0198         .0000        .74872    
  13  Normalizat    1.2108        .62848E-01     .0000        .55695E-03
  14  Prefactor     .92346        .97275E-02     .0000       -.12111E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 4.54942
  Prefactor  = 0.31396
  norm       = 0.0001
  norm       = 0.113662
  norm       = 10.6583
  Prefactor  = 3.35411
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.211143
  Prefactor  = 1.67181
  Prefactor  = 0.630265
  Normalizat = 1.21079
  Prefactor  = 0.923458
 **********
 **   18 **HESSE 
 **********

 FCN=   266853.6     FROM HESSE     STATUS=OK           180 CALLS     1306 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5494        2.4222        .18885E-03   -1.5281    
   2  Prefactor     .31396        1.4461        .41342E-02   -1.5596    
   3  norm          .10000E-03    .97682E-01    .18275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .11366        .35716        .19995E-02   -1.5641    
   5  norm          10.658        .36486        .53855E-04   -1.5055    
   6  Prefactor     3.3541        4.0630        .22003E-03   -1.5342    
   7  Prefactor     .10000E-03    4.2675        .71473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9077        .41926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .21114        .45496        .40112E-04   -1.5616    
  11  Prefactor     1.6718        1.4490        .32613E-03   -1.5449    
  12  Prefactor     .63027        .98963        .23586E-02   -1.5549    
  13  Normalizat    1.2108        .62506E-01    .67117E-03   -.86270    
  14  Prefactor     .92346        .10043E-01    .12232E-03   -.95326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64633e-07
Minuit parameter uncertainties:
  1  2.42222
  2  1.34748
  3  1.7164e-07
  4  0.357164
  5  0.364858
  6  4.06332
  7  0.000105539
  8  7.82758e-05
  9  1.37313e-07
  10  0.454965
  11  1.44904
  12  0.989658
  13  0.0625097
  14  0.0100427
Done.

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

Extracting fit parameters...

4FGL J2207.1+4316
   Spectrum: PowerLaw
367    Prefactor:  3.354e+00  4.063e+00  1.000e-04  1.000e+04 ( 1.000e-14)
368        Index:  2.045e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  4.087e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.235e-01  1.004e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.211e+00  6.251e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 331.788 43.268
Photon Flux Upper Limit: 2.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/652458/likelihoodResults_672451201_675043201_4FGL_J2207.1+4316_monthly_bin168.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) = 266853.377474
delta logL = 0.198247651104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 266853.331372
delta logL = 0.24434996309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4191       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4482       1.0000          .0000       10.000    
     3 'Normalizat'    1.2056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92364       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   266853.3     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      266 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4200        4.8929        .26317E-03    .15483E-03
   2  Index         2.4483        .83926        .10531E-01    .24700E-03
   3  Normalizat    1.2056        .62136E-01    .67226E-03   -.22837E-03
   4  Prefactor     .92364        .99644E-02    .12230E-03   -.48188E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41997
  Index      = 2.44832
  Normalizat = 1.20563
  Prefactor  = 0.923641
 **********
 **   18 **HESSE 
 **********

 FCN=   266853.3     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4200        3.3125        .10527E-04   -1.5397    
   2  Index         2.4483        .57046        .42124E-03   -.53558    
   3  Normalizat    1.2056        .61724E-01    .26890E-04   -.86429    
   4  Prefactor     .92364        .99535E-02    .48921E-05   -.95320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81331e-10
Minuit parameter uncertainties:
  1  3.3128
  2  0.572142
  3  0.0617274
  4  0.00995348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652458': 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) = 266853.331371
delta logL = 0.244350276596

Extracting fit parameters...

4FGL J2207.1+4316
   Spectrum: PowerLaw
367    Prefactor:  2.420e+00  3.313e+00  1.000e-04  1.000e+04 ( 1.000e-14)
368        Index:  2.448e+00  5.721e-01  0.000e+00  1.000e+01 (-1.000e+00)
369        Scale:  4.087e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.236e-01  9.953e-03  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.206e+00  6.173e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 331.788 43.268
Photon Index (Free Index): 2.45 +/- 0.57
Photon Flux (Free Index): 1.47e-08 +/- 1.72e-08
Energy Flux (Free Index): 4.54e-06 +/- 4.20e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -4.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  4.440e+00 [aplpy.core]
Saving /scratch/kocevski/652458/cmap_HighResolution_672451201_675043201_4FGL_J2207.1+4316_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-03', comment='SUCCESS', energy_flux2='4.54e-06', dlogl='2.44e-01', photon_flux2='1.47e-08', job_status='DONE', time_completed='2022-05-24 08:35:12.728612', photon_index_error2='0.57', photon_index2='2.45', ts='0.94', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='2.30e-08', energy_flux_error2='4.20e-06', EG='1.21', time_epoch_completed='1653406512.73', return_code='0', job_id='652458', GAL2='0.92', EG2='1.21', return_code2='0', photon_flux_error2='1.72e-08', ts2='1.45', photon_index='2.05' WHERE bin_id='168' AND source_name='4FGL J2207.1+4316' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 08:35:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 652458: <4FGL_J2207.1+4316_monthly_bin168> in cluster <slac> Done

Job <4FGL_J2207.1+4316_monthly_bin168> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue May 24 04:15:25 2022
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 04:15:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 04:15:37 2022
Terminated at Tue May 24 08:35:15 2022
Results reported at Tue May 24 08:35:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.1+4316_monthly_bin168 331.788 43.2677 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2207.1+4316 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14747.00 sec.
    Max Memory :                                 819 MB
    Average Memory :                             702.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   15577 sec.
    Turnaround time :                            15590 sec.

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

