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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1728
RA = 181.203, Dec = 4.12
tmin = 687225601, tmax = 687484801
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='420709', job_status='RUN', time_executed='2022-10-15 08:31:45.395401', time_epoch_executed='1665847905.4' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420709/ft1_4FGL_J1204.8+0407_daily_bin1728.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420709/ft2_4FGL_J1204.8+0407_daily_bin1728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420709/ft1_4FGL_J1204.8+0407_daily_bin1728.fits outfile=/scratch/kocevski/420709/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1728.fits ra=181.203 dec=4.12 rad=12.0 tmin=687225601.0 tmax=687484801.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.72
user 2.49
sys 0.20

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

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

Number of photons that the gtmktime cut: 344

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420709/ft1_filtered_4FGL_J1204.8+0407_daily_bin1728.fits" evtable="EVENTS" scfile=/scratch/kocevski/420709/ft2_4FGL_J1204.8+0407_daily_bin1728.fits sctable="SC_DATA" outfile=/scratch/kocevski/420709/ltcube_687225601_687484801_4FGL_J1204.8+0407_daily_bin1728.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/420709/ft2_4FGL_J1204.8+0407_daily_bin1728.fits
.....................!
real 12.87
user 12.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420709/ft1_filtered_4FGL_J1204.8+0407_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/420709/ft2_4FGL_J1204.8+0407_daily_bin1728.fits sctable="SC_DATA" expcube=/scratch/kocevski/420709/ltcube_687225601_687484801_4FGL_J1204.8+0407_daily_bin1728.fits outfile=/scratch/kocevski/420709/expmap_687225601_687484801_4FGL_J1204.8+0407_daily_bin1728.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/420709/ltcube_687225601_687484801_4FGL_J1204.8+0407_daily_bin1728.fits
.....................!
real 189.98
user 184.80
sys 4.79

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/420709/ft1_filtered_4FGL_J1204.8+0407_daily_bin1728.fits scfile=/scratch/kocevski/420709/ft2_4FGL_J1204.8+0407_daily_bin1728.fits outfile=/scratch/kocevski/420709/cmap_687225601_687484801_4FGL_J1204.8+0407_daily_bin1728.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420709/ft1_filtered_4FGL_J1204.8+0407_daily_bin1728.fits scfile=/scratch/kocevski/420709/ft2_4FGL_J1204.8+0407_daily_bin1728.fits outfile=/scratch/kocevski/420709/cmap_HighResolution_687225601_687484801_4FGL_J1204.8+0407_daily_bin1728.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.177       1.0000          .0000       .10000E+07
     2 'Prefactor '    51.533       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6772       1.0000          .0000       .10000E+07
     4 'Prefactor '    .17084E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.8493       1.0000          .0000       .10000E+07
     6 'Prefactor '    .41512E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    21.072       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.9359       1.0000          .0000       .10000E+07
     9 'Prefactor '    .13972E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21373E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    10.356       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.1267       1.0000          .0000       .10000E+07
    13 'Prefactor '    .24973E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .10703E-05   1.0000          .0000       .10000E+07
    15 'norm      '    15.290       1.0000          .0000       .10000E+07
    16 'Prefactor '    .18502E-06   1.0000          .0000       .10000E+07
    17 'norm      '    .28539E-02   1.0000          .0000       .10000E+07
    18 'norm      '    1.9373       1.0000          .0000       .10000E+07
    19 'Prefactor '    13.519       1.0000          .0000       .10000E+07
    20 'Prefactor '    .49121E-04   1.0000          .0000       .10000E+07
    21 'norm      '    .14899E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    50.066       1.0000          .0000       .10000E+07
    23 'Normalizat'    .69336       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1297       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=   4053.613     FROM MIGRAD    STATUS=CONVERGED    199 CALLS     2032 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.154        4.1177        .13509E-07    .56141E-03
   2  Prefactor     53.982        36.225        .34339E-06   -.66096E-01
   3  Prefactor     .45825E-04    300.58        .23496E-07** at limit **
   4  Prefactor      .0000        6.7459        .12790E-06** at limit **
   5  Prefactor     5.9427        8.6135        .93547E-07    .16492E-02
   6  Prefactor     .44409E-09    9.2268       -.21372E-06** at limit **
   7  Prefactor     20.519        7.1396        .73802E-08    .37466E-02
   8  Prefactor     3.3080        565.93        .65105E-05    .28040E-01
   9  Prefactor     .26812E-07    36.863        .14167E-05** at limit **
  10  Prefactor      .0000        36.666        .10999E-07** at limit **
  11  Prefactor     10.334        22.803       -.22354E-06   -.94464E-01
  12  Prefactor     .56723E-02    871.54        .92844E-05** at limit **
  13  Prefactor     .55511E-10    6.6902        .20103E-06** at limit **
  14  norm           .0000        1.4400       -.51081E-07** at limit **
  15  norm          15.434        9.5795        .12451E-06    .99370E-02
  16  Prefactor     .42188E-08    19.473       -.40653E-07** at limit **
  17  norm          .15549E-05    41.728       -.77558E-06** at limit **
  18  norm          1.9270        1.4291       -.96379E-08    .20390E-02
  19  Prefactor     13.497        12.717       -.77220E-07   -.17330E-02
  20  Prefactor     .28714E-05    19.432        .44452E-06** at limit **
  21  norm          .16653E-09    11.670       -.85687E-07** at limit **
  22  Prefactor     50.486        36.684        .41132E-07    .15478    
  23  Normalizat    .69422        .30868       -.29431E-05    .45817E-04
  24  Prefactor     1.1294        .24902        .11802E-05    .66372E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1543
  Prefactor  = 53.9819
  Prefactor  = 4.58255e-05
  Prefactor  = 0
  Prefactor  = 5.94274
  Prefactor  = 4.44089e-10
  Prefactor  = 20.5185
  Prefactor  = 3.30805
  Prefactor  = 2.68119e-08
  Prefactor  = 0
  Prefactor  = 10.3339
  Prefactor  = 0.00567233
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 15.4337
  Prefactor  = 4.21885e-09
  norm       = 1.55487e-06
  norm       = 1.92703
  Prefactor  = 13.497
  Prefactor  = 2.87137e-06
  norm       = 1.66533e-10
  Prefactor  = 50.4863
  Normalizat = 0.694224
  Prefactor  = 1.12941
 **********
 **   18 **HESSE 
 **********

 FCN=   4053.613     FROM HESSE     STATUS=OK           453 CALLS     2485 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.154        4.1334        .31385E-03   -1.5644    
   2  Prefactor     53.982        52.963        .13931E-03   -1.5561    
   3  Prefactor     .45825E-04    493.31        .81328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        6.7604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9427        8.6383        .41501E-03   -1.5659    
   6  Prefactor     .44409E-09    9.2641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.519        40.422        .21791E-03   -1.5617    
   8  Prefactor     3.3080        869.63        .45246E-03   -1.5672    
   9  Prefactor     .26812E-07    49.651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        36.680        .16948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.334        24.267        .31111E-03   -1.5644    
  12  Prefactor     .56723E-02    95.756        .13895E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    6.6965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.4405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.434        10.966        .25587E-03   -1.5629    
  16  Prefactor     .42188E-08    19.562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .15549E-05    44.492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9270        1.4854        .74571E-03   -1.5680    
  19  Prefactor     13.497        12.732        .27217E-03   -1.5634    
  20  Prefactor     .28714E-05    48.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .16653E-09    2.2877        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     50.486        41.663        .14134E-03   -1.5566    
  23  Normalizat    .69422        .27323        .75128E-01   -1.0412    
  24  Prefactor     1.1294        .21619        .36554E-01   -.88532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59157e-06
