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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1772
RA = 330.031, Dec = 21.6382
tmin = 698630401, tmax = 698889601
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='652359', job_status='RUN', time_executed='2023-02-24 02:55:30.228230', time_epoch_executed='1677236130.23' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652359

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652359/ft1_4FGL_J2200.1+2138_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652359/ft2_4FGL_J2200.1+2138_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652359/ft1_4FGL_J2200.1+2138_daily_bin1772.fits outfile=/scratch/kocevski/652359/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1772.fits ra=330.031 dec=21.6382 rad=12.0 tmin=698630401.0 tmax=698889601.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.99
user 2.80
sys 0.18

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

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

Number of photons that the gtmktime cut: 1076

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652359/ft1_filtered_4FGL_J2200.1+2138_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/652359/ft2_4FGL_J2200.1+2138_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/652359/ltcube_698630401_698889601_4FGL_J2200.1+2138_daily_bin1772.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/652359/ft2_4FGL_J2200.1+2138_daily_bin1772.fits
.....................!
real 12.53
user 12.20
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652359/ft1_filtered_4FGL_J2200.1+2138_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/652359/ft2_4FGL_J2200.1+2138_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/652359/ltcube_698630401_698889601_4FGL_J2200.1+2138_daily_bin1772.fits outfile=/scratch/kocevski/652359/expmap_698630401_698889601_4FGL_J2200.1+2138_daily_bin1772.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/652359/ltcube_698630401_698889601_4FGL_J2200.1+2138_daily_bin1772.fits
.....................!
real 189.60
user 185.07
sys 4.23

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/652359/ft1_filtered_4FGL_J2200.1+2138_daily_bin1772.fits scfile=/scratch/kocevski/652359/ft2_4FGL_J2200.1+2138_daily_bin1772.fits outfile=/scratch/kocevski/652359/cmap_698630401_698889601_4FGL_J2200.1+2138_daily_bin1772.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/652359/ft1_filtered_4FGL_J2200.1+2138_daily_bin1772.fits scfile=/scratch/kocevski/652359/ft2_4FGL_J2200.1+2138_daily_bin1772.fits outfile=/scratch/kocevski/652359/cmap_HighResolution_698630401_698889601_4FGL_J2200.1+2138_daily_bin1772.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.54
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/652359/ft1_filtered_4FGL_J2200.1+2138_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/652359/ft2_4FGL_J2200.1+2138_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/652359/Model_4FGL_J2200.1+2138_daily_bin1772.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/652359/ft1_filtered_4FGL_J2200.1+2138_daily_bin1772.fits.....................!
real 164.12
user 162.71
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/652359/ft1_filtered_4FGL_J2200.1+2138_daily_bin1772.fits', '/scratch/kocevski/652359/ft2_4FGL_J2200.1+2138_daily_bin1772.fits', expMap='/scratch/kocevski/652359/expmap_698630401_698889601_4FGL_J2200.1+2138_daily_bin1772.fits', expCube='/scratch/kocevski/652359/ltcube_698630401_698889601_4FGL_J2200.1+2138_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/652359/Model_4FGL_J2200.1+2138_daily_bin1772.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/652359/ft1_filtered_4FGL_J2200.1+2138_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/652359/ft2_4FGL_J2200.1+2138_daily_bin1772.fits
Exposure map: /scratch/kocevski/652359/expmap_698630401_698889601_4FGL_J2200.1+2138_daily_bin1772.fits
Exposure cube: /scratch/kocevski/652359/ltcube_698630401_698889601_4FGL_J2200.1+2138_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/652359/Model_4FGL_J2200.1+2138_daily_bin1772.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) = 11865.5561305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28288E-02   1.0000          .0000       .10000E+07
     2 'norm      '    9.8819       1.0000          .0000       .10000E+07
     3 'Prefactor '    27.512       1.0000          .0000       .10000E+07
     4 'Prefactor '    .18285E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .42217E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.7400       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11320E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .46408E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    60.582       1.0000          .0000       .10000E+07
    10 'norm      '    .51878E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74328E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .66644E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .50856E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .11464       1.0000          .0000       .10000E+07
    15 'norm      '    1.4136       1.0000          .0000       .10000E+07
    16 'norm      '    1.4242       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.7928       1.0000          .0000       .10000E+07
    18 'Normalizat'    .84771       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0585       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=   11865.55     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1519 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    10.113        .16757E-07** at limit **
   2  norm          9.8741        4.4792        .89827E-08   -.33064E-03
   3  Prefactor     27.527        1.3826       -.40300E-08   -.36780E-01
   4  Prefactor     .41089E-06    32.796        .46161E-06** at limit **
   5  norm           .0000        4.1633       -.48671E-07** at limit **
   6  Prefactor     7.6969        5.5093       -.90403E-08   -.16510E-02
   7  Prefactor     .40400E-05    16.534        .83380E-07** at limit **
   8  norm          .46562E-01    1.0584       -.25992E-07** at limit **
   9  Prefactor     60.088        46.386       -.17472E-07    .49891E-01
  10  norm          .50863E-01    2.4781        .46862E-07** at limit **
  11  Prefactor     .73795E-05    12.893        .13832E-06** at limit **
  12  norm          .55511E-10    2.3060       -.88211E-07** at limit **
  13  Prefactor     .55511E-10    8.5447        .41771E-06** at limit **
  14  Prefactor     .92225E-01    11.951       -.35927E-07** at limit **
  15  norm          1.4131        .76764       -.34252E-08    .13141E-03
  16  norm          1.4239        1.1488       -.10153E-07   -.17665E-02
  17  Prefactor     6.7653        9.6124        .27806E-07    .34856E-03
  18  Normalizat    .84806        .23637        .21855E-05   -.11844E-03
  19  Prefactor     1.0585        .10309       -.18011E-05   -.46652E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  norm       = 9.87408
  Prefactor  = 27.5267
  Prefactor  = 4.10894e-07
  norm       = 0
  Prefactor  = 7.69694
  Prefactor  = 4.03999e-06
  norm       = 0.0465624
  Prefactor  = 60.0879
  norm       = 0.0508633
  Prefactor  = 7.37949e-06
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 0.0922254
  norm       = 1.41305
  norm       = 1.42392
  Prefactor  = 6.76531
  Normalizat = 0.848062
  Prefactor  = 1.05854
 **********
 **   18 **HESSE 
 **********

 FCN=   11865.55     FROM HESSE     STATUS=OK           322 CALLS     1841 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    10.144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.8741        4.4864        .31852E-03   -1.5645    
   3  Prefactor     27.527        13.405        .19068E-03   -1.5603    
   4  Prefactor     .41089E-06    33.350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        3.9969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6969        5.5756        .36020E-03   -1.5652    
   7  Prefactor     .40400E-05    26.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .46562E-01    .31252        .21789E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     60.088        49.272        .12849E-03   -1.5553    
  10  norm          .50863E-01    .52078        .25247E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .73795E-05    28.158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    2.3806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    8.5655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .92225E-01    6.3217        .91761E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4131        .77960        .91047E-03   -1.5684    
  16  norm          1.4239        1.1502        .90569E-03   -1.5684    
  17  Prefactor     6.7653        9.6471        .38474E-03   -1.5656    
  18  Normalizat    .84806        .21381        .97377E-01   -.98310    
  19  Prefactor     1.0585        .89630E-01    .39437E-01   -.90803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47363e-07
