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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1746
RA = 180.833, Dec = 11.3231
tmin = 691891201, tmax = 692150401
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='722701', job_status='RUN', time_executed='2022-12-08 00:45:35.245563', time_epoch_executed='1670489135.25' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722701

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722701/ft1_4FGL_J1203.3+1119_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722701/ft2_4FGL_J1203.3+1119_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722701/ft1_4FGL_J1203.3+1119_daily_bin1746.fits outfile=/scratch/kocevski/722701/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1746.fits ra=180.833 dec=11.3231 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.70
user 4.48
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/722701/ft2_4FGL_J1203.3+1119_daily_bin1746.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/722701/ft2_4FGL_J1203.3+1119_daily_bin1746.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/722701/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/722701/ft1_filtered_4FGL_J1203.3+1119_daily_bin1746.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.52
user 0.35
sys 0.13

Number of photons that the gtmktime cut: 625

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722701/ft1_filtered_4FGL_J1203.3+1119_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/722701/ft2_4FGL_J1203.3+1119_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/722701/ltcube_691891201_692150401_4FGL_J1203.3+1119_daily_bin1746.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/722701/ft2_4FGL_J1203.3+1119_daily_bin1746.fits
.....................!
real 11.89
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722701/ft1_filtered_4FGL_J1203.3+1119_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/722701/ft2_4FGL_J1203.3+1119_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/722701/ltcube_691891201_692150401_4FGL_J1203.3+1119_daily_bin1746.fits outfile=/scratch/kocevski/722701/expmap_691891201_692150401_4FGL_J1203.3+1119_daily_bin1746.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/722701/ltcube_691891201_692150401_4FGL_J1203.3+1119_daily_bin1746.fits
.....................!
real 190.41
user 184.82
sys 5.24

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

Setting source of interest to:
4FGL J1203.3+1119 @ 180.833 11.3231

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/722701/ft1_filtered_4FGL_J1203.3+1119_daily_bin1746.fits scfile=/scratch/kocevski/722701/ft2_4FGL_J1203.3+1119_daily_bin1746.fits outfile=/scratch/kocevski/722701/cmap_691891201_692150401_4FGL_J1203.3+1119_daily_bin1746.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.833 yref=11.3231 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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722701/ft1_filtered_4FGL_J1203.3+1119_daily_bin1746.fits scfile=/scratch/kocevski/722701/ft2_4FGL_J1203.3+1119_daily_bin1746.fits outfile=/scratch/kocevski/722701/cmap_HighResolution_691891201_692150401_4FGL_J1203.3+1119_daily_bin1746.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.833 yref=11.3231 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722701/ft1_filtered_4FGL_J1203.3+1119_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/722701/ft2_4FGL_J1203.3+1119_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722701/Model_4FGL_J1203.3+1119_daily_bin1746.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/722701/ft1_filtered_4FGL_J1203.3+1119_daily_bin1746.fits.....................!
real 65.52
user 64.13
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/722701/ft1_filtered_4FGL_J1203.3+1119_daily_bin1746.fits', '/scratch/kocevski/722701/ft2_4FGL_J1203.3+1119_daily_bin1746.fits', expMap='/scratch/kocevski/722701/expmap_691891201_692150401_4FGL_J1203.3+1119_daily_bin1746.fits', expCube='/scratch/kocevski/722701/ltcube_691891201_692150401_4FGL_J1203.3+1119_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/722701/Model_4FGL_J1203.3+1119_daily_bin1746.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1203.3+1119'

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  8.766e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/722701/ft1_filtered_4FGL_J1203.3+1119_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/722701/ft2_4FGL_J1203.3+1119_daily_bin1746.fits
Exposure map: /scratch/kocevski/722701/expmap_691891201_692150401_4FGL_J1203.3+1119_daily_bin1746.fits
Exposure cube: /scratch/kocevski/722701/ltcube_691891201_692150401_4FGL_J1203.3+1119_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/722701/Model_4FGL_J1203.3+1119_daily_bin1746.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) = 7099.39300864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4275       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.9111       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14752E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.8295       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.2379       1.0000          .0000       .10000E+07
     6 'Prefactor '    .30287E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .21955E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12103E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .45618E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .78885       1.0000          .0000       .10000E+07
    11 'Prefactor '    .23359       1.0000          .0000       .10000E+07
    12 'Prefactor '    .32929E-02   1.0000          .0000       .10000E+07
    13 'norm      '    5.1683       1.0000          .0000       .10000E+07
    14 'Prefactor '    .68339E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .20917       1.0000          .0000       .10000E+07
    16 'norm      '    40.387       1.0000          .0000       .10000E+07
    17 'norm      '    .14617       1.0000          .0000       .10000E+07
    18 'Prefactor '    20.610       1.0000          .0000       .10000E+07
    19 'norm      '    .44409E-09   1.0000          .0000       .10000E+07
    20 'Normalizat'    .67352       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3050       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7099.364     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1700 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3341        10.394       -.64319E-07    .10609E-03
   2  Prefactor     3.9394        4.3644       -.77090E-07   -.90613E-04
   3  Prefactor     .20928E-07    86.510       -.30624E-06** at limit **
   4  Prefactor     1.8124        5.1492       -.19373E-06    .28181E-03
   5  Prefactor     2.2373        5.5583        .96897E-07    .51497E-04
   6  Prefactor     .11102E-09    15.129        .49259E-06** at limit **
   7  Prefactor      .0000        5.1107        .16222E-06** at limit **
   8  Prefactor     .64393E-08    6.6280        .22887E-06** at limit **
   9  Prefactor     .59397E-08    17.358        .31423E-06** at limit **
  10  Prefactor     .78562        1.5244        .18083E-07    .33096E-03
  11  Prefactor     .24175        3.8523       -.10288E-06** at limit **
  12  Prefactor     .25036E-07    13.212        .19013E-06** at limit **
  13  norm          5.1612        2.9833       -.23028E-07   -.69881E-03
  14  Prefactor      .0000        33.357       -.70502E-06** at limit **
  15  norm          .20912        .19709        .62322E-08** at limit **
  16  norm          40.606        3.7308       -.61883E-08    .67757E-01
  17  norm          .14570        .41645        .19856E-07** at limit **
  18  Prefactor     20.621        11.286       -.97285E-08   -.93473E-03
  19  norm           .0000        .49331       -.52784E-08** at limit **
  20  Normalizat    .67379        .19076        .13384E-05    .11752E-04
  21  Prefactor     1.3049        .18034        .47293E-06    .17953E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.33415
  Prefactor  = 3.93945
  Prefactor  = 2.09277e-08
  Prefactor  = 1.81239
  Prefactor  = 2.2373
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 6.43929e-09
  Prefactor  = 5.93969e-09
  Prefactor  = 0.785623
  Prefactor  = 0.24175
  Prefactor  = 2.50355e-08
  norm       = 5.16122
  Prefactor  = 0
  norm       = 0.209117
  norm       = 40.606
  norm       = 0.145702
  Prefactor  = 20.6211
  norm       = 0
  Normalizat = 0.67379
  Prefactor  = 1.30489
 **********
 **   18 **HESSE 
 **********

 FCN=   7099.364     FROM HESSE     STATUS=OK           369 CALLS     2069 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3341        10.365        .43109E-03   -1.5662    
   2  Prefactor     3.9394        4.3565        .50991E-03   -1.5668    
   3  Prefactor     .20928E-07    86.575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8124        5.2087        .77135E-03   -1.5681    
   5  Prefactor     2.2373        5.5350        .68680E-03   -1.5678    
   6  Prefactor     .11102E-09    15.045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        4.9992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .64393E-08    18.400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .59397E-08    19.168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .78562        1.5693        .53769E-03   -1.5690    
  11  Prefactor     .24175        1.7863        .33838E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .25036E-07    18.088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.1612        3.2390        .44197E-03   -1.5663    
  14  Prefactor      .0000        32.748        .14873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .20912        .21136        .79333E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          40.606        38.701        .15737E-03   -1.5581    
  17  norm          .14570        .40811        .12825E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.621        11.284        .22034E-03   -1.5617    
  19  norm           .0000        .48645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .67379        .16477        .66913E-01   -1.0494    
  21  Prefactor     1.3049        .15359        .48046E-01   -.83162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67691e-07
