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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1709
RA = 330.031, Dec = 21.6382
tmin = 682300801, tmax = 682560001
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='238640', job_status='RUN', time_executed='2022-09-16 23:38:38.001818', time_epoch_executed='1663396718.0' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/238640

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/238640/ft1_4FGL_J2200.1+2138_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/238640/ft2_4FGL_J2200.1+2138_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/238640/ft1_4FGL_J2200.1+2138_daily_bin1709.fits outfile=/scratch/kocevski/238640/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1709.fits ra=330.031 dec=21.6382 rad=12.0 tmin=682300801.0 tmax=682560001.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 3.79
user 3.54
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/238640/ft2_4FGL_J2200.1+2138_daily_bin1709.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/238640/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/238640/ft1_filtered_4FGL_J2200.1+2138_daily_bin1709.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.53
user 0.35
sys 0.17

Number of photons that the gtmktime cut: 816

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/238640/ft1_filtered_4FGL_J2200.1+2138_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/238640/ft2_4FGL_J2200.1+2138_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/238640/ltcube_682300801_682560001_4FGL_J2200.1+2138_daily_bin1709.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/238640/ft2_4FGL_J2200.1+2138_daily_bin1709.fits
.....................!
real 14.40
user 14.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/238640/ft1_filtered_4FGL_J2200.1+2138_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/238640/ft2_4FGL_J2200.1+2138_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/238640/ltcube_682300801_682560001_4FGL_J2200.1+2138_daily_bin1709.fits outfile=/scratch/kocevski/238640/expmap_682300801_682560001_4FGL_J2200.1+2138_daily_bin1709.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/238640/ltcube_682300801_682560001_4FGL_J2200.1+2138_daily_bin1709.fits
.....................!
real 191.59
user 185.97
sys 5.17

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/238640/ft1_filtered_4FGL_J2200.1+2138_daily_bin1709.fits scfile=/scratch/kocevski/238640/ft2_4FGL_J2200.1+2138_daily_bin1709.fits outfile=/scratch/kocevski/238640/cmap_682300801_682560001_4FGL_J2200.1+2138_daily_bin1709.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/238640/ft1_filtered_4FGL_J2200.1+2138_daily_bin1709.fits scfile=/scratch/kocevski/238640/ft2_4FGL_J2200.1+2138_daily_bin1709.fits outfile=/scratch/kocevski/238640/cmap_HighResolution_682300801_682560001_4FGL_J2200.1+2138_daily_bin1709.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.028       1.0000          .0000       .10000E+07
     2 'norm      '    5.0087       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.4080       1.0000          .0000       .10000E+07
     4 'Prefactor '    .86922       1.0000          .0000       .10000E+07
     5 'norm      '    3.0869       1.0000          .0000       .10000E+07
     6 'Prefactor '    .18976E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .26900       1.0000          .0000       .10000E+07
     8 'norm      '    .19692       1.0000          .0000       .10000E+07
     9 'Prefactor '    51.253       1.0000          .0000       .10000E+07
    10 'norm      '    .95268       1.0000          .0000       .10000E+07
    11 'Prefactor '    30.315       1.0000          .0000       .10000E+07
    12 'norm      '    .43449E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .26475E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.0059       1.0000          .0000       .10000E+07
    15 'norm      '    .95447       1.0000          .0000       .10000E+07
    16 'norm      '    1.5317       1.0000          .0000       .10000E+07
    17 'Prefactor '    15.404       1.0000          .0000       .10000E+07
    18 'Normalizat'    .83735       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97581       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=   8563.065     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     1469 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.714        3.9945        .84749E-07   -.51402E-01
   2  norm          5.0482        4.9909       -.12465E-07    .20077E-03
   3  Prefactor     1.3856        16.730       -.27498E-05   -.73225E-03
   4  Prefactor     .94591E-07    122.22        .12872E-05** at limit **
   5  norm          3.0907        2.3529        .15719E-06    .13839E-03
   6  Prefactor      .0000        3.5071       -.70204E-06** at limit **
   7  Prefactor     .44409E-09    181.67       -.59340E-06** at limit **
   8  norm          .19796        .55327        .11984E-06** at limit **
   9  Prefactor     51.221        1.1771        .29690E-07   -.23276E-01
  10  norm          .95182        .84218       -.63496E-08    .17729E-02
  11  Prefactor     30.336        1.0412        .20931E-07    .89384E-02
  12  norm           .0000        1.2955       -.30776E-06** at limit **
  13  Prefactor      .0000        4.1377        .13012E-06** at limit **
  14  Prefactor     2.9775        8.0436        .13441E-05    .15531E-03
  15  norm          .95390        .98217        .16060E-06   -.12130E-03
  16  norm          1.5318        1.2357        .13081E-06    .10719E-02
  17  Prefactor     15.394        11.321       -.46470E-06   -.81842E-03
  18  Normalizat    .83815        .25135       -.14389E-04   -.23970E-04
  19  Prefactor     .97574        .11304        .36788E-05   -.40631E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.7137
  norm       = 5.04822
  Prefactor  = 1.38556
  Prefactor  = 9.4591e-08
  norm       = 3.09072
  Prefactor  = 0
  Prefactor  = 4.44089e-10
  norm       = 0.197957
  Prefactor  = 51.2206
  norm       = 0.951825
  Prefactor  = 30.3357
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.97749
  norm       = 0.9539
  norm       = 1.53178
  Prefactor  = 15.3944
  Normalizat = 0.838152
  Prefactor  = 0.975743
 **********
 **   18 **HESSE 
 **********

 FCN=   8563.065     FROM HESSE     STATUS=OK           320 CALLS     1789 TOTAL
                     EDM=   .84E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.714        43.774        .14431E-03   -1.5570    
   2  norm          5.0482        5.3410        .44909E-03   -1.5663    
   3  Prefactor     1.3856        16.793        .91303E-03   -1.5684    
   4  Prefactor     .94591E-07    124.14        .47912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0907        2.5116        .57700E-03   -1.5673    
   6  Prefactor      .0000        3.4968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .44409E-09    25.473        .13288E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .19796        .57127        .11831E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     51.221        55.803        .13969E-03   -1.5565    
  10  norm          .95182        .84706        .42184E-03   -1.5688    
  11  Prefactor     30.336        18.275        .18165E-03   -1.5598    
  12  norm           .0000        1.2924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        4.1274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9775        8.1077        .58517E-03   -1.5673    
  15  norm          .95390        .98858        .42146E-03   -1.5688    
  16  norm          1.5318        1.2384        .86195E-03   -1.5683    
  17  Prefactor     15.394        11.339        .25493E-03   -1.5629    
  18  Normalizat    .83815        .22392        .87640E-01   -.98669    
  19  Prefactor     .97574        .96718E-01    .45964E-01   -.93543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37948e-07
