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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin1773
RA = 180.788, Dec = 60.518
tmin = 698889601, tmax = 699148801
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='789142', job_status='RUN', time_executed='2023-02-27 09:46:00.510480', time_epoch_executed='1677519960.51' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/789142

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/789142/ft1_4FGL_J1203.1+6031_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/789142/ft2_4FGL_J1203.1+6031_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/789142/ft1_4FGL_J1203.1+6031_daily_bin1773.fits outfile=/scratch/kocevski/789142/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin1773.fits ra=180.788 dec=60.518 rad=12.0 tmin=698889601.0 tmax=699148801.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.47
user 2.23
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/789142/ft2_4FGL_J1203.1+6031_daily_bin1773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/789142/ft2_4FGL_J1203.1+6031_daily_bin1773.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/789142/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/789142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1773.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.45
user 0.30
sys 0.14

Number of photons that the gtmktime cut: 361

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/789142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/789142/ft2_4FGL_J1203.1+6031_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/789142/ltcube_698889601_699148801_4FGL_J1203.1+6031_daily_bin1773.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/789142/ft2_4FGL_J1203.1+6031_daily_bin1773.fits
.....................!
real 13.20
user 12.91
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/789142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/789142/ft2_4FGL_J1203.1+6031_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/789142/ltcube_698889601_699148801_4FGL_J1203.1+6031_daily_bin1773.fits outfile=/scratch/kocevski/789142/expmap_698889601_699148801_4FGL_J1203.1+6031_daily_bin1773.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/789142/ltcube_698889601_699148801_4FGL_J1203.1+6031_daily_bin1773.fits
.....................!
real 155.44
user 151.94
sys 3.19

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
Added 227 point sources and 0 extended sources

