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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin1774
RA = 180.788, Dec = 60.518
tmin = 699148801, tmax = 699408001
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='681384', job_status='RUN', time_executed='2023-03-02 00:43:25.772602', time_epoch_executed='1677746605.77' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681384/ft1_4FGL_J1203.1+6031_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681384/ft2_4FGL_J1203.1+6031_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681384/ft1_4FGL_J1203.1+6031_daily_bin1774.fits outfile=/scratch/kocevski/681384/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin1774.fits ra=180.788 dec=60.518 rad=12.0 tmin=699148801.0 tmax=699408001.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.19
user 2.00
sys 0.18

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

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

Number of photons that the gtmktime cut: 366

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681384/ft1_filtered_4FGL_J1203.1+6031_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/681384/ft2_4FGL_J1203.1+6031_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/681384/ltcube_699148801_699408001_4FGL_J1203.1+6031_daily_bin1774.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/681384/ft2_4FGL_J1203.1+6031_daily_bin1774.fits
.....................!
real 9.90
user 9.60
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681384/ft1_filtered_4FGL_J1203.1+6031_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681384/ft2_4FGL_J1203.1+6031_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/681384/ltcube_699148801_699408001_4FGL_J1203.1+6031_daily_bin1774.fits outfile=/scratch/kocevski/681384/expmap_699148801_699408001_4FGL_J1203.1+6031_daily_bin1774.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/681384/ltcube_699148801_699408001_4FGL_J1203.1+6031_daily_bin1774.fits
.....................!
real 144.56
user 141.04
sys 3.22

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/681384/ft1_filtered_4FGL_J1203.1+6031_daily_bin1774.fits scfile=/scratch/kocevski/681384/ft2_4FGL_J1203.1+6031_daily_bin1774.fits outfile=/scratch/kocevski/681384/cmap_699148801_699408001_4FGL_J1203.1+6031_daily_bin1774.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.46
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681384/ft1_filtered_4FGL_J1203.1+6031_daily_bin1774.fits scfile=/scratch/kocevski/681384/ft2_4FGL_J1203.1+6031_daily_bin1774.fits outfile=/scratch/kocevski/681384/cmap_HighResolution_699148801_699408001_4FGL_J1203.1+6031_daily_bin1774.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.47
user 0.32
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.512       1.0000          .0000       .10000E+07
     2 'norm      '    9.5835       1.0000          .0000       .10000E+07
     3 'norm      '    .11622E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    41.410       1.0000          .0000       .10000E+07
     5 'norm      '    .60127E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .51947       1.0000          .0000       .10000E+07
     7 'norm      '    5.6918       1.0000          .0000       .10000E+07
     8 'Prefactor '    102.10       1.0000          .0000       .10000E+07
     9 'Prefactor '    .38618       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.209       1.0000          .0000       .10000E+07
    11 'Prefactor '    123.02       1.0000          .0000       .10000E+07
    12 'Prefactor '    .85882E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .97209E-03   1.0000          .0000       .10000E+07
    14 'norm      '    12.344       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39683E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .53835E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .60697E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    13.571       1.0000          .0000       .10000E+07
    19 'norm      '    11.217       1.0000          .0000       .10000E+07
    20 'Prefactor '    .30141E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .10842E-02   1.0000          .0000       .10000E+07
    22 'norm      '    .56096E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    4.7303       1.0000          .0000       .10000E+07
    24 'norm      '    1.4954       1.0000          .0000       .10000E+07
    25 'norm      '    1.8759       1.0000          .0000       .10000E+07
    26 'Prefactor '    35.265       1.0000          .0000       .10000E+07
    27 'Prefactor '    .18099E-02   1.0000          .0000       .10000E+07
    28 'Prefactor '    .33551E-01   1.0000          .0000       .10000E+07
    29 'Prefactor '    .35902E-03   1.0000          .0000       .10000E+07
    30 'Normalizat'    .99909       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .91736       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=   4123.820     FROM MIGRAD    STATUS=CONVERGED    313 CALLS     3048 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.295        147.34       -.40916E-05   -.12966E-02
   2  norm          7.4104        16.022        .17752E-05   -.25702E-02
   3  norm           .0000        3.7591       -.18109E-06** at limit **
   4  Prefactor     52.311        138.14       -.18052E-05    .13567E-02
   5  norm           .0000        1.5570       -.31269E-07** at limit **
   6  Prefactor     .65706E-04    159.35       -.16508E-05** at limit **
   7  norm          5.5613        5.7360        .63256E-07   -.56940E-03
   8  Prefactor     117.11        217.90        .28521E-05   -.73764E-03
   9  Prefactor     .22204E-08    80.124        .48987E-05** at limit **
  10  Prefactor     15.862        19.263        .12869E-06    .10370E-03
  11  Prefactor     125.00        63.193        .28458E-06   -.32943E-02
  12  Prefactor     .55511E-10    13.613        .79166E-06** at limit **
  13  Prefactor      .0000        23.476       -.79490E-07** at limit **
  14  norm          12.178        18.236       -.21010E-06    .19841E-03
  15  Prefactor      .0000        8.4112       -.38610E-06** at limit **
  16  norm          .55511E-10    3.3144       -.82054E-06** at limit **
  17  Prefactor      .0000        5.8654       -.56208E-06** at limit **
  18  Prefactor     13.708        23.145        .63005E-06    .51105E-04
  19  norm          11.284        5.3657       -.68861E-07    .88438E-05
  20  Prefactor     .94647E-07    136.29       -.63761E-06** at limit **
  21  norm          .55511E-10    3.4807        .53714E-06** at limit **
  22  norm          .27756E-09    42.240       -.28069E-05** at limit **
  23  Prefactor     4.7491        6.2730        .35634E-07    .32362E-03
  24  norm          1.4995        1.8360       -.92122E-07    .19273E-02
  25  norm          1.8838        2.1036        .13469E-07   -.66577E-03
  26  Prefactor     39.025        46.459        .53556E-06    .30750E-01
  27  Prefactor     .55511E-10    4.3442       -.72356E-06** at limit **
  28  Prefactor     .11102E-09    29.351       -.88515E-06** at limit **
  29  Prefactor      .0000        2.6117        .66856E-07** at limit **
  30  Normalizat    .98912        .25738        .44850E-05   -.72290E-04
  31  Prefactor     .92194        .29740        .13156E-05   -.62727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.2953
  norm       = 7.41035
  norm       = 0
  Prefactor  = 52.3113
  norm       = 0
  Prefactor  = 6.57065e-05
  norm       = 5.56134
  Prefactor  = 117.111
  Prefactor  = 2.22045e-09
  Prefactor  = 15.8618
  Prefactor  = 125.004
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 12.1784
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 13.7084
  norm       = 11.2838
  Prefactor  = 9.46465e-08
  norm       = 5.55112e-11
  norm       = 2.77556e-10
  Prefactor  = 4.74908
  norm       = 1.49953
  norm       = 1.88381
  Prefactor  = 39.0253
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Normalizat = 0.989123
  Prefactor  = 0.921938
 **********
 **   18 **HESSE 
 **********

 FCN=   4123.820     FROM HESSE     STATUS=OK           686 CALLS     3734 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.295        144.23        .25404E-03   -1.5584    
   2  norm          7.4104        15.808        .32347E-03   -1.5654    
   3  norm           .0000        3.7446        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     52.311        138.63        .15541E-03   -1.5563    
   5  norm           .0000        1.5527        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .65706E-04    442.44        .76774E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.5613        5.7453        .42080E-03   -1.5661    
   8  Prefactor     117.11        216.55        .98970E-04   -1.5492    
   9  Prefactor     .22204E-08    79.917        .91106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.862        19.302        .24850E-03   -1.5628    
  11  Prefactor     125.00        63.140        .90168E-04   -1.5484    
  12  Prefactor     .55511E-10    13.626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        4.1681        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.178        18.235        .28486E-03   -1.5638    
  15  Prefactor      .0000        8.4522        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .55511E-10    3.3216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        5.8718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.708        23.169        .27164E-03   -1.5634    
  19  norm          11.284        5.3544        .29888E-03   -1.5641    
  20  Prefactor     .94647E-07    135.07        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .55511E-10    3.4480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .27756E-09    41.990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7491        6.2925        .46241E-03   -1.5664    
  24  norm          1.4995        1.8567        .87584E-03   -1.5683    
  25  norm          1.8838        2.1132        .75996E-03   -1.5681    
  26  Prefactor     39.025        57.606        .16842E-03   -1.5583    
  27  Prefactor     .55511E-10    4.3535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .11102E-09    29.263        .16269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor      .0000        2.6323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .98912        .21189        .46156E-01   -.93396    
  31  Prefactor     .92194        .24559        .65308E-01   -.95379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32842e-07
