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 1 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_bin1772
RA = 181.203, Dec = 4.12
tmin = 698630401, tmax = 698889601
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='630763', job_status='RUN', time_executed='2023-02-24 01:30:32.520203', time_epoch_executed='1677231032.52' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630763

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630763/ft1_4FGL_J1204.8+0407_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630763/ft2_4FGL_J1204.8+0407_daily_bin1772.fits


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

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

Done.
real 2.98
user 2.78
sys 0.19

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

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

Number of photons that the gtmktime cut: 109

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630763/ft1_filtered_4FGL_J1204.8+0407_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/630763/ft2_4FGL_J1204.8+0407_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/630763/ltcube_698630401_698889601_4FGL_J1204.8+0407_daily_bin1772.fits outfile=/scratch/kocevski/630763/expmap_698630401_698889601_4FGL_J1204.8+0407_daily_bin1772.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/630763/ltcube_698630401_698889601_4FGL_J1204.8+0407_daily_bin1772.fits
.....................!
real 190.38
user 184.98
sys 5.08

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/630763/ft1_filtered_4FGL_J1204.8+0407_daily_bin1772.fits scfile=/scratch/kocevski/630763/ft2_4FGL_J1204.8+0407_daily_bin1772.fits outfile=/scratch/kocevski/630763/cmap_698630401_698889601_4FGL_J1204.8+0407_daily_bin1772.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630763/ft1_filtered_4FGL_J1204.8+0407_daily_bin1772.fits scfile=/scratch/kocevski/630763/ft2_4FGL_J1204.8+0407_daily_bin1772.fits outfile=/scratch/kocevski/630763/cmap_HighResolution_698630401_698889601_4FGL_J1204.8+0407_daily_bin1772.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1343.90364476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28977E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .49826       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.4503       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27671E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .11579E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    63.361       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44442E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .45719       1.0000          .0000       .10000E+07
     9 'Prefactor '    10.219       1.0000          .0000       .10000E+07
    10 'Prefactor '    234.16       1.0000          .0000       .10000E+07
    11 'Prefactor '    124.27       1.0000          .0000       .10000E+07
    12 'Prefactor '    21.299       1.0000          .0000       .10000E+07
    13 'Prefactor '    .63554E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .18914E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .11577E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    140.35       1.0000          .0000       .10000E+07
    17 'norm      '    .13699       1.0000          .0000       .10000E+07
    18 'norm      '    2.0698       1.0000          .0000       .10000E+07
    19 'Prefactor '    .95204E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .70607E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .10296E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    .51584E-01   1.0000          .0000       .10000E+07
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.7313       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=   1343.884     FROM MIGRAD    STATUS=CONVERGED    204 CALLS     2086 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    7.1990       -.12877E-06** at limit **
   2  Prefactor     6.3624        302.40        .10180E-05   -.12202E-01
   3  Prefactor     .21426E-03    422.83        .39580E-05** at limit **
   4  Prefactor     .18319E-08    20.497       -.90673E-06** at limit **
   5  Prefactor     .87944E-04    163.22        .61646E-05** at limit **
   6  Prefactor     64.358        24.147        .79444E-06    .36943E-01
   7  Prefactor      .0000        18.490       -.58160E-06** at limit **
   8  Prefactor     .21150E-07    178.36       -.17630E-05** at limit **
   9  Prefactor     13.241        30.122        .67631E-06   -.89574E-02
  10  Prefactor     235.92        37.629        .48291E-06   -.55996    
  11  Prefactor     129.74        78.208       -.36418E-06   -.92684E-01
  12  Prefactor     15.998        32.633       -.23494E-05    .42670E-01
  13  Prefactor     .22204E-09    15.528        .31744E-06** at limit **
  14  norm           .0000        2.6483       -.18634E-06** at limit **
  15  norm           .0000        13.069       -.18033E-05** at limit **
  16  Prefactor     157.76        123.50        .31748E-05    .13389    
  17  norm          .11102E-09    58.756        .43509E-07** at limit **
  18  norm          2.0819        1.5587        .45624E-07    .17731E-02
  19  Prefactor      .0000        11.605       -.50024E-06** at limit **
  20  Prefactor     .55511E-10    19.393        .12947E-05** at limit **
  21  norm           .0000        3.5910        .31284E-06** at limit **
  22  Prefactor      .0000        14.659        .68117E-06** at limit **
  23  Normalizat    .10000E-01    .41370       -.70231E-04** at limit **
  24  Prefactor     1.7171        .25957       -.24180E-04    .79371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 6.36241
  Prefactor  = 0.00021426
  Prefactor  = 1.83187e-09
  Prefactor  = 8.79438e-05
  Prefactor  = 64.3585
  Prefactor  = 0
  Prefactor  = 2.11497e-08
  Prefactor  = 13.241
  Prefactor  = 235.924
  Prefactor  = 129.738
  Prefactor  = 15.9979
  Prefactor  = 2.22045e-10
  norm       = 0
  norm       = 0
  Prefactor  = 157.761
  norm       = 1.11022e-10
  norm       = 2.08186
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 1.7171
 **********
 **   18 **HESSE 
 **********

 FCN=   1343.884     FROM HESSE     STATUS=OK           435 CALLS     2521 TOTAL
                     EDM=   .58E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    7.1872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3624        510.37        .78885E-03   -1.5658    
   3  Prefactor     .21426E-03    611.29        .89432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .18319E-08    20.492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .87944E-04    190.66        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     64.358        104.90        .12564E-03   -1.5548    
   7  Prefactor      .0000        18.292        .15769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .21150E-07    177.66        .83139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.241        176.26        .31320E-03   -1.5635    
  10  Prefactor     235.92        198.82        .65358E-04   -1.5401    
  11  Prefactor     129.74        89.475        .89710E-04   -1.5480    
  12  Prefactor     15.998        136.55        .21674E-03   -1.5628    
  13  Prefactor     .22204E-09    15.542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        2.6420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        12.947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     157.76        129.72        .84416E-04   -1.5457    
  17  norm          .11102E-09    58.675        .13026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0819        1.5836        .71777E-03   -1.5679    
  19  Prefactor      .0000        11.572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    19.431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        3.5570        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        14.686        .15478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .34934        .22183       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.7171        .29535        .48145E-01   -.71628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78398e-05
