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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1718
RA = 330.031, Dec = 21.6382
tmin = 684633601, tmax = 684892801
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='238652', job_status='RUN', time_executed='2022-09-16 23:37:09.751195', time_epoch_executed='1663396629.75' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/238652

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/238652/ft1_4FGL_J2200.1+2138_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/238652/ft2_4FGL_J2200.1+2138_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/238652/ft1_4FGL_J2200.1+2138_daily_bin1718.fits outfile=/scratch/kocevski/238652/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1718.fits ra=330.031 dec=21.6382 rad=12.0 tmin=684633601.0 tmax=684892801.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.65
user 2.44
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/238652/ft2_4FGL_J2200.1+2138_daily_bin1718.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/238652/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/238652/ft1_filtered_4FGL_J2200.1+2138_daily_bin1718.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.45
user 0.27
sys 0.16

Number of photons that the gtmktime cut: 987

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/238652/ft1_filtered_4FGL_J2200.1+2138_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/238652/ft2_4FGL_J2200.1+2138_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/238652/ltcube_684633601_684892801_4FGL_J2200.1+2138_daily_bin1718.fits outfile=/scratch/kocevski/238652/expmap_684633601_684892801_4FGL_J2200.1+2138_daily_bin1718.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/238652/ltcube_684633601_684892801_4FGL_J2200.1+2138_daily_bin1718.fits
.....................!
real 156.57
user 151.77
sys 4.43

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/238652/ft1_filtered_4FGL_J2200.1+2138_daily_bin1718.fits scfile=/scratch/kocevski/238652/ft2_4FGL_J2200.1+2138_daily_bin1718.fits outfile=/scratch/kocevski/238652/cmap_684633601_684892801_4FGL_J2200.1+2138_daily_bin1718.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/238652/ft1_filtered_4FGL_J2200.1+2138_daily_bin1718.fits scfile=/scratch/kocevski/238652/ft2_4FGL_J2200.1+2138_daily_bin1718.fits outfile=/scratch/kocevski/238652/cmap_HighResolution_684633601_684892801_4FGL_J2200.1+2138_daily_bin1718.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.48
user 0.31
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33921       1.0000          .0000       .10000E+07
     2 'norm      '    .12098       1.0000          .0000       .10000E+07
     3 'Prefactor '    .23372E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11865E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .47468E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .46407E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    15.189       1.0000          .0000       .10000E+07
     8 'norm      '    .48860       1.0000          .0000       .10000E+07
     9 'Prefactor '    34.865       1.0000          .0000       .10000E+07
    10 'norm      '    .13878E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.2400       1.0000          .0000       .10000E+07
    12 'norm      '    .16472E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .40717E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .87413E-03   1.0000          .0000       .10000E+07
    15 'norm      '    1.2222       1.0000          .0000       .10000E+07
    16 'norm      '    4.1986       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22386E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.4167       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81494       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=   10783.50     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     1445 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25723E-05    4.9744        .11635E-05** at limit **
   2  norm          .13645        24.174       -.91038E-06** at limit **
   3  Prefactor     .55511E-10    3.9117       -.52719E-06** at limit **
   4  Prefactor     .27756E-09    82.994        .47842E-05** at limit **
   5  norm           .0000        1.5488       -.29847E-06** at limit **
   6  Prefactor     .83267E-09    95.816        .29809E-05** at limit **
   7  Prefactor     15.189        17.465        .18952E-05   -.13654E-01
   8  norm          .48860        .46446        .18901E-06    .67824E-02
   9  Prefactor     34.805        1.6963        .14865E-07    .19581E-01
  10  norm           .0000        .70724       -.39964E-07** at limit **
  11  Prefactor     2.2260        27.031       -.63483E-06   -.42219E-02
  12  norm           .0000        1.0632       -.40303E-06** at limit **
  13  Prefactor     .33307E-09    7.0225       -.12896E-05** at limit **
  14  Prefactor      .0000        3.3480       -.12615E-06** at limit **
  15  norm          1.2227        .96767       -.78491E-07    .36201E-03
  16  norm          4.1982        2.3207       -.21281E-06    .29830E-02
  17  Prefactor     .38025E-07    5.7055        .21479E-06** at limit **
  18  Normalizat    1.4166        .24654       -.24104E-05    .10958E-03
  19  Prefactor     .81507        .10152        .41462E-06    .23262E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.57228e-06
  norm       = 0.136453
  Prefactor  = 5.55112e-11
  Prefactor  = 2.77556e-10
  norm       = 0
  Prefactor  = 8.32667e-10
  Prefactor  = 15.1892
  norm       = 0.488597
  Prefactor  = 34.8054
  norm       = 0
  Prefactor  = 2.22604
  norm       = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  norm       = 1.22272
  norm       = 4.19815
  Prefactor  = 3.80251e-08
  Normalizat = 1.41661
  Prefactor  = 0.815075
 **********
 **   18 **HESSE 
 **********

 FCN=   10783.50     FROM HESSE     STATUS=OK           322 CALLS     1767 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25723E-05    31.973        .96897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .13645        1.4797        .83415E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    3.9181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27756E-09    83.373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.5406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83267E-09    3.3737        .60074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.189        17.966        .25673E-03   -1.5630    
   8  norm          .48860        .47039        .79864E-03   -1.5694    
   9  Prefactor     34.805        43.719        .16938E-03   -1.5590    
  10  norm           .0000        .31455        .21592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2260        27.958        .68644E-03   -1.5678    
  12  norm           .0000        1.0667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .33307E-09    7.0424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        3.3718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2227        .97175        .10193E-02   -1.5686    
  16  norm          4.1982        2.3257        .49158E-03   -1.5667    
  17  Prefactor     .38025E-07    6.1344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4166        .20525        .76067E-01   -.80149    
  19  Prefactor     .81507        .83717E-01    .43911E-01   -.99175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13271e-07
