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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin1762
RA = 330.872, Dec = 17.4318
tmin = 696038401, tmax = 696297601
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='121921', job_status='RUN', time_executed='2023-01-25 01:44:01.357083', time_epoch_executed='1674639841.36' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121921/ft1_4FGL_J2203.4+1725_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121921/ft2_4FGL_J2203.4+1725_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121921/ft1_4FGL_J2203.4+1725_daily_bin1762.fits outfile=/scratch/kocevski/121921/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1762.fits ra=330.872 dec=17.4318 rad=12.0 tmin=696038401.0 tmax=696297601.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.70
user 3.44
sys 0.21

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

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

Number of photons that the gtmktime cut: 849

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121921/ft1_filtered_4FGL_J2203.4+1725_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/121921/ft2_4FGL_J2203.4+1725_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/121921/ltcube_696038401_696297601_4FGL_J2203.4+1725_daily_bin1762.fits outfile=/scratch/kocevski/121921/expmap_696038401_696297601_4FGL_J2203.4+1725_daily_bin1762.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/121921/ltcube_696038401_696297601_4FGL_J2203.4+1725_daily_bin1762.fits
.....................!
real 191.77
user 185.57
sys 4.98

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/121921/ft1_filtered_4FGL_J2203.4+1725_daily_bin1762.fits scfile=/scratch/kocevski/121921/ft2_4FGL_J2203.4+1725_daily_bin1762.fits outfile=/scratch/kocevski/121921/cmap_696038401_696297601_4FGL_J2203.4+1725_daily_bin1762.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121921/ft1_filtered_4FGL_J2203.4+1725_daily_bin1762.fits scfile=/scratch/kocevski/121921/ft2_4FGL_J2203.4+1725_daily_bin1762.fits outfile=/scratch/kocevski/121921/cmap_HighResolution_696038401_696297601_4FGL_J2203.4+1725_daily_bin1762.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.389       1.0000          .0000       .10000E+07
     2 'norm      '    2.9329       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.3259       1.0000          .0000       .10000E+07
     4 'Prefactor '    .82179E-03   1.0000          .0000       .10000E+07
     5 'norm      '    2.3200       1.0000          .0000       .10000E+07
     6 'norm      '    1.4268       1.0000          .0000       .10000E+07
     7 'norm      '    11.189       1.0000          .0000       .10000E+07
     8 'Prefactor '    .17072E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .50781E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .25635E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    11.492       1.0000          .0000       .10000E+07
    12 'norm      '    .35273       1.0000          .0000       .10000E+07
    13 'Prefactor '    .62369E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .53782E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.5287       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19201E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1970       1.0000          .0000       .10000E+07
    18 'Prefactor '    .43431E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .14394E-06   1.0000          .0000       .10000E+07
    20 'Normalizat'    .86959       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95930       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=   8795.476     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     1742 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.389        1.4369       -.99382E-09    .29965E-01
   2  norm          2.8968        3.9892       -.67972E-07    .21790E-03
   3  Prefactor     6.2659        7.3532        .12515E-07   -.28617E-05
   4  Prefactor     .11102E-09    38.671        .51188E-06** at limit **
   5  norm          2.3215        2.2456       -.96313E-08    .13197E-03
   6  norm          1.4335        2.8328        .72333E-08    .12931E-03
   7  norm          11.246        1.2777        .54804E-08   -.53397E-02
   8  Prefactor     .16653E-09    9.8652       -.38208E-07** at limit **
   9  Prefactor      .0000        20.251       -.48259E-07** at limit **
  10  norm          .25594E-01    5.2355        .17489E-06** at limit **
  11  Prefactor     11.495        2.5662       -.70682E-08    .67638E-03
  12  norm          .36957        7.3313       -.10823E-06    .69347E-04
  13  Prefactor     .11102E-09    9.6889        .56120E-07** at limit **
  14  Prefactor      .0000        4.9793        .17156E-07** at limit **
  15  Prefactor     2.5287        .33818       -.34415E-07    .35930E-04
  16  Prefactor     .10000E-03    3.3758       -.20646E-06** at limit **
  17  norm          1.1952        1.2613        .18399E-08   -.18807E-03
  18  Prefactor      .0000        5.6256        .27461E-07** at limit **
  19  Prefactor      .0000        2.0756       -.29716E-07** at limit **
  20  Normalizat    .86987        .27270       -.10793E-05   -.29672E-05
  21  Prefactor     .95920        .12882        .82403E-06   -.16823E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.3891
  norm       = 2.89681
  Prefactor  = 6.26592
  Prefactor  = 1.11022e-10
  norm       = 2.32153
  norm       = 1.43352
  norm       = 11.2462
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  norm       = 0.0255941
  Prefactor  = 11.4946
  norm       = 0.36957
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 2.52873
  Prefactor  = 0.0001
  norm       = 1.19523
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.869867
  Prefactor  = 0.959204
 **********
 **   18 **HESSE 
 **********

 FCN=   8795.476     FROM HESSE     STATUS=OK           369 CALLS     2111 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.389        50.999        .13088E-03   -1.5555    
   2  norm          2.8968        4.1378        .59286E-03   -1.5674    
   3  Prefactor     6.2659        7.4078        .39885E-03   -1.5658    
   4  Prefactor     .11102E-09    38.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3215        2.2533        .67317E-03   -1.5677    
   6  norm          1.4335        3.0433        .90453E-03   -1.5684    
   7  norm          11.246        23.834        .29925E-03   -1.5641    
   8  Prefactor     .16653E-09    10.094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        20.603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .25594E-01    .57095        .22803E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.495        15.240        .29527E-03   -1.5640    
  12  norm          .36957        2.7518        .50107E-02   -1.5696    
  13  Prefactor     .11102E-09    9.9191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        4.9948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5287        .33907        .43148E-02   -1.5390    
  16  Prefactor     .10000E-03    3.3894        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1952        1.2882        .10384E-02   -1.5686    
  18  Prefactor      .0000        5.6508        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.0760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .86987        .23449        .87935E-01   -.97527    
  21  Prefactor     .95920        .10687        .45756E-01   -.94102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62153e-08
