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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1765
RA = 181.203, Dec = 4.12
tmin = 696816001, tmax = 697075201
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='632772', job_status='RUN', time_executed='2023-02-03 00:53:54.605763', time_epoch_executed='1675414434.61' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/632772

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/632772/ft1_4FGL_J1204.8+0407_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/632772/ft2_4FGL_J1204.8+0407_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/632772/ft1_4FGL_J1204.8+0407_daily_bin1765.fits outfile=/scratch/kocevski/632772/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1765.fits ra=181.203 dec=4.12 rad=12.0 tmin=696816001.0 tmax=697075201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.66
user 3.40
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/632772/ft2_4FGL_J1204.8+0407_daily_bin1765.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/632772/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/632772/ft1_filtered_4FGL_J1204.8+0407_daily_bin1765.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: 597

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/632772/ft1_filtered_4FGL_J1204.8+0407_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/632772/ft2_4FGL_J1204.8+0407_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/632772/ltcube_696816001_697075201_4FGL_J1204.8+0407_daily_bin1765.fits outfile=/scratch/kocevski/632772/expmap_696816001_697075201_4FGL_J1204.8+0407_daily_bin1765.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/632772/ltcube_696816001_697075201_4FGL_J1204.8+0407_daily_bin1765.fits
.....................!
real 191.99
user 186.11
sys 5.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/632772/ft1_filtered_4FGL_J1204.8+0407_daily_bin1765.fits scfile=/scratch/kocevski/632772/ft2_4FGL_J1204.8+0407_daily_bin1765.fits outfile=/scratch/kocevski/632772/cmap_696816001_697075201_4FGL_J1204.8+0407_daily_bin1765.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/632772/ft1_filtered_4FGL_J1204.8+0407_daily_bin1765.fits scfile=/scratch/kocevski/632772/ft2_4FGL_J1204.8+0407_daily_bin1765.fits outfile=/scratch/kocevski/632772/cmap_HighResolution_696816001_697075201_4FGL_J1204.8+0407_daily_bin1765.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7506       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.1518       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15627E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    20.135       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19873E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .52240E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.6842       1.0000          .0000       .10000E+07
     8 'Prefactor '    .18880       1.0000          .0000       .10000E+07
     9 'Prefactor '    34.171       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.3271       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.476       1.0000          .0000       .10000E+07
    12 'Prefactor '    .44930E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .48905E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .13611E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .14985       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.4889       1.0000          .0000       .10000E+07
    17 'norm      '    13.535       1.0000          .0000       .10000E+07
    18 'norm      '    .54042       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.4787       1.0000          .0000       .10000E+07
    20 'Prefactor '    8.8034       1.0000          .0000       .10000E+07
    21 'norm      '    .16989       1.0000          .0000       .10000E+07
    22 'Prefactor '    .62679E-04   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.3135       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74021       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=   6695.040     FROM MIGRAD    STATUS=CONVERGED    176 CALLS     1632 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7504        1.5577        .36885E-07    .58486E-03
   2  Prefactor     4.1544        5.2938        .71112E-06    .31378E-02
   3  Prefactor     .10595E-05    43.172       -.39188E-06** at limit **
   4  Prefactor     20.216        6.5023        .52980E-06    .43638E-01
   5  Prefactor     .18319E-08    6.5144        .29733E-06** at limit **
   6  Prefactor     .19817E-07    13.268        .65282E-06** at limit **
   7  Prefactor     6.5942        7.0048        .96411E-06    .41032E-01
   8  Prefactor     .35527E-07    44.498       -.44762E-05** at limit **
   9  Prefactor     33.840        3.2522        .10565E-07    .40755E-02
  10  Prefactor     2.3192        15.902        .73223E-06   -.35962E-01
  11  Prefactor     10.736        8.4603       -.93472E-07    .73667E-02
  12  Prefactor     .45464E-07    17.800       -.92508E-06** at limit **
  13  Prefactor      .0000        5.0653        .54157E-08** at limit **
  14  norm           .0000        .88016        .17937E-06** at limit **
  15  norm          .35971E-06    58.281        .10060E-05** at limit **
  16  Prefactor     5.4525        1.3102       -.12626E-06   -.64740E-03
  17  norm          16.578        28.908       -.19013E-05    .24386E-01
  18  norm          .53432        .46038       -.40154E-07    .74557E-02
  19  Prefactor     9.4448        7.5433       -.28202E-06   -.89685E-02
  20  Prefactor     8.9481        6.6448       -.49098E-08    .96000E-02
  21  norm          .16993        3.4315        .33990E-06** at limit **
  22  Prefactor     .21649E-08    5.0256        .29113E-06** at limit **
  23  Normalizat    1.3153        .22105       -.76307E-05    .18377E-03
  24  Prefactor     .73844        .17618        .45612E-05    .16530E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75036
  Prefactor  = 4.15442
  Prefactor  = 1.05954e-06
  Prefactor  = 20.2156
  Prefactor  = 1.83187e-09
  Prefactor  = 1.98175e-08
  Prefactor  = 6.5942
  Prefactor  = 3.55271e-08
  Prefactor  = 33.8397
  Prefactor  = 2.31923
  Prefactor  = 10.7361
  Prefactor  = 4.54636e-08
  Prefactor  = 0
  norm       = 0
  norm       = 3.59712e-07
  Prefactor  = 5.45253
  norm       = 16.5775
  norm       = 0.534315
  Prefactor  = 9.44483
  Prefactor  = 8.94814
  norm       = 0.169929
  Prefactor  = 2.16493e-09
  Normalizat = 1.31533
  Prefactor  = 0.73844
 **********
 **   18 **HESSE 
 **********

 FCN=   6695.040     FROM HESSE     STATUS=OK           463 CALLS     2095 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7504        1.5740        .79211E-03   -1.5682    
   2  Prefactor     4.1544        13.708        .49442E-03   -1.5667    
   3  Prefactor     .10595E-05    45.673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.216        12.284        .22293E-03   -1.5618    
   5  Prefactor     .18319E-08    6.5444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .19817E-07    13.368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.5942        11.656        .38788E-03   -1.5657    
   8  Prefactor     .35527E-07    81.293        .11979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.840        30.847        .17109E-03   -1.5592    
  10  Prefactor     2.3192        166.20        .67204E-03   -1.5678    
  11  Prefactor     10.736        14.535        .30932E-03   -1.5642    
  12  Prefactor     .45464E-07    18.075        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        5.0866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .89790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .35971E-06    1.3888        .76281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.4525        20.152        .42863E-03   -1.5661    
  17  norm          16.578        32.515        .27201E-03   -1.5627    
  18  norm          .53432        .47767        .74743E-03   -1.5693    
  19  Prefactor     9.4448        7.7753        .32526E-03   -1.5646    
  20  Prefactor     8.9481        6.8186        .33758E-03   -1.5648    
  21  norm          .16993        .75265        .39718E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .21649E-08    5.0416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3153        .19321        .54762E-01   -.83110    
  24  Prefactor     .73844        .15243        .42934E-01   -1.0204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.40532e-07
