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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin1674
RA = 180.788, Dec = 60.518
tmin = 673228801, tmax = 673488001
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='670077', job_status='RUN', time_executed='2022-05-06 02:50:53.600195', time_epoch_executed='1651830653.6' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670077/ft1_4FGL_J1203.1+6031_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670077/ft2_4FGL_J1203.1+6031_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670077/ft1_4FGL_J1203.1+6031_daily_bin1674.fits outfile=/scratch/kocevski/670077/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin1674.fits ra=180.788 dec=60.518 rad=12.0 tmin=673228801.0 tmax=673488001.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.76
user 2.53
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670077/ft2_4FGL_J1203.1+6031_daily_bin1674.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/670077/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/670077/ft1_filtered_4FGL_J1203.1+6031_daily_bin1674.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.34
sys 0.16

Number of photons that the gtmktime cut: 1054

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670077/ft1_filtered_4FGL_J1203.1+6031_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/670077/ft2_4FGL_J1203.1+6031_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/670077/ltcube_673228801_673488001_4FGL_J1203.1+6031_daily_bin1674.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/670077/ft2_4FGL_J1203.1+6031_daily_bin1674.fits
.....................!
real 15.19
user 14.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670077/ft1_filtered_4FGL_J1203.1+6031_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670077/ft2_4FGL_J1203.1+6031_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/670077/ltcube_673228801_673488001_4FGL_J1203.1+6031_daily_bin1674.fits outfile=/scratch/kocevski/670077/expmap_673228801_673488001_4FGL_J1203.1+6031_daily_bin1674.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/670077/ltcube_673228801_673488001_4FGL_J1203.1+6031_daily_bin1674.fits
.....................!
real 191.72
user 185.96
sys 5.43

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/670077/ft1_filtered_4FGL_J1203.1+6031_daily_bin1674.fits scfile=/scratch/kocevski/670077/ft2_4FGL_J1203.1+6031_daily_bin1674.fits outfile=/scratch/kocevski/670077/cmap_673228801_673488001_4FGL_J1203.1+6031_daily_bin1674.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 0.55
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670077/ft1_filtered_4FGL_J1203.1+6031_daily_bin1674.fits scfile=/scratch/kocevski/670077/ft2_4FGL_J1203.1+6031_daily_bin1674.fits outfile=/scratch/kocevski/670077/cmap_HighResolution_673228801_673488001_4FGL_J1203.1+6031_daily_bin1674.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/670077/ft1_filtered_4FGL_J1203.1+6031_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670077/ft2_4FGL_J1203.1+6031_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/670077/Model_4FGL_J1203.1+6031_daily_bin1674.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/670077/ft1_filtered_4FGL_J1203.1+6031_daily_bin1674.fits.....................!
real 98.00
user 96.50
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/670077/ft1_filtered_4FGL_J1203.1+6031_daily_bin1674.fits', '/scratch/kocevski/670077/ft2_4FGL_J1203.1+6031_daily_bin1674.fits', expMap='/scratch/kocevski/670077/expmap_673228801_673488001_4FGL_J1203.1+6031_daily_bin1674.fits', expCube='/scratch/kocevski/670077/ltcube_673228801_673488001_4FGL_J1203.1+6031_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/670077/Model_4FGL_J1203.1+6031_daily_bin1674.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  1.000e-04  1.000e+04 ( 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/670077/ft1_filtered_4FGL_J1203.1+6031_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/670077/ft2_4FGL_J1203.1+6031_daily_bin1674.fits
Exposure map: /scratch/kocevski/670077/expmap_673228801_673488001_4FGL_J1203.1+6031_daily_bin1674.fits
Exposure cube: /scratch/kocevski/670077/ltcube_673228801_673488001_4FGL_J1203.1+6031_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/670077/Model_4FGL_J1203.1+6031_daily_bin1674.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) = 11455.3186079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.593       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.6016       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3700       1.0000         .10000E-03   10000.    
     6 'Prefactor '    81.914       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7228       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0425       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8396       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6951       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18669       1.0000         .10000E-03   10000.    
    17 'norm      '    .16933       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4838       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.398       1.0000         .10000E-03   10000.    
    20 'norm      '    7.3879       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.391       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3785       1.0000         .10000E-03   10000.    
    24 'norm      '    8.5839       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.2263       1.0000         .10000E-03   10000.    
    27 'norm      '    2.2663       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.4956       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .42148       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.4934       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .80556       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2361       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11455.27     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     3977 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.593        10.786       -.23510E-07   -.10289E-05
   2  norm          .10000E-03    .64199        .26720E-07** at limit **
   3  norm          7.6016        1.9276       -.90837E-09    .44877E-04
   4  Prefactor     .10000E-03    48.084        .44527E-05** at limit **
   5  norm          1.3700        1.4260        .39084E-07    .16361E-03
   6  Prefactor     81.922        72.328       -.18020E-05   -.25442E-04
   7  norm          2.7228        1.6296        .10221E-06    .29589E-03
   8  Prefactor     .10000E-03    2.2744       -.63611E-07** at limit **
   9  Prefactor     .10000E-03    38.158       -.26593E-05** at limit **
  10  Prefactor     .10000E-03    41.602       -.13235E-05** at limit **
  11  Prefactor     .10000E-03    1.3688       -.11559E-07** at limit **
  12  Prefactor     1.0439        8.1916       -.72221E-06    .81849E-04
  13  Prefactor     6.8394        10.408        .13379E-05    .40013E-03
  14  Prefactor     1.6950        1.6866       -.98360E-08   -.42957E-04
  15  norm          .10000E-03    3.4122       -.35174E-07** at limit **
  16  Prefactor     .18512        .85570       -.30235E-06    .25448E-04
  17  norm          .17690        3.5945       -.23622E-05    .13553E-02
  18  Prefactor     5.4781        5.6857       -.73005E-06   -.27621E-03
  19  Prefactor     10.399        11.558       -.39261E-06   -.74873E-04
  20  norm          7.3879        1.9251       -.25364E-07   -.67346E-04
  21  Prefactor     .10000E-03    4.9281       -.52186E-07** at limit **
  22  Prefactor     23.387        28.748        .93525E-06    .29754E-04
  23  norm          1.3785        2.3942       -.75378E-07    .16778E-03
  24  norm          8.5839        5.0867        .58013E-07    .39561E-04
  25  Prefactor     .10000E-03    2.3782       -.96890E-07** at limit **
  26  norm          5.2268        1.9203        .14951E-07    .16845E-03
  27  norm          2.2663        1.4669        .27291E-07    .11988E-03
  28  Prefactor     8.4955        28.802        .21391E-07    .87676E-05
  29  Prefactor     .41086        5.3071       -.14193E-05    .13351E-03
  30  Prefactor     .10000E-03    16.989        .72332E-06** at limit **
  31  Prefactor     4.4936        3.2909        .11382E-05    .21049E-02
  32  Normalizat    .80555        .12171       -.22157E-06    .10437E-03
  33  Prefactor     1.2361        .15073        .19546E-07    .35346E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5934
  norm       = 0.0001
  norm       = 7.60161
  Prefactor  = 0.000100001
  norm       = 1.36997
  Prefactor  = 81.9215
  norm       = 2.72279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.04386
  Prefactor  = 6.83938
  Prefactor  = 1.69505
  norm       = 0.0001
  Prefactor  = 0.185115
  norm       = 0.176902
  Prefactor  = 5.47805
  Prefactor  = 10.3986
  norm       = 7.38791
  Prefactor  = 0.0001
  Prefactor  = 23.3873
  norm       = 1.37848
  norm       = 8.5839
  Prefactor  = 0.0001
  norm       = 5.22677
  norm       = 2.26629
  Prefactor  = 8.49555
  Prefactor  = 0.41086
  Prefactor  = 0.0001
  Prefactor  = 4.49356
  Normalizat = 0.805551
  Prefactor  = 1.23608
 **********
 **   18 **HESSE 
 **********

 FCN=   11455.27     FROM HESSE     STATUS=OK           713 CALLS     4690 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.593        10.760        .12310E-03   -1.5057    
   2  norm          .10000E-03    .65059        .83406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.6016        1.9275        .72377E-04   -1.5156    
   4  Prefactor     .10000E-03    47.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3700        1.4050        .12561E-03   -1.5474    
   6  Prefactor     81.922        72.180        .22189E-03   -1.3895    
   7  norm          2.7228        1.6277        .10064E-03   -1.5378    
   8  Prefactor     .10000E-03    2.2929        .15677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    42.771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.3776        .12221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0439        37.162        .57349E-02   -1.5504    
  13  Prefactor     6.8394        10.527        .76707E-03   -1.5185    
  14  Prefactor     1.6950        1.6980        .13479E-03   -1.5448    
  15  norm          .10000E-03    3.4291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .18512        4.1948        .18899E-02   -1.5622    
  17  norm          .17690        15.080        .22474E-02   -1.5624    
  18  Prefactor     5.4781        6.2779        .17158E-03   -1.5240    
  19  Prefactor     10.399        11.539        .12425E-03   -1.5063    
  20  norm          7.3879        1.9266        .72507E-04   -1.5164    
  21  Prefactor     .10000E-03    4.9410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.387        28.704        .82821E-04   -1.4740    
  23  norm          1.3785        2.3757        .21171E-03   -1.5473    
  24  norm          8.5839        5.0862        .13682E-03   -1.5122    
  25  Prefactor     .10000E-03    2.4127        .16089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.2268        1.9277        .84139E-04   -1.5251    
  27  norm          2.2663        1.4624        .10110E-03   -1.5407    
  28  Prefactor     8.4955        28.800        .13753E-03   -1.5125    
  29  Prefactor     .41086        32.680        .42609E-02   -1.5580    
  30  Prefactor     .10000E-03    16.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     4.4936        3.4657        .84173E-03   -1.5284    
  32  Normalizat    .80555        .14426        .24757E-03   -.99863    
  33  Prefactor     1.2361        .18052        .26264E-03   -.85228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67067e-08