Minuit parameter uncertainties:
  1  0.0181377
  2  0.898689
  3  2.36238e-05
  4  0.000308806
  5  5.42453e-06
  6  0.000105884
  7  17.9663
  8  0.470385
  9  43.7192
  10  9.00952e-07
  11  15.7781
  12  3.55548e-06
  13  9.60818e-05
  14  1.91327e-05
  15  0.971754
  16  2.32571
  17  0.00096591
  18  0.205369
  19  0.0837299
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  3.481e+01  4.372e+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:  8.151e-01  8.373e-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:  1.417e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.84
Ra Dec: 330.031 21.638
Photon Flux Upper Limit: 8.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/238652/likelihoodResults_684633601_684892801_4FGL_J2200.1+2138_daily_bin1718.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) = 10783.4709814
delta logL = 0.0333133495151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10783.4587595
delta logL = 0.0455352197205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.805       1.0000          .0000       .10000E+07
     2 'Index     '    2.2441       1.0000          .0000       10.000    
     3 'Normalizat'    1.4093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81667       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.

 FCN=   10783.46     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      272 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.821        49.291        .75871E-05   -.71026E-03
   2  Index         2.2440        .76650        .90945E-02   -.56455E-04
   3  Normalizat    1.4093        .24044        .33738E-03   -.27645E-03
   4  Prefactor     .81667        .10054        .17931E-03   -.40260E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.8206
  Index      = 2.24401
  Normalizat = 1.40931
  Prefactor  = 0.816671
 **********
 **   18 **HESSE 
 **********

 FCN=   10783.46     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.821        43.848        .30348E-06   -1.5602    
   2  Index         2.2440        .68209        .36378E-03   -.58380    
   3  Normalizat    1.4093        .24024        .13495E-04   -.80360    
   4  Prefactor     .81667        .10049        .35863E-04   -.99117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78117e-10
Minuit parameter uncertainties:
  1  43.8484
  2  0.685169
  3  0.240437
  4  0.10051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/238652': 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) = 10783.4587594
delta logL = 0.0455353072048

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  2.782e+01  4.385e+01  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  2.244e+00  6.852e-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:  8.167e-01  1.005e-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:  1.409e+00  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.84
Ra Dec: 330.031 21.638

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/238652/cmap_HighResolution_684633601_684892801_4FGL_J2200.1+2138_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.77e-08', time_completed='2022-09-16 23:47:43.857951', job_id='238652', GAL2='0.82', fit_tolerance='1e-08', EG2='1.41', EG='1.42', time_epoch_completed='1663397263.86', return_code2='0', ts='0.84', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='4.55e-02', ts2='0.94', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1718' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:47:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 238652: <4FGL_J2200.1+2138_daily_bin1718> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1718> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 23:35:24 2022
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:36:30 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:36:30 2022
Terminated at Fri Sep 16 23:47:44 2022
Results reported at Fri Sep 16 23:47:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1718 330.031 21.6382 684633601 684892801 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 :                                   635.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             347.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            740 sec.

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

