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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin1687
RA = 331.914, Dec = 0.8907
tmin = 676598401, 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='700263', job_status='RUN', time_executed='2022-06-14 01:36:24.475520', time_epoch_executed='1655195784.48' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='1687'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700263

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=676598401.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>=676598401.0 && nMetStart<676857601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700263/ft1_4FGL_J2207.6+0053_daily_bin1687.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700263/ft2_4FGL_J2207.6+0053_daily_bin1687.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700263/ft1_4FGL_J2207.6+0053_daily_bin1687.fits outfile=/scratch/kocevski/700263/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin1687.fits ra=331.914 dec=0.8907 rad=12.0 tmin=676598401.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 2.48
user 2.25
sys 0.19

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

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

Number of photons that the gtmktime cut: 718

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700263/ft1_filtered_4FGL_J2207.6+0053_daily_bin1687.fits" evtable="EVENTS" scfile=/scratch/kocevski/700263/ft2_4FGL_J2207.6+0053_daily_bin1687.fits sctable="SC_DATA" outfile=/scratch/kocevski/700263/ltcube_676598401_676857601_4FGL_J2207.6+0053_daily_bin1687.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/700263/ft2_4FGL_J2207.6+0053_daily_bin1687.fits
.....................!
real 14.62
user 14.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700263/ft1_filtered_4FGL_J2207.6+0053_daily_bin1687.fits evtable="EVENTS" scfile=/scratch/kocevski/700263/ft2_4FGL_J2207.6+0053_daily_bin1687.fits sctable="SC_DATA" expcube=/scratch/kocevski/700263/ltcube_676598401_676857601_4FGL_J2207.6+0053_daily_bin1687.fits outfile=/scratch/kocevski/700263/expmap_676598401_676857601_4FGL_J2207.6+0053_daily_bin1687.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/700263/ltcube_676598401_676857601_4FGL_J2207.6+0053_daily_bin1687.fits
.....................!
real 158.36
user 152.88
sys 5.00

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/700263/ft1_filtered_4FGL_J2207.6+0053_daily_bin1687.fits scfile=/scratch/kocevski/700263/ft2_4FGL_J2207.6+0053_daily_bin1687.fits outfile=/scratch/kocevski/700263/cmap_676598401_676857601_4FGL_J2207.6+0053_daily_bin1687.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.50
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700263/ft1_filtered_4FGL_J2207.6+0053_daily_bin1687.fits scfile=/scratch/kocevski/700263/ft2_4FGL_J2207.6+0053_daily_bin1687.fits outfile=/scratch/kocevski/700263/cmap_HighResolution_676598401_676857601_4FGL_J2207.6+0053_daily_bin1687.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.49
user 0.35
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/700263/ft1_filtered_4FGL_J2207.6+0053_daily_bin1687.fits', '/scratch/kocevski/700263/ft2_4FGL_J2207.6+0053_daily_bin1687.fits', expMap='/scratch/kocevski/700263/expmap_676598401_676857601_4FGL_J2207.6+0053_daily_bin1687.fits', expCube='/scratch/kocevski/700263/ltcube_676598401_676857601_4FGL_J2207.6+0053_daily_bin1687.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/700263/Model_4FGL_J2207.6+0053_daily_bin1687.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/700263/ft1_filtered_4FGL_J2207.6+0053_daily_bin1687.fits
Spacecraft file(s): /scratch/kocevski/700263/ft2_4FGL_J2207.6+0053_daily_bin1687.fits
Exposure map: /scratch/kocevski/700263/expmap_676598401_676857601_4FGL_J2207.6+0053_daily_bin1687.fits
Exposure cube: /scratch/kocevski/700263/ltcube_676598401_676857601_4FGL_J2207.6+0053_daily_bin1687.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/700263/Model_4FGL_J2207.6+0053_daily_bin1687.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) = 7880.97638967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6359       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6752       1.0000         .10000E-03   10000.    
     4 'Prefactor '    72.092       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .61301       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.107       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11092E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    21.864       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .72267E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.413       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.681       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .16752       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    164.24       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .49406       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0618       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7880.963     FROM MIGRAD    STATUS=FAILED       951 CALLS     3026 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.575        .18142E-02** at limit **
   2  Prefactor     5.5449        73.075        .16921E-03    .12093E-05
   3  Prefactor     2.6790        2.2603        .11162E-03    .11458E-03
   4  Prefactor     72.076        37.432        .47282E-04   -.14330E-04
   5  Prefactor     .21649        43.788        .14907        .85003E-04
   6  Prefactor     43.143        48.921        .30530E-03    .27556E-05
   7  Prefactor     .10000E-03    37.159        .18142E-02** at limit **
   8  norm          .10001E-03    4.2304        .16261E-02** at limit **
   9  norm          21.875        19.076        .85661E-04   -.30260E-04
  10  Prefactor     .10000E-03    2.7302        .14286E-02** at limit **
  11  Prefactor     .10000E-03    5.6746        .18142E-02** at limit **
  12  Prefactor     .10000E-03    4.5235        .18142E-02** at limit **
  13  Prefactor     .10001E-03    72.513        .53770E-02** at limit **
  14  Prefactor     30.382        16.902        .72653E-04   -.16875E-03
  15  Prefactor     .10000E-03    24.607        .18142E-02** at limit **
  16  Prefactor     44.673        13.113        .59979E-04   -.51935E-04
  17  Prefactor     .10000E-03    3.7994        .16890E-02** at limit **
  18  Prefactor     .10000E-03    1.7983        .11527E-02** at limit **
  19  norm          .15182        10.547        .19299E-02    .22736E-02
  20  Prefactor     .10000E-03    1.8969        .11927E-02** at limit **
  21  Prefactor     164.32        87.104        .15736E-03   -.14955E-04
  22  Normalizat    .49432        .23208        .41915E-03    .86251E-05
  23  Prefactor     1.0618        .12815        .17001E-03    .37045E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7880.963     FROM SIMPLEX   STATUS=UNCHANGED   1247 CALLS     4273 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.575        .78016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5449        73.075        .66568E-06   -1.5237    
   3  Prefactor     2.6790        2.2603        .66429E-06   -1.5381    
   4  Prefactor     72.076        37.432        .60439E-06   -1.4008    
   5  Prefactor     .21649        43.788        .67938E-06   -1.5615    
   6  Prefactor     43.143        48.921        .62093E-06   -1.4393    
   7  Prefactor     .10000E-03    37.159        .65915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    4.2304        .45601E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          21.875        19.076        .64180E-06   -1.4772    
  10  Prefactor     .10000E-03    2.7302        .22079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6746        .16861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5235        .26411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    72.513        .63818E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.382        16.902        .62954E-06   -1.4605    
  15  Prefactor     .10000E-03    24.607        .16832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.673        13.113        .61943E-06   -1.4370    
  17  Prefactor     .10000E-03    3.7994        .26180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.7983        .54763E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .15182        10.547        .67514E-06   -1.5630    
  20  Prefactor     .10000E-03    1.8969        .14393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     164.32        87.104        .56644E-06   -1.3137    
  22  Normalizat    .49432        .23208        .48664E-06   -1.1268    
  23  Prefactor     1.0618        .12815        .39109E-06   -.90696    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7880.963     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     4634 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.581        .36285E-03** at limit **
   2  Prefactor     5.5450        73.017        .67685E-05   -.13437E-06
   3  Prefactor     2.6790        2.2596        .44650E-05   -.25462E-05
   4  Prefactor     72.076        37.430        .94565E-05   -.24044E-06
   5  Prefactor     .21649        42.673        .15153        .82320E-04
   6  Prefactor     43.143        48.901        .12212E-04    .16943E-04
   7  Prefactor     .10000E-03    37.167        .36285E-03** at limit **
   8  norm          .10000E-03    4.2626        .32523E-03** at limit **
   9  norm          21.875        19.069        .34264E-05    .25880E-04
  10  Prefactor     .10000E-03    2.7305        .28572E-03** at limit **
  11  Prefactor     .10000E-03    5.6762        .36285E-03** at limit **
  12  Prefactor     .10000E-03    4.5237        .36285E-03** at limit **
  13  Prefactor     .10000E-03    74.628        .21508E-03** at limit **
  14  Prefactor     30.382        16.867        .14531E-04   -.22064E-04
  15  Prefactor     .10000E-03    24.616        .36285E-03** at limit **
  16  Prefactor     44.673        13.112        .23992E-05   -.10425E-04
  17  Prefactor     .10000E-03    3.7995        .33780E-03** at limit **
  18  Prefactor     .10000E-03    1.7987        .23054E-03** at limit **
  19  norm          .15183        10.530        .38598E-03    .93228E-04
  20  Prefactor     .10000E-03    1.8970        .23854E-03** at limit **
  21  Prefactor     164.32        86.787        .62944E-05   -.21674E-05
  22  Normalizat    .49432        .23205        .16766E-04    .46109E-05
  23  Prefactor     1.0618        .12820        .68006E-05    .11702E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.54496
  Prefactor  = 2.67904
  Prefactor  = 72.076
  Prefactor  = 0.216494
  Prefactor  = 43.1428
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.8751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.3822
  Prefactor  = 0.0001
  Prefactor  = 44.6727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.151827
  Prefactor  = 0.0001
  Prefactor  = 164.317
  Normalizat = 0.494322
  Prefactor  = 1.06182
 **********
 **   18 **HESSE 
 **********

 FCN=   7880.963     FROM HESSE     STATUS=OK           358 CALLS     4992 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.581        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5450        73.002        .67685E-05   -1.5237    
   3  Prefactor     2.6790        2.2593        .89299E-06   -1.5381    
   4  Prefactor     72.076        37.443        .18913E-05   -1.4008    
   5  Prefactor     .21649        43.033        .15073       -1.5615    
   6  Prefactor     43.143        48.925        .24424E-05   -1.4393    
   7  Prefactor     .10000E-03    37.167        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.2639        .65046E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          21.875        19.074        .68529E-06   -1.4772    
  10  Prefactor     .10000E-03    2.7306        .57144E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6763        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5237        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    74.632        .43016E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.382        16.866        .29061E-05   -1.4605    
  15  Prefactor     .10000E-03    24.616        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.673        13.131        .47983E-06   -1.4370    
  17  Prefactor     .10000E-03    3.7995        .67560E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.7987        .46107E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .15183        10.509        .77196E-04   -1.5630    
  20  Prefactor     .10000E-03    1.8970        .47707E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     164.32        86.843        .12589E-05   -1.3137    
  22  Normalizat    .49432        .23231        .33532E-05   -1.1268    
  23  Prefactor     1.0618        .12836        .13601E-05   -.90696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22046e-10
