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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin1776
RA = 330.872, Dec = 17.4318
tmin = 699667201, tmax = 699926401
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='843411', job_status='RUN', time_executed='2023-03-08 01:17:06.738486', time_epoch_executed='1678267026.74' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843411/ft1_4FGL_J2203.4+1725_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843411/ft2_4FGL_J2203.4+1725_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843411/ft1_4FGL_J2203.4+1725_daily_bin1776.fits outfile=/scratch/kocevski/843411/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1776.fits ra=330.872 dec=17.4318 rad=12.0 tmin=699667201.0 tmax=699926401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.89
user 3.67
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/843411/ft2_4FGL_J2203.4+1725_daily_bin1776.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/843411/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/843411/ft1_filtered_4FGL_J2203.4+1725_daily_bin1776.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 897

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/843411/ft1_filtered_4FGL_J2203.4+1725_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/843411/ft2_4FGL_J2203.4+1725_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/843411/ltcube_699667201_699926401_4FGL_J2203.4+1725_daily_bin1776.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/843411/ft2_4FGL_J2203.4+1725_daily_bin1776.fits
.....................!
real 12.32
user 11.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843411/ft1_filtered_4FGL_J2203.4+1725_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/843411/ft2_4FGL_J2203.4+1725_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/843411/ltcube_699667201_699926401_4FGL_J2203.4+1725_daily_bin1776.fits outfile=/scratch/kocevski/843411/expmap_699667201_699926401_4FGL_J2203.4+1725_daily_bin1776.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/843411/ltcube_699667201_699926401_4FGL_J2203.4+1725_daily_bin1776.fits
.....................!
real 191.15
user 186.12
sys 4.68

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/843411/ft1_filtered_4FGL_J2203.4+1725_daily_bin1776.fits scfile=/scratch/kocevski/843411/ft2_4FGL_J2203.4+1725_daily_bin1776.fits outfile=/scratch/kocevski/843411/cmap_699667201_699926401_4FGL_J2203.4+1725_daily_bin1776.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843411/ft1_filtered_4FGL_J2203.4+1725_daily_bin1776.fits scfile=/scratch/kocevski/843411/ft2_4FGL_J2203.4+1725_daily_bin1776.fits outfile=/scratch/kocevski/843411/cmap_HighResolution_699667201_699926401_4FGL_J2203.4+1725_daily_bin1776.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60177       1.0000          .0000       .10000E+07
     2 'norm      '    .11035E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.8597       1.0000          .0000       .10000E+07
     4 'Prefactor '    .17402E-03   1.0000          .0000       .10000E+07
     5 'norm      '    1.2810       1.0000          .0000       .10000E+07
     6 'norm      '    2.0068       1.0000          .0000       .10000E+07
     7 'norm      '    .97388E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .53773E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    49.247       1.0000          .0000       .10000E+07
    10 'norm      '    2.2692       1.0000          .0000       .10000E+07
    11 'Prefactor '    46.284       1.0000          .0000       .10000E+07
    12 'norm      '    3.4352       1.0000          .0000       .10000E+07
    13 'Prefactor '    11.764       1.0000          .0000       .10000E+07
    14 'Prefactor '    11.237       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.9138       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9760       1.0000         .10000E-03   10000.    
    17 'norm      '    .67890E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.6360       1.0000          .0000       .10000E+07
    19 'Prefactor '    .47987E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    .84561       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0226       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=   9824.544     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1657 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4700        152.92       -.11543E-05    .61709E-02
   2  norm           .0000        1.4474       -.40231E-08** at limit **
   3  Prefactor     3.9042        6.0370        .43754E-08   -.16905E-03
   4  Prefactor     .63283E-08    31.294        .81528E-07** at limit **
   5  norm          1.2906        1.9983       -.30197E-07   -.17156E-04
   6  norm          2.0186        2.1097       -.84698E-08   -.29719E-04
   7  norm           .0000        8.8059        .12561E-07** at limit **
   8  Prefactor     .26990E-06    86.829        .49765E-06** at limit **
   9  Prefactor     49.756        12.939       -.62300E-07   -.88692E-01
  10  norm          2.2710        1.1726       -.83432E-08   -.17406E-03
  11  Prefactor     46.825        22.649       -.11938E-07   -.47823E-02
  12  norm          3.4426        5.5764       -.82248E-08   -.44445E-04
  13  Prefactor     12.357        16.994       -.63523E-07   -.57312E-03
  14  Prefactor     11.732        12.941        .97891E-08    .62006E-03
  15  Prefactor     1.9124        .32231        .21561E-08   -.18079E-04
  16  Prefactor     5.9804        5.5190       -.90649E-07    .35410E-05
  17  norm           .0000        .52108        .10218E-07** at limit **
  18  Prefactor     6.6329        11.255        .52488E-07    .35288E-03
  19  Prefactor      .0000        3.2475        .19032E-07** at limit **
  20  Normalizat    .84099        .28440       -.12054E-05   -.86758E-06
  21  Prefactor     1.0226        .12669        .43783E-06   -.32152E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.47
  norm       = 0
  Prefactor  = 3.90424
  Prefactor  = 6.32827e-09
  norm       = 1.29062
  norm       = 2.01856
  norm       = 0
  Prefactor  = 2.69895e-07
  Prefactor  = 49.756
  norm       = 2.27099
  Prefactor  = 46.8252
  norm       = 3.44255
  Prefactor  = 12.3575
  Prefactor  = 11.7318
  Prefactor  = 1.91241
  Prefactor  = 5.98037
  norm       = 0
  Prefactor  = 6.63294
  Prefactor  = 0
  Normalizat = 0.840995
  Prefactor  = 1.02262
 **********
 **   18 **HESSE 
 **********

 FCN=   9824.544     FROM HESSE     STATUS=OK           365 CALLS     2022 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4700        158.66        .69070E-03   -1.5677    
   2  norm           .0000        1.4412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9042        6.0274        .51341E-03   -1.5668    
   4  Prefactor     .63283E-08    31.267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2906        2.0275        .98022E-03   -1.5685    
   6  norm          2.0186        2.1227        .73062E-03   -1.5680    
   7  norm           .0000        8.8660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .26990E-06    86.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.756        49.189        .14251E-03   -1.5567    
  10  norm          2.2710        1.1776        .68151E-03   -1.5678    
  11  Prefactor     46.825        22.626        .14700E-03   -1.5571    
  12  norm          3.4426        5.5774        .54548E-03   -1.5671    
  13  Prefactor     12.357        16.885        .29182E-03   -1.5638    
  14  Prefactor     11.732        12.901        .29861E-03   -1.5639    
  15  Prefactor     1.9124        .32117        .48052E-02   -1.5431    
  16  Prefactor     5.9804        5.5181        .41064E-02   -1.5219    
  17  norm           .0000        .51997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6329        11.258        .38931E-03   -1.5656    
  19  Prefactor      .0000        3.2478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .84099        .24781        .97549E-01   -.98566    
  21  Prefactor     1.0226        .10853        .41890E-01   -.91979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84225e-07
