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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1748
RA = 181.203, Dec = 4.12
tmin = 692409601, tmax = 692668801
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='884819', job_status='RUN', time_executed='2022-12-14 00:38:30.039095', time_epoch_executed='1671007110.04' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884819/ft1_4FGL_J1204.8+0407_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884819/ft2_4FGL_J1204.8+0407_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884819/ft1_4FGL_J1204.8+0407_daily_bin1748.fits outfile=/scratch/kocevski/884819/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1748.fits ra=181.203 dec=4.12 rad=12.0 tmin=692409601.0 tmax=692668801.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.56
user 3.35
sys 0.19

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

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

Number of photons that the gtmktime cut: 771

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/884819/ft1_filtered_4FGL_J1204.8+0407_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/884819/ft2_4FGL_J1204.8+0407_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/884819/ltcube_692409601_692668801_4FGL_J1204.8+0407_daily_bin1748.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/884819/ft2_4FGL_J1204.8+0407_daily_bin1748.fits
.....................!
real 11.96
user 11.65
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884819/ft1_filtered_4FGL_J1204.8+0407_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/884819/ft2_4FGL_J1204.8+0407_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/884819/ltcube_692409601_692668801_4FGL_J1204.8+0407_daily_bin1748.fits outfile=/scratch/kocevski/884819/expmap_692409601_692668801_4FGL_J1204.8+0407_daily_bin1748.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/884819/ltcube_692409601_692668801_4FGL_J1204.8+0407_daily_bin1748.fits
.....................!
real 191.37
user 186.13
sys 4.75

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/884819/ft1_filtered_4FGL_J1204.8+0407_daily_bin1748.fits scfile=/scratch/kocevski/884819/ft2_4FGL_J1204.8+0407_daily_bin1748.fits outfile=/scratch/kocevski/884819/cmap_692409601_692668801_4FGL_J1204.8+0407_daily_bin1748.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/884819/ft1_filtered_4FGL_J1204.8+0407_daily_bin1748.fits scfile=/scratch/kocevski/884819/ft2_4FGL_J1204.8+0407_daily_bin1748.fits outfile=/scratch/kocevski/884819/cmap_HighResolution_692409601_692668801_4FGL_J1204.8+0407_daily_bin1748.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    .27416E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .35762E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .14251E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10349E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .31239E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .39638E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13173E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .19554E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .82795E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .40965E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    15.749       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12556E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .51736E-07   1.0000          .0000       .10000E+07
    15 'norm      '    5.1213       1.0000          .0000       .10000E+07
    16 'Prefactor '    26.815       1.0000          .0000       .10000E+07
    17 'norm      '    16.393       1.0000          .0000       .10000E+07
    18 'norm      '    .72035       1.0000          .0000       .10000E+07
    19 'Prefactor '    11.987       1.0000          .0000       .10000E+07
    20 'Prefactor '    .14433E-08   1.0000          .0000       .10000E+07
    21 'norm      '    1.9854       1.0000          .0000       .10000E+07
    22 'Prefactor '    18.858       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.3144       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0704       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=   8395.707     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1958 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.0117        .49303E-07** at limit **
   2  Prefactor     .16098E-08    7.4793       -.24804E-06** at limit **
   3  Prefactor     .22204E-09    33.919       -.30236E-06** at limit **
   4  Prefactor     .17208E-08    4.7672       -.30097E-06** at limit **
   5  Prefactor     .10496E-05    7.1741        .31788E-07** at limit **
   6  Prefactor     .26595E-06    4.8723        .11507E-06** at limit **
   7  Prefactor     .51037E-06    7.3276        .92980E-07** at limit **
   8  Prefactor     .64782E-07    28.367       -.23381E-06** at limit **
   9  Prefactor     .62117E-07    6.7815        .11291E-06** at limit **
  10  Prefactor     .21144E-06    8.1276        .22059E-07** at limit **
  11  Prefactor     .38858E-08    4.8709       -.31702E-06** at limit **
  12  Prefactor     15.754        1.1927        .10261E-08   -.61915E-02
  13  Prefactor      .0000        2.5458       -.50486E-07** at limit **
  14  norm           .0000        .53510       -.54572E-07** at limit **
  15  norm          5.1108        3.4699       -.68661E-08    .26075E-02
  16  Prefactor     26.812        1.1440        .39441E-09   -.59935E-02
  17  norm          16.595        5.9556        .33366E-07   -.10597    
  18  norm          .71990        .50529        .11828E-07    .24635E-02
  19  Prefactor     11.978        2.0039        .32196E-08   -.37325E-01
  20  Prefactor     .31330E-06    5.8393        .91763E-07** at limit **
  21  norm          1.9849        1.4855       -.19730E-07   -.19728E-02
  22  Prefactor     18.848        2.4410       -.15774E-07   -.72704E-01
  23  Normalizat    1.3146        .21796        .25851E-05   -.11994E-04
  24  Prefactor     1.0703        .18135       -.29392E-05   -.96287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.60982e-09
  Prefactor  = 2.22045e-10
  Prefactor  = 1.72085e-09
  Prefactor  = 1.0496e-06
  Prefactor  = 2.65954e-07
  Prefactor  = 5.1037e-07
  Prefactor  = 6.47815e-08
  Prefactor  = 6.2117e-08
  Prefactor  = 2.11442e-07
  Prefactor  = 3.88578e-09
  Prefactor  = 15.7543
  Prefactor  = 0
  norm       = 0
  norm       = 5.11081
  Prefactor  = 26.8124
  norm       = 16.5945
  norm       = 0.7199
  Prefactor  = 11.9781
  Prefactor  = 3.13305e-07
  norm       = 1.98487
  Prefactor  = 18.848
  Normalizat = 1.31458
  Prefactor  = 1.07027
 **********
 **   18 **HESSE 
 **********

 FCN=   8395.707     FROM HESSE     STATUS=OK           441 CALLS     2399 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.0076        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16098E-08    7.5661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22204E-09    33.887        .16161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .17208E-08    4.7846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10496E-05    11.533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .26595E-06    16.886        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .51037E-06    15.057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .64782E-07    28.767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .62117E-07    17.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21144E-06    9.2153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .38858E-08    4.9127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.754        21.518        .25211E-03   -1.5629    
  13  Prefactor      .0000        2.5453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .53462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1108        3.8834        .44403E-03   -1.5663    
  16  Prefactor     26.812        21.648        .19315E-03   -1.5604    
  17  norm          16.595        37.987        .24710E-03   -1.5626    
  18  norm          .71990        .52333        .59071E-03   -1.5691    
  19  Prefactor     11.978        11.570        .28909E-03   -1.5639    
  20  Prefactor     .31330E-06    18.827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9849        1.4994        .73515E-03   -1.5680    
  22  Prefactor     18.848        11.167        .23036E-03   -1.5621    
  23  Normalizat    1.3146        .18193        .61585E-01   -.83132    
  24  Prefactor     1.0703        .15144        .56924E-01   -.90422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23382e-06
