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 138 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_J2207.6+0053_weekly_bin731
RA = 331.914, Dec = 0.8907
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='130449', job_status='RUN', time_executed='2022-08-09 01:03:03.868508', time_epoch_executed='1660032183.87' WHERE source_name='4FGL J2207.6+0053' and cadence='weekly' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/130449

Creating custom pfile directory:
/scratch/kocevski/130449/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/130449/ft1_4FGL_J2207.6+0053_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/130449/ft2_4FGL_J2207.6+0053_weekly_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/130449/ft1_4FGL_J2207.6+0053_weekly_bin731.fits outfile=/scratch/kocevski/130449/ft1_filteredMKT_4FGL_J2207.6+0053_weekly_bin731.fits ra=331.914 dec=0.8907 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.67
user 5.45
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/130449/ft2_4FGL_J2207.6+0053_weekly_bin731.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/130449/ft2_4FGL_J2207.6+0053_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/130449/ft1_filteredMKT_4FGL_J2207.6+0053_weekly_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/130449/ft1_filtered_4FGL_J2207.6+0053_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.54
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 586

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/130449/ft1_filtered_4FGL_J2207.6+0053_weekly_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/130449/ft2_4FGL_J2207.6+0053_weekly_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/130449/ltcube_681091201_681696001_4FGL_J2207.6+0053_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/130449/ft2_4FGL_J2207.6+0053_weekly_bin731.fits
.....................!
real 27.47
user 27.05
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/130449/ft1_filtered_4FGL_J2207.6+0053_weekly_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/130449/ft2_4FGL_J2207.6+0053_weekly_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/130449/ltcube_681091201_681696001_4FGL_J2207.6+0053_weekly_bin731.fits outfile=/scratch/kocevski/130449/expmap_681091201_681696001_4FGL_J2207.6+0053_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/130449/ltcube_681091201_681696001_4FGL_J2207.6+0053_weekly_bin731.fits
.....................!
real 192.15
user 186.73
sys 5.10

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
Added 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J2207.6+0053 @ 331.914 0.8907

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/130449/ft1_filtered_4FGL_J2207.6+0053_weekly_bin731.fits scfile=/scratch/kocevski/130449/ft2_4FGL_J2207.6+0053_weekly_bin731.fits outfile=/scratch/kocevski/130449/cmap_681091201_681696001_4FGL_J2207.6+0053_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=331.914 yref=0.8907 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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/130449/ft1_filtered_4FGL_J2207.6+0053_weekly_bin731.fits scfile=/scratch/kocevski/130449/ft2_4FGL_J2207.6+0053_weekly_bin731.fits outfile=/scratch/kocevski/130449/cmap_HighResolution_681091201_681696001_4FGL_J2207.6+0053_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=331.914 yref=0.8907 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.57
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/130449/ft1_filtered_4FGL_J2207.6+0053_weekly_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/130449/ft2_4FGL_J2207.6+0053_weekly_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/130449/Model_4FGL_J2207.6+0053_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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/130449/ft1_filtered_4FGL_J2207.6+0053_weekly_bin731.fits.....................!
real 70.17
user 68.85
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/130449/ft1_filtered_4FGL_J2207.6+0053_weekly_bin731.fits', '/scratch/kocevski/130449/ft2_4FGL_J2207.6+0053_weekly_bin731.fits', expMap='/scratch/kocevski/130449/expmap_681091201_681696001_4FGL_J2207.6+0053_weekly_bin731.fits', expCube='/scratch/kocevski/130449/ltcube_681091201_681696001_4FGL_J2207.6+0053_weekly_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/130449/Model_4FGL_J2207.6+0053_weekly_bin731.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2207.6+0053'

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.216e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.484e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/130449/ft1_filtered_4FGL_J2207.6+0053_weekly_bin731.fits
Spacecraft file(s): /scratch/kocevski/130449/ft2_4FGL_J2207.6+0053_weekly_bin731.fits
Exposure map: /scratch/kocevski/130449/expmap_681091201_681696001_4FGL_J2207.6+0053_weekly_bin731.fits
Exposure cube: /scratch/kocevski/130449/ltcube_681091201_681696001_4FGL_J2207.6+0053_weekly_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/130449/Model_4FGL_J2207.6+0053_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) = 6938.34175356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.381       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12657E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0332       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11853E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0395       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0293       1.0000         .10000E-03   10000.    
     8 'norm      '    .34825       1.0000         .10000E-03   10000.    
     9 'norm      '    .31700E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0720       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.388       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.392       1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.420       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.043       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9006       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .94287       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .44402       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96375       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+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=   6938.267     FROM MIGRAD    STATUS=CONVERGED    973 CALLS     3075 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.375        38.882        .90979E-04    .17744E-04
   2  Prefactor     .10000E-03    315.38        .18142E-02** at limit **
   3  Prefactor     5.0267        5.0656        .86523E-03   -.22779E-03
   4  Prefactor     .10000E-03    37.959        .18142E-02** at limit **
   5  Prefactor     1.5492        85.179        .23488        .13134E-03
   6  Prefactor     .10000E-03    24.262        .18142E-02** at limit **
   7  Prefactor     2.0597        326.49        .29041E-03    .13623E-04
   8  norm          .34409        3.9050        .19249E-02    .49733E-03
   9  norm          .10007E-03    34.380        .90205E-01** at limit **
  10  Prefactor     3.0696        5.4872        .11571E-02    .20892E-03
  11  Prefactor     18.385        16.512        .93402E-04    .19962E-04
  12  Prefactor     .10000E-03    17.972        .18142E-02** at limit **
  13  Prefactor     .10000E-03    13.246        .18142E-02** at limit **
  14  Prefactor     10.397        25.987        .12429E-03    .22593E-04
  15  Prefactor     40.431        31.903        .63048E-04    .59144E-04
  16  Prefactor     19.045        20.582        .91782E-04    .22296E-04
  17  Prefactor     7.8947        11.262        .14265E-03    .47339E-04
  18  Prefactor     .10000E-03    2.8654        .13715E-02** at limit **
  19  norm          .10000E-03    8.3846        .36285E-03** at limit **
  20  Prefactor     .94208        2.3042        .22346E-02    .41075E-02
  21  Prefactor     .10000E-03    95.262        .18142E-02** at limit **
  22  Normalizat    .44401        .26824        .46719E-03    .50032E-04
  23  Prefactor     .96375        .13273        .16873E-03    .71688E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3749
  Prefactor  = 0.0001
  Prefactor  = 5.02674
  Prefactor  = 0.0001
  Prefactor  = 1.54923
  Prefactor  = 0.0001
  Prefactor  = 2.0597
  norm       = 0.344088
  norm       = 0.00010007
  Prefactor  = 3.06957
  Prefactor  = 18.3848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3967
  Prefactor  = 40.4306
  Prefactor  = 19.0449
  Prefactor  = 7.89466
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.942078
  Prefactor  = 0.0001
  Normalizat = 0.444009
  Prefactor  = 0.963753
 **********
 **   18 **HESSE 
 **********

 FCN=   6938.267     FROM HESSE     STATUS=OK           374 CALLS     3449 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.375        38.881        .36392E-05   -1.4827    
   2  Prefactor     .10000E-03    315.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0267        5.0654        .34609E-04   -1.5260    
   4  Prefactor     .10000E-03    37.961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5492        86.033        .23299       -1.5459    
   6  Prefactor     .10000E-03    24.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0597        324.30        .11617E-04   -1.5421    
   8  norm          .34409        3.7424        .76996E-04   -1.5591    
   9  norm          .10007E-03    29.242        .98000E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0696        5.4803        .46286E-04   -1.5358    
  11  Prefactor     18.385        16.510        .37361E-05   -1.4850    
  12  Prefactor     .10000E-03    17.975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.247        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.397        25.983        .49716E-05   -1.5063    
  15  Prefactor     40.431        31.898        .25219E-05   -1.4435    
  16  Prefactor     19.045        20.573        .36713E-05   -1.4835    
  17  Prefactor     7.8947        11.261        .57061E-05   -1.5146    
  18  Prefactor     .10000E-03    2.8657        .27430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.3851        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .94208        2.3009        .44692E-03   -1.5514    
  21  Prefactor     .10000E-03    95.267        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .44401        .26791        .18687E-04   -1.1509    
  23  Prefactor     .96375        .13276        .67494E-05   -.93948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16672e-10
