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


Performing analysis on: 4FGL_J2200.1+2138_weekly_bin741
RA = 330.031, Dec = 21.6382
tmin = 687139201, tmax = 687744001
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='395487', job_status='RUN', time_executed='2022-10-18 01:36:15.554189', time_epoch_executed='1666082175.55' WHERE source_name='4FGL J2200.1+2138' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395487

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395487/ft1_4FGL_J2200.1+2138_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395487/ft2_4FGL_J2200.1+2138_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395487/ft1_4FGL_J2200.1+2138_weekly_bin741.fits outfile=/scratch/kocevski/395487/ft1_filteredMKT_4FGL_J2200.1+2138_weekly_bin741.fits ra=330.031 dec=21.6382 rad=12.0 tmin=687139201.0 tmax=687744001.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 6.58
user 6.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395487/ft2_4FGL_J2200.1+2138_weekly_bin741.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/395487/ft1_filteredMKT_4FGL_J2200.1+2138_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/395487/ft1_filtered_4FGL_J2200.1+2138_weekly_bin741.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.54
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 1245

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395487/ft1_filtered_4FGL_J2200.1+2138_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/395487/ft2_4FGL_J2200.1+2138_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/395487/ltcube_687139201_687744001_4FGL_J2200.1+2138_weekly_bin741.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/395487/ft2_4FGL_J2200.1+2138_weekly_bin741.fits
.....................!
real 27.81
user 27.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395487/ft1_filtered_4FGL_J2200.1+2138_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/395487/ft2_4FGL_J2200.1+2138_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/395487/ltcube_687139201_687744001_4FGL_J2200.1+2138_weekly_bin741.fits outfile=/scratch/kocevski/395487/expmap_687139201_687744001_4FGL_J2200.1+2138_weekly_bin741.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/395487/ltcube_687139201_687744001_4FGL_J2200.1+2138_weekly_bin741.fits
.....................!
real 190.20
user 185.66
sys 4.18

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/395487/ft1_filtered_4FGL_J2200.1+2138_weekly_bin741.fits scfile=/scratch/kocevski/395487/ft2_4FGL_J2200.1+2138_weekly_bin741.fits outfile=/scratch/kocevski/395487/cmap_687139201_687744001_4FGL_J2200.1+2138_weekly_bin741.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395487/ft1_filtered_4FGL_J2200.1+2138_weekly_bin741.fits scfile=/scratch/kocevski/395487/ft2_4FGL_J2200.1+2138_weekly_bin741.fits outfile=/scratch/kocevski/395487/cmap_HighResolution_687139201_687744001_4FGL_J2200.1+2138_weekly_bin741.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.60
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44877E-03   1.0000          .0000       .10000E+07
     2 'norm      '    2.6707       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.3084       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30138       1.0000          .0000       .10000E+07
     5 'norm      '    2.4985       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11561E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .83117E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .24425E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    .21760E-07   1.0000          .0000       .10000E+07
    10 'norm      '    .25535E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    30.097       1.0000          .0000       .10000E+07
    12 'norm      '    3.9473       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10215E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .15639E-01   1.0000          .0000       .10000E+07
    15 'norm      '    3.0600       1.0000          .0000       .10000E+07
    16 'norm      '    1.6400       1.0000          .0000       .10000E+07
    17 'Prefactor '    .27715E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    .99208       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91834       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=   13510.37     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     1395 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55786E-05    5.3324       -.11105E-05** at limit **
   2  norm          2.6713        2.0853       -.24467E-08   -.22875E-02
   3  Prefactor     2.3525        5.6665        .29579E-06    .13061E-02
   4  Prefactor     .98610E-06    44.584       -.41143E-05** at limit **
   5  norm          2.4996        1.7023       -.76889E-06   -.16091E-03
   6  Prefactor      .0000        2.6041        .32278E-06** at limit **
   7  Prefactor     .13244E-05    14.378       -.40368E-05** at limit **
   8  norm           .0000        .76760        .79656E-06** at limit **
   9  Prefactor     .12134E-05    9.6878        .15645E-06** at limit **
  10  norm           .0000        .32820       -.11760E-06** at limit **
  11  Prefactor     30.093        1.1062       -.28017E-07   -.77796E-02
  12  norm          3.9301        3.9700       -.92741E-06    .30768E-03
  13  Prefactor      .0000        3.7230       -.14235E-05** at limit **
  14  Prefactor     .55511E-10    7.5145        .13271E-05** at limit **
  15  norm          3.0608        1.3518       -.25997E-06    .25021E-02
  16  norm          1.6399        1.2018       -.22849E-06   -.26538E-02
  17  Prefactor     .10547E-08    3.9379       -.49216E-06** at limit **
  18  Normalizat    .99213        .20537        .25157E-04   -.82046E-04
  19  Prefactor     .91833        .86486E-01   -.10831E-04   -.17902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.57859e-06
  norm       = 2.67133
  Prefactor  = 2.35254
  Prefactor  = 9.861e-07
  norm       = 2.49959
  Prefactor  = 0
  Prefactor  = 1.32439e-06
  norm       = 0
  Prefactor  = 1.21342e-06
  norm       = 0
  Prefactor  = 30.0927
  norm       = 3.9301
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 3.06079
  norm       = 1.63993
  Prefactor  = 1.05471e-09
  Normalizat = 0.99213
  Prefactor  = 0.918327
 **********
 **   18 **HESSE 
 **********

 FCN=   13510.37     FROM HESSE     STATUS=OK           310 CALLS     1705 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55786E-05    14.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6713        2.0902        .62336E-03   -1.5675    
   3  Prefactor     2.3525        5.6568        .67505E-03   -1.5677    
   4  Prefactor     .98610E-06    46.220        .10194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4996        1.7125        .64630E-03   -1.5676    
   6  Prefactor      .0000        2.6053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .13244E-05    16.619        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .31173        .20258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12134E-05    11.796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .32538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.093        17.232        .18231E-03   -1.5598    
  12  norm          3.9301        3.9878        .50748E-03   -1.5668    
  13  Prefactor      .0000        3.7239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    7.2214        .17342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0608        1.3520        .57967E-03   -1.5673    
  16  norm          1.6399        1.1976        .82481E-03   -1.5682    
  17  Prefactor     .10547E-08    3.9443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .99213        .17586        .84253E-01   -.93295    
  19  Prefactor     .91833        .72831E-01    .45238E-01   -.95504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80752e-07