Minuit parameter uncertainties:
  1  144.24
  2  15.8081
  3  4.33231e-06
  4  138.64
  5  6.5983e-06
  6  0.341031
  7  5.74531
  8  216.566
  9  0.000839563
  10  19.3024
  11  63.1403
  12  5.11861e-05
  13  1.35257e-06
  14  18.2352
  15  8.67554e-06
  16  2.48422e-05
  17  2.27925e-05
  18  23.1691
  19  5.35445
  20  0.00714995
  21  2.1034e-05
  22  0.000205906
  23  6.29253
  24  1.85671
  25  2.11323
  26  57.6064
  27  3.33141e-05
  28  0.000105171
  29  7.54033e-06
  30  0.212071
  31  0.245882
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  0.000e+00  2.279e-05  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:  9.219e-01  2.459e-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:  9.891e-01  2.121e-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.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/681384/likelihoodResults_699148801_699408001_4FGL_J1203.1+6031_daily_bin1774.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) = 4123.82990836
delta logL = -0.009763441627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4123.82014495
delta logL = -3.40833139489e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71665E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.1356       1.0000          .0000       10.000    
     3 'Normalizat'    .98911       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92193       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4123.820     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      223 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.2467        .42118E-03** at limit **
   2  Index         1.0443        .75846        .58007E-05     .0000    
   3  Normalizat    .98912        1.3195       -.60828E-05   -.93289E-04
   4  Prefactor     .92194        1.2657        .12147E-04   -.11386E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.04428
  Normalizat = 0.989124
  Prefactor  = 0.921937
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4123.820     FROM HESSE     STATUS=FAILED         9 CALLS      232 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.2467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .54747E-01    1.1131        .58007E-05   -.91268    
   3  Normalizat    .98912        1.3195       -.60828E-05   -.93396    
   4  Prefactor     .92194        1.2657        .12147E-04   -.95379    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.22825e-11
Minuit parameter uncertainties:
  1  3.67667e-06
  2  0.766462
  3  1.36724
  4  1.31006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681384': 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): 101
logL (Free Index) = 4123.82014492
delta logL = -1.27329258248e-11

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  0.000e+00  3.677e-06  0.000e+00  1.000e+06 ( 1.000e-13)
392        Index:  1.044e+00  7.665e-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:  9.219e-01  1.310e+00  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:  9.891e-01  1.367e+00  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/681384/cmap_HighResolution_699148801_699408001_4FGL_J1203.1+6031_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2023-03-02 00:52:10.736010', job_id='681384', GAL2='0.92', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1677747130.74', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-1.27e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1774' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:52:10 PST 2023


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

Job <4FGL_J1203.1+6031_daily_bin1774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar  2 00:40:18 2023
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:40:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:40:19 2023
Terminated at Thu Mar  2 00:52:11 2023
Results reported at Thu Mar  2 00:52:11 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin1774 180.788 60.518 699148801 699408001 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 :                                   526.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            713 sec.

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

