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 185 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1758
RA = 181.203, Dec = 4.12
tmin = 695001601, tmax = 695260801
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='365032', job_status='RUN', time_executed='2023-01-13 00:43:41.119741', time_epoch_executed='1673599421.12' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365032

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365032/ft1_4FGL_J1204.8+0407_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365032/ft2_4FGL_J1204.8+0407_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365032/ft1_4FGL_J1204.8+0407_daily_bin1758.fits outfile=/scratch/kocevski/365032/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1758.fits ra=181.203 dec=4.12 rad=12.0 tmin=695001601.0 tmax=695260801.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.80
user 2.55
sys 0.19

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

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

Number of photons that the gtmktime cut: 705

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365032/ft1_filtered_4FGL_J1204.8+0407_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/365032/ft2_4FGL_J1204.8+0407_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/365032/ltcube_695001601_695260801_4FGL_J1204.8+0407_daily_bin1758.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/365032/ft2_4FGL_J1204.8+0407_daily_bin1758.fits
.....................!
real 16.52
user 15.99
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365032/ft1_filtered_4FGL_J1204.8+0407_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/365032/ft2_4FGL_J1204.8+0407_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/365032/ltcube_695001601_695260801_4FGL_J1204.8+0407_daily_bin1758.fits outfile=/scratch/kocevski/365032/expmap_695001601_695260801_4FGL_J1204.8+0407_daily_bin1758.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/365032/ltcube_695001601_695260801_4FGL_J1204.8+0407_daily_bin1758.fits
.....................!
real 194.61
user 187.56
sys 5.70

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/365032/ft1_filtered_4FGL_J1204.8+0407_daily_bin1758.fits scfile=/scratch/kocevski/365032/ft2_4FGL_J1204.8+0407_daily_bin1758.fits outfile=/scratch/kocevski/365032/cmap_695001601_695260801_4FGL_J1204.8+0407_daily_bin1758.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.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1774       1.0000          .0000       .10000E+07
     2 'Prefactor '    .50120E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .12488E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .15654E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .97760E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .34695E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .54906E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .93327E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .16275E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .47110E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    40.753       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10800E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .25535E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .63505E-07   1.0000          .0000       .10000E+07
    15 'norm      '    4.3307       1.0000          .0000       .10000E+07
    16 'Prefactor '    .97549E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .70076E-03   1.0000          .0000       .10000E+07
    18 'norm      '    1.4708       1.0000          .0000       .10000E+07
    19 'Prefactor '    16.221       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.5482       1.0000          .0000       .10000E+07
    21 'norm      '    1.2265       1.0000          .0000       .10000E+07
    22 'Prefactor '    .23151E-05   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0236       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1440       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=   7802.440     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1593 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1778        2.2493       -.13545E-06   -.30329E-04
   2  Prefactor     .55511E-10    6.0643        .11665E-05** at limit **
   3  Prefactor     .26771E-05    29.837        .47350E-06** at limit **
   4  Prefactor      .0000        2.9223       -.46805E-06** at limit **
   5  Prefactor     .16653E-09    5.0562        .12253E-06** at limit **
   6  Prefactor     .71887E-07    5.4296        .18015E-06** at limit **
   7  Prefactor     .97367E-07    4.6487       -.35865E-08** at limit **
   8  Prefactor     .98599E-06    55.906       -.42003E-06** at limit **
   9  Prefactor     .11202E-06    .91023       -.11269E-06** at limit **
  10  Prefactor     .68098E-05    17.785        .42118E-06** at limit **
  11  Prefactor     40.902        1.6915        .12740E-07    .47461E-02
  12  Prefactor     .38858E-09    8.0229       -.10424E-05** at limit **
  13  Prefactor      .0000        2.2855       -.15613E-06** at limit **
  14  norm           .0000        .40994       -.33062E-06** at limit **
  15  norm          4.3304        3.2273        .34687E-06   -.23639E-03
  16  Prefactor     .55511E-10    6.5551       -.52814E-06** at limit **
  17  norm          .41078E-08    18.937       -.15542E-05** at limit **
  18  norm          1.4704        .52499       -.44965E-07   -.12739E-02
  19  Prefactor     16.220        1.4489        .45457E-07    .35076E-01
  20  Prefactor     2.5945        6.2841       -.17456E-05    .12218E-03
  21  norm          1.2270        1.3244       -.12756E-06   -.13030E-03
  22  Prefactor     .31641E-08    15.953        .43871E-06** at limit **
  23  Normalizat    1.0235        .21626       -.11856E-04   -.20545E-05
  24  Prefactor     1.1439        .18016        .13492E-04   -.88149E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.17782
  Prefactor  = 5.55112e-11
  Prefactor  = 2.67714e-06
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 7.18869e-08
  Prefactor  = 9.73666e-08
  Prefactor  = 9.85989e-07
  Prefactor  = 1.12022e-07
  Prefactor  = 6.80983e-06
  Prefactor  = 40.9016
  Prefactor  = 3.88578e-10
  Prefactor  = 0
  norm       = 0
  norm       = 4.33038
  Prefactor  = 5.55112e-11
  norm       = 4.10783e-09
  norm       = 1.47037
  Prefactor  = 16.2199
  Prefactor  = 2.59449
  norm       = 1.22696
  Prefactor  = 3.16414e-09
  Normalizat = 1.02354
  Prefactor  = 1.14391
 **********
 **   18 **HESSE 
 **********

 FCN=   7802.440     FROM HESSE     STATUS=OK           443 CALLS     2036 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1778        2.2576        .56827E-03   -1.5672    
   2  Prefactor     .55511E-10    6.0862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .26771E-05    42.356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.9283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16653E-09    5.0732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .71887E-07    9.9539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .97367E-07    9.8453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .98599E-06    60.154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11202E-06    21.312        .17295E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .68098E-05    48.140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.902        19.438        .15666E-03   -1.5580    
  12  Prefactor     .38858E-09    8.0756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.2885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .41089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.3304        3.2309        .48381E-03   -1.5666    
  16  Prefactor     .55511E-10    6.5627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .41078E-08    19.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4704        .53184        .77754E-03   -1.5684    
  19  Prefactor     16.220        11.041        .24841E-03   -1.5627    
  20  Prefactor     2.5945        6.2979        .63941E-03   -1.5676    
  21  norm          1.2270        1.3538        .10162E-02   -1.5686    
  22  Prefactor     .31641E-08    15.857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0235        .18376        .66029E-01   -.92246    
  24  Prefactor     1.1439        .15199        .53266E-01   -.88075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49043e-07
