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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1780
RA = 181.203, Dec = 4.12
tmin = 700704001, tmax = 700963201
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='61265', job_status='RUN', time_executed='2023-03-20 00:48:40.670482', time_epoch_executed='1679298520.67' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61265

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61265/ft1_4FGL_J1204.8+0407_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61265/ft2_4FGL_J1204.8+0407_daily_bin1780.fits


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

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

Done.
real 4.05
user 3.84
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/61265/ft2_4FGL_J1204.8+0407_daily_bin1780.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/61265/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/61265/ft1_filtered_4FGL_J1204.8+0407_daily_bin1780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.35
sys 0.13

Number of photons that the gtmktime cut: 255

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61265/ft1_filtered_4FGL_J1204.8+0407_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/61265/ft2_4FGL_J1204.8+0407_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/61265/ltcube_700704001_700963201_4FGL_J1204.8+0407_daily_bin1780.fits outfile=/scratch/kocevski/61265/expmap_700704001_700963201_4FGL_J1204.8+0407_daily_bin1780.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/61265/ltcube_700704001_700963201_4FGL_J1204.8+0407_daily_bin1780.fits
.....................!
real 191.26
user 186.54
sys 4.40

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/61265/ft1_filtered_4FGL_J1204.8+0407_daily_bin1780.fits scfile=/scratch/kocevski/61265/ft2_4FGL_J1204.8+0407_daily_bin1780.fits outfile=/scratch/kocevski/61265/cmap_700704001_700963201_4FGL_J1204.8+0407_daily_bin1780.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61265/ft1_filtered_4FGL_J1204.8+0407_daily_bin1780.fits scfile=/scratch/kocevski/61265/ft2_4FGL_J1204.8+0407_daily_bin1780.fits outfile=/scratch/kocevski/61265/cmap_HighResolution_700704001_700963201_4FGL_J1204.8+0407_daily_bin1780.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=181.203 yref=4.12 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27428E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .14538E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .77283E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .53412E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.8861       1.0000          .0000       .10000E+07
     6 'Prefactor '    .50294E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    14.921       1.0000          .0000       .10000E+07
     8 'Prefactor '    .96634E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .56704E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .20884E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .51362       1.0000          .0000       .10000E+07
    12 'Prefactor '    16.444       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.0819       1.0000          .0000       .10000E+07
    14 'norm      '    .32204E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .84877E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .43231E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .33795E-03   1.0000          .0000       .10000E+07
    18 'norm      '    1.5113       1.0000          .0000       .10000E+07
    19 'Prefactor '    .22443E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    11.517       1.0000          .0000       .10000E+07
    21 'norm      '    2.3944       1.0000          .0000       .10000E+07
    22 'Prefactor '    .44168E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .68364       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0680       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=   2921.566     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     1930 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.2038        .26123E-07** at limit **
   2  Prefactor     .81181E-05    19.045       -.95630E-06** at limit **
   3  Prefactor      .0000        32.113       -.23344E-06** at limit **
   4  Prefactor      .0000        4.2313        .16485E-06** at limit **
   5  Prefactor     8.8627        11.715       -.13648E-06    .24736E-02
   6  Prefactor     .17303E-05    71.864        .15458E-05** at limit **
   7  Prefactor     14.668        1.6559        .24398E-07   -.58550E-02
   8  Prefactor     .93447E-06    55.755        .10012E-05** at limit **
   9  Prefactor      .0000        28.847        .76664E-06** at limit **
  10  Prefactor      .0000        12.839        .73090E-07** at limit **
  11  Prefactor     .78987E-04    71.285        .10727E-05** at limit **
  12  Prefactor     16.470        1.2505       -.10431E-07   -.23363E-01
  13  Prefactor     1.1491        60.028       -.11835E-05   -.55435E-03
  14  norm           .0000        3.8469        .16294E-06** at limit **
  15  norm           .0000        1.4297        .12776E-09** at limit **
  16  Prefactor     .55511E-10    18.763        .82840E-06** at limit **
  17  norm          .45620E-05    27.127       -.13605E-05** at limit **
  18  norm          1.5107        .77761        .91126E-07   -.20134E-02
  19  Prefactor      .0000        11.670       -.44100E-07** at limit **
  20  Prefactor     11.507        9.7225       -.12820E-06   -.15046E-02
  21  norm          2.3930        1.9866        .42942E-07   -.31239E-03
  22  Prefactor      .0000        3.1738       -.14663E-07** at limit **
  23  Normalizat    .68485        .27623       -.10414E-04   -.59838E-05
  24  Prefactor     1.0678        .23622        .40459E-05   -.93995E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 8.11812e-06
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8.86267
  Prefactor  = 1.73028e-06
  Prefactor  = 14.6675
  Prefactor  = 9.34475e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.8987e-05
  Prefactor  = 16.4703
  Prefactor  = 1.14909
  norm       = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 4.56202e-06
  norm       = 1.51067
  Prefactor  = 0
  Prefactor  = 11.5069
  norm       = 2.39297
  Prefactor  = 0
  Normalizat = 0.684854
  Prefactor  = 1.0678
 **********
 **   18 **HESSE 
 **********

 FCN=   2921.566     FROM HESSE     STATUS=OK           449 CALLS     2379 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.2017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .81181E-05    43.394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        32.110        .14585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        4.2377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8627        11.828        .33600E-03   -1.5648    
   6  Prefactor     .17303E-05    90.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.668        20.106        .25903E-03   -1.5631    
   8  Prefactor     .93447E-06    62.341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        28.850        .15283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        12.841        .16979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .78987E-04    47.727        .10110E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.470        19.496        .24672E-03   -1.5627    
  13  Prefactor     1.1491        23.016        .77738E-02   -1.5687    
  14  norm           .0000        3.8378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.4311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    18.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .45620E-05    40.287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5107        .79460        .71636E-03   -1.5683    
  19  Prefactor      .0000        11.670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.507        9.7292        .29495E-03   -1.5640    
  21  norm          2.3930        1.9922        .66154E-03   -1.5677    
  22  Prefactor      .0000        3.1736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .68485        .24638        .65597E-01   -1.0449    
  24  Prefactor     1.0678        .20763        .38953E-01   -.90503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75656e-07