Minuit parameter uncertainties:
  1  10.7623
  2  4.83515e-07
  3  1.92747
  4  0.000398063
  5  1.40504
  6  72.2578
  7  1.62775
  8  1.32582e-06
  9  0.000178567
  10  6.08234e-05
  11  2.98786e-07
  12  12.4644
  13  10.5298
  14  1.69808
  15  1.49369e-06
  16  1.76207
  17  3.26653
  18  6.27862
  19  11.5416
  20  1.92658
  21  7.43738e-07
  22  28.7205
  23  2.37588
  24  5.08642
  25  2.11833e-06
  26  1.9277
  27  1.46246
  28  28.8473
  29  7.33182
  30  3.35755e-05
  31  3.46587
  32  0.144328
  33  0.180608
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  5.478e+00  6.279e+00  1.000e-04  1.000e+04 ( 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:  1.236e+00  1.806e-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:  8.056e-01  1.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 180.788 60.518
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.71e-08 +/- 1.96e-08
Energy Flux (Fixed Index): 8.96e-06 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/670077/likelihoodResults_673228801_673488001_4FGL_J1203.1+6031_daily_bin1674.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) = 11455.0223026
delta logL = 0.251275075723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11455.0013097
delta logL = 0.272267983828

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2773       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6163       1.0000          .0000       10.000    
     3 'Normalizat'    .79214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2458       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=   11455.00     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      305 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2781        44.349        .55919E-02    .10196E-02
   2  Index         2.6162        2.2894        .17517        .19356E-03
   3  Normalizat    .79213        .32008E-01    .43508E-01    .14680E-03
   4  Prefactor     1.2458        .38498E-01    .59183E-01    .96953E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.27814
  Index      = 2.61621
  Normalizat = 0.792128
  Prefactor  = 1.24579
 **********
 **   18 **HESSE 
 **********

 FCN=   11455.00     FROM HESSE     STATUS=OK            33 CALLS      338 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2781        5.6185        .15102E-03   -1.5346    
   2  Index         2.6162        .86784        .61975E-02   -.49696    
   3  Normalizat    .79213        .14068        .24943E-03   -1.0036    
   4  Prefactor     1.2458        .17957        .26172E-03   -.84934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83815e-11
