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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1774
RA = 181.203, Dec = 4.12
tmin = 699148801, tmax = 699408001
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='681389', job_status='RUN', time_executed='2023-03-02 00:42:55.574769', time_epoch_executed='1677746575.57' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681389

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681389/ft1_4FGL_J1204.8+0407_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681389/ft2_4FGL_J1204.8+0407_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681389/ft1_4FGL_J1204.8+0407_daily_bin1774.fits outfile=/scratch/kocevski/681389/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1774.fits ra=181.203 dec=4.12 rad=12.0 tmin=699148801.0 tmax=699408001.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.83
user 2.57
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681389/ft2_4FGL_J1204.8+0407_daily_bin1774.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/681389/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/681389/ft1_filtered_4FGL_J1204.8+0407_daily_bin1774.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.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 143

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681389/ft1_filtered_4FGL_J1204.8+0407_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/681389/ft2_4FGL_J1204.8+0407_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/681389/ltcube_699148801_699408001_4FGL_J1204.8+0407_daily_bin1774.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/681389/ft2_4FGL_J1204.8+0407_daily_bin1774.fits
.....................!
real 12.34
user 11.98
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681389/ft1_filtered_4FGL_J1204.8+0407_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681389/ft2_4FGL_J1204.8+0407_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/681389/ltcube_699148801_699408001_4FGL_J1204.8+0407_daily_bin1774.fits outfile=/scratch/kocevski/681389/expmap_699148801_699408001_4FGL_J1204.8+0407_daily_bin1774.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/681389/ltcube_699148801_699408001_4FGL_J1204.8+0407_daily_bin1774.fits
.....................!
real 189.74
user 185.19
sys 4.19

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/681389/ft1_filtered_4FGL_J1204.8+0407_daily_bin1774.fits scfile=/scratch/kocevski/681389/ft2_4FGL_J1204.8+0407_daily_bin1774.fits outfile=/scratch/kocevski/681389/cmap_699148801_699408001_4FGL_J1204.8+0407_daily_bin1774.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681389/ft1_filtered_4FGL_J1204.8+0407_daily_bin1774.fits scfile=/scratch/kocevski/681389/ft2_4FGL_J1204.8+0407_daily_bin1774.fits outfile=/scratch/kocevski/681389/cmap_HighResolution_699148801_699408001_4FGL_J1204.8+0407_daily_bin1774.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5362       1.0000          .0000       .10000E+07
     2 'Prefactor '    .32562E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .93370E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     5 'Prefactor '    .23553E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .68003E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .35472E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .16653E-09   1.0000          .0000       .10000E+07
     9 'Prefactor '    .56272E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .88305E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .84038E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .77716E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    .37248E-07   1.0000          .0000       .10000E+07
    14 'norm      '    1.0380       1.0000          .0000       .10000E+07
    15 'norm      '    3.2181       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12340E-06   1.0000          .0000       .10000E+07
    17 'norm      '    .73380E-03   1.0000          .0000       .10000E+07
    18 'norm      '    2.4291       1.0000          .0000       .10000E+07
    19 'Prefactor '    19.905       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.4638       1.0000          .0000       .10000E+07
    21 'norm      '    4.4377       1.0000          .0000       .10000E+07
    22 'Prefactor '    11.919       1.0000          .0000       .10000E+07
    23 'Normalizat'    .26966E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.5399       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=   1799.429     FROM MIGRAD    STATUS=CONVERGED    318 CALLS     2972 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5360        5.7331       -.34643E-07    .49458E-04
   2  Prefactor     .33443E-05    92.558        .29755E-06** at limit **
   3  Prefactor     .49497E-04    95.687        .19883E-05** at limit **
   4  Prefactor     .16653E-09    19.158       -.10539E-06** at limit **
   5  Prefactor     .16616E-05    13.573        .44400E-06** at limit **
   6  Prefactor     .42279E-05    34.531       -.60925E-06** at limit **
   7  Prefactor     .55511E-10    12.412       -.11437E-06** at limit **
   8  Prefactor     .66613E-04    56.819        .23815E-05** at limit **
   9  Prefactor     .37748E-08    23.104        .95664E-06** at limit **
  10  Prefactor     .34982E-05    31.382       -.90626E-06** at limit **
  11  Prefactor     .83267E-09    24.904       -.10918E-05** at limit **
  12  Prefactor     .19673E-06    31.244        .12253E-05** at limit **
  13  Prefactor     .11102E-09    11.228       -.42080E-06** at limit **
  14  norm          1.0374        3.8803       -.13480E-06   -.33947E-03
  15  norm          3.2264        9.8505        .23436E-06    .13629E-02
  16  Prefactor     .38447E-06    34.743       -.81510E-06** at limit **
  17  norm          .41445E-05    868.69       -.17827E-04** at limit **
  18  norm          2.4301        1.3875       -.28258E-07    .45526E-02
  19  Prefactor     19.918        1.2271        .15771E-07    .14662E-02
  20  Prefactor     2.4550        28.672        .69275E-06    .11949E-03
  21  norm          4.4381        2.9334       -.19281E-08    .73688E-04
  22  Prefactor     11.926        16.303       -.29135E-06   -.14364E-06
  23  Normalizat    .25269E-01    6.8005       -.25579E-03    .32840E-05
  24  Prefactor     1.5410        .39358       -.11130E-04   -.39574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.536
  Prefactor  = 3.34427e-06
  Prefactor  = 4.94973e-05
  Prefactor  = 1.66533e-10
  Prefactor  = 1.66156e-06
  Prefactor  = 4.2279e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 6.66132e-05
  Prefactor  = 3.77476e-09
  Prefactor  = 3.4982e-06
  Prefactor  = 8.32667e-10
  Prefactor  = 1.96732e-07
  Prefactor  = 1.11022e-10
  norm       = 1.03737
  norm       = 3.22643
  Prefactor  = 3.8447e-07
  norm       = 4.14446e-06
  norm       = 2.43013
  Prefactor  = 19.9179
  Prefactor  = 2.45495
  norm       = 4.43808
  Prefactor  = 11.9256
  Normalizat = 0.0252687
  Prefactor  = 1.54101
 **********
 **   18 **HESSE 
 **********

 FCN=   1799.429     FROM HESSE     STATUS=OK           443 CALLS     3415 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5360        5.7448        .53729E-03   -1.5670    
   2  Prefactor     .33443E-05    99.146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .49497E-04    149.28        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16653E-09    19.254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16616E-05    41.203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .42279E-05    64.165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    12.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .66613E-04    134.27        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .37748E-08    23.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .34982E-05    66.459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .83267E-09    24.937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .19673E-06    42.129        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-09    11.305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0374        3.9654        .12327E-02   -1.5688    
  15  norm          3.2264        9.8979        .56448E-03   -1.5672    
  16  Prefactor     .38447E-06    37.543        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .41445E-05    874.71        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4301        1.3877        .65633E-03   -1.5677    
  19  Prefactor     19.918        32.449        .22421E-03   -1.5619    
  20  Prefactor     2.4550        28.145        .65125E-03   -1.5677    
  21  norm          4.4381        2.9423        .47779E-03   -1.5666    
  22  Prefactor     11.926        16.327        .28991E-03   -1.5639    
  23  Normalizat    .25269E-01    .26043        .24056       -1.6490    
  24  Prefactor     1.5410        .21589        .45076E-01   -.76398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04136e-06
