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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1713
RA = 181.203, Dec = 4.12
tmin = 683337601, tmax = 683596801
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='114098', job_status='RUN', time_executed='2022-09-16 16:31:46.129790', time_epoch_executed='1663371106.13' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/114098

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/114098/ft1_4FGL_J1204.8+0407_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/114098/ft2_4FGL_J1204.8+0407_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/114098/ft1_4FGL_J1204.8+0407_daily_bin1713.fits outfile=/scratch/kocevski/114098/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1713.fits ra=181.203 dec=4.12 rad=12.0 tmin=683337601.0 tmax=683596801.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.57
user 3.31
sys 0.21

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

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

Number of photons that the gtmktime cut: 659

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/114098/ft1_filtered_4FGL_J1204.8+0407_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/114098/ft2_4FGL_J1204.8+0407_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/114098/ltcube_683337601_683596801_4FGL_J1204.8+0407_daily_bin1713.fits outfile=/scratch/kocevski/114098/expmap_683337601_683596801_4FGL_J1204.8+0407_daily_bin1713.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/114098/ltcube_683337601_683596801_4FGL_J1204.8+0407_daily_bin1713.fits
.....................!
real 193.19
user 186.87
sys 5.57

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/114098/ft1_filtered_4FGL_J1204.8+0407_daily_bin1713.fits scfile=/scratch/kocevski/114098/ft2_4FGL_J1204.8+0407_daily_bin1713.fits outfile=/scratch/kocevski/114098/cmap_683337601_683596801_4FGL_J1204.8+0407_daily_bin1713.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/114098/ft1_filtered_4FGL_J1204.8+0407_daily_bin1713.fits scfile=/scratch/kocevski/114098/ft2_4FGL_J1204.8+0407_daily_bin1713.fits outfile=/scratch/kocevski/114098/cmap_HighResolution_683337601_683596801_4FGL_J1204.8+0407_daily_bin1713.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3802       1.0000          .0000       .10000E+07
     2 'Prefactor '    .46166E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .41126       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.4773       1.0000          .0000       .10000E+07
     5 'Prefactor '    .71896E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11952E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15404E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .23180       1.0000          .0000       .10000E+07
     9 'Prefactor '    .79670E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    92.268       1.0000          .0000       .10000E+07
    11 'Prefactor '    .75746E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .50774       1.0000          .0000       .10000E+07
    13 'Prefactor '    17.868       1.0000          .0000       .10000E+07
    14 'norm      '    .12432E-02   1.0000          .0000       .10000E+07
    15 'norm      '    6.9354       1.0000          .0000       .10000E+07
    16 'Prefactor '    50.557       1.0000          .0000       .10000E+07
    17 'norm      '    .94682E-01   1.0000          .0000       .10000E+07
    18 'norm      '    .40913       1.0000          .0000       .10000E+07
    19 'Prefactor '    15.485       1.0000          .0000       .10000E+07
    20 'Prefactor '    18.035       1.0000          .0000       .10000E+07
    21 'norm      '    .23564E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    39.319       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.3869       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98555       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=   7353.523     FROM MIGRAD    STATUS=CONVERGED    198 CALLS     2139 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3803        1.3969        .18460E-07    .44003E-03
   2  Prefactor     .16209E-07    14.094        .13610E-06** at limit **
   3  Prefactor     .26479E-07    82.664        .92255E-06** at limit **
   4  Prefactor     5.4473        2.9008        .42753E-07   -.18139E-01
   5  Prefactor     .29226E-03    1999.4       -.10201E-04** at limit **
   6  Prefactor     .16653E-09    5.0693       -.23059E-06** at limit **
   7  Prefactor     .55511E-09    6.6027        .33046E-07** at limit **
   8  Prefactor     .88485E-07    50.481       -.22398E-06** at limit **
   9  Prefactor     .46718E-06    6.0585        .44538E-06** at limit **
  10  Prefactor     92.132        32.611        .40611E-06   -.13148    
  11  Prefactor     .48100E-06    6.5263        .57960E-06** at limit **
  12  Prefactor     .33279E-06    143.25        .77683E-06** at limit **
  13  Prefactor     17.700        12.132        .81614E-07    .16791E-02
  14  norm          .11102E-09    7.7679        .25032E-06** at limit **
  15  norm          6.9597        4.1662        .34518E-07    .14382E-03
  16  Prefactor     50.969        29.913       -.17187E-06   -.72256E-01
  17  norm           .0000        35.244        .10269E-06** at limit **
  18  norm          .40916        .57124        .14219E-07    .24960E-02
  19  Prefactor     15.423        6.6039        .11637E-06    .26402E-01
  20  Prefactor     18.160        8.0828       -.14482E-06    .58348E-02
  21  norm           .0000        .51759        .16843E-07** at limit **
  22  Prefactor     39.335        3.1509       -.27213E-07    .43348E-01
  23  Normalizat    1.3875        .24174        .20292E-05   -.96556E-04
  24  Prefactor     .98557        .19478        .81827E-06   -.97839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38032
  Prefactor  = 1.62093e-08
  Prefactor  = 2.64788e-08
  Prefactor  = 5.44732
  Prefactor  = 0.000292259
  Prefactor  = 1.66533e-10
  Prefactor  = 5.55112e-10
  Prefactor  = 8.84848e-08
  Prefactor  = 4.67182e-07
  Prefactor  = 92.132
  Prefactor  = 4.81004e-07
  Prefactor  = 3.32789e-07
  Prefactor  = 17.7003
  norm       = 1.11022e-10
  norm       = 6.95974
  Prefactor  = 50.9691
  norm       = 0
  norm       = 0.40916
  Prefactor  = 15.4226
  Prefactor  = 18.16
  norm       = 0
  Prefactor  = 39.3348
  Normalizat = 1.38754
  Prefactor  = 0.985569
 **********
 **   18 **HESSE 
 **********

 FCN=   7353.523     FROM HESSE     STATUS=OK           451 CALLS     2590 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3803        1.4003        .92617E-03   -1.5684    
   2  Prefactor     .16209E-07    14.217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .26479E-07    83.074        .88193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4473        11.308        .42909E-03   -1.5661    
   5  Prefactor     .29226E-03    8.1193        .66497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16653E-09    5.1186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-09    6.6247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .88485E-07    52.378        .11235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .46718E-06    11.892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     92.132        61.525        .10411E-03   -1.5516    
  11  Prefactor     .48100E-06    11.923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .33279E-06    140.29        .77935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.700        13.538        .23667E-03   -1.5624    
  14  norm          .11102E-09    1.7984        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.9597        4.2975        .38072E-03   -1.5655    
  16  Prefactor     50.969        34.020        .14065E-03   -1.5565    
  17  norm           .0000        35.274        .14074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .40916        .60012        .88436E-03   -1.5695    
  19  Prefactor     15.423        10.761        .25426E-03   -1.5629    
  20  Prefactor     18.160        11.145        .23557E-03   -1.5623    
  21  norm           .0000        .51549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     39.335        13.776        .15949E-03   -1.5583    
  23  Normalizat    1.3875        .21199        .64268E-01   -.80990    
  24  Prefactor     .98557        .16722        .46086E-01   -.93212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19112e-07