Minuit parameter uncertainties:
  1  5.61945
  2  0.873581
  3  0.140741
  4  0.179661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670077': 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) = 11455.0013097
delta logL = 0.272268006491

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  3.278e+00  5.619e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.616e+00  8.736e-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:  1.246e+00  1.797e-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:  7.921e-01  1.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 180.788 60.518
Photon Index (Free Index): 2.62 +/- 0.87
Photon Flux (Free Index): 2.78e-08 +/- 2.48e-08
Energy Flux (Free Index): 7.19e-06 +/- 6.61e-06

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/670077/cmap_HighResolution_673228801_673488001_4FGL_J1203.1+6031_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', comment='SUCCESS', photon_flux='1.71e-08', energy_flux2='7.19e-06', photon_flux_error='1.96e-08', dlogl='2.72e-01', energy_flux='8.96e-06', photon_flux2='2.78e-08', job_status='DONE', time_completed='2022-05-06 03:19:14.434979', photon_index_error2='0.87', photon_index2='2.62', ts='1.60', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='5.39e-08', energy_flux_error2='6.61e-06', EG='0.81', time_epoch_completed='1651832354.44', return_code='0', job_id='670077', GAL2='1.25', EG2='0.79', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='2.48e-08', ts2='2.15', photon_index='2.12' WHERE bin_id='1674' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:19:14 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 670133: <4FGL_J1203.1+6031_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:07:20 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:49:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:49:37 2022
Terminated at Fri May  6 03:18:26 2022
Results reported at Fri May  6 03:18:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin1674 180.788 60.518 673228801 673488001 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 :                                   1702.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             319.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1729 sec.
    Turnaround time :                            11466 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0039>
Subject: Job 670077: <4FGL_J1203.1+6031_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:07:17 2022
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:49:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:49:19 2022
Terminated at Fri May  6 03:19:14 2022
Results reported at Fri May  6 03:19:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin1674 180.788 60.518 673228801 673488001 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 :                                   1700.60 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             342.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1795 sec.
    Turnaround time :                            11517 sec.

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

