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 218 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_J1204.8+0407_daily_bin1746
RA = 181.203, Dec = 4.12
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='722704', job_status='RUN', time_executed='2022-12-08 00:49:06.708393', time_epoch_executed='1670489346.71' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722704

Creating custom pfile directory:
/scratch/kocevski/722704/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/722704/ft1_4FGL_J1204.8+0407_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/722704/ft2_4FGL_J1204.8+0407_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722704/ft1_4FGL_J1204.8+0407_daily_bin1746.fits outfile=/scratch/kocevski/722704/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1746.fits ra=181.203 dec=4.12 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.78
user 4.54
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/722704/ft2_4FGL_J1204.8+0407_daily_bin1746.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/722704/ft2_4FGL_J1204.8+0407_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/722704/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/722704/ft1_filtered_4FGL_J1204.8+0407_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.51
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 711

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722704/ft1_filtered_4FGL_J1204.8+0407_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/722704/ft2_4FGL_J1204.8+0407_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/722704/ltcube_691891201_692150401_4FGL_J1204.8+0407_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/722704/ft2_4FGL_J1204.8+0407_daily_bin1746.fits
.....................!
real 11.98
user 11.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722704/ft1_filtered_4FGL_J1204.8+0407_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/722704/ft2_4FGL_J1204.8+0407_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/722704/ltcube_691891201_692150401_4FGL_J1204.8+0407_daily_bin1746.fits outfile=/scratch/kocevski/722704/expmap_691891201_692150401_4FGL_J1204.8+0407_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/722704/ltcube_691891201_692150401_4FGL_J1204.8+0407_daily_bin1746.fits
.....................!
real 191.70
user 185.97
sys 5.39

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

Setting source of interest to:
4FGL J1204.8+0407 @ 181.203 4.12

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/722704/ft1_filtered_4FGL_J1204.8+0407_daily_bin1746.fits scfile=/scratch/kocevski/722704/ft2_4FGL_J1204.8+0407_daily_bin1746.fits outfile=/scratch/kocevski/722704/cmap_691891201_692150401_4FGL_J1204.8+0407_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=181.203 yref=4.12 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.59
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722704/ft1_filtered_4FGL_J1204.8+0407_daily_bin1746.fits scfile=/scratch/kocevski/722704/ft2_4FGL_J1204.8+0407_daily_bin1746.fits outfile=/scratch/kocevski/722704/cmap_HighResolution_691891201_692150401_4FGL_J1204.8+0407_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=181.203 yref=4.12 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722704/ft1_filtered_4FGL_J1204.8+0407_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/722704/ft2_4FGL_J1204.8+0407_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722704/Model_4FGL_J1204.8+0407_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/722704/ft1_filtered_4FGL_J1204.8+0407_daily_bin1746.fits.....................!
real 68.47
user 67.08
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/722704/ft1_filtered_4FGL_J1204.8+0407_daily_bin1746.fits', '/scratch/kocevski/722704/ft2_4FGL_J1204.8+0407_daily_bin1746.fits', expMap='/scratch/kocevski/722704/expmap_691891201_692150401_4FGL_J1204.8+0407_daily_bin1746.fits', expCube='/scratch/kocevski/722704/ltcube_691891201_692150401_4FGL_J1204.8+0407_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/722704/Model_4FGL_J1204.8+0407_daily_bin1746.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1204.8+0407'

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.692e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/722704/ft1_filtered_4FGL_J1204.8+0407_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/722704/ft2_4FGL_J1204.8+0407_daily_bin1746.fits
Exposure map: /scratch/kocevski/722704/expmap_691891201_692150401_4FGL_J1204.8+0407_daily_bin1746.fits
Exposure cube: /scratch/kocevski/722704/ltcube_691891201_692150401_4FGL_J1204.8+0407_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/722704/Model_4FGL_J1204.8+0407_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) = 7928.8761675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4393       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24799E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .60012E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.2055       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.8976       1.0000          .0000       .10000E+07
     6 'Prefactor '    .19520E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .25898E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .31415E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .60161E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21511E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .61274E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .93099E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    17.820       1.0000          .0000       .10000E+07
    14 'norm      '    .66824E-06   1.0000          .0000       .10000E+07
    15 'norm      '    4.6628       1.0000          .0000       .10000E+07
    16 'Prefactor '    .47282E-03   1.0000          .0000       .10000E+07
    17 'norm      '    39.667       1.0000          .0000       .10000E+07
    18 'norm      '    .19776       1.0000          .0000       .10000E+07
    19 'Prefactor '    22.202       1.0000          .0000       .10000E+07
    20 'Prefactor '    .15580E-05   1.0000          .0000       .10000E+07
    21 'norm      '    .13878E-08   1.0000          .0000       .10000E+07
    22 'Prefactor '    2.4442       1.0000          .0000       .10000E+07
    23 'Normalizat'    .89744       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1045       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7928.775     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     2021 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4403        1.6844        .26137E-07    .58616E-03
   2  Prefactor     .40301E-06    8.9757        .27897E-06** at limit **
   3  Prefactor     .13403E-05    56.945       -.55479E-06** at limit **
   4  Prefactor     1.2788        5.0388       -.17156E-06   -.74354E-03
   5  Prefactor     1.8788        5.2803       -.14261E-06   -.22766E-03
   6  Prefactor     .18058E-06    7.4650        .18464E-06** at limit **
   7  Prefactor     .38858E-09    3.1676        .41715E-06** at limit **
   8  Prefactor     .43410E-07    7.3274       -.41634E-06** at limit **
   9  Prefactor     .27889E-06    8.0309       -.23497E-06** at limit **
  10  Prefactor     .20417E-06    5.5929       -.41335E-07** at limit **
  11  Prefactor     .25166E-05    14.290       -.19972E-06** at limit **
  12  Prefactor     .29587E-07    6.8136       -.39536E-06** at limit **
  13  Prefactor     18.060        9.5388        .13453E-06   -.10616    
  14  norm           .0000        1.6234        .11066E-06** at limit **
  15  norm          4.6314        3.0325       -.59542E-07   -.17361E-04
  16  Prefactor     .33424E-05    20.660       -.55489E-06** at limit **
  17  norm          40.756        33.774        .60689E-06   -.53609E-01
  18  norm          .19465        .40077        .67876E-07** at limit **
  19  Prefactor     22.426        10.566        .18223E-06    .11715    
  20  Prefactor     .27423E-07    7.6963       -.18052E-06** at limit **
  21  norm           .0000        .52124       -.14010E-07** at limit **
  22  Prefactor     2.4452        3.3945        .10296E-06    .10549E-02
  23  Normalizat    .89703        .19357       -.58435E-05   -.53329E-04
  24  Prefactor     1.1040        .16109        .18544E-05   -.25646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44028
  Prefactor  = 4.03011e-07
  Prefactor  = 1.34032e-06
  Prefactor  = 1.27881
  Prefactor  = 1.87878
  Prefactor  = 1.80578e-07
  Prefactor  = 3.88578e-10
  Prefactor  = 4.34097e-08
  Prefactor  = 2.78888e-07
  Prefactor  = 2.0417e-07
  Prefactor  = 2.5166e-06
  Prefactor  = 2.95874e-08
  Prefactor  = 18.0602
  norm       = 0
  norm       = 4.63142
  Prefactor  = 3.34238e-06
  norm       = 40.7559
  norm       = 0.194649
  Prefactor  = 22.4258
  Prefactor  = 2.74225e-08
  norm       = 0
  Prefactor  = 2.44516
  Normalizat = 0.89703
  Prefactor  = 1.10404
 **********
 **   18 **HESSE 
 **********

 FCN=   7928.775     FROM HESSE     STATUS=OK           439 CALLS     2460 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4403        1.7065        .89905E-03   -1.5684    
   2  Prefactor     .40301E-06    10.512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .13403E-05    59.947        .15162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2788        5.0761        .10318E-02   -1.5685    
   5  Prefactor     1.8788        5.2964        .75482E-03   -1.5681    
   6  Prefactor     .18058E-06    15.304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38858E-09    3.1706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .43410E-07    17.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27889E-06    8.8586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .20417E-06    15.528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .25166E-05    26.895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .29587E-07    17.565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.060        10.324        .23698E-03   -1.5623    
  14  norm           .0000        1.6257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6314        3.0491        .46582E-03   -1.5665    
  16  Prefactor     .33424E-05    30.518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          40.756        36.443        .15879E-03   -1.5580    
  18  norm          .19465        .35396        .11816E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.426        11.856        .21228E-03   -1.5613    
  20  Prefactor     .27423E-07    7.7298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        .51373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4452        3.4008        .65411E-03   -1.5677    
  23  Normalizat    .89703        .16836        .44869E-01   -.96565    
  24  Prefactor     1.1040        .14088        .37420E-01   -.89338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29631e-06