Minuit parameter uncertainties:
  1  3.10686e-05
  2  113.979
  3  0.723882
  4  0.000385706
  5  0.258984
  6  104.907
  7  4.04288e-05
  8  0.00387843
  9  96.6236
  10  198.83
  11  89.4756
  12  93.4795
  13  0.00012178
  14  9.27398e-06
  15  3.30804e-05
  16  129.72
  17  0.000170283
  18  1.58359
  19  1.53244e-05
  20  7.39122e-05
  21  1.22447e-05
  22  1.52979e-06
  23  2.30674e-06
  24  0.295651
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.359e+02  1.988e+02  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.717e+00  2.957e-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.000e-02  2.307e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.32
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 2.68e-07 +/- 2.26e-07
Energy Flux (Fixed Index): 7.17e-05 +/- 6.05e-05

TS (Fixed Index): 2.32
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 7.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/630763/likelihoodResults_698630401_698889601_4FGL_J1204.8+0407_daily_bin1772.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) = 1343.12254236
delta logL = 0.760977786548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1343.11636061
delta logL = 0.767159536059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.538       1.0000          .0000       .10000E+07
     2 'Index     '    3.9448       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7102       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1343.116     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      308 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.362        191.88        .57419E-05    .23830E-02
   2  Index         3.9475        2.3108        .29903E-02    .15804E-03
   3  Normalizat    .10000E-01    .31288        .10623E-01** at limit **
   4  Prefactor     1.7104        .22996        .21225E-03   -.14270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.362
  Index      = 3.9475
  Normalizat = 0.01
  Prefactor  = 1.71039
 **********
 **   18 **HESSE 
 **********

 FCN=   1343.116     FROM HESSE     STATUS=OK            23 CALLS      331 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.362        125.69        .11484E-05   -1.5569    
   2  Index         3.9475        1.5494        .11961E-03   -.21209    
   3  Normalizat    .10000E-01    .31294        .21247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7104        .22768        .42451E-04   -.71806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.08459e-10
Minuit parameter uncertainties:
  1  125.701
  2  1.57658
  3  1.56991e-05
  4  0.227818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630763': 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): 0
logL (Free Index) = 1343.11635785
delta logL = 0.767162296049

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  4.836e+01  1.257e+02  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  3.948e+00  1.577e+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:  1.710e+00  2.278e-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.000e-02  1.570e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.89
Ra Dec: 181.203 4.120
Photon Index (Free Index): 3.95 +/- 1.58
Photon Flux (Free Index): 4.64e-07 +/- 3.30e-07
Energy Flux (Free Index): 7.01e-05 +/- 5.01e-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/630763/cmap_HighResolution_698630401_698889601_4FGL_J1204.8+0407_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-02', comment='SUCCESS', photon_flux='2.68e-07', energy_flux2='7.01e-05', photon_flux_error='2.26e-07', dlogl='7.67e-01', energy_flux='7.17e-05', photon_flux2='4.64e-07', job_status='DONE', time_completed='2023-02-24 01:36:53.827546', photon_index_error2='1.58', photon_index2='3.95', ts='2.32', fit_tolerance='1e-08', GAL='1.72', photon_index_error='0.00', photon_flux_upper_limit='7.66e-07', energy_flux_error2='5.01e-05', EG='0.01', time_epoch_completed='1677231413.83', return_code='0', job_id='630763', GAL2='1.71', EG2='0.01', return_code2='0', energy_flux_error='6.05e-05', photon_flux_error2='3.30e-07', ts2='3.89', photon_index='2.58' WHERE bin_id='1772' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:36:53 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 630763: <4FGL_J1204.8+0407_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1772> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb 24 01:30:22 2023
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:30:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:30:22 2023
Terminated at Fri Feb 24 01:36:54 2023
Results reported at Fri Feb 24 01:36:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1772 181.203 4.12 698630401 698889601 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 :                                   383.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   392 sec.
    Turnaround time :                            392 sec.

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

