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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin1717
RA = 331.914, Dec = 0.8907
tmin = 684374401, tmax = 684633601
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='240584', job_status='RUN', time_executed='2022-09-16 23:43:17.891198', time_epoch_executed='1663396997.89' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240584/ft1_4FGL_J2207.6+0053_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240584/ft2_4FGL_J2207.6+0053_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240584/ft1_4FGL_J2207.6+0053_daily_bin1717.fits outfile=/scratch/kocevski/240584/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin1717.fits ra=331.914 dec=0.8907 rad=12.0 tmin=684374401.0 tmax=684633601.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.00
user 4.74
sys 0.24

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

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

Number of photons that the gtmktime cut: 483

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240584/ft1_filtered_4FGL_J2207.6+0053_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/240584/ft2_4FGL_J2207.6+0053_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/240584/ltcube_684374401_684633601_4FGL_J2207.6+0053_daily_bin1717.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/240584/ft2_4FGL_J2207.6+0053_daily_bin1717.fits
.....................!
real 13.87
user 13.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240584/ft1_filtered_4FGL_J2207.6+0053_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/240584/ft2_4FGL_J2207.6+0053_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/240584/ltcube_684374401_684633601_4FGL_J2207.6+0053_daily_bin1717.fits outfile=/scratch/kocevski/240584/expmap_684374401_684633601_4FGL_J2207.6+0053_daily_bin1717.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/240584/ltcube_684374401_684633601_4FGL_J2207.6+0053_daily_bin1717.fits
.....................!
real 192.68
user 186.56
sys 5.68

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/240584/ft1_filtered_4FGL_J2207.6+0053_daily_bin1717.fits scfile=/scratch/kocevski/240584/ft2_4FGL_J2207.6+0053_daily_bin1717.fits outfile=/scratch/kocevski/240584/cmap_684374401_684633601_4FGL_J2207.6+0053_daily_bin1717.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.63
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240584/ft1_filtered_4FGL_J2207.6+0053_daily_bin1717.fits scfile=/scratch/kocevski/240584/ft2_4FGL_J2207.6+0053_daily_bin1717.fits outfile=/scratch/kocevski/240584/cmap_HighResolution_684374401_684633601_4FGL_J2207.6+0053_daily_bin1717.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.59
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20048E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    25.301       1.0000          .0000       .10000E+07
     3 'Prefactor '    .34794E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .58278E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .47265       1.0000          .0000       .10000E+07
     6 'norm      '    .30331       1.0000          .0000       .10000E+07
     7 'norm      '    .15431E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13972E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    11.849       1.0000          .0000       .10000E+07
    10 'Prefactor '    12.578       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.0865       1.0000          .0000       .10000E+07
    12 'Prefactor '    36.678       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14410E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .83674E-05   1.0000          .0000       .10000E+07
    15 'norm      '    1.6790       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .52164E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    .18291       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2372       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=   5511.036     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1466 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10880E-07    14.763        .17334E-05** at limit **
   2  Prefactor     25.612        26.078        .40712E-05   -.91878E-01
   3  Prefactor     .16653E-09    3.2554        .49544E-07** at limit **
   4  Prefactor     .21244E-06    20.869       -.26766E-05** at limit **
   5  Prefactor     .58842E-04    125.10       -.88300E-05** at limit **
   6  norm          .31607        4.8378        .14488E-05    .17086E-02
   7  norm          .32196E-08    7.6050        .14820E-05** at limit **
   8  Prefactor      .0000        5.8174        .12859E-06** at limit **
   9  Prefactor     11.848        5.8414        .12461E-05   -.23047E-02
  10  Prefactor     12.798        6.1367       -.14808E-05    .87752E-02
  11  Prefactor     .86749        16.248       -.55169E-05    .22923E-02
  12  Prefactor     36.641        10.513       -.16450E-05   -.74704E-01
  13  Prefactor     .11102E-08    6.5049        .28877E-06** at limit **
  14  Prefactor     .33307E-09    3.0228       -.36563E-06** at limit **
  15  norm          1.6802        2.4719        .45473E-06   -.56396E-03
  16  Prefactor     .10000E-03    4.6909        .16431E-04** at limit **
  17  Prefactor     .83605E-06    27.697        .36709E-05** at limit **
  18  Normalizat    .18297        .25775       -.39798E-04   -.14348E-04
  19  Prefactor     1.2372        .15237        .84898E-05   -.24448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.08802e-08
  Prefactor  = 25.6122
  Prefactor  = 1.66533e-10
  Prefactor  = 2.12441e-07
  Prefactor  = 5.88424e-05
  norm       = 0.316067
  norm       = 3.21965e-09
  Prefactor  = 0
  Prefactor  = 11.8478
  Prefactor  = 12.7978
  Prefactor  = 0.867488
  Prefactor  = 36.6405
  Prefactor  = 1.11022e-09
  Prefactor  = 3.33067e-10
  norm       = 1.68018
  Prefactor  = 0.0001
  Prefactor  = 8.36053e-07
  Normalizat = 0.182975
  Prefactor  = 1.23723
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.036     FROM HESSE     STATUS=OK           310 CALLS     1776 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10880E-07    14.890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.612        43.976        .19885E-03   -1.5607    
   3  Prefactor     .16653E-09    3.2104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .21244E-06    21.244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .58842E-04    186.46        .81510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .31607        1.4727        .47617E-02   -1.5719    
   7  norm          .32196E-08    7.6209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        5.9708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.848        13.395        .29077E-03   -1.5639    
  10  Prefactor     12.798        22.854        .28219E-03   -1.5636    
  11  Prefactor     .86749        25.081        .11503E-01   -1.5689    
  12  Prefactor     36.641        15.963        .16514E-03   -1.5587    
  13  Prefactor     .11102E-08    6.8750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .33307E-09    3.0025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6802        2.6092        .81275E-03   -1.5682    
  16  Prefactor     .10000E-03    4.6529        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .83605E-06    28.756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .18297        .56874        .14937       -1.3069    
  19  Prefactor     1.2372        .32344        .33804E-01   -.85193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1175e-06
