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 4 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2207.6+0053_weekly_bin741
RA = 331.914, Dec = 0.8907
tmin = 687139201, tmax = 687744001
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='396605', job_status='RUN', time_executed='2022-10-18 01:40:34.418084', time_epoch_executed='1666082434.42' WHERE source_name='4FGL J2207.6+0053' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/396605

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/396605/ft1_4FGL_J2207.6+0053_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/396605/ft2_4FGL_J2207.6+0053_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/396605/ft1_4FGL_J2207.6+0053_weekly_bin741.fits outfile=/scratch/kocevski/396605/ft1_filteredMKT_4FGL_J2207.6+0053_weekly_bin741.fits ra=331.914 dec=0.8907 rad=12.0 tmin=687139201.0 tmax=687744001.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 6.75
user 6.47
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/396605/ft2_4FGL_J2207.6+0053_weekly_bin741.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/396605/ft1_filteredMKT_4FGL_J2207.6+0053_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/396605/ft1_filtered_4FGL_J2207.6+0053_weekly_bin741.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: 830

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/396605/ft1_filtered_4FGL_J2207.6+0053_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/396605/ft2_4FGL_J2207.6+0053_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/396605/ltcube_687139201_687744001_4FGL_J2207.6+0053_weekly_bin741.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/396605/ft2_4FGL_J2207.6+0053_weekly_bin741.fits
.....................!
real 28.18
user 27.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/396605/ft1_filtered_4FGL_J2207.6+0053_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/396605/ft2_4FGL_J2207.6+0053_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/396605/ltcube_687139201_687744001_4FGL_J2207.6+0053_weekly_bin741.fits outfile=/scratch/kocevski/396605/expmap_687139201_687744001_4FGL_J2207.6+0053_weekly_bin741.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/396605/ltcube_687139201_687744001_4FGL_J2207.6+0053_weekly_bin741.fits
.....................!
real 191.33
user 185.76
sys 5.26

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/396605/ft1_filtered_4FGL_J2207.6+0053_weekly_bin741.fits scfile=/scratch/kocevski/396605/ft2_4FGL_J2207.6+0053_weekly_bin741.fits outfile=/scratch/kocevski/396605/cmap_687139201_687744001_4FGL_J2207.6+0053_weekly_bin741.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.60
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/396605/ft1_filtered_4FGL_J2207.6+0053_weekly_bin741.fits scfile=/scratch/kocevski/396605/ft2_4FGL_J2207.6+0053_weekly_bin741.fits outfile=/scratch/kocevski/396605/cmap_HighResolution_687139201_687744001_4FGL_J2207.6+0053_weekly_bin741.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/396605/ft1_filtered_4FGL_J2207.6+0053_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/396605/ft2_4FGL_J2207.6+0053_weekly_bin741.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/396605/Model_4FGL_J2207.6+0053_weekly_bin741.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/396605/ft1_filtered_4FGL_J2207.6+0053_weekly_bin741.fits.....................!
real 85.37
user 84.02
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/396605/ft1_filtered_4FGL_J2207.6+0053_weekly_bin741.fits', '/scratch/kocevski/396605/ft2_4FGL_J2207.6+0053_weekly_bin741.fits', expMap='/scratch/kocevski/396605/expmap_687139201_687744001_4FGL_J2207.6+0053_weekly_bin741.fits', expCube='/scratch/kocevski/396605/ltcube_687139201_687744001_4FGL_J2207.6+0053_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/396605/Model_4FGL_J2207.6+0053_weekly_bin741.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  0.000e+00  1.000e+06 ( 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/396605/ft1_filtered_4FGL_J2207.6+0053_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/396605/ft2_4FGL_J2207.6+0053_weekly_bin741.fits
Exposure map: /scratch/kocevski/396605/expmap_687139201_687744001_4FGL_J2207.6+0053_weekly_bin741.fits
Exposure cube: /scratch/kocevski/396605/ltcube_687139201_687744001_4FGL_J2207.6+0053_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/396605/Model_4FGL_J2207.6+0053_weekly_bin741.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) = 9340.32995235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7016       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38835E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.6399       1.0000          .0000       .10000E+07
     4 'Prefactor '    16.703       1.0000          .0000       .10000E+07
     5 'Prefactor '    .27478E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .21649E-08   1.0000          .0000       .10000E+07
     7 'norm      '    7.5376       1.0000          .0000       .10000E+07
     8 'Prefactor '    .56621E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.4921       1.0000          .0000       .10000E+07
    10 'Prefactor '    .26540E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    20.857       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.5702       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10564E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.5555       1.0000          .0000       .10000E+07
    15 'norm      '    11.047       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.079       1.0000          .0000       .10000E+07
    18 'Normalizat'    .67503       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93647       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9340.327     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1411 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7223        1.1558        .14819E-08    .24119E-03
   2  Prefactor     .79770E-07    31.171        .41271E-06** at limit **
   3  Prefactor     2.6398        1.9008        .36572E-07   -.60197E-03
   4  Prefactor     16.711        3.7929       -.46946E-08    .14205E-02
   5  Prefactor     .99587E-07    29.220        .30683E-06** at limit **
   6  norm           .0000        1.2712       -.16550E-07** at limit **
   7  norm          7.4808        14.347       -.67493E-08   -.21764E-01
   8  Prefactor      .0000        1.4700        .68271E-09** at limit **
   9  Prefactor     9.5194        10.341       -.87542E-08    .20024E-01
  10  Prefactor     .55511E-10    4.6673        .17510E-07** at limit **
  11  Prefactor     20.915        7.2503        .33119E-08   -.81404E-01
  12  Prefactor     8.5602        8.4341       -.18153E-07    .29932E-03
  13  Prefactor     .72164E-09    10.637        .31537E-06** at limit **
  14  Prefactor     3.5564        4.4664       -.11491E-06    .44956E-05
  15  norm          11.047        4.4761        .10065E-07   -.52497E-03
  16  Prefactor     .10000E-03    1.7906       -.13547E-05** at limit **
  17  Prefactor     36.094        1.0443       -.75355E-09   -.28377E-02
  18  Normalizat    .67500        .20759       -.15898E-05    .37397E-06
  19  Prefactor     .93645        .11317        .10250E-05   -.55275E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.72229
  Prefactor  = 7.97695e-08
  Prefactor  = 2.63983
  Prefactor  = 16.7106
  Prefactor  = 9.9587e-08
  norm       = 0
  norm       = 7.48081
  Prefactor  = 0
  Prefactor  = 9.51936
  Prefactor  = 5.55112e-11
  Prefactor  = 20.9148
  Prefactor  = 8.56016
  Prefactor  = 7.21645e-10
  Prefactor  = 3.55638
  norm       = 11.047
  Prefactor  = 0.0001
  Prefactor  = 36.0939
  Normalizat = 0.674999
  Prefactor  = 0.936454
 **********
 **   18 **HESSE 
 **********

 FCN=   9340.327     FROM HESSE     STATUS=OK           308 CALLS     1719 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7223        22.274        .32148E-03   -1.5646    
   2  Prefactor     .79770E-07    32.462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6398        1.9914        .62726E-03   -1.5675    
   4  Prefactor     16.711        26.484        .24479E-03   -1.5626    
   5  Prefactor     .99587E-07    30.620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.2595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.4808        16.049        .36505E-03   -1.5653    
   8  Prefactor      .0000        1.4736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5194        10.915        .32503E-03   -1.5646    
  10  Prefactor     .55511E-10    4.6749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.915        13.036        .21903E-03   -1.5616    
  12  Prefactor     8.5602        8.4898        .34218E-03   -1.5649    
  13  Prefactor     .72164E-09    10.638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5564        4.5437        .53577E-03   -1.5670    
  15  norm          11.047        4.5124        .30118E-03   -1.5641    
  16  Prefactor     .10000E-03    1.7932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.094        55.094        .16650E-03   -1.5588    
  18  Normalizat    .67500        .18227        .79825E-01   -1.0489    
  19  Prefactor     .93645        .95542E-01    .45468E-01   -.94879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84858e-08
