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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin1701
RA = 330.872, Dec = 17.4318
tmin = 680227201, tmax = 680486401
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='192039', job_status='RUN', time_executed='2022-07-26 02:12:49.806203', time_epoch_executed='1658826769.81' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='1701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192039/ft1_4FGL_J2203.4+1725_daily_bin1701.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192039/ft2_4FGL_J2203.4+1725_daily_bin1701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192039/ft1_4FGL_J2203.4+1725_daily_bin1701.fits outfile=/scratch/kocevski/192039/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1701.fits ra=330.872 dec=17.4318 rad=12.0 tmin=680227201.0 tmax=680486401.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.88
user 2.67
sys 0.19

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

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

Number of photons that the gtmktime cut: 721

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192039/ft1_filtered_4FGL_J2203.4+1725_daily_bin1701.fits" evtable="EVENTS" scfile=/scratch/kocevski/192039/ft2_4FGL_J2203.4+1725_daily_bin1701.fits sctable="SC_DATA" outfile=/scratch/kocevski/192039/ltcube_680227201_680486401_4FGL_J2203.4+1725_daily_bin1701.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/192039/ft2_4FGL_J2203.4+1725_daily_bin1701.fits
.....................!
real 14.48
user 14.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192039/ft1_filtered_4FGL_J2203.4+1725_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/192039/ft2_4FGL_J2203.4+1725_daily_bin1701.fits sctable="SC_DATA" expcube=/scratch/kocevski/192039/ltcube_680227201_680486401_4FGL_J2203.4+1725_daily_bin1701.fits outfile=/scratch/kocevski/192039/expmap_680227201_680486401_4FGL_J2203.4+1725_daily_bin1701.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/192039/ltcube_680227201_680486401_4FGL_J2203.4+1725_daily_bin1701.fits
.....................!
real 196.26
user 190.17
sys 5.74

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/192039/ft1_filtered_4FGL_J2203.4+1725_daily_bin1701.fits scfile=/scratch/kocevski/192039/ft2_4FGL_J2203.4+1725_daily_bin1701.fits outfile=/scratch/kocevski/192039/cmap_680227201_680486401_4FGL_J2203.4+1725_daily_bin1701.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192039/ft1_filtered_4FGL_J2203.4+1725_daily_bin1701.fits scfile=/scratch/kocevski/192039/ft2_4FGL_J2203.4+1725_daily_bin1701.fits outfile=/scratch/kocevski/192039/cmap_HighResolution_680227201_680486401_4FGL_J2203.4+1725_daily_bin1701.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2501       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    83.529       1.0000         .10000E-03   10000.    
     8 'norm      '    5.2677       1.0000         .10000E-03   10000.    
     9 'norm      '    13.178       1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.098       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.099       1.0000         .10000E-03   10000.    
    12 'norm      '    .99327E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.523       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.660       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5550       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    123.00       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9729       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .79904       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0403       1.0000         .10000E-03   10000.    
    21 'norm      '    .38248E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .40820       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0169       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=   8258.381     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2957 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.342       -.73386E-07** at limit **
   2  norm          .10000E-03    1.9888       -.13542E-06** at limit **
   3  Prefactor     .10000E-03    9.2413       -.70036E-06** at limit **
   4  Prefactor     6.2527        9.7216        .26476E-07   -.96996E-04
   5  Prefactor     .10000E-03    74.312        .26320E-06** at limit **
   6  norm          .10000E-03    1.2139        .17273E-06** at limit **
   7  Prefactor     83.516        83.288       -.69621E-06   -.45689E-04
   8  norm          5.2686        4.5963        .18690E-06   -.54129E-04
   9  norm          13.171        37.296       -.51205E-06   -.30757E-04
  10  Prefactor     61.106        37.453       -.90423E-07    .10541E-04
  11  Prefactor     37.110        51.335        .12667E-06    .36194E-04
  12  norm          .10001E-03    .39434        .29853E-07** at limit **
  13  Prefactor     14.576        52.860        .27493E-05    .15246E-03
  14  Prefactor     21.664        14.153       -.51613E-06   -.94791E-04
  15  norm          1.5551        3.7227        .46700E-06   -.85783E-04
  16  Prefactor     .10000E-03    8.7516        .17542E-06** at limit **
  17  Prefactor     123.01        73.205       -.63459E-07    .36929E-04
  18  Prefactor     4.9732        8.8000        .55101E-05   -.69074E-04
  19  Prefactor     .79905        .24840        .10648E-07   -.35658E-03
  20  Prefactor     7.0405        7.0633       -.53800E-06    .94366E-05
  21  norm          .10000E-03    .59413       -.62263E-07** at limit **
  22  Prefactor     .10000E-03    5.8795       -.33504E-07** at limit **
  23  Prefactor     .10000E-03    5.3599       -.15701E-06** at limit **
  24  Normalizat    .40806        .27733        .95477E-06   -.67452E-04
  25  Prefactor     1.0170        .11749       -.82488E-06   -.27496E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.25266
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 83.5155
  norm       = 5.26856
  norm       = 13.1711
  Prefactor  = 61.1064
  Prefactor  = 37.11
  norm       = 0.000100014
  Prefactor  = 14.576
  Prefactor  = 21.6636
  norm       = 1.55514
  Prefactor  = 0.0001
  Prefactor  = 123.015
  Prefactor  = 4.97321
  Prefactor  = 0.799051
  Prefactor  = 7.04049
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.408058
  Prefactor  = 1.01696
 **********
 **   18 **HESSE 
 **********

 FCN=   8258.381     FROM HESSE     STATUS=OK           439 CALLS     3396 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0134        .12507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2527        9.5953        .16057E-03   -1.5208    
   5  Prefactor     .10000E-03    74.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.3295        .18782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     83.516        83.424        .21976E-03   -1.3878    
   8  norm          5.2686        4.5598        .15053E-03   -1.5249    
   9  norm          13.171        37.142        .11034E-03   -1.4982    
  10  Prefactor     61.106        36.437        .51333E-04   -1.4143    
  11  Prefactor     37.110        51.142        .65800E-04   -1.4489    
  12  norm          .10001E-03    .77517        .19769E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.576        52.529        .10510E-03   -1.4944    
  14  Prefactor     21.664        14.081        .86064E-04   -1.4777    
  15  norm          1.5551        3.6775        .26020E-03   -1.5459    
  16  Prefactor     .10000E-03    8.7873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     123.01        72.968        .18145E-03   -1.3485    
  18  Prefactor     4.9732        8.8002        .90171E-03   -1.5262    
  19  Prefactor     .79905        .24714        .24175E-04   -1.5529    
  20  Prefactor     7.0405        7.0710        .75595E-03   -1.5177    
  21  norm          .10000E-03    4.7426        .13628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.8802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.3909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .40806        .26957        .52842E-03   -1.1689    
  25  Prefactor     1.0170        .12018        .16266E-03   -.92166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88068e-10