Minuit parameter uncertainties:
  1  39.5938
  2  5.34149e-07
  3  6.02738
  4  0.000888488
  5  2.02746
  6  2.12272
  7  1.68181e-06
  8  0.00968117
  9  49.1891
  10  1.17762
  11  22.6264
  12  5.5774
  13  16.8851
  14  12.9008
  15  0.321171
  16  5.51854
  17  8.04299e-08
  18  11.2581
  19  1.02628e-06
  20  0.248148
  21  0.108554
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.023e+00  1.086e-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:  8.410e-01  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.24
Ra Dec: 330.872 17.432
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 8.94e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 3.37e-05 +/- 1.75e-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) = 9824.42849062
delta logL = 0.115517978309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9824.42583827
delta logL = 0.118170319976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1903       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4989       1.0000          .0000       5.0000    
     3 'Normalizat'    .80646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0331       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=   9824.426     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      201 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1902        18.389        .69514E-04    .95085E-03
   2  alpha         2.4990        3.6821        .41152        .42011E-04
   3  Normalizat    .80661        .13357        .99401E-01    .45713E-04
   4  Prefactor     1.0331        .47405E-01    .41020E-01   -.31713E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.19018
  alpha      = 2.49898
  Normalizat = 0.806607
  Prefactor  = 1.03306
 **********
 **   18 **HESSE 
 **********

 FCN=   9824.426     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1902        1.1650        .27806E-05   -1.5678    
   2  alpha         2.4990        .56521        .14698E-01   -.40893E-03
   3  Normalizat    .80661        .27228        .44049E-03   -.99824    
   4  Prefactor     1.0331        .12628        .18641E-03   -.91636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33349e-12
Minuit parameter uncertainties:
  1  1.16499
  2  0.570139
  3  0.27274
  4  0.126314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843411': 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) = 9824.42583809
delta logL = 0.118170503205

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  2.190e+00  1.165e+00  0.000e+00  1.000e+06 ( 1.000e-11)
271        alpha:  2.499e+00  5.701e-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.033e+00  1.263e-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:  8.066e-01  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.64
Ra Dec: 330.872 17.432
Photon Index (Free Index): 2.50 +/- 0.57
Photon Flux (Free Index): 1.13e-07 +/- 7.12e-08
Energy Flux (Free Index): 3.22e-05 +/- 1.59e-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/843411/cmap_HighResolution_699667201_699926401_4FGL_J2203.4+1725_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.94e-08', energy_flux2='3.22e-05', photon_flux_error='4.63e-08', dlogl='1.18e-01', energy_flux='3.37e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2023-03-08 01:28:23.287208', photon_index_error2='0.57', photon_index2='2.50', ts='8.24', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.84', time_epoch_completed='1678267703.29', return_code='0', job_id='843411', GAL2='1.03', EG2='0.81', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='7.12e-08', ts2='8.64', photon_index='2.23' WHERE bin_id='1776' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 01:28:23 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 843411: <4FGL_J2203.4+1725_daily_bin1776> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin1776> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Mar  8 01:15:20 2023
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 01:15:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 01:15:21 2023
Terminated at Wed Mar  8 01:28:23 2023
Results reported at Wed Mar  8 01:28:23 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin1776 330.872 17.4318 699667201 699926401 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 :                                   679.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            783 sec.

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