Minuit parameter uncertainties:
  1  3.9524e-07
  2  40.2988
  3  2.25937
  4  37.4551
  5  6.1076
  6  48.9703
  7  3.03213e-07
  8  2.71293e-06
  9  19.0796
  10  1.39824e-08
  11  1.35763e-07
  12  2.64225e-08
  13  9.08254e-05
  14  16.8691
  15  3.15964e-07
  16  13.1319
  17  2.07962e-08
  18  3.00064e-08
  19  2.52595
  20  6.65908e-09
  21  86.911
  22  0.232765
  23  0.128401
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  3.038e+01  1.687e+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:  1.062e+00  1.284e-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.943e-01  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.40
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 7.39e-08 +/- 4.10e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.21e-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) = 7880.95562194
delta logL = 0.00733797666817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7880.94812378
delta logL = 0.0148361373367

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.236       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3899       1.0000          .0000       10.000    
     3 'Normalizat'    .50107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0592       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=   7880.948     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      254 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.228        25.741        .69507E-04    .15885E-03
   2  Index         2.3905        .56767        .67242E-02    .36139E-04
   3  Normalizat    .50096        .22345        .41653E-03    .11040E-03
   4  Prefactor     1.0593        .12856        .17019E-03    .18208E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.2279
  Index      = 2.39045
  Normalizat = 0.500959
  Prefactor  = 1.05931
 **********
 **   18 **HESSE 
 **********

 FCN=   7880.948     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.228        24.339        .13901E-04   -1.4554    
   2  Index         2.3905        .53632        .26897E-03   -.54909    
   3  Normalizat    .50096        .22315        .16661E-04   -1.1237    
   4  Prefactor     1.0593        .12847        .34039E-04   -.90778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32947e-11
