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 65 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin1675
RA = 330.872, Dec = 17.4318
tmin = 673488001, tmax = 673747201
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='884120', job_status='RUN', time_executed='2022-05-09 01:27:18.332627', time_epoch_executed='1652084838.33' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='1675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884120

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884120/ft1_4FGL_J2203.4+1725_daily_bin1675.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884120/ft2_4FGL_J2203.4+1725_daily_bin1675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884120/ft1_4FGL_J2203.4+1725_daily_bin1675.fits outfile=/scratch/kocevski/884120/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1675.fits ra=330.872 dec=17.4318 rad=12.0 tmin=673488001.0 tmax=673747201.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.13
user 1.91
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/884120/ft2_4FGL_J2203.4+1725_daily_bin1675.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/884120/ft2_4FGL_J2203.4+1725_daily_bin1675.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/884120/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1675.fits evtable="EVENTS" outfile="/scratch/kocevski/884120/ft1_filtered_4FGL_J2203.4+1725_daily_bin1675.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.30
sys 0.14

Number of photons that the gtmktime cut: 994

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/884120/ft1_filtered_4FGL_J2203.4+1725_daily_bin1675.fits" evtable="EVENTS" scfile=/scratch/kocevski/884120/ft2_4FGL_J2203.4+1725_daily_bin1675.fits sctable="SC_DATA" outfile=/scratch/kocevski/884120/ltcube_673488001_673747201_4FGL_J2203.4+1725_daily_bin1675.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/884120/ft2_4FGL_J2203.4+1725_daily_bin1675.fits
.....................!
real 12.29
user 11.58
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884120/ft1_filtered_4FGL_J2203.4+1725_daily_bin1675.fits evtable="EVENTS" scfile=/scratch/kocevski/884120/ft2_4FGL_J2203.4+1725_daily_bin1675.fits sctable="SC_DATA" expcube=/scratch/kocevski/884120/ltcube_673488001_673747201_4FGL_J2203.4+1725_daily_bin1675.fits outfile=/scratch/kocevski/884120/expmap_673488001_673747201_4FGL_J2203.4+1725_daily_bin1675.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/884120/ltcube_673488001_673747201_4FGL_J2203.4+1725_daily_bin1675.fits
.....................!
real 158.98
user 153.70
sys 4.15

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_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 162 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 J2203.4+1725 @ 330.872 17.4318

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/884120/ft1_filtered_4FGL_J2203.4+1725_daily_bin1675.fits scfile=/scratch/kocevski/884120/ft2_4FGL_J2203.4+1725_daily_bin1675.fits outfile=/scratch/kocevski/884120/cmap_673488001_673747201_4FGL_J2203.4+1725_daily_bin1675.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.872 yref=17.4318 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.51
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/884120/ft1_filtered_4FGL_J2203.4+1725_daily_bin1675.fits scfile=/scratch/kocevski/884120/ft2_4FGL_J2203.4+1725_daily_bin1675.fits outfile=/scratch/kocevski/884120/cmap_HighResolution_673488001_673747201_4FGL_J2203.4+1725_daily_bin1675.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.872 yref=17.4318 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.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/884120/ft1_filtered_4FGL_J2203.4+1725_daily_bin1675.fits evtable="EVENTS" scfile=/scratch/kocevski/884120/ft2_4FGL_J2203.4+1725_daily_bin1675.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/884120/Model_4FGL_J2203.4+1725_daily_bin1675.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/884120/ft1_filtered_4FGL_J2203.4+1725_daily_bin1675.fits.....................!
real 132.09
user 130.22
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/884120/ft1_filtered_4FGL_J2203.4+1725_daily_bin1675.fits', '/scratch/kocevski/884120/ft2_4FGL_J2203.4+1725_daily_bin1675.fits', expMap='/scratch/kocevski/884120/expmap_673488001_673747201_4FGL_J2203.4+1725_daily_bin1675.fits', expCube='/scratch/kocevski/884120/ltcube_673488001_673747201_4FGL_J2203.4+1725_daily_bin1675.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/884120/Model_4FGL_J2203.4+1725_daily_bin1675.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2203.4+1725'

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.262e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.231e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.474e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.997e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/884120/ft1_filtered_4FGL_J2203.4+1725_daily_bin1675.fits
Spacecraft file(s): /scratch/kocevski/884120/ft2_4FGL_J2203.4+1725_daily_bin1675.fits
Exposure map: /scratch/kocevski/884120/expmap_673488001_673747201_4FGL_J2203.4+1725_daily_bin1675.fits
Exposure cube: /scratch/kocevski/884120/ltcube_673488001_673747201_4FGL_J2203.4+1725_daily_bin1675.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/884120/Model_4FGL_J2203.4+1725_daily_bin1675.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) = 10574.0395196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.596       1.0000         .10000E-03   10000.    
     2 'norm      '    10.267       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .87661       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3330       1.0000         .10000E-03   10000.    
     7 'Prefactor '    65.280       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8899       1.0000         .10000E-03   10000.    
     9 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.534       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3489       1.0000         .10000E-03   10000.    
    12 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.538       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.367       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33062       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7847       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5819       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .73506       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1179       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2774       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.936       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62391       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98479       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10574.01     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2948 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.592        22.305        .81889E-06   -.14346E-04
   2  norm          10.266        3.9343       -.14179E-06   -.58507E-04
   3  Prefactor     .87872        3.1955       -.20414E-05   -.45955E-03
   4  Prefactor     5.7997        6.1998        .68693E-06    .22875E-03
   5  Prefactor     .10000E-03    49.327        .24947E-06** at limit **
   6  norm          1.3336        1.4107       -.42575E-06   -.75097E-03
   7  Prefactor     65.301        62.479       -.32377E-06    .39992E-04
   8  norm          1.8888        2.1641       -.23280E-06   -.87965E-03
   9  norm          .10000E-03    12.058        .12942E-06** at limit **
  10  Prefactor     56.521        26.174        .40006E-05   -.56353E-04
  11  Prefactor     7.3446        60.197       -.28892E-04    .55112E-04
  12  norm          .10000E-03    .26066       -.32643E-07** at limit **
  13  Prefactor     21.540        17.834       -.69859E-06    .44782E-04
  14  Prefactor     20.374        15.350       -.63412E-06    .50574E-04
  15  norm          .10000E-03    2.3859        .89916E-07** at limit **
  16  Prefactor     .36880        6.7634       -.10238E-05   -.27930E-04
  17  Prefactor     1.3231        712.65       -.54192E-05   -.61864E-05
  18  Prefactor     9.5839        9.3535        .20191E-06   -.41603E-04
  19  Prefactor     .73493        .19712       -.48775E-08    .19112E-02
  20  Prefactor     9.1174        6.0957        .27677E-06    .44448E-05
  21  norm          1.2774        1.1173       -.54997E-07    .35898E-04
  22  Prefactor     .10000E-03    4.8909        .12926E-07** at limit **
  23  Prefactor     10.936        9.6190        .68315E-06   -.81930E-04
  24  Normalizat    .62357        .21086        .14886E-05    .29805E-03
  25  Prefactor     .98496        .93574E-01    .17474E-06    .65327E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5923
  norm       = 10.2663
  Prefactor  = 0.878718
  Prefactor  = 5.79968
  Prefactor  = 0.0001
  norm       = 1.33364
  Prefactor  = 65.3012
  norm       = 1.88878
  norm       = 0.0001
  Prefactor  = 56.5211
  Prefactor  = 7.34458
  norm       = 0.0001
  Prefactor  = 21.5401
  Prefactor  = 20.3736
  norm       = 0.0001
  Prefactor  = 0.3688
  Prefactor  = 1.32308
  Prefactor  = 9.58389
  Prefactor  = 0.734934
  Prefactor  = 9.11742
  norm       = 1.27735
  Prefactor  = 0.0001
  Prefactor  = 10.9364
  Normalizat = 0.623571
  Prefactor  = 0.984962
 **********
 **   18 **HESSE 
 **********

 FCN=   10574.01     FROM HESSE     STATUS=OK           441 CALLS     3389 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.592        22.288        .90478E-04   -1.4822    
   2  norm          10.266        3.9374        .12058E-03   -1.5067    
   3  Prefactor     .87872        5.3367        .30710E-02   -1.5520    
   4  Prefactor     5.7997        6.0361        .16678E-03   -1.5226    
   5  Prefactor     .10000E-03    49.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3336        1.3994        .11831E-03   -1.5477    
   7  Prefactor     65.301        62.399        .49671E-04   -1.4090    
   8  norm          1.8888        2.1581        .14004E-03   -1.5433    
   9  norm          .10000E-03    12.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     56.521        25.797        .53353E-04   -1.4203    
  11  Prefactor     7.3446        59.506        .14795E-03   -1.5166    
  12  norm          .10000E-03    .40952        .10078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.540        17.842        .86306E-04   -1.4779    
  14  Prefactor     20.374        15.321        .88751E-04   -1.4805    
  15  norm          .10000E-03    2.4400        .15503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .36880        88.237        .48760E-02   -1.5587    
  17  Prefactor     1.3231        723.78        .31320E-03   -1.5478    
  18  Prefactor     9.5839        9.3455        .12946E-03   -1.5089    
  19  Prefactor     .73493        .19853        .21883E-04   -1.5537    
  20  Prefactor     9.1174        6.0976        .13273E-03   -1.5104    
  21  norm          1.2774        1.1172        .39302E-04   -1.5482    
  22  Prefactor     .10000E-03    4.8912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.936        9.5962        .12115E-03   -1.5046    
  24  Normalizat    .62357        .23595        .42302E-03   -1.0699    
  25  Prefactor     .98496        .10796        .16871E-03   -.93232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07836e-08
