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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1752
RA = 181.203, Dec = 4.12
tmin = 693446401, tmax = 693705601
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='261847', job_status='RUN', time_executed='2022-12-26 00:53:35.725640', time_epoch_executed='1672044815.73' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261847/ft1_4FGL_J1204.8+0407_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261847/ft2_4FGL_J1204.8+0407_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261847/ft1_4FGL_J1204.8+0407_daily_bin1752.fits outfile=/scratch/kocevski/261847/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1752.fits ra=181.203 dec=4.12 rad=12.0 tmin=693446401.0 tmax=693705601.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.87
user 2.62
sys 0.21

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

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

Number of photons that the gtmktime cut: 533

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261847/ft1_filtered_4FGL_J1204.8+0407_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/261847/ft2_4FGL_J1204.8+0407_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/261847/ltcube_693446401_693705601_4FGL_J1204.8+0407_daily_bin1752.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/261847/ft2_4FGL_J1204.8+0407_daily_bin1752.fits
.....................!
real 14.59
user 13.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261847/ft1_filtered_4FGL_J1204.8+0407_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/261847/ft2_4FGL_J1204.8+0407_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/261847/ltcube_693446401_693705601_4FGL_J1204.8+0407_daily_bin1752.fits outfile=/scratch/kocevski/261847/expmap_693446401_693705601_4FGL_J1204.8+0407_daily_bin1752.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/261847/ltcube_693446401_693705601_4FGL_J1204.8+0407_daily_bin1752.fits
.....................!
real 160.39
user 154.53
sys 5.16

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/261847/ft1_filtered_4FGL_J1204.8+0407_daily_bin1752.fits scfile=/scratch/kocevski/261847/ft2_4FGL_J1204.8+0407_daily_bin1752.fits outfile=/scratch/kocevski/261847/cmap_693446401_693705601_4FGL_J1204.8+0407_daily_bin1752.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.50
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261847/ft1_filtered_4FGL_J1204.8+0407_daily_bin1752.fits scfile=/scratch/kocevski/261847/ft2_4FGL_J1204.8+0407_daily_bin1752.fits outfile=/scratch/kocevski/261847/cmap_HighResolution_693446401_693705601_4FGL_J1204.8+0407_daily_bin1752.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.51
user 0.34
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261847/ft1_filtered_4FGL_J1204.8+0407_daily_bin1752.fits', '/scratch/kocevski/261847/ft2_4FGL_J1204.8+0407_daily_bin1752.fits', expMap='/scratch/kocevski/261847/expmap_693446401_693705601_4FGL_J1204.8+0407_daily_bin1752.fits', expCube='/scratch/kocevski/261847/ltcube_693446401_693705601_4FGL_J1204.8+0407_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261847/Model_4FGL_J1204.8+0407_daily_bin1752.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/261847/ft1_filtered_4FGL_J1204.8+0407_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/261847/ft2_4FGL_J1204.8+0407_daily_bin1752.fits
Exposure map: /scratch/kocevski/261847/expmap_693446401_693705601_4FGL_J1204.8+0407_daily_bin1752.fits
Exposure cube: /scratch/kocevski/261847/ltcube_693446401_693705601_4FGL_J1204.8+0407_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261847/Model_4FGL_J1204.8+0407_daily_bin1752.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2656       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.8164       1.0000          .0000       .10000E+07
     3 'Prefactor '    .31661E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10492E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    11.266       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10572E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    7.2325       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14364E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .38914E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    9.2119       1.0000          .0000       .10000E+07
    11 'Prefactor '    .48975E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.3308       1.0000          .0000       .10000E+07
    13 'Prefactor '    .16475E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .14768E-04   1.0000          .0000       .10000E+07
    15 'norm      '    1.5189       1.0000          .0000       .10000E+07
    16 'Prefactor '    .80192E-03   1.0000          .0000       .10000E+07
    17 'norm      '    7.8590       1.0000          .0000       .10000E+07
    18 'norm      '    1.4981       1.0000          .0000       .10000E+07
    19 'Prefactor '    .38570E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.2296       1.0000          .0000       .10000E+07
    21 'norm      '    .40527       1.0000          .0000       .10000E+07
    22 'Prefactor '    8.7874       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.3409       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75531       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=   5855.711     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1597 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2569        2.6528        .49421E-06    .57983E-02
   2  Prefactor     4.8436        1.3433        .32605E-06   -.12998E-01
   3  Prefactor     .71498E-07    38.413        .44459E-05** at limit **
   4  Prefactor     .55511E-09    6.0051       -.66238E-05** at limit **
   5  Prefactor     11.258        2.0812        .24738E-06    .25101E-01
   6  Prefactor     .44964E-08    20.601       -.47194E-05** at limit **
   7  Prefactor     7.1297        1.4096       -.36357E-06    .11578E-01
   8  Prefactor     .47790E-06    54.448       -.52766E-05** at limit **
   9  Prefactor     .55511E-09    17.768        .85239E-06** at limit **
  10  Prefactor     8.4620        4.4438        .58865E-06   -.98159E-02
  11  Prefactor     .38858E-09    6.4153        .39688E-05** at limit **
  12  Prefactor     2.2846        1.1141       -.37398E-08    .93419E-03
  13  Prefactor     .16653E-09    5.6938        .13642E-05** at limit **
  14  norm           .0000        9.7866        .52728E-06** at limit **
  15  norm          1.4732        3.5134        .12839E-05   -.29547E-02
  16  Prefactor     .55511E-10    11.890        .85419E-06** at limit **
  17  norm          8.5993        9.5211        .20357E-05   -.31946E-01
  18  norm          1.4960        .66203        .13191E-06    .13412E-01
  19  Prefactor      .0000        7.9199       -.19972E-05** at limit **
  20  Prefactor     4.2735        7.9490       -.37406E-06    .29173E-03
  21  norm          .40615        1.6752        .37447E-06   -.67133E-02
  22  Prefactor     8.7031        8.9917       -.96114E-07   -.85056E-04
  23  Normalizat    1.3423        .22756       -.28206E-04   -.17272E-03
  24  Prefactor     .75495        .18555        .17491E-04   -.35623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.25688
  Prefactor  = 4.84358
  Prefactor  = 7.14984e-08
  Prefactor  = 5.55112e-10
  Prefactor  = 11.2584
  Prefactor  = 4.4964e-09
  Prefactor  = 7.12966
  Prefactor  = 4.77896e-07
  Prefactor  = 5.55112e-10
  Prefactor  = 8.46202
  Prefactor  = 3.88578e-10
  Prefactor  = 2.28462
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 1.47318
  Prefactor  = 5.55112e-11
  norm       = 8.59931
  norm       = 1.49596
  Prefactor  = 0
  Prefactor  = 4.27351
  norm       = 0.406147
  Prefactor  = 8.70308
  Normalizat = 1.34229
  Prefactor  = 0.754954
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.711     FROM HESSE     STATUS=OK           455 CALLS     2052 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2569        2.6574        .48759E-03   -1.5667    
   2  Prefactor     4.8436        17.283        .45816E-03   -1.5664    
   3  Prefactor     .71498E-07    39.503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-09    6.0158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.258        8.2360        .29823E-03   -1.5641    
   6  Prefactor     .44964E-08    20.587        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1297        14.635        .37274E-03   -1.5655    
   8  Prefactor     .47790E-06    57.237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-09    17.862        .16013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4620        29.969        .32997E-03   -1.5650    
  11  Prefactor     .38858E-09    6.4386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2846        27.440        .67144E-03   -1.5678    
  13  Prefactor     .16653E-09    5.6935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.2521        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4732        4.0562        .86674E-03   -1.5684    
  16  Prefactor     .55511E-10    11.913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.5993        51.069        .35744E-03   -1.5649    
  18  norm          1.4960        .69479        .81816E-03   -1.5684    
  19  Prefactor      .0000        7.9160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2735        8.1816        .48972E-03   -1.5667    
  21  norm          .40615        1.3611        .28838E-02   -1.5695    
  22  Prefactor     8.7031        9.0155        .33789E-03   -1.5649    
  23  Normalizat    1.3423        .19934        .54899E-01   -.82313    
  24  Prefactor     .75495        .16259        .43133E-01   -1.0141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59646e-07