Minuit parameter uncertainties:
  1  43.7747
  2  5.341
  3  9.64749
  4  0.00685294
  5  2.51165
  6  9.51667e-06
  7  0.000207053
  8  0.571269
  9  55.8037
  10  0.847065
  11  18.2753
  12  2.38105e-06
  13  4.63731e-06
  14  8.10774
  15  0.988583
  16  1.23836
  17  11.3392
  18  0.224168
  19  0.0967355
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  5.122e+01  5.580e+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.757e-01  9.674e-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.382e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 330.031 21.638
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 2.26e-05

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

Saving results to:
/scratch/kocevski/238640/likelihoodResults_682300801_682560001_4FGL_J2200.1+2138_daily_bin1709.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): 102
logL (Free Index) = 8559.87533654
delta logL = 3.19010567218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8559.2720037
delta logL = 3.79343851488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13878E-02   1.0000          .0000       .10000E+07
     2 'Index     '    6.3524       1.0000          .0000       10.000    
     3 'Normalizat'    .60686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0528       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8563.696     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      372 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        67.071        .42118E-03** at limit **
   2  Index         1.2602        .69069        .40985E-07     .0000    
   3  Normalizat    .86167        1.1129       -.20846E-04   -.72257E-05
   4  Prefactor     .97789        1.1498        .96735E-05   -.17449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.26024
  Normalizat = 0.861665
  Prefactor  = 0.977891
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8563.696     FROM HESSE     STATUS=FAILED         9 CALLS      381 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        67.071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .11600        1.2261        .40985E-07   -409.25    
   3  Normalizat    .86167        1.1129       -.20846E-04    79.518    
   4  Prefactor     .97789        1.1498        .96735E-05   -2.2069    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.14164e-13
Minuit parameter uncertainties:
  1  4.04901e-05
  2  0.695774
  3  1.14473
  4  1.18067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/238640': 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): 101
logL (Free Index) = 8563.69623959
delta logL = -0.630797379927

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  0.000e+00  4.049e-05  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  1.260e+00  6.958e-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:  9.779e-01  1.181e+00  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.617e-01  1.145e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
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/238640/cmap_HighResolution_682300801_682560001_4FGL_J2200.1+2138_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.58e-03', comment='SUCCESS', photon_flux='3.33e-08', fit_tolerance='1e-08', photon_flux_error='3.63e-08', dlogl='-6.31e-01', energy_flux='2.07e-05', job_status='DONE', time_completed='2022-09-16 23:50:15.672480', job_id='238640', GAL2='0.98', ts='1.32', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', EG='0.84', time_epoch_completed='1663397415.67', return_code='0', EG2='0.86', return_code2='101', energy_flux_error='2.26e-05', ts2='0.00', photon_index='2.04' WHERE bin_id='1709' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:50:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 238640: <4FGL_J2200.1+2138_daily_bin1709> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1709 330.031 21.6382 682300801 682560001 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 :                                   700.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            893 sec.

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