Minuit parameter uncertainties:
  1  5.74478
  2  0.0364187
  3  0.171923
  4  0.000112433
  5  0.0165482
  6  0.0329416
  7  6.36683e-05
  8  0.189151
  9  0.00059093
  10  0.0304954
  11  0.000292752
  12  0.00575769
  13  6.53225e-05
  14  3.96545
  15  9.89791
  16  0.0075985
  17  0.120437
  18  1.38775
  19  32.4497
  20  16.6248
  21  2.94231
  22  16.3273
  23  0.126771
  24  0.216017
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.498e-06  3.050e-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.541e+00  2.160e-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:  2.527e-02  1.268e-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: 2.85e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/681389/likelihoodResults_699148801_699408001_4FGL_J1204.8+0407_daily_bin1774.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1799.43638645
delta logL = -0.00718806547729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1799.4292006
delta logL = -2.2204369543e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23814E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.4227       1.0000          .0000       10.000    
     3 'Normalizat'    .24344E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5416       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=   1799.429     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      313 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-08    21.332        .42118E-03** at limit **
   2  Index         1.4424        5.7147        .50000       -.10800E-09
   3  Normalizat    .25275E-01    .33073E-02    .24078       -.43797E-04
   4  Prefactor     1.5410        .46847E-02    .45076E-01   -.41122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-09
  Index      = 1.44244
  Normalizat = 0.0252751
  Prefactor  = 1.541
 **********
 **   18 **HESSE 
 **********

 FCN=   1799.429     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      348 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-08    106.56        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4424        8.7177        .50000       -.79165    
   3  Normalizat    .25275E-01    .12950E-01    .13009E-01   -1.6490    
   4  Prefactor     1.5410        .10485E-01    .19922E-03   -.76398    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.22975e-11
Minuit parameter uncertainties:
  1  0.000976559
  2  87235
  3  0.0129522
  4  0.0104847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681389': 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) = 1799.42919836
delta logL = 2.62036792265e-08

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.220e-09  9.766e-04  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  1.442e+00  8.724e+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.541e+00  1.048e-02  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:  2.528e-02  1.295e-02  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/681389/cmap_HighResolution_699148801_699408001_4FGL_J1204.8+0407_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-02', job_status='DONE', photon_flux_upper_limit='2.85e-07', time_completed='2023-03-02 00:50:02.936497', job_id='681389', GAL2='1.54', fit_tolerance='1e-08', EG2='0.03', EG='0.03', time_epoch_completed='1677747002.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.54', dlogl='2.62e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1774' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:50:02 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 681389: <4FGL_J1204.8+0407_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar  2 00:40:18 2023
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:40:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:40:19 2023
Terminated at Thu Mar  2 00:50:03 2023
Results reported at Thu Mar  2 00:50:03 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1774 181.203 4.12 699148801 699408001 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 :                                   429.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            585 sec.

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

