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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin1700
RA = 330.872, Dec = 17.4318
tmin = 679968001, tmax = 680227201
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='83361', job_status='RUN', time_executed='2022-07-23 00:38:05.623489', time_epoch_executed='1658561885.62' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='1700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83361

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83361/ft1_4FGL_J2203.4+1725_daily_bin1700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83361/ft2_4FGL_J2203.4+1725_daily_bin1700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83361/ft1_4FGL_J2203.4+1725_daily_bin1700.fits outfile=/scratch/kocevski/83361/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1700.fits ra=330.872 dec=17.4318 rad=12.0 tmin=679968001.0 tmax=680227201.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 4.59
user 4.37
sys 0.20

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

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

Number of photons that the gtmktime cut: 782

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83361/ft1_filtered_4FGL_J2203.4+1725_daily_bin1700.fits" evtable="EVENTS" scfile=/scratch/kocevski/83361/ft2_4FGL_J2203.4+1725_daily_bin1700.fits sctable="SC_DATA" outfile=/scratch/kocevski/83361/ltcube_679968001_680227201_4FGL_J2203.4+1725_daily_bin1700.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/83361/ft2_4FGL_J2203.4+1725_daily_bin1700.fits
.....................!
real 11.74
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83361/ft1_filtered_4FGL_J2203.4+1725_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/83361/ft2_4FGL_J2203.4+1725_daily_bin1700.fits sctable="SC_DATA" expcube=/scratch/kocevski/83361/ltcube_679968001_680227201_4FGL_J2203.4+1725_daily_bin1700.fits outfile=/scratch/kocevski/83361/expmap_679968001_680227201_4FGL_J2203.4+1725_daily_bin1700.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/83361/ltcube_679968001_680227201_4FGL_J2203.4+1725_daily_bin1700.fits
.....................!
real 190.65
user 184.76
sys 5.46

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/83361/ft1_filtered_4FGL_J2203.4+1725_daily_bin1700.fits scfile=/scratch/kocevski/83361/ft2_4FGL_J2203.4+1725_daily_bin1700.fits outfile=/scratch/kocevski/83361/cmap_679968001_680227201_4FGL_J2203.4+1725_daily_bin1700.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.67
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/83361/ft1_filtered_4FGL_J2203.4+1725_daily_bin1700.fits scfile=/scratch/kocevski/83361/ft2_4FGL_J2203.4+1725_daily_bin1700.fits outfile=/scratch/kocevski/83361/cmap_HighResolution_679968001_680227201_4FGL_J2203.4+1725_daily_bin1700.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.91
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/83361/ft1_filtered_4FGL_J2203.4+1725_daily_bin1700.fits', '/scratch/kocevski/83361/ft2_4FGL_J2203.4+1725_daily_bin1700.fits', expMap='/scratch/kocevski/83361/expmap_679968001_680227201_4FGL_J2203.4+1725_daily_bin1700.fits', expCube='/scratch/kocevski/83361/ltcube_679968001_680227201_4FGL_J2203.4+1725_daily_bin1700.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/83361/Model_4FGL_J2203.4+1725_daily_bin1700.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/83361/ft1_filtered_4FGL_J2203.4+1725_daily_bin1700.fits
Spacecraft file(s): /scratch/kocevski/83361/ft2_4FGL_J2203.4+1725_daily_bin1700.fits
Exposure map: /scratch/kocevski/83361/expmap_679968001_680227201_4FGL_J2203.4+1725_daily_bin1700.fits
Exposure cube: /scratch/kocevski/83361/ltcube_679968001_680227201_4FGL_J2203.4+1725_daily_bin1700.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/83361/Model_4FGL_J2203.4+1725_daily_bin1700.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) = 8698.4641763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .94320       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11150E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.782       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3985       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.331       1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.941       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8428       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.406       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.0254       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.595       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9186       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .48062       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.092       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.6019       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0618       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84254       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=   8698.459     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2883 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.658        .11244E-06** at limit **
   2  norm          .10000E-03    1.3420        .88807E-08** at limit **
   3  Prefactor     .94226        7.8043        .44646E-05   -.19684E-03
   4  Prefactor     .10000E-03    2.8296       -.20129E-06** at limit **
   5  Prefactor     .10001E-03    117.83       -.11497E-04** at limit **
   6  norm          .10000E-03    .98404       -.10099E-06** at limit **
   7  Prefactor     38.779        58.458       -.75825E-06   -.17032E-04
   8  norm          2.3990        2.9109        .21305E-06   -.19236E-03
   9  norm          .10000E-03    8.1971       -.49108E-08** at limit **
  10  Prefactor     26.321        34.420       -.47733E-06   -.33301E-04
  11  Prefactor     38.947        37.105        .60012E-06    .21814E-04
  12  norm          1.8427        1.1984        .82513E-07   -.59283E-04
  13  Prefactor     12.411        38.537        .16176E-05    .85160E-05
  14  Prefactor     .10000E-03    32.079       -.26809E-06** at limit **
  15  norm          9.0256        5.6192       -.13067E-06   -.11671E-03
  16  Prefactor     20.588        18.848        .38470E-06    .66748E-05
  17  Prefactor     .10001E-03    93.372        .90447E-05** at limit **
  18  Prefactor     8.9198        11.612        .24335E-05   -.12961E-03
  19  Prefactor     .48077        .23424        .24049E-07   -.64667E-04
  20  Prefactor     18.091        10.225        .38606E-07   -.54072E-05
  21  norm          .10000E-03    .59167        .14855E-07** at limit **
  22  Prefactor     .10000E-03    10.694        .49127E-08** at limit **
  23  Prefactor     9.6032        10.533        .16410E-06   -.12460E-05
  24  Normalizat    1.0615        .24675       -.19872E-05   -.79154E-04
  25  Prefactor     .84263        .10359       -.86718E-07   -.22557E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.942263
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.0001
  Prefactor  = 38.779
  norm       = 2.399
  norm       = 0.0001
  Prefactor  = 26.3213
  Prefactor  = 38.9469
  norm       = 1.84273
  Prefactor  = 12.4115
  Prefactor  = 0.0001
  norm       = 9.02561
  Prefactor  = 20.5879
  Prefactor  = 0.000100009
  Prefactor  = 8.91984
  Prefactor  = 0.480769
  Prefactor  = 18.0913
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.60323
  Normalizat = 1.06154
  Prefactor  = 0.842626
 **********
 **   18 **HESSE 
 **********

 FCN=   8698.459     FROM HESSE     STATUS=OK           427 CALLS     3310 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.3511        .10550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .94226        8.3138        .49720E-02   -1.5514    
   4  Prefactor     .10000E-03    2.8428        .15323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    123.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .99275        .90055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.779        58.388        .64361E-04   -1.4462    
   8  norm          2.3990        2.9006        .15657E-03   -1.5398    
   9  norm          .10000E-03    8.2037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.321        34.435        .78069E-04   -1.4681    
  11  Prefactor     38.947        37.130        .64230E-04   -1.4459    
  12  norm          1.8427        1.1935        .76844E-04   -1.5436    
  13  Prefactor     12.411        38.653        .11373E-03   -1.5003    
  14  Prefactor     .10000E-03    32.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.0256        5.6198        .13341E-03   -1.5107    
  16  Prefactor     20.588        18.838        .88259E-04   -1.4800    
  17  Prefactor     .10001E-03    97.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.9198        11.751        .67106E-03   -1.5111    
  19  Prefactor     .48077        .23129        .28384E-04   -1.5569    
  20  Prefactor     18.091        10.222        .94162E-04   -1.4857    
  21  norm          .10000E-03    .59705        .69884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.6032        10.507        .12933E-03   -1.5088    
  24  Normalizat    1.0615        .29668        .37423E-03   -.90996    
  25  Prefactor     .84263        .12524        .19175E-03   -.98176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69162e-07