Minuit parameter uncertainties:
  1  1.40032
  2  0.000960615
  3  0.00296621
  4  11.3083
  5  0.0974255
  6  5.77236e-05
  7  0.000122469
  8  0.00430503
  9  0.00471409
  10  61.5256
  11  0.0047897
  12  0.0136664
  13  13.538
  14  2.55317e-05
  15  4.29754
  16  34.0198
  17  4.31764e-05
  18  0.600115
  19  10.7615
  20  11.1455
  21  1.05079e-07
  22  13.7759
  23  0.212124
  24  0.167313
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  9.213e+01  6.153e+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:  9.856e-01  1.673e-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.388e+00  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 6.98e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 1.87e-05

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

Saving results to:
/scratch/kocevski/114098/likelihoodResults_683337601_683596801_4FGL_J1204.8+0407_daily_bin1713.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) = 7351.68610969
delta logL = 1.83683113748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7351.67396393
delta logL = 1.84897689516

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.791       1.0000          .0000       .10000E+07
     2 'Index     '    3.7828       1.0000          .0000       10.000    
     3 'Normalizat'    1.2708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0535       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=   7351.674     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      312 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.774        61.223        .75890E-05   -.76089E-02
   2  Index         3.7833        1.2991        .40156E-02   -.22738E-03
   3  Normalizat    1.2712        .25185        .29434E-03   -.31104E-03
   4  Prefactor     1.0531        .20062        .26283E-03    .35037E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.7743
  Index      = 3.78326
  Normalizat = 1.27121
  Prefactor  = 1.05308
 **********
 **   18 **HESSE 
 **********

 FCN=   7351.674     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.774        37.053        .15178E-05   -1.5603    
   2  Index         3.7833        .79128        .16062E-03   -.24582    
   3  Normalizat    1.2712        .25219        .58868E-04   -.84430    
   4  Prefactor     1.0531        .20015        .10513E-04   -.90981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0829e-10
Minuit parameter uncertainties:
  1  37.0536
  2  0.794829
  3  0.25243
  4  0.200295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/114098': 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) = 7351.67396077
delta logL = 1.84898006459

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.053e+00  2.003e-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.271e+00  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.44
Ra Dec: 181.203 4.120
Photon Index (Free Index): 3.78 +/- 0.79
Photon Flux (Free Index): 2.03e-07 +/- 9.46e-08
Energy Flux (Free Index): 3.16e-05 +/- 1.49e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/114098/cmap_HighResolution_683337601_683596801_4FGL_J1204.8+0407_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='3.16e-05', photon_flux_error='6.98e-08', dlogl='1.85e+00', energy_flux='2.80e-05', photon_flux2='2.03e-07', job_status='DONE', time_completed='2022-09-16 16:43:53.625410', photon_index_error2='0.79', photon_index2='3.78', ts='3.21', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='2.28e-07', energy_flux_error2='1.49e-05', EG='1.39', time_epoch_completed='1663371833.63', return_code='0', job_id='114098', GAL2='1.05', EG2='1.27', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='9.46e-08', ts2='7.44', photon_index='2.58' WHERE bin_id='1713' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:43:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 114098: <4FGL_J1204.8+0407_daily_bin1713> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1713> 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) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:30:19 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:19 2022
Terminated at Fri Sep 16 16:43:54 2022
Results reported at Fri Sep 16 16:43:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1713 181.203 4.12 683337601 683596801 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 :                                   728.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            819 sec.

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