Minuit parameter uncertainties:
  1  38.9314
  2  0.000147145
  3  5.06585
  4  5.62075e-05
  5  23.1241
  6  9.85375e-07
  7  51.9777
  8  2.2694
  9  0.00287157
  10  5.48115
  11  16.5146
  12  3.41472e-05
  13  2.54367e-05
  14  26.0111
  15  31.9118
  16  20.581
  17  11.264
  18  5.72824e-06
  19  5.79274e-06
  20  2.30115
  21  2.70625e-05
  22  0.268684
  23  0.132809
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.040e+01  2.601e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.484e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  9.638e-01  1.328e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  4.440e-01  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 1.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/130449/likelihoodResults_681091201_681696001_4FGL_J2207.6+0053_weekly_bin731.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6938.19118958
delta logL = 0.0754894693773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6938.16793191
delta logL = 0.0987471447988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1156       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1476       1.0000          .0000       10.000    
     3 'Normalizat'    .42028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97173       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+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=   6938.168     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      271 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0799        89.745        .81173E-03    .12374E-03
   2  Index         3.1501        3.5732        .84198E-02    .11894E-04
   3  Normalizat    .42051        .26421        .47961E-03    .22993E-05
   4  Prefactor     .97163        .13765        .16810E-03   -.18936E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.07995
  Index      = 3.15009
  Normalizat = 0.420514
  Prefactor  = 0.971635
 **********
 **   18 **HESSE 
 **********

 FCN=   6938.168     FROM HESSE     STATUS=OK            27 CALLS      298 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0799        19.922        .16235E-03   -1.5215    
   2  Index         3.1501        1.6935        .33679E-03   -.37899    
   3  Normalizat    .42051        .26048        .19184E-04   -1.1625    
   4  Prefactor     .97163        .13375        .67241E-05   -.93681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75667e-13
Minuit parameter uncertainties:
  1  19.944
  2  1.73345
  3  0.261233
  4  0.133799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/130449': 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) = 6938.16792982
delta logL = 0.0987492306376

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  6.080e+00  1.994e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.150e+00  1.733e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  9.716e-01  1.338e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  4.205e-01  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
Ra Dec: 331.914 0.891

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/130449/cmap_HighResolution_681091201_681696001_4FGL_J2207.6+0053_weekly_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.63e-07', time_completed='2022-08-09 01:15:32.074164', job_id='130449', GAL2='0.97', fit_tolerance='1e-08', EG2='0.42', EG='0.44', time_epoch_completed='1660032932.07', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='9.87e-02', ts2='0.43', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='731' AND source_name='4FGL J2207.6+0053' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  9 01:15:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 130449: <4FGL_J2207.6+0053_weekly_bin731> in cluster <slac> Done

Job <4FGL_J2207.6+0053_weekly_bin731> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug  9 01:00:36 2022
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  9 01:00:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  9 01:00:37 2022
Terminated at Tue Aug  9 01:15:32 2022
Results reported at Tue Aug  9 01:15:32 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   750.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            896 sec.

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