Minuit parameter uncertainties:
  1  1.54957e-05
  2  1.3112e-06
  3  5.59852
  4  7.11184e-06
  5  0.00262666
  6  3.67369e-06
  7  58.4744
  8  2.90078
  9  1.91888e-06
  10  34.4612
  11  37.1519
  12  1.19355
  13  38.7315
  14  3.29366e-05
  15  5.62013
  16  18.8438
  17  0.00191379
  18  11.7539
  19  0.23129
  20  10.223
  21  8.76256e-08
  22  1.12778e-06
  23  10.5088
  24  0.297142
  25  0.125287
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.843e+00  1.194e+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

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  8.426e-01  1.253e-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:  1.062e+00  2.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.52
Ra Dec: 330.872 17.432
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.25e-08 +/- 4.70e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.77e-05

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) = 8698.08478282
delta logL = 0.374015232492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8698.08415357
delta logL = 0.374644480533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8810       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7949       1.0000          .0000       5.0000    
     3 'Normalizat'    .98414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86284       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.

 FCN=   8698.084     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      241 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8811        1.2188        .59518E-04    .30906E-03
   2  alpha         2.7948        .69273        .14108E-01    .90445E-05
   3  Normalizat    .98410        .28307        .38669E-03    .93434E-04
   4  Prefactor     .86275        .12664        .18958E-03    .22998E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88106
  alpha      = 2.7948
  Normalizat = 0.9841
  Prefactor  = 0.862753
 **********
 **   18 **HESSE 
 **********

 FCN=   8698.084     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8811        1.1520        .23807E-05   -1.5434    
   2  alpha         2.7948        .65426        .56433E-03    .11819    
   3  Normalizat    .98410        .28281        .15467E-04   -.93565    
   4  Prefactor     .86275        .12655        .37917E-04   -.97455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8073e-11
Minuit parameter uncertainties:
  1  1.15206
  2  0.662082
  3  0.283244
  4  0.126588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83361': 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) = 8698.08415203
delta logL = 0.37464602673

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.881e+00  1.152e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.795e+00  6.621e-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:  8.628e-01  1.266e-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:  9.841e-01  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.74
Ra Dec: 330.872 17.432
Photon Index (Free Index): 2.79 +/- 0.66
Photon Flux (Free Index): 1.37e-07 +/- 9.09e-08
Energy Flux (Free Index): 3.13e-05 +/- 1.57e-05

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/83361/cmap_HighResolution_679968001_680227201_4FGL_J2203.4+1725_daily_bin1700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.25e-08', energy_flux2='3.13e-05', photon_flux_error='4.70e-08', dlogl='3.75e-01', energy_flux='2.74e-05', photon_flux2='1.37e-07', job_status='DONE', time_completed='2022-07-23 00:51:17.623076', photon_index_error2='0.66', photon_index2='2.79', ts='5.52', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.06', time_epoch_completed='1658562677.62', return_code='0', job_id='83361', GAL2='0.86', EG2='0.98', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='9.09e-08', ts2='6.74', photon_index='2.23' WHERE bin_id='1700' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 23 00:51:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 83361: <4FGL_J2203.4+1725_daily_bin1700> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin1700> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:35:41 2022
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:35:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:35:43 2022
Terminated at Sat Jul 23 00:51:18 2022
Results reported at Sat Jul 23 00:51:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin1700 330.872 17.4318 679968001 680227201 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 :                                   785.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