Minuit parameter uncertainties:
  1  4.13344
  2  52.9632
  3  0.300731
  4  2.12678e-05
  5  8.63833
  6  0.000126938
  7  40.4227
  8  107.287
  9  0.00230785
  10  4.80463e-05
  11  24.2668
  12  1.47401
  13  2.83388e-05
  14  3.60079e-06
  15  10.9661
  16  0.000574786
  17  0.0166351
  18  1.48538
  19  12.7321
  20  0.0235907
  21  3.83679e-05
  22  41.6631
  23  0.273764
  24  0.216362
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  0.000e+00  4.805e-05  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.129e+00  2.164e-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:  6.942e-01  2.738e-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: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420709/likelihoodResults_687225601_687484801_4FGL_J1204.8+0407_daily_bin1728.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) = 4053.6263973
delta logL = -0.0130228883427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4053.39335604
delta logL = 0.220018367612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83419E-04   1.0000          .0000       .10000E+07
     2 'Index     '    9.9998       1.0000          .0000       10.000    
     3 'Normalizat'    .63838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1644       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=   4053.613     FROM MIGRAD    STATUS=CONVERGED    144 CALLS      404 TOTAL
                     EDM=   .21E-14    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .32286E-01    .42118E-03** at limit **
   2  Index         .96833        9.4004        .50000        .38654E-10
   3  Normalizat    .69422        .44550E-03    .75126E-01   -.58366E-04
   4  Prefactor     1.1294        .37857E-03    .50963E-01    .10198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 0.968329
  Normalizat = 0.694223
  Prefactor  = 1.12941
 **********
 **   18 **HESSE 
 **********

 FCN=   4053.613     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      429 TOTAL
                     EDM=   .73E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .57545        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .96833        5.5982        .10000       -8.4869    
   3  Normalizat    .69422        .18763E-02    .33258E-03   -1.0412    
   4  Prefactor     1.1294        .15973E-02    .22530E-03   -2.2563    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.29983e-14
Minuit parameter uncertainties:
  1  9.64386e-06
  2  48349.4
  3  0.00187635
  4  0.0015973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420709': 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) = 4053.61337441
delta logL = -1.00044417195e-11

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  5.551e-11  9.644e-06  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  9.683e-01  4.835e+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.129e+00  1.597e-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:  6.942e-01  1.876e-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/420709/cmap_HighResolution_687225601_687484801_4FGL_J1204.8+0407_daily_bin1728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2022-10-15 08:40:28.785332', job_id='420709', GAL2='1.13', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1665848428.79', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-1.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1728' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 08:40:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 420709: <4FGL_J1204.8+0407_daily_bin1728> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1728> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct 15 08:30:16 2022
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 15 08:30:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 15 08:30:19 2022
Terminated at Sat Oct 15 08:40:29 2022
Results reported at Sat Oct 15 08:40:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1728 181.203 4.12 687225601 687484801 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 :                                   524.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            613 sec.

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

