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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1726
RA = 330.031, Dec = 21.6382
tmin = 686707201, tmax = 686966401
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='88297', job_status='RUN', time_executed='2022-10-09 00:37:34.879704', time_epoch_executed='1665301054.88' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88297/ft1_4FGL_J2200.1+2138_daily_bin1726.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88297/ft2_4FGL_J2200.1+2138_daily_bin1726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88297/ft1_4FGL_J2200.1+2138_daily_bin1726.fits outfile=/scratch/kocevski/88297/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1726.fits ra=330.031 dec=21.6382 rad=12.0 tmin=686707201.0 tmax=686966401.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.53
user 2.32
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/88297/ft2_4FGL_J2200.1+2138_daily_bin1726.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88297/ft2_4FGL_J2200.1+2138_daily_bin1726.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/88297/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1726.fits evtable="EVENTS" outfile="/scratch/kocevski/88297/ft1_filtered_4FGL_J2200.1+2138_daily_bin1726.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.44
user 0.29
sys 0.14

Number of photons that the gtmktime cut: 495

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88297/ft1_filtered_4FGL_J2200.1+2138_daily_bin1726.fits" evtable="EVENTS" scfile=/scratch/kocevski/88297/ft2_4FGL_J2200.1+2138_daily_bin1726.fits sctable="SC_DATA" outfile=/scratch/kocevski/88297/ltcube_686707201_686966401_4FGL_J2200.1+2138_daily_bin1726.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/88297/ft2_4FGL_J2200.1+2138_daily_bin1726.fits
.....................!
real 10.87
user 10.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88297/ft1_filtered_4FGL_J2200.1+2138_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88297/ft2_4FGL_J2200.1+2138_daily_bin1726.fits sctable="SC_DATA" expcube=/scratch/kocevski/88297/ltcube_686707201_686966401_4FGL_J2200.1+2138_daily_bin1726.fits outfile=/scratch/kocevski/88297/expmap_686707201_686966401_4FGL_J2200.1+2138_daily_bin1726.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/88297/ltcube_686707201_686966401_4FGL_J2200.1+2138_daily_bin1726.fits
.....................!
real 157.73
user 152.89
sys 4.49

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 167 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2200.1+2138 @ 330.031 21.6382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/88297/ft1_filtered_4FGL_J2200.1+2138_daily_bin1726.fits scfile=/scratch/kocevski/88297/ft2_4FGL_J2200.1+2138_daily_bin1726.fits outfile=/scratch/kocevski/88297/cmap_686707201_686966401_4FGL_J2200.1+2138_daily_bin1726.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=330.031 yref=21.6382 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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88297/ft1_filtered_4FGL_J2200.1+2138_daily_bin1726.fits scfile=/scratch/kocevski/88297/ft2_4FGL_J2200.1+2138_daily_bin1726.fits outfile=/scratch/kocevski/88297/cmap_HighResolution_686707201_686966401_4FGL_J2200.1+2138_daily_bin1726.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=330.031 yref=21.6382 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.51
user 0.31
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88297/ft1_filtered_4FGL_J2200.1+2138_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88297/ft2_4FGL_J2200.1+2138_daily_bin1726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88297/Model_4FGL_J2200.1+2138_daily_bin1726.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/88297/ft1_filtered_4FGL_J2200.1+2138_daily_bin1726.fits.....................!
real 68.21
user 67.06
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/88297/ft1_filtered_4FGL_J2200.1+2138_daily_bin1726.fits', '/scratch/kocevski/88297/ft2_4FGL_J2200.1+2138_daily_bin1726.fits', expMap='/scratch/kocevski/88297/expmap_686707201_686966401_4FGL_J2200.1+2138_daily_bin1726.fits', expCube='/scratch/kocevski/88297/ltcube_686707201_686966401_4FGL_J2200.1+2138_daily_bin1726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/88297/Model_4FGL_J2200.1+2138_daily_bin1726.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2200.1+2138'

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  7.461e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/88297/ft1_filtered_4FGL_J2200.1+2138_daily_bin1726.fits
Spacecraft file(s): /scratch/kocevski/88297/ft2_4FGL_J2200.1+2138_daily_bin1726.fits
Exposure map: /scratch/kocevski/88297/expmap_686707201_686966401_4FGL_J2200.1+2138_daily_bin1726.fits
Exposure cube: /scratch/kocevski/88297/ltcube_686707201_686966401_4FGL_J2200.1+2138_daily_bin1726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/88297/Model_4FGL_J2200.1+2138_daily_bin1726.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) = 5464.76951888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.560       1.0000          .0000       .10000E+07
     2 'norm      '    .84777       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11738E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .28727       1.0000          .0000       .10000E+07
     5 'norm      '    6.6840       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.2527       1.0000          .0000       .10000E+07
     7 'Prefactor '    .27104E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .16625E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    45.683       1.0000          .0000       .10000E+07
    10 'norm      '    .92824E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    73.604       1.0000          .0000       .10000E+07
    12 'norm      '    .11195E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13847E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .33471E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .77088       1.0000          .0000       .10000E+07
    16 'norm      '    .44987E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    54.006       1.0000          .0000       .10000E+07
    18 'Normalizat'    .89704       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95228       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5464.769     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1499 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.351        17.725       -.31570E-06   -.11839    
   2  norm          .85390        3.4549       -.49100E-06   -.25925E-01
   3  Prefactor      .0000        2.6369        .97711E-07** at limit **
   4  Prefactor     .11524E-06    64.489       -.36502E-05** at limit **
   5  norm          6.6690        3.5514        .46492E-07    .32778E-03
   6  Prefactor     7.2371        9.1823        .32113E-06    .10361E-01
   7  Prefactor     .16653E-09    32.892        .76877E-06** at limit **
   8  norm           .0000        .74965        .17529E-06** at limit **
   9  Prefactor     45.857        17.181        .47461E-06   -.24901    
  10  norm           .0000        .62534       -.61634E-07** at limit **
  11  Prefactor     73.664        1.8463        .14112E-07    .49976E-01
  12  norm          .55511E-10    2.8101        .11839E-07** at limit **
  13  Prefactor     .32752E-08    21.925       -.92815E-06** at limit **
  14  Prefactor     .14869E-05    128.83        .73367E-06** at limit **
  15  norm          .77280        1.7778       -.44344E-06   -.16131E-02
  16  norm           .0000        1.8801       -.20986E-06** at limit **
  17  Prefactor     54.384        35.010        .70396E-06    .72817E-01
  18  Normalizat    .89684        .35983        .16958E-04    .90794E-05
  19  Prefactor     .95249        .15046       -.67931E-05    .15005E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.3514
  norm       = 0.853902
  Prefactor  = 0
  Prefactor  = 1.15241e-07
  norm       = 6.66897
  Prefactor  = 7.23713
  Prefactor  = 1.66533e-10
  norm       = 0
  Prefactor  = 45.8568
  norm       = 0
  Prefactor  = 73.6644
  norm       = 5.55112e-11
  Prefactor  = 3.27516e-09
  Prefactor  = 1.48687e-06
  norm       = 0.772795
  norm       = 0
  Prefactor  = 54.3839
  Normalizat = 0.896837
  Prefactor  = 0.95249
 **********
 **   18 **HESSE 
 **********

 FCN=   5464.769     FROM HESSE     STATUS=OK           308 CALLS     1807 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.351        38.471        .12746E-03   -1.5551    
   2  norm          .85390        3.5285        .49440E-03   -1.5689    
   3  Prefactor      .0000        2.6361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11524E-06    64.472        .10392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.6690        3.5636        .38789E-03   -1.5656    
   6  Prefactor     7.2371        9.1977        .37221E-03   -1.5654    
   7  Prefactor     .16653E-09    32.289        .16608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .73875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.857        83.971        .14796E-03   -1.5573    
  10  norm           .0000        .62130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     73.664        36.161        .11657E-03   -1.5536    
  12  norm          .55511E-10    2.8103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .32752E-08    21.907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .14869E-05    20.782        .11093E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .77280        1.7916        .55131E-03   -1.5690    
  16  norm           .0000        1.8776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     54.384        41.078        .13608E-03   -1.5560    
  18  Normalizat    .89684        .31542        .95710E-01   -.96571    
  19  Prefactor     .95249        .12682        .45668E-01   -.94330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01635e-05