Setting source of interest to:
4FGL J1203.1+6031 @ 180.788 60.518

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/789142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1773.fits scfile=/scratch/kocevski/789142/ft2_4FGL_J1203.1+6031_daily_bin1773.fits outfile=/scratch/kocevski/789142/cmap_698889601_699148801_4FGL_J1203.1+6031_daily_bin1773.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=180.788 yref=60.518 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 1.29
user 0.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/789142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1773.fits scfile=/scratch/kocevski/789142/ft2_4FGL_J1203.1+6031_daily_bin1773.fits outfile=/scratch/kocevski/789142/cmap_HighResolution_698889601_699148801_4FGL_J1203.1+6031_daily_bin1773.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=180.788 yref=60.518 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.50
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/789142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/789142/ft2_4FGL_J1203.1+6031_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/789142/Model_4FGL_J1203.1+6031_daily_bin1773.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/789142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1773.fits.....................!
real 37.07
user 35.79
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/789142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1773.fits', '/scratch/kocevski/789142/ft2_4FGL_J1203.1+6031_daily_bin1773.fits', expMap='/scratch/kocevski/789142/expmap_698889601_699148801_4FGL_J1203.1+6031_daily_bin1773.fits', expCube='/scratch/kocevski/789142/ltcube_698889601_699148801_4FGL_J1203.1+6031_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/789142/Model_4FGL_J1203.1+6031_daily_bin1773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1203.1+6031'

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  3.279e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
392        Index:  2.121e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/789142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/789142/ft2_4FGL_J1203.1+6031_daily_bin1773.fits
Exposure map: /scratch/kocevski/789142/expmap_698889601_699148801_4FGL_J1203.1+6031_daily_bin1773.fits
Exposure cube: /scratch/kocevski/789142/ltcube_698889601_699148801_4FGL_J1203.1+6031_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/789142/Model_4FGL_J1203.1+6031_daily_bin1773.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) = 4079.78189256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    195.00       1.0000          .0000       .10000E+07
     2 'norm      '    .67942E-02   1.0000          .0000       .10000E+07
     3 'norm      '    42.198       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10122E-03   1.0000          .0000       .10000E+07
     5 'norm      '    1.2138       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14500       1.0000          .0000       .10000E+07
     7 'norm      '    .36925E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    91.362       1.0000          .0000       .10000E+07
     9 'Prefactor '    .23171       1.0000          .0000       .10000E+07
    10 'Prefactor '    .25474E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .13295E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .47265E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .11157E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .50361E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    11.880       1.0000          .0000       .10000E+07
    16 'norm      '    3.1568       1.0000          .0000       .10000E+07
    17 'Prefactor '    .13693E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .90642E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .24430E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    11.652       1.0000          .0000       .10000E+07
    21 'norm      '    4.6244       1.0000          .0000       .10000E+07
    22 'norm      '    .32848       1.0000          .0000       .10000E+07
    23 'Prefactor '    .54100E-04   1.0000          .0000       .10000E+07
    24 'norm      '    2.2931       1.0000          .0000       .10000E+07
    25 'norm      '    2.0528       1.0000          .0000       .10000E+07
    26 'Prefactor '    .24695E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    .12354       1.0000          .0000       .10000E+07
    28 'Prefactor '    .22767E-04   1.0000          .0000       .10000E+07
    29 'Prefactor '    4.2108       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1326       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .62463       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4079.759     FROM MIGRAD    STATUS=CONVERGED    251 CALLS     3123 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     189.07        186.74        .68029E-07   -.64352E-01
   2  norm           .0000        9.5520       -.25536E-07** at limit **
   3  norm          39.406        50.262       -.15021E-06    .16691E-03
   4  Prefactor     .15543E-08    53.037        .10169E-06** at limit **
   5  norm          1.2112        1.9350        .25735E-08   -.73783E-04
   6  Prefactor     .12687E-03    1677.0        .45528E-05** at limit **
   7  norm           .0000        4.9670        .16317E-08** at limit **
   8  Prefactor     92.435        42.075        .26331E-07   -.21603    
   9  Prefactor      .0000        46.091        .96056E-08** at limit **
  10  Prefactor     .48529E-04    7.6610       -.40018E-06** at limit **
  11  Prefactor     .22204E-08    13.690        .15549E-07** at limit **
  12  Prefactor      .0000        6.3491        .18030E-08** at limit **
  13  Prefactor      .0000        .97051       -.16667E-08** at limit **
  14  norm          .62117E-07    14.842        .49961E-06** at limit **
  15  Prefactor     11.883        9.0317       -.10845E-07    .19419E-02
  16  norm          3.2146        6.5270       -.23994E-07   -.15886E-02
  17  Prefactor      .0000        6.7237        .42654E-08** at limit **
  18  Prefactor     .42133E-07    14.722       -.31671E-06** at limit **
  19  norm           .0000        1.6303       -.48543E-10** at limit **
  20  Prefactor     11.614        3.4533        .48239E-07    .11604    
  21  norm          4.6220        3.0822        .38792E-08    .23720E-03
  22  norm          .17876        240.43        .42239E-05** at limit **
  23  Prefactor      .0000        2.5511       -.15230E-08** at limit **
  24  norm          2.2936        1.9614        .21447E-08    .34904E-04
  25  norm          2.0505        2.2008        .21554E-09    .38516E-03
  26  Prefactor     .40523E-08    16.544       -.20688E-06** at limit **
  27  Prefactor     .19174E-06    2.6485        .18477E-06** at limit **
  28  Prefactor      .0000        22.480        .46841E-07** at limit **
  29  Prefactor     4.1902        4.6599        .98639E-08    .56761E-03
  30  Normalizat    1.1354        .22428       -.68472E-06   -.15844E-04
  31  Prefactor     .62331        .25032        .34178E-07   -.11172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 189.07
  norm       = 0
  norm       = 39.406
  Prefactor  = 1.55431e-09
  norm       = 1.2112
  Prefactor  = 0.00012687
  norm       = 0
  Prefactor  = 92.4347
  Prefactor  = 0
  Prefactor  = 4.85293e-05
  Prefactor  = 2.22045e-09
  Prefactor  = 0
  Prefactor  = 0
  norm       = 6.2117e-08
  Prefactor  = 11.8834
  norm       = 3.21457
  Prefactor  = 0
  Prefactor  = 4.2133e-08
  norm       = 0
  Prefactor  = 11.6142
  norm       = 4.62199
  norm       = 0.17876
  Prefactor  = 0
  norm       = 2.29364
  norm       = 2.05051
  Prefactor  = 4.05231e-09
  Prefactor  = 1.91736e-07
  Prefactor  = 0
  Prefactor  = 4.19023
  Normalizat = 1.1354
  Prefactor  = 0.623313
 **********
 **   18 **HESSE 
 **********

 FCN=   4079.759     FROM HESSE     STATUS=OK           692 CALLS     3815 TOTAL
                     EDM=   .20E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     189.07        185.59        .71618E-04   -1.5433    
   2  norm           .0000        9.5890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          39.406        51.235        .15395E-03   -1.5582    
   4  Prefactor     .15543E-08    53.100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2112        1.9698        .10255E-02   -1.5686    
   6  Prefactor     .12687E-03    1701.9        .12850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        4.9722        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     92.435        1093.9        .10463E-03   -1.5516    
   9  Prefactor      .0000        46.223        .11237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .48529E-04    11.695        .12445E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22204E-08    13.706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.3499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .97092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .62117E-07    15.565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.883        9.0448        .29039E-03   -1.5639    
  16  norm          3.2146        6.5649        .57022E-03   -1.5672    
  17  Prefactor      .0000        6.7193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .42133E-07    14.966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        1.6259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.614        17.082        .29322E-03   -1.5640    
  21  norm          4.6220        3.0842        .46780E-03   -1.5665    
  22  norm          .17876        11.328        .98289E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        2.5489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.2936        1.9864        .67754E-03   -1.5678    
  25  norm          2.0505        2.2117        .72117E-03   -1.5679    
  26  Prefactor     .40523E-08    16.604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .19174E-06    7.1054        .10424E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor      .0000        22.472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.1902        4.6702        .49085E-03   -1.5667    
  30  Normalizat    1.1354        .19560        .36805E-01   -.88623    
  31  Prefactor     .62331        .21672        .69059E-01   -1.0661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000204032
