/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 148 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1139
RA = 181.203, Dec = 4.12
tmin = 534556801, tmax = 534816001
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='310514', job_status='RUN', time_executed='2021-09-04 23:18:54.473341', time_epoch_executed='1630822734.47' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1139'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310514

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310514/ft1_4FGL_J1204.8+0407_daily_bin1139.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310514/ft2_4FGL_J1204.8+0407_daily_bin1139.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310514/ft1_4FGL_J1204.8+0407_daily_bin1139.fits outfile=/scratch/kocevski/310514/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1139.fits ra=181.203 dec=4.12 rad=12.0 tmin=534556801.0 tmax=534816001.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.94
user 3.71
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310514/ft1_filtered_4FGL_J1204.8+0407_daily_bin1139.fits" evtable="EVENTS" scfile=/scratch/kocevski/310514/ft2_4FGL_J1204.8+0407_daily_bin1139.fits sctable="SC_DATA" outfile=/scratch/kocevski/310514/ltcube_534556801_534816001_4FGL_J1204.8+0407_daily_bin1139.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/310514/ft2_4FGL_J1204.8+0407_daily_bin1139.fits
.....................!
real 11.95
user 11.49
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310514/ft1_filtered_4FGL_J1204.8+0407_daily_bin1139.fits evtable="EVENTS" scfile=/scratch/kocevski/310514/ft2_4FGL_J1204.8+0407_daily_bin1139.fits sctable="SC_DATA" expcube=/scratch/kocevski/310514/ltcube_534556801_534816001_4FGL_J1204.8+0407_daily_bin1139.fits outfile=/scratch/kocevski/310514/expmap_534556801_534816001_4FGL_J1204.8+0407_daily_bin1139.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/310514/ltcube_534556801_534816001_4FGL_J1204.8+0407_daily_bin1139.fits
.....................!
real 192.43
user 185.98
sys 5.63

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/310514/ft1_filtered_4FGL_J1204.8+0407_daily_bin1139.fits scfile=/scratch/kocevski/310514/ft2_4FGL_J1204.8+0407_daily_bin1139.fits outfile=/scratch/kocevski/310514/cmap_534556801_534816001_4FGL_J1204.8+0407_daily_bin1139.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310514/ft1_filtered_4FGL_J1204.8+0407_daily_bin1139.fits scfile=/scratch/kocevski/310514/ft2_4FGL_J1204.8+0407_daily_bin1139.fits outfile=/scratch/kocevski/310514/cmap_HighResolution_534556801_534816001_4FGL_J1204.8+0407_daily_bin1139.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.58
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/310514/ft1_filtered_4FGL_J1204.8+0407_daily_bin1139.fits', '/scratch/kocevski/310514/ft2_4FGL_J1204.8+0407_daily_bin1139.fits', expMap='/scratch/kocevski/310514/expmap_534556801_534816001_4FGL_J1204.8+0407_daily_bin1139.fits', expCube='/scratch/kocevski/310514/ltcube_534556801_534816001_4FGL_J1204.8+0407_daily_bin1139.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/310514/Model_4FGL_J1204.8+0407_daily_bin1139.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  1.000e-04  1.000e+04 ( 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/310514/ft1_filtered_4FGL_J1204.8+0407_daily_bin1139.fits
Spacecraft file(s): /scratch/kocevski/310514/ft2_4FGL_J1204.8+0407_daily_bin1139.fits
Exposure map: /scratch/kocevski/310514/expmap_534556801_534816001_4FGL_J1204.8+0407_daily_bin1139.fits
Exposure cube: /scratch/kocevski/310514/ltcube_534556801_534816001_4FGL_J1204.8+0407_daily_bin1139.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/310514/Model_4FGL_J1204.8+0407_daily_bin1139.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) = 6536.55375278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11957E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    135.19       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.287       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5853       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    58.637       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.268       1.0000         .10000E-03   10000.    
    21 'norm      '    2.1883       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6880       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.9705       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.321       1.0000         .10000E-03   10000.    
    27 'Prefactor '    35.596       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.9760       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .45554       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.

 FCN=   6536.528     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3749 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .67294        .46520E-07** at limit **
   2  Prefactor     .10000E-03    15.389       -.21331E-07** at limit **
   3  Prefactor     .10000E-03    6.7069        .24858E-06** at limit **
   4  Prefactor     .10000E-03    215.42        .52289E-05** at limit **
   5  Prefactor     .10000E-03    5.8792        .10931E-06** at limit **
   6  Prefactor     .10000E-03    13.720        .19814E-05** at limit **
   7  Prefactor     .10000E-03    2.9469       -.83815E-07** at limit **
   8  Prefactor     .10000E-03    5.2229        .61900E-08** at limit **
   9  Prefactor     .10000E-03    5.1425        .97819E-07** at limit **
  10  Prefactor     .10000E-03    49.777        .12615E-04** at limit **
  11  Prefactor     .10000E-03    29.238        .29374E-05** at limit **
  12  Prefactor     135.21        58.180        .10721E-04    .20886E-04
  13  Prefactor     .10000E-03    6.5325       -.26319E-06** at limit **
  14  Prefactor     .10000E-03    15.205        .34752E-06** at limit **
  15  Prefactor     20.291        19.484       -.81003E-06    .11471E-04
  16  norm          2.5853        3.7853        .51686E-06   -.40187E-03
  17  norm          .10000E-03    2.1375       -.39681E-06** at limit **
  18  Prefactor     .10000E-03    45.304       -.15565E-04** at limit **
  19  norm          58.642        36.541       -.32340E-06    .21644E-04
  20  Prefactor     35.393        123.68        .18564E-03    .81242E-05
  21  norm          2.1883        .72573       -.91543E-07   -.17994E-03
  22  Prefactor     5.6882        6.8818        .16052E-06   -.10211E-04
  23  Prefactor     .10000E-03    13.296       -.18127E-05** at limit **
  24  Prefactor     .10000E-03    18.055       -.99074E-06** at limit **
  25  norm          1.9706        2.0194       -.68411E-06   -.99545E-03
  26  Prefactor     20.322        14.174        .19701E-06    .18041E-04
  27  Prefactor     35.608        48.798        .95830E-05    .13051E-04
  28  Normalizat    1.9757        .22936       -.75056E-06    .82165E-04
  29  Prefactor     .45569        .18098       -.74897E-05   -.62663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 135.21
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2914
  norm       = 2.58533
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 58.6423
  Prefactor  = 35.393
  norm       = 2.18834
  Prefactor  = 5.68816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.97056
  Prefactor  = 20.3223
  Prefactor  = 35.6081
  Normalizat = 1.97572
  Prefactor  = 0.455687
 **********
 **   18 **HESSE 
 **********

 FCN=   6536.528     FROM HESSE     STATUS=OK           543 CALLS     4292 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .67799        .64755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    215.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9514        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2292        .18045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1529        .17906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    49.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     135.21        58.461        .34638E-04   -1.3377    
  13  Prefactor     .10000E-03    6.5381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.291        19.415        .88925E-04   -1.4807    
  16  norm          2.5853        3.7547        .14345E-03   -1.5386    
  17  norm          .10000E-03    2.1791        .11518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    45.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          58.642        36.534        .52392E-04   -1.4175    
  20  Prefactor     35.393        123.52        .33740E-03   -1.4517    
  21  norm          2.1883        .72317        .36158E-04   -1.5412    
  22  Prefactor     5.6882        6.8806        .16842E-03   -1.5231    
  23  Prefactor     .10000E-03    13.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.9706        2.0012        .10806E-03   -1.5427    
  26  Prefactor     20.322        14.152        .88850E-04   -1.4806    
  27  Prefactor     35.608        48.730        .67171E-04   -1.4514    
  28  Normalizat    1.9757        .26083        .24212E-03   -.65160    
  29  Prefactor     .45569        .20225        .36997E-03   -1.1405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45599e-10
