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


Performing analysis on: 4FGL_J2203.4+1725_weekly_bin733
RA = 330.872, Dec = 17.4318
tmin = 682300801, tmax = 682905601
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='339962', job_status='RUN', time_executed='2022-09-17 05:18:51.805017', time_epoch_executed='1663417131.81' WHERE source_name='4FGL J2203.4+1725' and cadence='weekly' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339962

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=682300801.0 && nMetStart<682905601.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<682905601.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339962/ft1_4FGL_J2203.4+1725_weekly_bin733.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339962/ft2_4FGL_J2203.4+1725_weekly_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339962/ft1_4FGL_J2203.4+1725_weekly_bin733.fits outfile=/scratch/kocevski/339962/ft1_filteredMKT_4FGL_J2203.4+1725_weekly_bin733.fits ra=330.872 dec=17.4318 rad=12.0 tmin=682300801.0 tmax=682905601.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 8.05
user 7.74
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/339962/ft2_4FGL_J2203.4+1725_weekly_bin733.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/339962/ft1_filteredMKT_4FGL_J2203.4+1725_weekly_bin733.fits evtable="EVENTS" outfile="/scratch/kocevski/339962/ft1_filtered_4FGL_J2203.4+1725_weekly_bin733.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.59
user 0.40
sys 0.17