Minuit parameter uncertainties:
  1  2.65743
  2  17.2828
  3  0.00336148
  4  0.000115354
  5  8.23604
  6  0.000610276
  7  14.6346
  8  0.0104602
  9  0.000200413
  10  29.97
  11  0.000100337
  12  15.8355
  13  6.39267e-05
  14  7.53252e-06
  15  4.05625
  16  5.52654e-05
  17  41.9128
  18  0.694792
  19  1.90327e-05
  20  8.18166
  21  1.36108
  22  9.01552
  23  0.199456
  24  0.162696
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  8.462e+00  2.997e+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.550e-01  1.627e-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.342e+00  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261847/likelihoodResults_693446401_693705601_4FGL_J1204.8+0407_daily_bin1752.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) = 5855.71028749
delta logL = 0.000541392577361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5855.71016357
delta logL = 0.000665311400553

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9246       1.0000          .0000       .10000E+07
     2 'Index     '    2.5092       1.0000          .0000       10.000    
     3 'Normalizat'    1.3432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75455       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=   5855.710     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      280 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9481        33.905        .13411E-04    .46032E-03
   2  Index         2.5053        1.9248        .99205E-02    .33588E-04
   3  Normalizat    1.3430        .22135        .24270E-03    .12133E-03
   4  Prefactor     .75452        .18422        .26184E-03   -.29837E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.94809
  Index      = 2.50534
  Normalizat = 1.34295
  Prefactor  = 0.754525
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9481        33.099        .53643E-06   -1.5648    
   2  Index         2.5053        1.8818        .39682E-03   -.52237    
   3  Normalizat    1.3430        .22153        .48540E-04   -.82293    
   4  Prefactor     .75452        .18433        .10473E-04   -1.0143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11868e-10
Minuit parameter uncertainties:
  1  33.1002
  2  1.94658
  3  0.221687
  4  0.184475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261847': 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) = 5855.71015916
delta logL = 0.000669723482133

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  8.948e+00  3.310e+01  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  2.505e+00  1.947e+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:  7.545e-01  1.845e-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.343e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/261847/cmap_HighResolution_693446401_693705601_4FGL_J1204.8+0407_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2022-12-26 01:02:06.324216', job_id='261847', GAL2='0.75', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1672045326.32', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='6.70e-04', ts2='0.09', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1752' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:02:06 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 261847: <4FGL_J1204.8+0407_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1752> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Dec 26 00:50:16 2022
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:51:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:51:05 2022
Terminated at Mon Dec 26 01:02:07 2022
Results reported at Mon Dec 26 01:02:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1752 181.203 4.12 693446401 693705601 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 :                                   511.12 sec.
    Max Memory :                                 1006 MB
    Average Memory :                             278.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            711 sec.

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