Minuit parameter uncertainties:
  1  1.57396
  2  13.7084
  3  0.0139132
  4  12.284
  5  0.000218139
  6  0.00102996
  7  11.6562
  8  0.00339856
  9  30.847
  10  39.2672
  11  14.535
  12  0.00181301
  13  1.49948e-05
  14  7.79902e-06
  15  0.00141357
  16  20.1521
  17  32.5154
  18  0.477673
  19  7.77529
  20  6.81863
  21  0.715254
  22  0.000208166
  23  0.193317
  24  0.152515
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.319e+00  3.927e+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:  7.384e-01  1.525e-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.315e+00  1.933e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/632772/likelihoodResults_696816001_697075201_4FGL_J1204.8+0407_daily_bin1765.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) = 6694.68280698
delta logL = 0.357499559759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6694.30763841
delta logL = 0.732668131884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78460E-04   1.0000          .0000       .10000E+07
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.2529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77612       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=   6695.042     FROM MIGRAD    STATUS=CONVERGED    123 CALLS      451 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39968E-08    6.1691        .42118E-03** at limit **
   2  Index         1.2445        8.2328        .50000       -.18872E-08
   3  Normalizat    1.3185        .39637E-02    .54703E-01    .51227E-03
   4  Prefactor     .73733        .32795E-02    .43406E-01    .98406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.9968e-09
  Index      = 1.24453
  Normalizat = 1.31852
  Prefactor  = 0.737328
 **********
 **   18 **HESSE 
 **********

 FCN=   6695.042     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      480 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39968E-08    30.556        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2445        7.9231        .50000       -.84972    
   3  Normalizat    1.3185        .88406E-02    .24188E-03   -.83015    
   4  Prefactor     .73733        .73142E-02    .25810E-03   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.12172e-10
Minuit parameter uncertainties:
  1  0.000696911
  2  35392.5
  3  0.00884063
  4  0.00731419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/632772': 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) = 6695.04218123
delta logL = -0.00187468618333

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.997e-09  6.969e-04  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  1.245e+00  3.539e+04  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:  7.373e-01  7.314e-03  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.319e+00  8.841e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/632772/cmap_HighResolution_696816001_697075201_4FGL_J1204.8+0407_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.08e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2023-02-03 01:04:44.290045', job_id='632772', GAL2='0.74', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1675415084.29', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='-1.87e-03', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1765' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:04:44 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 632772: <4FGL_J1204.8+0407_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:50:25 2023
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:52:42 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:52:42 2023
Terminated at Fri Feb  3 01:04:45 2023
Results reported at Fri Feb  3 01:04:45 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1765 181.203 4.12 696816001 697075201 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 :                                   651.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            860 sec.

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