Minuit parameter uncertainties:
  1  38.4715
  2  3.47159
  3  1.31241e-05
  4  0.00545222
  5  3.56362
  6  9.19767
  7  0.000146978
  8  1.09024e-06
  9  83.973
  10  4.53289e-07
  11  36.1607
  12  2.42466e-05
  13  0.000534698
  14  0.0111177
  15  1.79158
  16  7.20923e-06
  17  41.0782
  18  0.316067
  19  0.12686
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  4.586e+01  8.397e+01  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  9.525e-01  1.269e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  8.968e-01  3.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.36
Ra Dec: 330.031 21.638
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88297/likelihoodResults_686707201_686966401_4FGL_J2200.1+2138_daily_bin1726.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) = 5464.44491999
delta logL = 0.323635028244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5464.42747071
delta logL = 0.341084307541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.932       1.0000          .0000       .10000E+07
     2 'Index     '    2.8246       1.0000          .0000       10.000    
     3 'Normalizat'    .84168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96628       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+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=   5464.427     FROM MIGRAD    STATUS=FAILED        93 CALLS      314 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.999        926.45        .10026E-04   -.43768E-03
   2  Index         2.8241        6.3708        .53067E-02    .62897E-03
   3  Normalizat    .84088        .39725        .43643E-03   -.17523E-03
   4  Prefactor     .96648        .16936        .16985E-03    .56189E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5464.427     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      408 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.999        926.45        .54082E-04   -.43768E-03
   2  Index         2.8241        6.3708        .64527E-03    .62897E-03
   3  Normalizat    .84088        .39725        .38005E-03   -.17523E-03
   4  Prefactor     .96648        .16936        .97085E-04    .56189E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5464.427     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      440 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.999        50.474        .40105E-06    .46378E-04
   2  Index         2.8241        1.1997        .10613E-02    .31599E-05
   3  Normalizat    .84090        .36507        .17457E-04   -.78148E-06
   4  Prefactor     .96647        .15042        .33969E-04   -.22758E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9991
  Index      = 2.82412
  Normalizat = 0.840895
  Prefactor  = 0.966471
 **********
 **   18 **HESSE 
 **********

 FCN=   5464.427     FROM HESSE     STATUS=OK            23 CALLS      463 TOTAL
                     EDM=   .50E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.999        45.620        .37260E-06   -1.5628    
   2  Index         2.8241        1.0863        .42454E-04   -.45023    
   3  Normalizat    .84090        .36465        .34914E-05   -.98569    
   4  Prefactor     .96647        .15020        .67938E-05   -.93856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00653e-14
