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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin1774
RA = 330.872, Dec = 17.4318
tmin = 699148801, tmax = 699408001
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='697874', job_status='RUN', time_executed='2023-03-02 01:40:48.329337', time_epoch_executed='1677750048.33' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697874/ft1_4FGL_J2203.4+1725_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697874/ft2_4FGL_J2203.4+1725_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697874/ft1_4FGL_J2203.4+1725_daily_bin1774.fits outfile=/scratch/kocevski/697874/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1774.fits ra=330.872 dec=17.4318 rad=12.0 tmin=699148801.0 tmax=699408001.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.81
user 2.58
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/697874/ft2_4FGL_J2203.4+1725_daily_bin1774.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/697874/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/697874/ft1_filtered_4FGL_J2203.4+1725_daily_bin1774.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.48
user 0.31
sys 0.16

Number of photons that the gtmktime cut: 899

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697874/ft1_filtered_4FGL_J2203.4+1725_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/697874/ft2_4FGL_J2203.4+1725_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/697874/ltcube_699148801_699408001_4FGL_J2203.4+1725_daily_bin1774.fits outfile=/scratch/kocevski/697874/expmap_699148801_699408001_4FGL_J2203.4+1725_daily_bin1774.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/697874/ltcube_699148801_699408001_4FGL_J2203.4+1725_daily_bin1774.fits
.....................!
real 191.06
user 184.78
sys 5.93

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/697874/ft1_filtered_4FGL_J2203.4+1725_daily_bin1774.fits scfile=/scratch/kocevski/697874/ft2_4FGL_J2203.4+1725_daily_bin1774.fits outfile=/scratch/kocevski/697874/cmap_699148801_699408001_4FGL_J2203.4+1725_daily_bin1774.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/697874/ft1_filtered_4FGL_J2203.4+1725_daily_bin1774.fits scfile=/scratch/kocevski/697874/ft2_4FGL_J2203.4+1725_daily_bin1774.fits outfile=/scratch/kocevski/697874/cmap_HighResolution_699148801_699408001_4FGL_J2203.4+1725_daily_bin1774.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.661       1.0000          .0000       .10000E+07
     2 'norm      '    .13884       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10035E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .20138       1.0000          .0000       .10000E+07
     5 'norm      '    .19040E-07   1.0000          .0000       .10000E+07
     6 'norm      '    .69871       1.0000          .0000       .10000E+07
     7 'norm      '    .13903E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    33.040       1.0000          .0000       .10000E+07
     9 'Prefactor '    .26241E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .77132       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.8239       1.0000          .0000       .10000E+07
    12 'norm      '    1.0134       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.7932       1.0000          .0000       .10000E+07
    14 'Prefactor '    .18483E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .71856       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7607       1.0000          .0000       .10000E+07
    18 'Prefactor '    .11586E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .96435E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.5127       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78528       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=   10013.36     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1762 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.398        43.936       -.94116E-07    .76792E-02
   2  norm          .18166        21.715        .18113E-06** at limit **
   3  Prefactor     .37909E-06    3.4254       -.42588E-07** at limit **
   4  Prefactor     .75384E-07    56.724       -.11758E-06** at limit **
   5  norm           .0000        2.6939        .81974E-08** at limit **
   6  norm          .69288        2.3348       -.11673E-06   -.20862E-02
   7  norm          .76605E-08    7.3576       -.12268E-07** at limit **
   8  Prefactor     32.921        30.513        .14249E-07    .14914E-01
   9  Prefactor     .22204E-08    39.756        .60153E-06** at limit **
  10  norm          .77146        .98021       -.38564E-07   -.53662E-02
  11  Prefactor     3.7869        10.364        .31131E-07    .14679E-01
  12  norm          1.0108        1.1266        .31349E-08    .10274E-01
  13  Prefactor     3.8210        7.0069       -.31019E-07    .32315E-01
  14  Prefactor      .0000        12.578       -.37981E-07** at limit **
  15  Prefactor     .71806        .26382        .14138E-08   -.18141E-03
  16  Prefactor     .10000E-03    5.1849       -.85039E-06** at limit **
  17  norm          1.7613        1.2289       -.10330E-07   -.18221E-02
  18  Prefactor     .23892E-06    4.2359       -.38976E-07** at limit **
  19  Prefactor     .55511E-10    5.3981       -.10917E-06** at limit **
  20  Normalizat    1.5130        .26351       -.11851E-05   -.85870E-04
  21  Prefactor     .78530        .11898        .61093E-06   -.78462E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3976
  norm       = 0.181662
  Prefactor  = 3.79086e-07
  Prefactor  = 7.53841e-08
  norm       = 0
  norm       = 0.692881
  norm       = 7.66054e-09
  Prefactor  = 32.9211
  Prefactor  = 2.22045e-09
  norm       = 0.771464
  Prefactor  = 3.78695
  norm       = 1.01077
  Prefactor  = 3.82104
  Prefactor  = 0
  Prefactor  = 0.718063
  Prefactor  = 0.0001
  norm       = 1.76127
  Prefactor  = 2.3892e-07
  Prefactor  = 5.55112e-11
  Normalizat = 1.51303
  Prefactor  = 0.785297
 **********
 **   18 **HESSE 
 **********

 FCN=   10013.36     FROM HESSE     STATUS=OK           371 CALLS     2133 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.398        45.256        .27074E-03   -1.5635    
   2  norm          .18166        1.8935        .80851E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .37909E-06    6.8867        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .75384E-07    71.869        .11751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        2.6589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .69288        2.3426        .60813E-03   -1.5691    
   7  norm          .76605E-08    7.6423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.921        31.368        .17399E-03   -1.5593    
   9  Prefactor     .22204E-08    38.977        .16656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .77146        .99507        .55098E-03   -1.5690    
  11  Prefactor     3.7869        10.670        .51589E-03   -1.5669    
  12  norm          1.0108        7.9364        .44238E-03   -1.5688    
  13  Prefactor     3.8210        16.113        .51805E-03   -1.5669    
  14  Prefactor      .0000        6.6050        .80421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .71806        .27492        .66628E-02   -1.5538    
  16  Prefactor     .10000E-03    5.1583        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7613        1.2309        .78936E-03   -1.5681    
  18  Prefactor     .23892E-06    6.4069        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    5.4007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5130        .22535        .75091E-01   -.77413    
  21  Prefactor     .78530        .98320E-01    .43525E-01   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83051e-06