Minuit parameter uncertainties:
  1  50.9992
  2  4.13778
  3  7.40776
  4  0.000115511
  5  2.25325
  6  3.04325
  7  23.8343
  8  8.69056e-05
  9  1.23538e-05
  10  0.241768
  11  15.2398
  12  2.01691
  13  6.72761e-05
  14  4.84772e-06
  15  0.339066
  16  2.73354e-06
  17  1.28817
  18  1.27529e-06
  19  1.64214e-08
  20  0.234768
  21  0.106893
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  2.559e-02  2.418e-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:  9.592e-01  1.069e-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.699e-01  2.348e-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: 7.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/121921/likelihoodResults_696038401_696297601_4FGL_J2203.4+1725_daily_bin1762.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) = 8795.47589925
delta logL = 3.19279115502e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8795.47589572
delta logL = 3.54588555638e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25662E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    2.2620       1.0000          .0000       5.0000    
     3 'Normalizat'    .86967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95927       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8795.476     FROM MIGRAD    STATUS=FAILED        98 CALLS      259 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26151E-01    916.43        .13594E-03** at limit **
   2  alpha         2.2655        2.6644        .12872       -.43091E-05
   3  Normalizat    .86981        .18512        .38944E-03    .17305E-03
   4  Prefactor     .95921        .95271E-01    .18291E-03    .41091E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8795.476     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      377 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26151E-01    916.43        .34198E-04** at limit **
   2  alpha         2.2655        2.6644        .19801E-02   -.43091E-05
   3  Normalizat    .86981        .18512        .16402E-03    .17305E-03
   4  Prefactor     .95921        .95271E-01    .38718E-04    .41091E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8795.476     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      407 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26155E-01    5.0210        .27188E-04** at limit **
   2  alpha         2.2654        3.6225        .51487E-02   -.84393E-05
   3  Normalizat    .86981        .25750        .15578E-04    .17340E-03
   4  Prefactor     .95921        .12741        .36583E-04    .41233E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0261552
  alpha      = 2.26545
  Normalizat = 0.869811
  Prefactor  = 0.959213
 **********
 **   18 **HESSE 
 **********

 FCN=   8795.476     FROM HESSE     STATUS=OK            23 CALLS      430 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26155E-01    4.9860        .10875E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2654        3.6232        .10297E-02   -.93960E-01
   3  Normalizat    .86981        .25760        .31155E-05   -.97529    
   4  Prefactor     .95921        .12746        .73165E-05   -.94102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30779e-10
Minuit parameter uncertainties:
  1  0.722248
  2  3.98402
  3  0.257967
  4  0.1275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121921': 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) = 8795.47589488
delta logL = 3.62981299986e-05

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  2.616e-02  7.222e-01  0.000e+00  1.000e+06 ( 1.000e-11)
271        alpha:  2.265e+00  3.984e+00  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:  9.592e-01  1.275e-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.698e-01  2.580e-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/121921/cmap_HighResolution_696038401_696297601_4FGL_J2203.4+1725_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-05', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2023-01-25 01:56:55.048668', job_id='121921', GAL2='0.96', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1674640615.05', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.63e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1762' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:56:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 121921: <4FGL_J2203.4+1725_daily_bin1762> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin1762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan 25 01:40:16 2023
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:41:48 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:41:48 2023
Terminated at Wed Jan 25 01:56:55 2023
Results reported at Wed Jan 25 01:56:55 2023

Your job looked like:

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

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