Minuit parameter uncertainties:
  1  7.507e-05
  2  4.48637
  3  13.4052
  4  0.00740357
  5  2.84192e-06
  6  5.57558
  7  0.0207718
  8  0.24126
  9  49.2727
  10  0.325506
  11  0.0288299
  12  1.97226e-05
  13  3.99942e-05
  14  1.52712
  15  0.779596
  16  1.15024
  17  9.64714
  18  0.21402
  19  0.0896422
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  6.009e+01  4.927e+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:  1.059e+00  8.964e-02  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.481e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 330.031 21.638
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 3.20e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.99e-05

TS (Fixed Index): 2.10
Ra Dec: 330.031 21.638
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/652359/likelihoodResults_698630401_698889601_4FGL_J2200.1+2138_daily_bin1772.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) = 11864.7396225
delta logL = 0.812241614896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11864.7064341
delta logL = 0.845430023768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.221       1.0000          .0000       .10000E+07
     2 'Index     '    2.9864       1.0000          .0000       10.000    
     3 'Normalizat'    .75444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0846       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=   11864.71     FROM MIGRAD    STATUS=FAILED       100 CALLS      308 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.144        214.62        .10614E-04   -.22109E-02
   2  Index         2.9888        2.9312        .43253E-02    .14731E-02
   3  Normalizat    .75420        .27306        .45557E-03    .55898E-05
   4  Prefactor     1.0847        .11125        .16792E-03   -.12403E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11864.71     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      399 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.144        214.62        .24190E-04   -.22109E-02
   2  Index         2.9888        2.9312        .58325E-03    .14731E-02
   3  Normalizat    .75420        .27306        .17315E-03    .55898E-05
   4  Prefactor     1.0847        .11125        .57392E-04   -.12403E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11864.71     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      428 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.144        41.247        .42454E-06   -.22767E-02
   2  Index         2.9888        1.1799        .86505E-03   -.84846E-04
   3  Normalizat    .75420        .25449        .18223E-04    .44918E-05
   4  Prefactor     1.0847        .10782        .67167E-05   -.12254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1443
  Index      = 2.98877
  Normalizat = 0.754198
  Prefactor  = 1.08469
 **********
 **   18 **HESSE 
 **********

 FCN=   11864.71     FROM HESSE     STATUS=OK            23 CALLS      451 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.144        32.358        .37271E-06   -1.5633    
   2  Index         2.9888        .92910        .34602E-04   -.41397    
   3  Normalizat    .75420        .24992        .36446E-05   -1.0179    
   4  Prefactor     1.0847        .10615        .13433E-05   -.89957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19742e-11