Minuit parameter uncertainties:
  1  24.3465
  2  0.537749
  3  0.223546
  4  0.128509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700263': 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) = 7880.94812296
delta logL = 0.0148369597673

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  3.323e+01  2.435e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.390e+00  5.377e-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:  1.059e+00  1.285e-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:  5.010e-01  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.40
Ra Dec: 331.914 0.891
Photon Index (Free Index): 2.39 +/- 0.54
Photon Flux (Free Index): 6.91e-08 +/- 4.84e-08
Energy Flux (Free Index): 2.29e-05 +/- 1.47e-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/700263/cmap_HighResolution_676598401_676857601_4FGL_J2207.6+0053_daily_bin1687.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.39e-08', energy_flux2='2.29e-05', photon_flux_error='4.10e-08', dlogl='1.48e-02', energy_flux='2.18e-05', photon_flux2='6.91e-08', job_status='DONE', time_completed='2022-06-14 01:48:34.203239', photon_index_error2='0.54', photon_index2='2.39', ts='7.40', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.49', time_epoch_completed='1655196514.2', return_code='0', job_id='700263', GAL2='1.06', EG2='0.50', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.84e-08', ts2='7.40', photon_index='2.48' WHERE bin_id='1687' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jun 14 01:48:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 700263: <4FGL_J2207.6+0053_daily_bin1687> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin1687> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jun 14 01:35:21 2022
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 14 01:35:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 14 01:35:56 2022
Terminated at Tue Jun 14 01:48:35 2022
Results reported at Tue Jun 14 01:48:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin1687 331.914 0.8907 676598401 676857601 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 :                                   728.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            794 sec.

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