Minuit parameter uncertainties:
  1  4.3785e-06
  2  5.54984e-05
  3  3.31459e-06
  4  0.000629591
  5  9.92838e-06
  6  1.03174e-05
  7  1.50325e-05
  8  8.66124e-06
  9  1.5331e-05
  10  4.52843e-05
  11  7.19208e-05
  12  58.4858
  13  6.07655e-06
  14  0.000118602
  15  19.4212
  16  3.75505
  17  5.71979e-05
  18  0.000831366
  19  36.5476
  20  124.43
  21  0.723178
  22  6.88156
  23  9.95809e-06
  24  0.000193138
  25  2.00128
  26  14.1546
  27  48.7849
  28  0.261016
  29  0.202571
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.352e+02  5.849e+01  1.000e-04  1.000e+04 ( 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:  4.557e-01  2.026e-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.976e+00  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.58
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.54e-07 +/- 6.64e-08
Energy Flux (Fixed Index): 4.11e-05 +/- 1.78e-05

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) = 6536.52785019
delta logL = 0.00024615816892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6536.52762906
delta logL = 0.00046728842608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    133.70       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5922       1.0000          .0000       10.000    
     3 'Normalizat'    1.9741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45650       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=   6536.528     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      269 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     133.56        81.668        .17414E-03   -.47724E-04
   2  Index         2.5909        .42801        .47502E-02    .35337E-04
   3  Normalizat    1.9745        .25793        .24218E-03   -.29340E-04
   4  Prefactor     .45658        .20225        .36966E-03   -.99953E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 133.559
  Index      = 2.59095
  Normalizat = 1.97446
  Prefactor  = 0.456575
 **********
 **   18 **HESSE 
 **********

 FCN=   6536.528     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     133.56        78.459        .69655E-05   -1.3391    
   2  Index         2.5909        .41087        .19001E-03   -.50272    
   3  Normalizat    1.9745        .25797        .96872E-05   -.65192    
   4  Prefactor     .45658        .20219        .14786E-04   -1.1401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2281e-11
Minuit parameter uncertainties:
  1  78.5197
  2  0.411472
  3  0.258147
  4  0.202505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310514': 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) = 6536.52760809
delta logL = 0.000488251975185

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.336e+02  7.852e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.591e+00  4.115e-01  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:  4.566e-01  2.025e-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.974e+00  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.52
Ra Dec: 181.203 4.120
Photon Index (Free Index): 2.59 +/- 0.41
Photon Flux (Free Index): 1.54e-07 +/- 7.15e-08
Energy Flux (Free Index): 4.08e-05 +/- 1.98e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/310514/cmap_HighResolution_534556801_534816001_4FGL_J1204.8+0407_daily_bin1139.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-07', energy_flux2='4.08e-05', photon_flux_error='6.64e-08', dlogl='4.88e-04', energy_flux='4.11e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2021-09-04 23:32:33.938505', photon_index_error2='0.41', photon_index2='2.59', ts='8.58', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='1.98', time_epoch_completed='1630823553.94', return_code='0', job_id='310514', GAL2='0.46', EG2='1.97', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='7.15e-08', ts2='8.52', photon_index='2.58' WHERE bin_id='1139' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:32:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 310514: <4FGL_J1204.8+0407_daily_bin1139> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1139> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:16:16 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:16:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 23:16:18 2021
Terminated at Sat Sep  4 23:32:34 2021
Results reported at Sat Sep  4 23:32:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1139 181.203 4.12 534556801 534816001 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 :                                   808.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