Minuit parameter uncertainties:
  1  3.54894e-07
  2  0.0375383
  3  2.57277e-05
  4  3.83404e-06
  5  11.8278
  6  0.0250011
  7  20.1064
  8  0.0152652
  9  5.10694e-05
  10  8.61196e-06
  11  0.122799
  12  19.4962
  13  10.2854
  14  5.10019e-07
  15  1.37105e-06
  16  4.62972e-05
  17  0.027114
  18  0.794602
  19  3.49108e-05
  20  9.72923
  21  1.99222
  22  2.75312e-06
  23  0.246777
  24  0.207784
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.068e+00  2.078e-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.849e-01  2.468e-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.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61265/likelihoodResults_700704001_700963201_4FGL_J1204.8+0407_daily_bin1780.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) = 2921.56635246
delta logL = -0.000151583069965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2921.56620163
delta logL = -7.59510839998e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83500E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.0799       1.0000          .0000       10.000    
     3 'Normalizat'    .68518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0675       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2921.566     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      279 TOTAL
                     EDM=   .63E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.017        .42118E-03** at limit **
   2  Index         2.7532        1.6737       -.14354E-04     .0000    
   3  Normalizat    .68485        1.0245       -.11337E-04    .99013E-05
   4  Prefactor     1.0678        1.1735        .73612E-05    .23067E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.75321
  Normalizat = 0.684854
  Prefactor  = 1.0678
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2921.566     FROM HESSE     STATUS=FAILED         9 CALLS      288 TOTAL
                     EDM=   .63E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .85856        2.0583       -.14354E-04   -.46605    
   3  Normalizat    .68485        1.0245       -.11337E-04   -1.0449    
   4  Prefactor     1.0678        1.1735        .73612E-05   -.90503    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.31158e-13
Minuit parameter uncertainties:
  1  5.5572e-07
  2  1.71552
  3  1.05536
  4  1.20371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61265': 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): 101
logL (Free Index) = 2921.56620087
delta logL = 0.0

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  0.000e+00  5.557e-07  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  2.753e+00  1.716e+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.068e+00  1.204e+00  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.849e-01  1.055e+00  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/61265/cmap_HighResolution_700704001_700963201_4FGL_J1204.8+0407_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2023-03-20 00:56:19.835660', job_id='61265', GAL2='1.07', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1679298979.84', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1780' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:56:19 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 61265: <4FGL_J1204.8+0407_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 00:45:18 2023
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:45:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:45:19 2023
Terminated at Mon Mar 20 00:56:20 2023
Results reported at Mon Mar 20 00:56:20 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1780 181.203 4.12 700704001 700963201 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 :                                   461.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            662 sec.

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