Minuit parameter uncertainties:
  1  45.257
  2  1.17298
  3  0.00323146
  4  0.00465485
  5  1.15094e-05
  6  2.34257
  7  0.000483994
  8  31.3681
  9  0.000587873
  10  0.995074
  11  10.6701
  12  5.66462
  13  15.6932
  14  1.15948e-05
  15  0.27492
  16  2.99497e-05
  17  1.23092
  18  0.00247437
  19  3.05013e-05
  20  0.225503
  21  0.0983421
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  7.715e-01  9.951e-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:  7.853e-01  9.834e-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:  1.513e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.81
Ra Dec: 330.872 17.432
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/697874/likelihoodResults_699148801_699408001_4FGL_J2203.4+1725_daily_bin1774.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) = 10013.254322
delta logL = 0.104251292056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10013.2455662
delta logL = 0.113007088268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64850       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7195       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78014       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=   10013.25     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      209 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64786        .81253        .64991E-03    .21697E-01
   2  alpha         1.7189        .55482        .44027       -.56345E-04
   3  Normalizat    1.5314        .21260        .74715E-01    .12774E-02
   4  Prefactor     .78016        .97325E-01    .43458E-01    .22245E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.647863
  alpha      = 1.71889
  Normalizat = 1.53143
  Prefactor  = 0.780159
 **********
 **   18 **HESSE 
 **********

 FCN=   10013.25     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64786        .96808        .95394E-05   -1.5692    
   2  alpha         1.7189        .92127        .22461E-01   -.31777    
   3  Normalizat    1.5314        .25850        .33061E-03   -.76899    
   4  Prefactor     .78016        .11807        .20249E-03   -1.0046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29997e-08
Minuit parameter uncertainties:
  1  0.968075
  2  0.946101
  3  0.258726
  4  0.118104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697874': 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) = 10013.245566
delta logL = 0.113007343867

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  6.479e-01  9.681e-01  0.000e+00  1.000e+06 ( 1.000e-11)
271        alpha:  1.719e+00  9.461e-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:  7.802e-01  1.181e-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.531e+00  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 330.872 17.432
Photon Index (Free Index): 1.72 +/- 0.95
Photon Flux (Free Index): 1.73e-08 +/- 3.15e-08
Energy Flux (Free Index): 1.61e-05 +/- 2.32e-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/697874/cmap_HighResolution_699148801_699408001_4FGL_J2203.4+1725_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-05', comment='SUCCESS', energy_flux2='1.61e-05', dlogl='1.13e-01', photon_flux2='1.73e-08', job_status='DONE', time_completed='2023-03-02 01:53:14.842744', photon_index_error2='0.95', photon_index2='1.72', ts='0.81', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='2.32e-05', EG='1.51', time_epoch_completed='1677750794.84', return_code='0', job_id='697874', GAL2='0.78', EG2='1.53', return_code2='0', photon_flux_error2='3.15e-08', ts2='1.02', photon_index='2.23' WHERE bin_id='1774' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 01:53:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 697874: <4FGL_J2203.4+1725_daily_bin1774> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin1774> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Mar  2 01:40:17 2023
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 01:40:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 01:40:19 2023
Terminated at Thu Mar  2 01:53:15 2023
Results reported at Thu Mar  2 01:53:15 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin1774 330.872 17.4318 699148801 699408001 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 :                                   748.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            778 sec.

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