Minuit parameter uncertainties:
  1  1.70651
  2  0.00411659
  3  0.0179277
  4  5.07608
  5  5.29638
  6  0.00332467
  7  7.22849e-05
  8  0.00174578
  9  0.00314357
  10  0.00356113
  11  0.016454
  12  0.00144173
  13  10.324
  14  7.13128e-06
  15  3.04913
  16  0.0201996
  17  36.4432
  18  0.353961
  19  11.8564
  20  0.000920597
  21  2.06523e-06
  22  3.40075
  23  0.168459
  24  0.140932
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.042e-07  3.561e-03  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.104e+00  1.409e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  8.970e-01  1.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 6.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722704/likelihoodResults_691891201_692150401_4FGL_J1204.8+0407_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): 0
logL (Free Index) = 7928.74860613
delta logL = 0.0265134073461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7928.68802483
delta logL = 0.0870947110798

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7928.688     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      274 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77202E-01    1.5870        .13015E-02** at limit **
   2  Index         5.7959        3.0107        .21171        .13892E-03
   3  Normalizat    .87056        .18067E-01    .63727E-01    .11187E-04
   4  Prefactor     1.1189        .15670E-01    .36907E-01    .23772E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0772018
  Index      = 5.79594
  Normalizat = 0.870558
  Prefactor  = 1.11893
 **********
 **   18 **HESSE 
 **********

 FCN=   7928.688     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      309 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77202E-01    21.010        .50259E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.7959        5.0857        .13085E-01    .15987    
   3  Normalizat    .87056        .10431        .28188E-03   -.97503    
   4  Prefactor     1.1189        .88097E-01    .21743E-03   -.88864    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6716e-06
Minuit parameter uncertainties:
  1  2.54716
  2  17.2578
  3  0.104337
  4  0.0881084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722704': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7928.68802407
delta logL = 0.0870954751708

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  7.720e-02  2.547e+00  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  5.796e+00  1.726e+01  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.119e+00  8.811e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  8.706e-01  1.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 181.203 4.120

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/722704/cmap_HighResolution_691891201_692150401_4FGL_J1204.8+0407_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2022-12-08 01:01:25.541005', job_id='722704', GAL2='1.12', fit_tolerance='1e-08', EG2='0.87', EG='0.90', time_epoch_completed='1670490085.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='8.71e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1746' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:01:25 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 722704: <4FGL_J1204.8+0407_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1204.8+0407_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) <bullet0280>, 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 01:01:26 2022
Results reported at Thu Dec  8 01:01:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1746 181.203 4.12 691891201 692150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1204.8+0407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   741.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            966 sec.

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

