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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin1755
RA = 180.788, Dec = 60.518
tmin = 694224001, tmax = 694483201
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='822142', job_status='RUN', time_executed='2023-01-04 00:56:56.043492', time_epoch_executed='1672822616.04' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822142

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822142/ft1_4FGL_J1203.1+6031_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822142/ft2_4FGL_J1203.1+6031_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822142/ft1_4FGL_J1203.1+6031_daily_bin1755.fits outfile=/scratch/kocevski/822142/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin1755.fits ra=180.788 dec=60.518 rad=12.0 tmin=694224001.0 tmax=694483201.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.07
user 2.81
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/822142/ft2_4FGL_J1203.1+6031_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/822142/ltcube_694224001_694483201_4FGL_J1203.1+6031_daily_bin1755.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/822142/ft2_4FGL_J1203.1+6031_daily_bin1755.fits
.....................!
real 17.26
user 16.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/822142/ft2_4FGL_J1203.1+6031_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/822142/ltcube_694224001_694483201_4FGL_J1203.1+6031_daily_bin1755.fits outfile=/scratch/kocevski/822142/expmap_694224001_694483201_4FGL_J1203.1+6031_daily_bin1755.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/822142/ltcube_694224001_694483201_4FGL_J1203.1+6031_daily_bin1755.fits
.....................!
real 193.29
user 186.80
sys 5.36

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/822142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1755.fits scfile=/scratch/kocevski/822142/ft2_4FGL_J1203.1+6031_daily_bin1755.fits outfile=/scratch/kocevski/822142/cmap_694224001_694483201_4FGL_J1203.1+6031_daily_bin1755.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1755.fits scfile=/scratch/kocevski/822142/ft2_4FGL_J1203.1+6031_daily_bin1755.fits outfile=/scratch/kocevski/822142/cmap_HighResolution_694224001_694483201_4FGL_J1203.1+6031_daily_bin1755.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.38
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1755.fits', '/scratch/kocevski/822142/ft2_4FGL_J1203.1+6031_daily_bin1755.fits', expMap='/scratch/kocevski/822142/expmap_694224001_694483201_4FGL_J1203.1+6031_daily_bin1755.fits', expCube='/scratch/kocevski/822142/ltcube_694224001_694483201_4FGL_J1203.1+6031_daily_bin1755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822142/Model_4FGL_J1203.1+6031_daily_bin1755.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/822142/ft1_filtered_4FGL_J1203.1+6031_daily_bin1755.fits
Spacecraft file(s): /scratch/kocevski/822142/ft2_4FGL_J1203.1+6031_daily_bin1755.fits
Exposure map: /scratch/kocevski/822142/expmap_694224001_694483201_4FGL_J1203.1+6031_daily_bin1755.fits
Exposure cube: /scratch/kocevski/822142/ltcube_694224001_694483201_4FGL_J1203.1+6031_daily_bin1755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822142/Model_4FGL_J1203.1+6031_daily_bin1755.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) = 6546.76264067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.490       1.0000          .0000       .10000E+07
     2 'norm      '    1.3981       1.0000          .0000       .10000E+07
     3 'norm      '    .22505E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    17.035       1.0000          .0000       .10000E+07
     5 'norm      '    1.7420       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.3190       1.0000          .0000       .10000E+07
     7 'norm      '    .12364E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    124.58       1.0000          .0000       .10000E+07
     9 'Prefactor '    26.767       1.0000          .0000       .10000E+07
    10 'Prefactor '    22.620       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19611       1.0000          .0000       .10000E+07
    12 'Prefactor '    14.714       1.0000          .0000       .10000E+07
    13 'Prefactor '    .30360E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .39973E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .14343E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .77152E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    8.5387       1.0000          .0000       .10000E+07
    18 'Prefactor '    .15191E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .21837E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .17192E-02   1.0000          .0000       .10000E+07
    21 'norm      '    1.4191       1.0000          .0000       .10000E+07
    22 'norm      '    .78431E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .22061E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .19923E-06   1.0000          .0000       .10000E+07
    25 'norm      '    1.3061       1.0000          .0000       .10000E+07
    26 'Prefactor '    .80303E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    .10206E-02   1.0000          .0000       .10000E+07
    28 'Prefactor '    17.387       1.0000          .0000       .10000E+07
    29 'Prefactor '    .97622E-03   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.2573       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .61805       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=   6546.753     FROM MIGRAD    STATUS=CONVERGED    281 CALLS     3058 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     99.517        90.963        .15695E-05    .24301    
   2  norm          1.0966        18.298       -.12577E-06   -.16910E-02
   3  norm          .80991E-07    69.260        .46083E-06** at limit **
   4  Prefactor     19.017        134.38        .61249E-05   -.70872E-01
   5  norm          1.7416        2.2783        .37051E-07   -.91186E-03
   6  Prefactor     .98428E-02    1103.0        .48839E-06** at limit **
   7  norm           .0000        5.7939        .13620E-07** at limit **
   8  Prefactor     126.40        34.390       -.13740E-06   -.34225E-01
   9  Prefactor     26.665        31.847       -.77895E-06   -.18633E-01
  10  Prefactor     22.634        10.930        .16858E-06   -.55174E-03
  11  Prefactor     .22204E-09    40.050        .16567E-05** at limit **
  12  Prefactor     14.691        12.792       -.74690E-07   -.34366E-03
  13  Prefactor      .0000        2.4486        .23939E-07** at limit **
  14  norm           .0000        4.1317        .22254E-06** at limit **
  15  Prefactor      .0000        2.3530        .99286E-07** at limit **
  16  norm           .0000        2.7085       -.35850E-06** at limit **
  17  Prefactor     8.6518        5.7638        .35154E-07   -.62136E-03
  18  Prefactor     .38858E-09    10.556       -.41775E-06** at limit **
  19  norm           .0000        1.4083        .90540E-07** at limit **
  20  Prefactor     .55511E-10    10.579        .61472E-07** at limit **
  21  norm          1.4202        1.8203        .28883E-07   -.18825E-03
  22  norm          .29421E-08    14.051       -.55559E-06** at limit **
  23  Prefactor      .0000        3.5576       -.10329E-06** at limit **
  24  norm           .0000        .89418        .16073E-08** at limit **
  25  norm          1.3124        2.0134       -.14091E-06    .33904E-03
  26  Prefactor     .11102E-09    22.814       -.18141E-05** at limit **
  27  Prefactor     .16653E-09    15.890       -.11604E-05** at limit **
  28  Prefactor     17.395        26.089       -.61209E-06   -.23171E-01
  29  Prefactor     .21649E-08    14.200       -.52479E-07** at limit **
  30  Normalizat    1.2558        .18419        .29212E-05   -.13828E-03
  31  Prefactor     .61890        .21620       -.13548E-05   -.78693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 99.5166
  norm       = 1.09656
  norm       = 8.09908e-08
  Prefactor  = 19.0172
  norm       = 1.74156
  Prefactor  = 0.00984282
  norm       = 0
  Prefactor  = 126.405
  Prefactor  = 26.6647
  Prefactor  = 22.6341
  Prefactor  = 2.22045e-10
  Prefactor  = 14.6911
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 8.65176
  Prefactor  = 3.88578e-10
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 1.42019
  norm       = 2.94209e-09
  Prefactor  = 0
  norm       = 0
  norm       = 1.31241
  Prefactor  = 1.11022e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 17.395
  Prefactor  = 2.16493e-09
  Normalizat = 1.25579
  Prefactor  = 0.618901
 **********
 **   18 **HESSE 
 **********

 FCN=   6546.753     FROM HESSE     STATUS=OK           688 CALLS     3746 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     99.517        154.93        .10343E-03   -1.5508    
   2  norm          1.0966        30.245        .91764E-03   -1.5687    
   3  norm          .80991E-07    6.3637        .67309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.017        162.37        .24240E-03   -1.5621    
   5  norm          1.7416        2.3008        .79450E-03   -1.5682    
   6  Prefactor     .98428E-02    1681.6        .48448E-03   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        5.7334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     126.40        151.25        .89600E-04   -1.5483    
   9  Prefactor     26.665        32.095        .19332E-03   -1.5605    
  10  Prefactor     22.634        10.966        .21031E-03   -1.5613    
  11  Prefactor     .22204E-09    38.812        .11845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.691        12.795        .26085E-03   -1.5631    
  13  Prefactor      .0000        2.4393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        4.1500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        2.3481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        2.6978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.6518        5.7836        .34281E-03   -1.5649    
  18  Prefactor     .38858E-09    10.561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        1.3982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    10.556        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4202        1.8416        .90797E-03   -1.5684    
  22  norm          .29421E-08    13.888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        3.5502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        .89151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3124        2.0334        .96530E-03   -1.5685    
  26  Prefactor     .11102E-09    22.842        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .16653E-09    15.712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     17.395        26.153        .23992E-03   -1.5625    
  29  Prefactor     .21649E-08    2.6536        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2558        .16019        .33616E-01   -.84896    
  31  Prefactor     .61890        .18790        .72636E-01   -1.0680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81457e-05