Minuit parameter uncertainties:
  1  4.62374e-06
  2  0.000222053
  3  0.000181555
  4  0.000182606
  5  0.00695845
  6  0.00423859
  7  0.0055442
  8  0.00272991
  9  0.00211198
  10  0.00279161
  11  0.000275697
  12  21.5184
  13  8.98842e-06
  14  4.11338e-06
  15  3.88345
  16  21.6484
  17  37.9877
  18  0.523327
  19  11.5698
  20  0.0048572
  21  1.49942
  22  11.1665
  23  0.182016
  24  0.151499
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.114e-07  2.792e-03  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.070e+00  1.515e-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.315e+00  1.820e-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: 5.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/884819/likelihoodResults_692409601_692668801_4FGL_J1204.8+0407_daily_bin1748.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) = 8395.70662099
delta logL = -9.24950927583e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8395.70652952
delta logL = -1.02484227682e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59897E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.2995       1.0000          .0000       10.000    
     3 'Normalizat'    1.3149       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0700       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=   8395.707     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      316 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66613E-08    .50050        .42118E-03** at limit **
   2  Index         2.9800        6.7362        .50000        .20009E-08
   3  Normalizat    1.3146        .12500E-02    .61585E-01    .34896E-03
   4  Prefactor     1.0703        .10609E-02    .56924E-01    .29002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.66134e-09
  Index      = 2.98
  Normalizat = 1.31458
  Prefactor  = 1.07028
 **********
 **   18 **HESSE 
 **********

 FCN=   8395.707     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      345 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66613E-08    2.7850        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9800        8.3858        .50000       -.41589    
   3  Normalizat    1.3146        .29461E-02    .27239E-03   -.83132    
   4  Prefactor     1.0703        .25005E-02    .25171E-03   -.90422    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40436e-10
Minuit parameter uncertainties:
  1  0.000271915
  2  19215.2
  3  0.0029461
  4  0.0025005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884819': 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) = 8395.70652848
delta logL = 1.09321263153e-08

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  6.661e-09  2.719e-04  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  2.980e+00  1.922e+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.070e+00  2.500e-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:  1.315e+00  2.946e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/884819/cmap_HighResolution_692409601_692668801_4FGL_J1204.8+0407_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2022-12-14 00:51:03.281313', job_id='884819', GAL2='1.07', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1671007863.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1748' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:51:03 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 884819: <4FGL_J1204.8+0407_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1748> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec 14 00:35:16 2022
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:35:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:35:17 2022
Terminated at Wed Dec 14 00:51:04 2022
Results reported at Wed Dec 14 00:51:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1748 181.203 4.12 692409601 692668801 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 :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            948 sec.

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

