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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1769
RA = 181.203, Dec = 4.12
tmin = 697852801, tmax = 698112001
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='433401', job_status='RUN', time_executed='2023-02-15 00:44:27.228640', time_epoch_executed='1676450667.23' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433401

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433401/ft1_4FGL_J1204.8+0407_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433401/ft2_4FGL_J1204.8+0407_daily_bin1769.fits


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

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

Done.
real 4.35
user 4.13
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433401/ft1_filtered_4FGL_J1204.8+0407_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/433401/ft2_4FGL_J1204.8+0407_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/433401/ltcube_697852801_698112001_4FGL_J1204.8+0407_daily_bin1769.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/433401/ft2_4FGL_J1204.8+0407_daily_bin1769.fits
.....................!
real 11.72
user 11.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433401/ft1_filtered_4FGL_J1204.8+0407_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/433401/ft2_4FGL_J1204.8+0407_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/433401/ltcube_697852801_698112001_4FGL_J1204.8+0407_daily_bin1769.fits outfile=/scratch/kocevski/433401/expmap_697852801_698112001_4FGL_J1204.8+0407_daily_bin1769.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/433401/ltcube_697852801_698112001_4FGL_J1204.8+0407_daily_bin1769.fits
.....................!
real 190.91
user 185.44
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/433401/ft1_filtered_4FGL_J1204.8+0407_daily_bin1769.fits scfile=/scratch/kocevski/433401/ft2_4FGL_J1204.8+0407_daily_bin1769.fits outfile=/scratch/kocevski/433401/cmap_697852801_698112001_4FGL_J1204.8+0407_daily_bin1769.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433401/ft1_filtered_4FGL_J1204.8+0407_daily_bin1769.fits scfile=/scratch/kocevski/433401/ft2_4FGL_J1204.8+0407_daily_bin1769.fits outfile=/scratch/kocevski/433401/cmap_HighResolution_697852801_698112001_4FGL_J1204.8+0407_daily_bin1769.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/433401/ft1_filtered_4FGL_J1204.8+0407_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/433401/ft2_4FGL_J1204.8+0407_daily_bin1769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433401/Model_4FGL_J1204.8+0407_daily_bin1769.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/433401/ft1_filtered_4FGL_J1204.8+0407_daily_bin1769.fits.....................!
real 50.25
user 49.03
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4196       1.0000          .0000       .10000E+07
     2 'Prefactor '    .15484E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .47938E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.177       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.5667       1.0000          .0000       .10000E+07
     6 'Prefactor '    .64524E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    19.603       1.0000          .0000       .10000E+07
     8 'Prefactor '    47.526       1.0000          .0000       .10000E+07
     9 'Prefactor '    21.776       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23523E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    17.479       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.2524       1.0000          .0000       .10000E+07
    13 'Prefactor '    .33640E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .28311E-08   1.0000          .0000       .10000E+07
    15 'norm      '    7.2755       1.0000          .0000       .10000E+07
    16 'Prefactor '    .81331       1.0000          .0000       .10000E+07
    17 'norm      '    .22208E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .76877       1.0000          .0000       .10000E+07
    19 'Prefactor '    .61928E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .72047E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .89444       1.0000          .0000       .10000E+07
    22 'Prefactor '    .70185E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    .82199       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0930       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=   5531.855     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     1991 TOTAL
                     EDM=   .27E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4254        3.3026        .57025E-07    .25206E-03
   2  Prefactor      .0000        12.691        .28756E-06** at limit **
   3  Prefactor      .0000        43.452        .54653E-06** at limit **
   4  Prefactor     21.110        12.086       -.20446E-07    .28041E-03
   5  Prefactor     5.4692        9.8962        .56219E-07   -.24829E-03
   6  Prefactor      .0000        5.9153        .12418E-06** at limit **
   7  Prefactor     19.319        6.3223        .68251E-07    .14677E-02
   8  Prefactor     50.050        69.244       -.62806E-07   -.14402E-03
   9  Prefactor     24.344        55.184       -.46388E-06    .81959E-04
  10  Prefactor      .0000        17.787        .54066E-06** at limit **
  11  Prefactor     17.462        1.6232        .85063E-08    .72865E-02
  12  Prefactor     4.2472        1.1147       -.62909E-09   -.88490E-04
  13  Prefactor      .0000        2.4969       -.83483E-08** at limit **
  14  norm           .0000        .52352        .19996E-07** at limit **
  15  norm          7.2797        3.3456       -.68126E-07    .20553E-03
  16  Prefactor     .86405        .75825       -.26672E-07    .21857E-02
  17  norm           .0000        11.949       -.14238E-06** at limit **
  18  norm          .76909        .46249       -.55120E-08    .13003E-03
  19  Prefactor      .0000        6.6773        .46558E-06** at limit **
  20  Prefactor      .0000        8.3963        .21222E-06** at limit **
  21  norm          .89512        1.3483        .83649E-07    .81836E-04
  22  Prefactor      .0000        21.966        .35662E-06** at limit **
  23  Normalizat    .82284        .23077       -.18260E-05    .88200E-05
  24  Prefactor     1.0916        .19321       -.15594E-05    .10029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.4254
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 21.1104
  Prefactor  = 5.46923
  Prefactor  = 0
  Prefactor  = 19.3187
  Prefactor  = 50.0502
  Prefactor  = 24.3437
  Prefactor  = 0
  Prefactor  = 17.4624
  Prefactor  = 4.24716
  Prefactor  = 0
  norm       = 0
  norm       = 7.27973
  Prefactor  = 0.864046
  norm       = 0
  norm       = 0.769089
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.895116
  Prefactor  = 0
  Normalizat = 0.822839
  Prefactor  = 1.09164
 **********
 **   18 **HESSE 
 **********

 FCN=   5531.855     FROM HESSE     STATUS=OK           447 CALLS     2438 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4254        3.3122        .47879E-03   -1.5666    
   2  Prefactor      .0000        12.709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        43.380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.110        12.126        .21737E-03   -1.5616    
   5  Prefactor     5.4692        9.9803        .42557E-03   -1.5661    
   6  Prefactor      .0000        5.8997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.319        19.565        .22594E-03   -1.5620    
   8  Prefactor     50.050        69.182        .14507E-03   -1.5566    
   9  Prefactor     24.344        55.230        .21435E-03   -1.5609    
  10  Prefactor      .0000        17.805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.462        16.638        .23929E-03   -1.5624    
  12  Prefactor     4.2472        21.827        .48837E-03   -1.5667    
  13  Prefactor      .0000        2.4973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .52382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.2797        3.3821        .37162E-03   -1.5654    
  16  Prefactor     .86405        110.54        .51948E-03   -1.5689    
  17  norm           .0000        11.967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .76909        .46498        .55293E-03   -1.5690    
  19  Prefactor      .0000        6.6712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        8.3826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .89512        1.3598        .46145E-03   -1.5689    
  22  Prefactor      .0000        21.866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .82284        .20406        .66090E-01   -.99227    
  24  Prefactor     1.0916        .16906        .37857E-01   -.89734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9651e-08