Minuit parameter uncertainties:
  1  154.935
  2  11.5179
  3  0.00143575
  4  111.14
  5  2.30079
  6  8.13911
  7  8.32942e-06
  8  151.259
  9  32.0955
  10  10.9658
  11  0.000182876
  12  12.7953
  13  4.73798e-06
  14  3.42673e-06
  15  7.20356e-07
  16  1.3165e-05
  17  5.7836
  18  0.000131024
  19  1.94956e-06
  20  4.83586e-05
  21  1.84158
  22  0.000403975
  23  2.42968e-06
  24  3.2629e-07
  25  2.03341
  26  0.000109204
  27  9.84318e-05
  28  26.1529
  29  0.000152524
  30  0.160257
  31  0.18809
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  8.652e+00  5.784e+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

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  6.189e-01  1.881e-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.256e+00  1.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.97
Ra Dec: 180.788 60.518
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 9.46e-06

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) = 6546.54143125
delta logL = 0.211948482284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6546.5143405
delta logL = 0.239039229797

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.741       1.0000          .0000       .10000E+07
     2 'Index     '    1.7935       1.0000          .0000       10.000    
     3 'Normalizat'    1.2651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61329       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=   6546.514     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.746        221.32        .30546E-03    .60070E-03
   2  Index         1.7931        5.7637        .21170        .12504E-03
   3  Normalizat    1.2651        .92961E-01    .33462E-01   -.17187E-03
   4  Prefactor     .61324        .81129E-01    .72952E-01   -.71816E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7456
  Index      = 1.79314
  Normalizat = 1.26505
  Prefactor  = 0.613237
 **********
 **   18 **HESSE 
 **********

 FCN=   6546.514     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.746        7.6436        .12218E-04   -1.5642    
   2  Index         1.7931        .46587        .72425E-02   -.69629    
   3  Normalizat    1.2651        .18069        .19626E-03   -.84616    
   4  Prefactor     .61324        .21450        .32294E-03   -1.0703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84885e-10