Minuit parameter uncertainties:
  1  22.2978
  2  3.93753
  3  4.33135
  4  6.0367
  5  6.2913e-05
  6  1.39944
  7  62.4615
  8  2.15823
  9  4.62401e-07
  10  25.8022
  11  41.8681
  12  4.37337e-06
  13  17.8469
  14  15.3237
  15  4.05694e-06
  16  11.4246
  17  62.6647
  18  9.34689
  19  0.198531
  20  6.09797
  21  1.11721
  22  6.62367e-07
  23  9.59757
  24  0.236336
  25  0.10798
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.000e-04  4.373e-06  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.231e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.474e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.997e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.850e-01  1.080e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  6.236e-01  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 330.872 17.432
Photon Flux Upper Limit: 5.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/884120/likelihoodResults_673488001_673747201_4FGL_J2203.4+1725_daily_bin1675.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) = 10574.0169858
delta logL = -0.0116431685965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10573.9528746
delta logL = 0.0524679732862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14373E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6606       1.0000          .0000       5.0000    
     3 'Normalizat'    .60134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99175       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+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=   10573.95     FROM MIGRAD    STATUS=FAILED        88 CALLS      336 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14375E-01    5.7834        .29215E-03   -.18407E-01
   2  alpha         4.6602        2.5976        .50000       -.28390E-04
   3  Normalizat    .60131        .10966        .43053E-03   -.53795E-03
   4  Prefactor     .99176        .46360E-01    .16821E-03   -.81943E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10573.95     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      424 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14375E-01    5.7834        .23980E-04   -.18407E-01
   2  alpha         4.6602        2.5976        .65754E-02   -.28390E-04
   3  Normalizat    .60131        .10966        .18800E-03   -.53795E-03
   4  Prefactor     .99176        .46360E-01    .46879E-04   -.81943E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10573.95     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      463 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14381E-01    6.3551        .11686E-04   -.34050E-03
   2  alpha         4.6600        3.4656        .50000       -.12122E-05
   3  Normalizat    .60132        .13354        .17221E-04    .16478E-03
   4  Prefactor     .99176        .56870E-01    .33642E-04    .45337E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0143808
  alpha      = 4.66001
  Normalizat = 0.601315
  Prefactor  = 0.99176
 **********
 **   18 **HESSE 
 **********

 FCN=   10573.95     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      492 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14381E-01    6.3769        .46744E-06   -1.5684    
   2  alpha         4.6600        3.5203        .50000        1.0432    
   3  Normalizat    .60132        .13487        .34442E-05   -1.0793    
   4  Prefactor     .99176        .57480E-01    .67283E-05   -.93005    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49204e-10
Minuit parameter uncertainties:
  1  0.60361
  2  32.8879
  3  0.134939
  4  0.0574831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884120': 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) = 10573.9528746
delta logL = 0.05246800444

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.438e-02  6.036e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  4.660e+00  3.289e+01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.474e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.997e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.918e-01  5.748e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  6.013e-01  1.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 330.872 17.432

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/884120/cmap_HighResolution_673488001_673747201_4FGL_J2203.4+1725_daily_bin1675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-05', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2022-05-09 01:41:49.864224', job_id='884120', GAL2='0.99', fit_tolerance='1e-08', EG2='0.60', EG='0.62', time_epoch_completed='1652085709.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.25e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1675' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon May  9 01:41:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 884120: <4FGL_J2203.4+1725_daily_bin1675> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin1675> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon May  9 01:25:24 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon May  9 01:26:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon May  9 01:26:06 2022
Terminated at Mon May  9 01:41:50 2022
Results reported at Mon May  9 01:41:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin1675 330.872 17.4318 673488001 673747201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2203.4+1725 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   869.85 sec.
    Max Memory :                                 630 MB
    Average Memory :                             320.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            986 sec.

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