Minuit parameter uncertainties:
  1  2.25755
  2  3.00598e-05
  3  0.0212973
  4  3.73709e-06
  5  5.72266e-05
  6  0.00169184
  7  0.0019583
  8  0.0154031
  9  0.00309026
  10  0.036212
  11  19.4382
  12  0.000108151
  13  1.77019e-06
  14  4.54294e-08
  15  3.23086
  16  3.29614e-05
  17  0.000558432
  18  0.531839
  19  11.0412
  20  6.29788
  21  1.3538
  22  0.000447255
  23  0.183879
  24  0.15205
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  6.810e-06  3.621e-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.144e+00  1.521e-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.024e+00  1.839e-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: 8.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365032/likelihoodResults_695001601_695260801_4FGL_J1204.8+0407_daily_bin1758.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) = 7802.45030285
delta logL = -0.0101566969051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7802.38141694
delta logL = 0.0587292141909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0765       1.0000          .0000       .10000E+07
     2 'Index     '    4.2774       1.0000          .0000       10.000    
     3 'Normalizat'    .99838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1572       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=   7802.381     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      317 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0832        455.45        .25362E-04   -.25882E-02
   2  Index         4.2749        7.8123        .78569E-02   -.22179E-04
   3  Normalizat    .99867        .19087        .29536E-03   -.62241E-04
   4  Prefactor     1.1569        .15202        .23438E-03   -.12544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.08317
  Index      = 4.2749
  Normalizat = 0.998669
  Prefactor  = 1.15686
 **********
 **   18 **HESSE 
 **********

 FCN=   7802.381     FROM HESSE     STATUS=OK            25 CALLS      342 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0832        18.171        .10145E-05   -1.5687    
   2  Index         4.2749        3.7771        .31428E-03   -.14553    
   3  Normalizat    .99867        .22278        .11814E-04   -.93075    
   4  Prefactor     1.1569        .18343        .46876E-04   -.87669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89365e-11
Minuit parameter uncertainties:
  1  8.87308
  2  4.29754
  3  0.222989
  4  0.183528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365032': 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) = 7802.38141495
delta logL = 0.0587312053012

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.157e+00  1.835e-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:  9.987e-01  2.230e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/365032/cmap_HighResolution_695001601_695260801_4FGL_J1204.8+0407_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', job_status='DONE', photon_flux_upper_limit='8.97e-08', time_completed='2023-01-13 00:55:17.492095', job_id='365032', GAL2='1.16', fit_tolerance='1e-08', EG2='1.00', EG='1.02', time_epoch_completed='1673600117.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='5.87e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1758' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:55:17 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 365032: <4FGL_J1204.8+0407_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1758> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jan 13 00:40:14 2023
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:40:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:40:27 2023
Terminated at Fri Jan 13 00:55:18 2023
Results reported at Fri Jan 13 00:55:18 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1758 181.203 4.12 695001601 695260801 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 :                                   696.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            904 sec.

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