Minuit parameter uncertainties:
  1  7.64359
  2  0.467025
  3  0.180783
  4  0.214788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822142': 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) = 6546.51433983
delta logL = 0.239039899287

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.075e+01  7.644e+00  0.000e+00  1.000e+06 ( 1.000e-13)
392        Index:  1.793e+00  4.670e-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.132e-01  2.148e-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.265e+00  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.45
Ra Dec: 180.788 60.518
Photon Index (Free Index): 1.79 +/- 0.47
Photon Flux (Free Index): 1.91e-08 +/- 1.73e-08
Energy Flux (Free Index): 2.33e-05 +/- 2.52e-05

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/822142/cmap_HighResolution_694224001_694483201_4FGL_J1203.1+6031_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='2.33e-05', photon_flux_error='1.80e-08', dlogl='2.39e-01', energy_flux='1.41e-05', photon_flux2='1.91e-08', job_status='DONE', time_completed='2023-01-04 01:10:55.594648', photon_index_error2='0.47', photon_index2='1.79', ts='6.97', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='2.52e-05', EG='1.26', time_epoch_completed='1672823455.59', return_code='0', job_id='822142', GAL2='0.61', EG2='1.27', return_code2='0', energy_flux_error='9.46e-06', photon_flux_error2='1.73e-08', ts2='7.45', photon_index='2.12' WHERE bin_id='1755' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:10:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 822142: <4FGL_J1203.1+6031_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin1755> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan  4 00:55:16 2023
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:55:45 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:55:45 2023
Terminated at Wed Jan  4 01:10:56 2023
Results reported at Wed Jan  4 01:10:56 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin1755 180.788 60.518 694224001 694483201 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 :                                   839.29 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             311.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            940 sec.

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