Minuit parameter uncertainties:
  1  22.2746
  2  0.00321891
  3  1.99138
  4  26.4839
  5  0.0034924
  6  2.48058e-06
  7  16.0489
  8  3.93503e-06
  9  10.9154
  10  3.04324e-05
  11  13.0357
  12  8.48984
  13  0.00017779
  14  4.54372
  15  4.51244
  16  1.81477e-06
  17  55.0947
  18  0.18243
  19  0.0955595
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.091e+01  1.304e+01  0.000e+00  1.000e+06 ( 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.365e-01  9.556e-02  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:  6.750e-01  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.16
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 5.09e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 9.37e-06

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) = 9339.42660347
delta logL = 0.900703733214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9339.42651468
delta logL = 0.900792518512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.998       1.0000          .0000       .10000E+07
     2 'Index     '    1.8555       1.0000          .0000       10.000    
     3 'Normalizat'    .70078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92733       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=   9339.427     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      294 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.975        19.046        .71855E-05   -.13683E-02
   2  Index         1.8549        .42829        .83083E-02   -.32931E-04
   3  Normalizat    .70083        .19975        .34729E-03    .44540E-03
   4  Prefactor     .92738        .11293        .17143E-03    .66349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.9754
  Index      = 1.85492
  Normalizat = 0.700832
  Prefactor  = 0.927381
 **********
 **   18 **HESSE 
 **********

 FCN=   9339.427     FROM HESSE     STATUS=OK            23 CALLS      317 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.975        19.061        .14371E-05   -1.5597    
   2  Index         1.8549        .42860        .33233E-03   -.68029    
   3  Normalizat    .70083        .19986        .13891E-04   -1.0386    
   4  Prefactor     .92738        .11300        .34286E-04   -.95191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64195e-10