Minuit parameter uncertainties:
  1  0.0182625
  2  2.09022
  3  5.65682
  4  0.0135023
  5  1.71252
  6  1.15629e-05
  7  0.00938299
  8  2.11012e-06
  9  0.00756678
  10  1.85097e-06
  11  17.2322
  12  3.98777
  13  1.81179e-05
  14  4.82897e-05
  15  1.35198
  16  1.19759
  17  0.000129562
  18  0.175959
  19  0.0728385
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.213e-06  7.567e-03  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.183e-01  7.284e-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:  9.921e-01  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/395487/likelihoodResults_687139201_687744001_4FGL_J2200.1+2138_weekly_bin741.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) = 13510.4122259
delta logL = -0.0405305976856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13510.3716953
delta logL = -3.43825377058e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83455E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .71224       1.0000          .0000       10.000    
     3 'Normalizat'    .99215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91832       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.

 FCN=   13510.37     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      240 TOTAL
                     EDM=   .11E-15    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    .57375E-05    .25214E-02** at limit **
   2  Index         3.7619        8.0838        .42564        .10684E-09
   3  Normalizat    .99213        .15071E-04    .84253E-01    .42201E-03
   4  Prefactor     .91833        .64933E-05    .45238E-01    .10032E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Index      = 3.76188
  Normalizat = 0.99213
  Prefactor  = 0.918327
 **********
 **   18 **HESSE 
 **********

 FCN=   13510.37     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      275 TOTAL
                     EDM=   .64E-14    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    .44761E-03    .15760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7619        5.2895        .50000       -.25023    
   3  Normalizat    .99213        .50616E-04    .37300E-03   -.93295    
   4  Prefactor     .91833        .21851E-04    .16552E-03   -.95504    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.39946e-15
Minuit parameter uncertainties:
  1  5.06816e-07
  2  182.053
  3  5.0616e-05
  4  2.18512e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395487': 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): 102
logL (Free Index) = 13510.3716952
delta logL = 5.12973201694e-08

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.665e-10  5.068e-07  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  3.762e+00  1.821e+02  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.183e-01  2.185e-05  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:  9.921e-01  5.062e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/395487/cmap_HighResolution_687139201_687744001_4FGL_J2200.1+2138_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-03', job_status='DONE', photon_flux_upper_limit='3.72e-08', time_completed='2022-10-18 01:51:07.629202', job_id='395487', GAL2='0.92', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1666083067.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='5.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='741' AND source_name='4FGL J2200.1+2138' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 01:51:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 395487: <4FGL_J2200.1+2138_weekly_bin741> in cluster <slac> Done

Job <4FGL_J2200.1+2138_weekly_bin741> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 01:35:37 2022
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 01:35:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 01:35:37 2022
Terminated at Tue Oct 18 01:51:08 2022
Results reported at Tue Oct 18 01:51:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_weekly_bin741 330.031 21.6382 687139201 687744001 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 :                                   893.00 sec.
    Max Memory :                                 1177 MB
    Average Memory :                             367.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