Minuit parameter uncertainties:
  1  185.6
  2  1.78471e-05
  3  51.2359
  4  0.000576785
  5  1.96983
  6  0.929618
  7  2.59231e-06
  8  636.118
  9  2.72001e-06
  10  0.0476459
  11  0.000347408
  12  2.49366e-06
  13  3.30183e-07
  14  0.00196664
  15  9.04483
  16  6.56487
  17  3.36234e-06
  18  0.0015878
  19  1.24988e-06
  20  17.0821
  21  3.08421
  22  2.84604
  23  5.78863e-07
  24  1.98645
  25  2.21172
  26  0.000518891
  27  0.00233426
  28  6.88204e-06
  29  4.67022
  30  0.195721
  31  0.217014
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  0.000e+00  3.362e-06  0.000e+00  1.000e+06 ( 1.000e-13)
392        Index:  2.121e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  6.233e-01  2.170e-01  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  1.135e+00  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 180.788 60.518
Photon Flux Upper Limit: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/789142/likelihoodResults_698889601_699148801_4FGL_J1203.1+6031_daily_bin1773.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) = 4079.83125006
delta logL = -0.072510275882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4079.75698905
delta logL = 0.00175073378432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56291E-01   1.0000          .0000       .10000E+07
     2 'Index     '    3.4985       1.0000          .0000       10.000    
     3 'Normalizat'    1.1317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62553       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4079.757     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      266 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57588E-01    1.3231        .19536E-02** at limit **
   2  Index         3.4958        .33082        .50000        .51852E-07
   3  Normalizat    1.1316        .55568E-02    .36835E-01   -.50763E-05
   4  Prefactor     .62564        .64647E-02    .68940E-01    .14468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0575882
  Index      = 3.49584
  Normalizat = 1.13161
  Prefactor  = 0.62564
 **********
 **   18 **HESSE 
 **********

 FCN=   4079.757     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      301 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57588E-01    746.89        .11768E-03   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4958        5.0331        .35519E-02   -.30557    
   3  Normalizat    1.1316        .28027        .20138E-03   -.88743    
   4  Prefactor     .62564        .18038        .30511E-03   -1.0652    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.46076e-06
Minuit parameter uncertainties:
  1  13.1184
  2  59.8552
  3  0.280644
  4  0.180546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/789142': 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): 102
logL (Free Index) = 4079.7569884
delta logL = 0.00175138107852

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  5.759e-02  1.312e+01  0.000e+00  1.000e+06 ( 1.000e-13)
392        Index:  3.496e+00  5.986e+01  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  6.256e-01  1.805e-01  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  1.132e+00  2.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 180.788 60.518

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/789142/cmap_HighResolution_698889601_699148801_4FGL_J1203.1+6031_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-03', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2023-02-27 09:55:33.565311', job_id='789142', GAL2='0.63', fit_tolerance='1e-08', EG2='1.13', EG='1.14', time_epoch_completed='1677520533.57', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.75e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1773' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 09:55:33 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 789142: <4FGL_J1203.1+6031_daily_bin1773> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin1773> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Feb 27 09:40:13 2023
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 09:40:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 09:40:14 2023
Terminated at Mon Feb 27 09:55:35 2023
Results reported at Mon Feb 27 09:55:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin1773 180.788 60.518 698889601 699148801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1203.1+6031 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   573.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            922 sec.

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