Minuit parameter uncertainties:
  1  19.0608
  2  0.429478
  3  0.200066
  4  0.113029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/396605': 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) = 9339.42651253
delta logL = 0.900794674333

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  3.098e+01  1.906e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  1.855e+00  4.295e-01  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.274e-01  1.130e-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:  7.008e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.91
Ra Dec: 331.914 0.891
Photon Index (Free Index): 1.85 +/- 0.43
Photon Flux (Free Index): 2.93e-08 +/- 2.42e-08
Energy Flux (Free Index): 2.99e-05 +/- 2.75e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/396605/cmap_HighResolution_687139201_687744001_4FGL_J2207.6+0053_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.09e-08', energy_flux2='2.99e-05', photon_flux_error='3.17e-08', dlogl='9.01e-01', energy_flux='1.50e-05', photon_flux2='2.93e-08', job_status='DONE', time_completed='2022-10-18 01:51:15.445186', photon_index_error2='0.43', photon_index2='1.85', ts='6.16', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.75e-05', EG='0.67', time_epoch_completed='1666083075.45', return_code='0', job_id='396605', GAL2='0.93', EG2='0.70', return_code2='0', energy_flux_error='9.37e-06', photon_flux_error2='2.42e-08', ts2='7.91', photon_index='2.48' WHERE bin_id='741' AND source_name='4FGL J2207.6+0053' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 01:51:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 396605: <4FGL_J2207.6+0053_weekly_bin741> in cluster <slac> Done

Job <4FGL_J2207.6+0053_weekly_bin741> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 01:40:20 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 01:40:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 01:40:21 2022
Terminated at Tue Oct 18 01:51:16 2022
Results reported at Tue Oct 18 01:51:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_weekly_bin741 331.914 0.8907 687139201 687744001 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 :                                   643.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            656 sec.

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