Minuit parameter uncertainties:
  1  0.000804354
  2  43.9763
  3  4.51353e-05
  4  0.00424907
  5  0.209497
  6  1.36451
  7  0.00031235
  8  2.15703e-06
  9  13.3952
  10  22.8541
  11  9.32896
  12  15.9628
  13  0.000173486
  14  6.27058e-05
  15  2.6092
  16  3.828e-06
  17  0.00980655
  18  0.588551
  19  0.323959
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  8.675e-01  9.329e+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

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  1.237e+00  3.240e-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:  1.830e-01  5.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/240584/likelihoodResults_684374401_684633601_4FGL_J2207.6+0053_daily_bin1717.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) = 5511.00846658
delta logL = 0.0279200340728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5511.00440743
delta logL = 0.0319791913444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4854       1.0000          .0000       .10000E+07
     2 'Index     '    3.2086       1.0000          .0000       10.000    
     3 'Normalizat'    .17223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2399       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=   5511.004     FROM MIGRAD    STATUS=FAILED        91 CALLS      272 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4871        27.577        .34590E-04    .10472E-01
   2  Index         3.2087        3.3072        .74374E-02    .45918E-03
   3  Normalizat    .17222        .25765        .67193E-03    .51090E-03
   4  Prefactor     1.2399        .15274        .15589E-03    .17656E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5511.004     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      351 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4871        27.577        .23304E-04   -1.5684    
   2  Index         3.2087        3.3072        .37653E-02   -.36639    
   3  Normalizat    .17222        .25765        .78728E-03   -1.3152    
   4  Prefactor     1.2399        .15274        .19212E-03   -.85111    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5511.004     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      378 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4886        14.822        .13836E-05    .12300E-01
   2  Index         3.2082        2.5464        .29750E-03    .12809E-03
   3  Normalizat    .17222        .25708        .26877E-04    .24998E-03
   4  Prefactor     1.2399        .15231        .31177E-04    .85320E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.48861
  Index      = 3.20822
  Normalizat = 0.172222
  Prefactor  = 1.23993
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.004     FROM HESSE     STATUS=OK            23 CALLS      401 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4886        14.622        .37393E-06   -1.5684    
   2  Index         3.2082        2.5311        .59499E-04   -.36651    
   3  Normalizat    .17222        .25713        .53754E-05   -1.3152    
   4  Prefactor     1.2399        .15233        .62354E-05   -.85111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54443e-09
Minuit parameter uncertainties:
  1  9.33086
  2  2.67518
  3  0.258945
  4  0.152389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240584': 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) = 5511.00440736
delta logL = 0.0319792583041

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.489e+00  9.331e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  3.208e+00  2.675e+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:  1.240e+00  1.524e-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:  1.722e-01  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
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/240584/cmap_HighResolution_684374401_684633601_4FGL_J2207.6+0053_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.67e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2022-09-16 23:52:38.590482', job_id='240584', GAL2='1.24', fit_tolerance='1e-08', EG2='0.17', EG='0.18', time_epoch_completed='1663397558.59', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='3.20e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1717' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:52:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 240584: <4FGL_J2207.6+0053_daily_bin1717> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin1717> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 23:40:32 2022
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:41:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:41:37 2022
Terminated at Fri Sep 16 23:52:39 2022
Results reported at Fri Sep 16 23:52:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin1717 331.914 0.8907 684374401 684633601 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 :                                   563.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            727 sec.

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

