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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1711
RA = 181.203, Dec = 4.12
tmin = 682819201, tmax = 683078401
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='114095', job_status='RUN', time_executed='2022-09-16 16:34:20.998240', time_epoch_executed='1663371261.0' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/114095

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/114095/ft1_4FGL_J1204.8+0407_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/114095/ft2_4FGL_J1204.8+0407_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/114095/ft1_4FGL_J1204.8+0407_daily_bin1711.fits outfile=/scratch/kocevski/114095/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1711.fits ra=181.203 dec=4.12 rad=12.0 tmin=682819201.0 tmax=683078401.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.57
user 4.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/114095/ft2_4FGL_J1204.8+0407_daily_bin1711.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/114095/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1711.fits evtable="EVENTS" outfile="/scratch/kocevski/114095/ft1_filtered_4FGL_J1204.8+0407_daily_bin1711.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 583

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/114095/ft1_filtered_4FGL_J1204.8+0407_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/114095/ft2_4FGL_J1204.8+0407_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/114095/ltcube_682819201_683078401_4FGL_J1204.8+0407_daily_bin1711.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/114095/ft2_4FGL_J1204.8+0407_daily_bin1711.fits
.....................!
real 15.26
user 14.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/114095/ft1_filtered_4FGL_J1204.8+0407_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/114095/ft2_4FGL_J1204.8+0407_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/114095/ltcube_682819201_683078401_4FGL_J1204.8+0407_daily_bin1711.fits outfile=/scratch/kocevski/114095/expmap_682819201_683078401_4FGL_J1204.8+0407_daily_bin1711.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/114095/ltcube_682819201_683078401_4FGL_J1204.8+0407_daily_bin1711.fits
.....................!
real 192.08
user 187.21
sys 4.35

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/114095/ft1_filtered_4FGL_J1204.8+0407_daily_bin1711.fits scfile=/scratch/kocevski/114095/ft2_4FGL_J1204.8+0407_daily_bin1711.fits outfile=/scratch/kocevski/114095/cmap_682819201_683078401_4FGL_J1204.8+0407_daily_bin1711.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/114095/ft1_filtered_4FGL_J1204.8+0407_daily_bin1711.fits scfile=/scratch/kocevski/114095/ft2_4FGL_J1204.8+0407_daily_bin1711.fits outfile=/scratch/kocevski/114095/cmap_HighResolution_682819201_683078401_4FGL_J1204.8+0407_daily_bin1711.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.60
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/114095/ft1_filtered_4FGL_J1204.8+0407_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/114095/ft2_4FGL_J1204.8+0407_daily_bin1711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/114095/Model_4FGL_J1204.8+0407_daily_bin1711.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/114095/ft1_filtered_4FGL_J1204.8+0407_daily_bin1711.fits.....................!
real 60.47
user 59.10
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/114095/ft1_filtered_4FGL_J1204.8+0407_daily_bin1711.fits', '/scratch/kocevski/114095/ft2_4FGL_J1204.8+0407_daily_bin1711.fits', expMap='/scratch/kocevski/114095/expmap_682819201_683078401_4FGL_J1204.8+0407_daily_bin1711.fits', expCube='/scratch/kocevski/114095/ltcube_682819201_683078401_4FGL_J1204.8+0407_daily_bin1711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/114095/Model_4FGL_J1204.8+0407_daily_bin1711.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/114095/ft1_filtered_4FGL_J1204.8+0407_daily_bin1711.fits
Spacecraft file(s): /scratch/kocevski/114095/ft2_4FGL_J1204.8+0407_daily_bin1711.fits
Exposure map: /scratch/kocevski/114095/expmap_682819201_683078401_4FGL_J1204.8+0407_daily_bin1711.fits
Exposure cube: /scratch/kocevski/114095/ltcube_682819201_683078401_4FGL_J1204.8+0407_daily_bin1711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/114095/Model_4FGL_J1204.8+0407_daily_bin1711.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) = 6511.53222481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36138       1.0000          .0000       .10000E+07
     2 'Prefactor '    .62875E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .52225E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8722       1.0000          .0000       .10000E+07
     5 'Prefactor '    .82157E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.8131       1.0000          .0000       .10000E+07
     7 'Prefactor '    15.868       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12186E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .51655E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    12.499       1.0000          .0000       .10000E+07
    11 'Prefactor '    .36637E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    .54094E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .68723E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .22760E-08   1.0000          .0000       .10000E+07
    15 'norm      '    .11614E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    14.806       1.0000          .0000       .10000E+07
    17 'norm      '    85.450       1.0000          .0000       .10000E+07
    18 'norm      '    1.2218       1.0000          .0000       .10000E+07
    19 'Prefactor '    .11062E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    7.9683       1.0000          .0000       .10000E+07
    21 'norm      '    2.6038       1.0000          .0000       .10000E+07
    22 'Prefactor '    10.048       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2140       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84763       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=   6511.408     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     2004 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36472        2.8164       -.49823E-06   -.16543E-02
   2  Prefactor     .23870E-08    8.5937        .57350E-06** at limit **
   3  Prefactor     .77882E-07    46.268        .85539E-05** at limit **
   4  Prefactor     2.9212        7.2072        .33041E-06    .10554E-02
   5  Prefactor     .38858E-09    2.1307        .78801E-06** at limit **
   6  Prefactor     8.8560        7.1053       -.23894E-05   -.59305E-01
   7  Prefactor     15.868        3.2833       -.65464E-06   -.19048E-01
   8  Prefactor     .52902E-07    28.135       -.98061E-05** at limit **
   9  Prefactor     .73623E-05    50.537        .44416E-05** at limit **
  10  Prefactor     12.706        3.3129       -.62938E-06    .41183E-02
  11  Prefactor     .38303E-08    7.6370        .74764E-07** at limit **
  12  Prefactor     .50293E-07    18.571       -.18822E-05** at limit **
  13  Prefactor     .11213E-07    8.0798       -.38338E-05** at limit **
  14  norm           .0000        .67048       -.24274E-06** at limit **
  15  norm          .55511E-10    6.4439        .49559E-06** at limit **
  16  Prefactor     15.033        2.4257        .50107E-06   -.34098E-02
  17  norm          87.915        29.791        .41473E-06   -.77678E-01
  18  norm          1.2145        .51782       -.92299E-07   -.35029E-02
  19  Prefactor     .12307E-06    22.226        .63088E-05** at limit **
  20  Prefactor     8.0136        9.6806        .23963E-06    .21681E-03
  21  norm          2.6023        1.4161        .11044E-06   -.50986E-02
  22  Prefactor     10.100        7.7839       -.91652E-07   -.12431E-02
  23  Normalizat    1.2136        .22111        .12159E-04   -.29863E-03
  24  Prefactor     .84701        .18234       -.73243E-05   -.43086E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.364722
  Prefactor  = 2.38698e-09
  Prefactor  = 7.78821e-08
  Prefactor  = 2.92124
  Prefactor  = 3.88578e-10
  Prefactor  = 8.856
  Prefactor  = 15.8675
  Prefactor  = 5.29021e-08
  Prefactor  = 7.36233e-06
  Prefactor  = 12.7064
  Prefactor  = 3.83027e-09
  Prefactor  = 5.02931e-08
  Prefactor  = 1.12133e-08
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 15.0327
  norm       = 87.9155
  norm       = 1.21454
  Prefactor  = 1.23068e-07
  Prefactor  = 8.01364
  norm       = 2.60232
  Prefactor  = 10.0998
  Normalizat = 1.21358
  Prefactor  = 0.847007
 **********
 **   18 **HESSE 
 **********

 FCN=   6511.408     FROM HESSE     STATUS=OK           449 CALLS     2453 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36472        1.5510        .32640E-02   -1.5696    
   2  Prefactor     .23870E-08    8.6304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .77882E-07    48.523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9212        7.2164        .59951E-03   -1.5674    
   5  Prefactor     .38858E-09    2.1290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.8560        17.274        .33740E-03   -1.5648    
   7  Prefactor     15.868        13.427        .25116E-03   -1.5628    
   8  Prefactor     .52902E-07    29.661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .73623E-05    83.906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.706        32.798        .28308E-03   -1.5637    
  11  Prefactor     .38303E-08    7.8789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .50293E-07    18.924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11213E-07    8.3318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .66897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55511E-10    6.2611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.033        27.772        .26003E-03   -1.5630    
  17  norm          87.915        45.366        .10819E-03   -1.5520    
  18  norm          1.2145        .53062        .79846E-03   -1.5686    
  19  Prefactor     .12307E-06    24.055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.0136        9.7200        .35496E-03   -1.5651    
  21  norm          2.6023        1.4217        .63195E-03   -1.5676    
  22  Prefactor     10.100        7.7900        .31586E-03   -1.5644    
  23  Normalizat    1.2136        .19660        .58424E-01   -.86184    
  24  Prefactor     .84701        .15621        .44334E-01   -.98018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67923e-07