Minuit parameter uncertainties:
  1  10.3648
  2  4.35654
  3  0.002692
  4  5.2087
  5  5.53501
  6  8.96754e-05
  7  7.66444e-07
  8  0.000687648
  9  0.000674837
  10  1.56925
  11  1.3143
  12  0.00134582
  13  3.23904
  14  4.28644e-05
  15  0.211358
  16  38.7013
  17  0.408109
  18  11.2843
  19  1.72497e-07
  20  0.164893
  21  0.153647
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  6.439e-09  6.876e-04  0.000e+00  1.000e+06 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.305e+00  1.536e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  6.738e-01  1.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 4.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722701/likelihoodResults_691891201_692150401_4FGL_J1203.3+1119_daily_bin1746.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7099.39029265
delta logL = -0.0259302890745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7099.36436349
delta logL = -1.12826546683e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7099.364     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      254 TOTAL
                     EDM=   .61E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.876        .42118E-03** at limit **
   2  Index         .83214        .73876       -.34607E-03     .0000    
   3  Normalizat    .67379        1.0132       -.11275E-04   -.74448E-04
   4  Prefactor     1.3049        1.0765        .48599E-05   -.75331E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.832136
  Normalizat = 0.67379
  Prefactor  = 1.30489
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7099.364     FROM HESSE     STATUS=FAILED         9 CALLS      263 TOTAL
                     EDM=   .61E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        13.876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .14151E-01    .96984       -.34607E-03   -.98554    
   3  Normalizat    .67379        1.0132       -.11275E-04   -1.0494    
   4  Prefactor     1.3049        1.0765        .48599E-05   -.83162    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.11945e-12
Minuit parameter uncertainties:
  1  2.32114e-05
  2  0.747868
  3  1.04356
  4  1.09572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722701': 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) = 7099.36436236
delta logL = 1.70985003933e-10

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  0.000e+00  2.321e-05  0.000e+00  1.000e+06 ( 1.000e-14)
315        Index:  8.321e-01  7.479e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.305e+00  1.096e+00  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  6.738e-01  1.044e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.833 11.323

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/722701/cmap_HighResolution_691891201_692150401_4FGL_J1203.3+1119_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-03', job_status='DONE', photon_flux_upper_limit='4.01e-08', time_completed='2022-12-08 00:56:15.355038', job_id='722701', GAL2='1.30', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1670489775.36', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.71e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1746' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 00:56:15 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 722701: <4FGL_J1203.3+1119_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin1746> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Dec  8 00:45:20 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 00:45:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 00:45:21 2022
Terminated at Thu Dec  8 00:56:16 2022
Results reported at Thu Dec  8 00:56:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1746 180.833 11.3231 691891201 692150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1203.3+1119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   642.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            656 sec.

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