Minuit parameter uncertainties:
  1  45.6208
  2  1.0971
  3  0.365718
  4  0.150261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88297': 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) = 5464.42746498
delta logL = 0.341090036694

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.600e+01  4.562e+01  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  2.824e+00  1.097e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  9.665e-01  1.503e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  8.409e-01  3.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 330.031 21.638
Photon Index (Free Index): 2.82 +/- 1.10
Photon Flux (Free Index): 7.18e-08 +/- 8.19e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.88e-05

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/88297/cmap_HighResolution_686707201_686966401_4FGL_J2200.1+2138_daily_bin1726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', energy_flux2='1.58e-05', dlogl='3.41e-01', photon_flux2='7.18e-08', job_status='DONE', time_completed='2022-10-09 00:45:00.348930', photon_index_error2='1.10', photon_index2='2.82', ts='0.36', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.88e-05', EG='0.90', time_epoch_completed='1665301500.35', return_code='0', job_id='88297', GAL2='0.97', EG2='0.84', return_code2='0', photon_flux_error2='8.19e-08', ts2='1.08', photon_index='2.04' WHERE bin_id='1726' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:45:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 88297: <4FGL_J2200.1+2138_daily_bin1726> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1726> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Oct  9 00:35:48 2022
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:35:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:35:54 2022
Terminated at Sun Oct  9 00:45:01 2022
Results reported at Sun Oct  9 00:45:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1726 330.031 21.6382 686707201 686966401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2200.1+2138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   447.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   546 sec.
    Turnaround time :                            553 sec.

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