Minuit parameter uncertainties:
  1  1.50424
  2  0.000287026
  3  0.0038878
  4  7.21637
  5  5.80368e-05
  6  17.2744
  7  13.4269
  8  0.00250498
  9  0.0497096
  10  32.798
  11  0.000347535
  12  0.0019514
  13  0.000611922
  14  5.19226e-06
  15  3.55813e-05
  16  27.7718
  17  45.3664
  18  0.530616
  19  0.00344108
  20  9.72005
  21  1.42166
  22  7.78998
  23  0.19672
  24  0.15629
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.271e+01  3.280e+01  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:  8.470e-01  1.563e-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:  1.214e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/114095/likelihoodResults_682819201_683078401_4FGL_J1204.8+0407_daily_bin1711.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) = 6510.27162745
delta logL = 1.13610782465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6510.26757064
delta logL = 1.14016463753

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7404       1.0000          .0000       .10000E+07
     2 'Index     '    4.7093       1.0000          .0000       10.000    
     3 'Normalizat'    1.1023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90799       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=   6510.268     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      310 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7288        33.048        .61477E-03    .22180E-01
   2  Index         4.7119        3.0205        .13697        .39537E-03
   3  Normalizat    1.1023        .57652E-01    .60868E-01    .22566E-03
   4  Prefactor     .90800        .47522E-01    .45107E-01    .85649E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.7288
  Index      = 4.71195
  Normalizat = 1.10228
  Prefactor  = 0.908003
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.268     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      343 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7288        64.619        .88193E-05   -1.5675    
   2  Index         4.7119        7.1548        .49827E-02   -.57642E-01
   3  Normalizat    1.1023        .20571        .26921E-03   -.89679    
   4  Prefactor     .90800        .16647        .24293E-03   -.95862    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40793e-09