Minuit parameter uncertainties:
  1  32.3588
  2  0.935598
  3  0.250298
  4  0.106166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652359': 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) = 11864.7064308
delta logL = 0.845433276923

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.414e+01  3.236e+01  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  2.989e+00  9.356e-01  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:  1.085e+00  1.062e-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:  7.542e-01  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.14
Ra Dec: 330.031 21.638
Photon Index (Free Index): 2.99 +/- 0.94
Photon Flux (Free Index): 9.85e-08 +/- 6.52e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.21e-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/652359/cmap_HighResolution_698630401_698889601_4FGL_J2200.1+2138_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.92e-03', comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='1.98e-05', photon_flux_error='3.20e-08', dlogl='8.45e-01', energy_flux='2.43e-05', photon_flux2='9.85e-08', job_status='DONE', time_completed='2023-02-24 03:09:21.079247', photon_index_error2='0.94', photon_index2='2.99', ts='2.10', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.21e-05', EG='0.85', time_epoch_completed='1677236961.08', return_code='0', job_id='652359', GAL2='1.08', EG2='0.75', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='6.52e-08', ts2='4.14', photon_index='2.04' WHERE bin_id='1772' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 03:09:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0177>
Subject: Job 652359: <4FGL_J2200.1+2138_daily_bin1772> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1772> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Feb 24 02:55:17 2023
Job was executed on host(s) <bullet0177>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 02:55:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 02:55:19 2023
Terminated at Fri Feb 24 03:09:21 2023
Results reported at Fri Feb 24 03:09:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1772 330.031 21.6382 698630401 698889601 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 :                                   832.14 sec.
    Max Memory :                                 1105 MB
    Average Memory :                             372.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3406 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