Minuit parameter uncertainties:
  1  5.35393e-06
  2  3.02797e-06
  3  2.68241e-06
  4  9.5977
  5  8.36752e-05
  6  9.52983e-06
  7  83.5412
  8  4.56009
  9  37.2076
  10  36.4508
  11  51.2022
  12  0.000210327
  13  52.6961
  14  14.0835
  15  3.67803
  16  2.00268e-05
  17  73.0213
  18  8.80246
  19  0.247142
  20  7.07185
  21  5.85867e-05
  22  4.63959e-06
  23  1.42058e-06
  24  0.270432
  25  0.12021
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.000e-04  2.103e-04  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:  1.017e+00  1.202e-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:  4.081e-01  2.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/192039/likelihoodResults_680227201_680486401_4FGL_J2203.4+1725_daily_bin1701.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8258.38092882
delta logL = -0.000410008493418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8258.27774143
delta logL = 0.102777381835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21483       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1996       1.0000          .0000       5.0000    
     3 'Normalizat'    .38059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0222       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=   8258.278     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      248 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21467        28.460        .10045E-02    .31677E-02
   2  alpha         3.2000        3.3680        .43400        .56946E-04
   3  Normalizat    .38056        .66472E-01    .12340        .18481E-03
   4  Prefactor     1.0223        .31710E-01    .41926E-01    .64105E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.214667
  alpha      = 3.19996
  Normalizat = 0.380562
  Prefactor  = 1.02229
 **********
 **   18 **HESSE 
 **********

 FCN=   8258.278     FROM HESSE     STATUS=OK            31 CALLS      279 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21467        .66986        .40180E-04   -1.5615    
   2  alpha         3.2000        1.7458        .44015E-01    .28378    
   3  Normalizat    .38056        .25739        .54660E-03   -1.1832    
   4  Prefactor     1.0223        .12010        .16226E-03   -.91990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00173e-10
Minuit parameter uncertainties:
  1  0.669879
  2  1.95489
  3  0.258191
  4  0.12013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192039': 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) = 8258.27774083
delta logL = 0.102777982822

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  2.147e-01  6.699e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  3.200e+00  1.955e+00  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:  1.022e+00  1.201e-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:  3.806e-01  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/192039/cmap_HighResolution_680227201_680486401_4FGL_J2203.4+1725_daily_bin1701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-05', job_status='DONE', photon_flux_upper_limit='8.06e-08', time_completed='2022-07-26 02:27:02.837164', job_id='192039', GAL2='1.02', fit_tolerance='1e-08', EG2='0.38', EG='0.41', time_epoch_completed='1658827622.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.03e-01', ts2='0.23', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1701' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 26 02:27:02 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 192039: <4FGL_J2203.4+1725_daily_bin1701> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin1701> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jul 26 02:10:24 2022
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 02:12:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 02:12:07 2022
Terminated at Tue Jul 26 02:27:03 2022
Results reported at Tue Jul 26 02:27:03 2022

Your job looked like:

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

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