Minuit parameter uncertainties:
  1  26.5584
  2  5.5372
  3  0.205861
  4  0.166567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/114095': 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) = 6510.26756949
delta logL = 1.14016578531

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.729e+00  2.656e+01  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  4.712e+00  5.537e+00  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:  9.080e-01  1.666e-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:  1.102e+00  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 181.203 4.120
Photon Index (Free Index): 4.71 +/- 5.54
Photon Flux (Free Index): 9.70e-08 +/- 6.82e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.23e-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/114095/cmap_HighResolution_682819201_683078401_4FGL_J1204.8+0407_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-03', comment='SUCCESS', energy_flux2='1.32e-05', dlogl='1.14e+00', photon_flux2='9.70e-08', job_status='DONE', time_completed='2022-09-16 16:45:34.083516', photon_index_error2='5.54', photon_index2='4.71', ts='0.18', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.23e-05', EG='1.21', time_epoch_completed='1663371934.08', return_code='0', job_id='114095', GAL2='0.91', EG2='1.10', return_code2='102', photon_flux_error2='6.82e-08', ts2='2.71', photon_index='2.58' WHERE bin_id='1711' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:45:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 114095: <4FGL_J1204.8+0407_daily_bin1711> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1711> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 16:30:15 2022
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:30:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:30:18 2022
Terminated at Fri Sep 16 16:45:34 2022
Results reported at Fri Sep 16 16:45:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1711 181.203 4.12 682819201 683078401 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 :                                   674.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