Minuit parameter uncertainties:
  1  3.31221
  2  3.20443e-05
  3  1.31557e-05
  4  12.126
  5  9.98029
  6  1.29975e-06
  7  19.5648
  8  69.1829
  9  55.2308
  10  5.31621e-06
  11  16.6379
  12  19.2568
  13  7.29464e-07
  14  3.05588e-07
  15  3.38207
  16  19.5463
  17  2.94293e-05
  18  0.464977
  19  5.45433e-06
  20  2.2857e-06
  21  1.35983
  22  9.94715e-06
  23  0.204254
  24  0.169141
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  0.000e+00  5.316e-06  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.092e+00  1.691e-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:  8.228e-01  2.043e-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: 7.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433401/likelihoodResults_697852801_698112001_4FGL_J1204.8+0407_daily_bin1769.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) = 5531.8817354
delta logL = -0.0269530720479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5531.85478308
delta logL = -7.55997461965e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12518E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.2966       1.0000          .0000       10.000    
     3 'Normalizat'    .82285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0917       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=   5531.855     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      242 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    .78614E-01    .42118E-03** at limit **
   2  Index         3.4503        7.9942        .50000        .13642E-09
   3  Normalizat    .82284        .49930E-03    .66090E-01   -.82052E-04
   4  Prefactor     1.0916        .43197E-03    .37912E-01   -.17984E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  Index      = 3.45033
  Normalizat = 0.822839
  Prefactor  = 1.09164
 **********
 **   18 **HESSE 
 **********

 FCN=   5531.855     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    .49683        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4503        6.0616        .50000       -.31512    
   3  Normalizat    .82284        .12522E-02    .29238E-03   -.99227    
   4  Prefactor     1.0916        .10849E-02    .22154E-03   -.89734    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31093e-12
Minuit parameter uncertainties:
  1  2.80225e-05
  2  24297.4
  3  0.00125221
  4  0.00108492
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433401': 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) = 5531.85478233
delta logL = -4.27462509833e-11

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.886e-10  2.802e-05  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  3.450e+00  2.430e+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:  1.092e+00  1.085e-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:  8.228e-01  1.252e-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/433401/cmap_HighResolution_697852801_698112001_4FGL_J1204.8+0407_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2023-02-15 00:54:24.690284', job_id='433401', GAL2='1.09', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1676451264.69', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-4.27e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1769' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 00:54:24 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 433401: <4FGL_J1204.8+0407_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Feb 15 00:40:19 2023
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 00:40:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 00:40:20 2023
Terminated at Wed Feb 15 00:54:25 2023
Results reported at Wed Feb 15 00:54:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1769 181.203 4.12 697852801 698112001 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 :                                   595.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             215.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            846 sec.

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