Number of photons that the gtmktime cut: 1778

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339962/ft1_filtered_4FGL_J2203.4+1725_weekly_bin733.fits" evtable="EVENTS" scfile=/scratch/kocevski/339962/ft2_4FGL_J2203.4+1725_weekly_bin733.fits sctable="SC_DATA" outfile=/scratch/kocevski/339962/ltcube_682300801_682905601_4FGL_J2203.4+1725_weekly_bin733.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/339962/ft2_4FGL_J2203.4+1725_weekly_bin733.fits
.....................!
real 35.62
user 35.05
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339962/ft1_filtered_4FGL_J2203.4+1725_weekly_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/339962/ft2_4FGL_J2203.4+1725_weekly_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/339962/ltcube_682300801_682905601_4FGL_J2203.4+1725_weekly_bin733.fits outfile=/scratch/kocevski/339962/expmap_682300801_682905601_4FGL_J2203.4+1725_weekly_bin733.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/339962/ltcube_682300801_682905601_4FGL_J2203.4+1725_weekly_bin733.fits
.....................!
real 192.91
user 187.37
sys 4.28

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 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/339962/ft1_filtered_4FGL_J2203.4+1725_weekly_bin733.fits scfile=/scratch/kocevski/339962/ft2_4FGL_J2203.4+1725_weekly_bin733.fits outfile=/scratch/kocevski/339962/cmap_682300801_682905601_4FGL_J2203.4+1725_weekly_bin733.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.61
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339962/ft1_filtered_4FGL_J2203.4+1725_weekly_bin733.fits scfile=/scratch/kocevski/339962/ft2_4FGL_J2203.4+1725_weekly_bin733.fits outfile=/scratch/kocevski/339962/cmap_HighResolution_682300801_682905601_4FGL_J2203.4+1725_weekly_bin733.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.62
user 0.46
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/339962/ft1_filtered_4FGL_J2203.4+1725_weekly_bin733.fits', '/scratch/kocevski/339962/ft2_4FGL_J2203.4+1725_weekly_bin733.fits', expMap='/scratch/kocevski/339962/expmap_682300801_682905601_4FGL_J2203.4+1725_weekly_bin733.fits', expCube='/scratch/kocevski/339962/ltcube_682300801_682905601_4FGL_J2203.4+1725_weekly_bin733.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/339962/Model_4FGL_J2203.4+1725_weekly_bin733.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  0.000e+00  1.000e+06 ( 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 -5.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/339962/ft1_filtered_4FGL_J2203.4+1725_weekly_bin733.fits
Spacecraft file(s): /scratch/kocevski/339962/ft2_4FGL_J2203.4+1725_weekly_bin733.fits
Exposure map: /scratch/kocevski/339962/expmap_682300801_682905601_4FGL_J2203.4+1725_weekly_bin733.fits
Exposure cube: /scratch/kocevski/339962/ltcube_682300801_682905601_4FGL_J2203.4+1725_weekly_bin733.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/339962/Model_4FGL_J2203.4+1725_weekly_bin733.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) = 18827.2305422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38832E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .36095E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.0512       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14732E-01   1.0000          .0000       .10000E+07
     5 'norm      '    1.4143       1.0000          .0000       .10000E+07
     6 'norm      '    .52281E-02   1.0000          .0000       .10000E+07
     7 'norm      '    14.953       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.959       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.7951       1.0000          .0000       .10000E+07
    10 'norm      '    .73627       1.0000          .0000       .10000E+07
    11 'Prefactor '    31.386       1.0000          .0000       .10000E+07
    12 'norm      '    .18652E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .92957       1.0000          .0000       .10000E+07
    14 'Prefactor '    .21129E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .27392       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4586       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1899       1.0000          .0000       .10000E+07
    18 'Prefactor '    .55306E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    22.903       1.0000          .0000       .10000E+07
    20 'Normalizat'    .48353       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1573       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18826.36     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1338 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14433E-08    104.10       -.14606E-05** at limit **
   2  norm          .10603E-07    12.154       -.23308E-06** at limit **
   3  Prefactor     7.0325        4.0757       -.27012E-07   -.69813E-03
   4  Prefactor     .38858E-09    18.017       -.20340E-06** at limit **
   5  norm          1.4242        1.2689        .43276E-07   -.15322E-02
   6  norm          .18319E-08    11.195        .10430E-05** at limit **
   7  norm          15.031        9.7584       -.18606E-06    .22320E-01
   8  Prefactor     14.401        7.3976       -.18832E-06   -.15496E-01
   9  Prefactor     11.738        30.687        .18552E-06   -.16063E-02
  10  norm          .73674        .56528       -.57154E-07    .27441E-02
  11  Prefactor     31.175        7.9040       -.11427E-06   -.42456E-01
  12  norm           .0000        .78354       -.61258E-07** at limit **
  13  Prefactor     .92569        4.6421        .62175E-07   -.85004E-03
  14  Prefactor     .11102E-09    7.1337        .47469E-07** at limit **
  15  Prefactor     .27395        .10041        .28661E-06   -.21261E-02
  16  Prefactor     2.4595        3.1931       -.16203E-05    .50535E-04
  17  norm          1.1889        .77565       -.17986E-07    .21093E-03
  18  Prefactor     .22204E-09    2.3757        .66185E-06** at limit **
  19  Prefactor     22.993        7.9950        .24081E-07   -.26755E-02
  20  Normalizat    .48360        .16712        .16401E-04   -.10010E-03
  21  Prefactor     1.1572        .83092E-01   -.40222E-05   -.15191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44329e-09
  norm       = 1.06026e-08
  Prefactor  = 7.03245
  Prefactor  = 3.88578e-10
  norm       = 1.42421
  norm       = 1.83187e-09
  norm       = 15.031
  Prefactor  = 14.4013
  Prefactor  = 11.738
  norm       = 0.736744
  Prefactor  = 31.1755
  norm       = 0
  Prefactor  = 0.925686
  Prefactor  = 1.11022e-10
  Prefactor  = 0.273954
  Prefactor  = 2.45955
  norm       = 1.18885
  Prefactor  = 2.22045e-10
  Prefactor  = 22.9929
  Normalizat = 0.483605
  Prefactor  = 1.15722
 **********
 **   18 **HESSE 
 **********

 FCN=   18826.36     FROM HESSE     STATUS=OK           375 CALLS     1713 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14433E-08    103.36        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10603E-07    1.2229        .53258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0325        4.0932        .37755E-03   -1.5655    
   4  Prefactor     .38858E-09    18.209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4242        1.3312        .91012E-03   -1.5684    
   6  norm          .18319E-08    .65808        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.031        12.723        .25875E-03   -1.5630    
   8  Prefactor     14.401        16.896        .25870E-03   -1.5632    
   9  Prefactor     11.738        30.976        .31994E-03   -1.5639    
  10  norm          .73674        .57450        .57811E-03   -1.5691    
  11  Prefactor     31.175        12.019        .17852E-03   -1.5596    
  12  norm           .0000        .78259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .92569        4.6953        .43736E-03   -1.5689    
  14  Prefactor     .11102E-09    7.2962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .27395        .10263        .57058E-02   -1.5603    
  16  Prefactor     2.4595        3.2154        .65210E-02   -1.5394    
  17  norm          1.1889        .77692        .10440E-02   -1.5686    
  18  Prefactor     .22204E-09    2.3793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.993        8.0417        .20901E-03   -1.5612    
  20  Normalizat    .48360        .16651        .10829       -1.1318    
  21  Prefactor     1.1572        .78925E-01    .35727E-01   -.87658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08723e-07
Minuit parameter uncertainties:
  1  0.000767942
  2  0.000227558
  3  4.09318
  4  0.000164457
  5  1.33125
  6  6.9309e-05
  7  12.7228
  8  16.8963
  9  30.9766
  10  0.574503
  11  12.0191
  12  5.40332e-07
  13  4.1696
  14  5.95676e-05
  15  0.102632
  16  3.21567
  17  0.776919
  18  4.66971e-05
  19  8.0417
  20  0.166682
  21  0.0789333
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  7.367e-01  5.745e-01  0.000e+00  1.000e+06 ( 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 -5.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:  1.157e+00  7.893e-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:  4.836e-01  1.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.43
Ra Dec: 330.872 17.432
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.90e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 8.53e-06

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

Saving results to:
/scratch/kocevski/339962/likelihoodResults_682300801_682905601_4FGL_J2203.4+1725_weekly_bin733.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) = 18825.7006758
delta logL = 0.662735640653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18825.6857932
delta logL = 0.677618208014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59156       1.0000          .0000       .10000E+07
     2 'alpha     '    3.0015       1.0000          .0000       5.0000    
     3 'Normalizat'    .44252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1699       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.

 FCN=   18825.69     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      240 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59145        4.3302        .69988E-03    .54695E-01
   2  alpha         3.0015        3.9286        .42250        .96918E-04
   3  Normalizat    .44246        .36950E-01    .11305       -.21912E-03
   4  Prefactor     1.1699        .18451E-01    .35385E-01   -.14702E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.591454
  alpha      = 3.00153
  Normalizat = 0.44246
  Prefactor  = 1.16991
 **********
 **   18 **HESSE 
 **********

 FCN=   18825.69     FROM HESSE     STATUS=OK            31 CALLS      271 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59145        .64749        .59708E-05   -1.5693    
   2  alpha         3.0015        .86482        .20519E-01    .20198    
   3  Normalizat    .44246        .16757        .50097E-03   -1.1516    
   4  Prefactor     1.1699        .84367E-01    .16263E-03   -.87262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65671e-08
Minuit parameter uncertainties:
  1  0.647487
  2  0.883887
  3  0.167757
  4  0.0843762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339962': 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) = 18825.6857931
delta logL = 0.677618350623

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  5.915e-01  6.475e-01  0.000e+00  1.000e+06 ( 1.000e-11)
271        alpha:  3.002e+00  8.839e-01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.474e-02  0.000e+00 -5.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:  1.170e+00  8.438e-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:  4.425e-01  1.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.04
Ra Dec: 330.872 17.432
Photon Index (Free Index): 3.00 +/- 0.88
Photon Flux (Free Index): 5.56e-08 +/- 3.50e-08
Energy Flux (Free Index): 1.14e-05 +/- 7.24e-06

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/339962/cmap_HighResolution_682300801_682905601_4FGL_J2203.4+1725_weekly_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-05', comment='SUCCESS', photon_flux='2.90e-08', energy_flux2='1.14e-05', photon_flux_error='2.26e-08', dlogl='6.78e-01', energy_flux='1.09e-05', photon_flux2='5.56e-08', job_status='DONE', time_completed='2022-09-17 05:38:07.822293', photon_index_error2='0.88', photon_index2='3.00', ts='2.43', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='7.39e-08', energy_flux_error2='7.24e-06', EG='0.48', time_epoch_completed='1663418287.82', return_code='0', job_id='339962', GAL2='1.17', EG2='0.44', return_code2='0', energy_flux_error='8.53e-06', photon_flux_error2='3.50e-08', ts2='4.04', photon_index='2.23' WHERE bin_id='733' AND source_name='4FGL J2203.4+1725' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Sep 17 05:38:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0183>
Subject: Job 339962: <4FGL_J2203.4+1725_weekly_bin733> in cluster <slac> Done

Job <4FGL_J2203.4+1725_weekly_bin733> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 17 05:15:27 2022
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 05:15:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 05:15:46 2022
Terminated at Sat Sep 17 05:38:08 2022
Results reported at Sat Sep 17 05:38:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_weekly_bin733 330.872 17.4318 682300801 682905601 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 :                                   1151.15 sec.
    Max Memory :                                 1276 MB
    Average Memory :                             352.02 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2935 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1342 sec.
    Turnaround time :                            1361 sec.

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

