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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1121
RA = 181.203, Dec = 4.12
tmin = 529891201, tmax = 530150401
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='310400', job_status='RUN', time_executed='2021-09-04 23:17:46.038066', time_epoch_executed='1630822666.04' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310400

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310400/ft1_4FGL_J1204.8+0407_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310400/ft2_4FGL_J1204.8+0407_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310400/ft1_4FGL_J1204.8+0407_daily_bin1121.fits outfile=/scratch/kocevski/310400/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1121.fits ra=181.203 dec=4.12 rad=12.0 tmin=529891201.0 tmax=530150401.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.33
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310400/ft1_filtered_4FGL_J1204.8+0407_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/310400/ft2_4FGL_J1204.8+0407_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/310400/ltcube_529891201_530150401_4FGL_J1204.8+0407_daily_bin1121.fits outfile=/scratch/kocevski/310400/expmap_529891201_530150401_4FGL_J1204.8+0407_daily_bin1121.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/310400/ltcube_529891201_530150401_4FGL_J1204.8+0407_daily_bin1121.fits
.....................!
real 190.67
user 185.57
sys 4.70

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1204.8+0407 @ 181.203 4.12

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/310400/ft1_filtered_4FGL_J1204.8+0407_daily_bin1121.fits scfile=/scratch/kocevski/310400/ft2_4FGL_J1204.8+0407_daily_bin1121.fits outfile=/scratch/kocevski/310400/cmap_529891201_530150401_4FGL_J1204.8+0407_daily_bin1121.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310400/ft1_filtered_4FGL_J1204.8+0407_daily_bin1121.fits scfile=/scratch/kocevski/310400/ft2_4FGL_J1204.8+0407_daily_bin1121.fits outfile=/scratch/kocevski/310400/cmap_HighResolution_529891201_530150401_4FGL_J1204.8+0407_daily_bin1121.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9702       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.463       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1630       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2917       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    74.426       1.0000         .10000E-03   10000.    
    12 'Prefactor '    142.50       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.645       1.0000         .10000E-03   10000.    
    16 'norm      '    .11942E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.7470       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    44.917       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .24737       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.277       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.3951       1.0000         .10000E-03   10000.    
    25 'norm      '    5.8093       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    105.64       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3845       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .74278       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=   5376.959     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3718 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9704        2.5494        .25682E-07   -.34719E-04
   2  Prefactor     28.464        33.333        .92875E-07   -.33307E-05
   3  Prefactor     2.1617        26.423        .79249E-06   -.24808E-04
   4  Prefactor     .10000E-03    45.708       -.45137E-07** at limit **
   5  Prefactor     .10000E-03    3.9987       -.11821E-07** at limit **
   6  Prefactor     .10000E-03    17.737       -.13726E-08** at limit **
   7  Prefactor     .10000E-03    8.5133       -.21764E-06** at limit **
   8  Prefactor     2.2904        15.730        .84038E-06   -.41998E-04
   9  Prefactor     .10000E-03    6.0607        .38886E-08** at limit **
  10  Prefactor     .10000E-03    24.454       -.23742E-07** at limit **
  11  Prefactor     74.429        46.767        .73826E-08    .30055E-05
  12  Prefactor     142.49        63.205       -.37468E-07   -.10789E-04
  13  Prefactor     .10000E-03    23.350       -.19140E-06** at limit **
  14  Prefactor     .10000E-03    11.433        .37103E-07** at limit **
  15  Prefactor     13.640        15.198        .19494E-05    .13781E-05
  16  norm          .10000E-03    1.6254       -.64736E-06** at limit **
  17  norm          9.7549        5.7665        .26245E-06   -.20631E-03
  18  Prefactor     .10000E-03    10.941        .36684E-07** at limit **
  19  norm          44.838        55.832       -.47503E-06   -.38886E-04
  20  Prefactor     .10000E-03    106.27        .28147E-07** at limit **
  21  norm          .24675        .65931       -.14549E-06   -.42024E-03
  22  Prefactor     .10000E-03    5.7340        .97993E-07** at limit **
  23  Prefactor     37.285        33.319        .71718E-07   -.14248E-05
  24  Prefactor     8.4023        14.181        .43012E-06   -.37601E-04
  25  norm          5.8103        2.3258        .72947E-07   -.18518E-03
  26  Prefactor     .10000E-03    18.518        .31304E-06** at limit **
  27  Prefactor     105.66        60.245        .32563E-06   -.59584E-05
  28  Normalizat    1.3843        .23197       -.80643E-06    .67221E-04
  29  Prefactor     .74295        .18161        .57939E-06   -.38941E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.97037
  Prefactor  = 28.4638
  Prefactor  = 2.16171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.4287
  Prefactor  = 142.486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6402
  norm       = 0.0001
  norm       = 9.75495
  Prefactor  = 0.0001
  norm       = 44.8383
  Prefactor  = 0.0001
  norm       = 0.246748
  Prefactor  = 0.0001
  Prefactor  = 37.285
  Prefactor  = 8.40233
  norm       = 5.81028
  Prefactor  = 0.0001
  Prefactor  = 105.662
  Normalizat = 1.38432
  Prefactor  = 0.742947
 **********
 **   18 **HESSE 
 **********

 FCN=   5376.959     FROM HESSE     STATUS=OK           549 CALLS     4267 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9704        2.5477        .90294E-04   -1.5309    
   2  Prefactor     28.464        33.354        .75094E-04   -1.4640    
   3  Prefactor     2.1617        26.278        .28006E-03   -1.5414    
   4  Prefactor     .10000E-03    45.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0225        .14320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2904        15.550        .27115E-03   -1.5405    
   9  Prefactor     .10000E-03    6.0695        .17629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     74.429        46.765        .46540E-04   -1.3980    
  12  Prefactor     142.49        63.561        .33750E-04   -1.3315    
  13  Prefactor     .10000E-03    23.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.640        15.738        .54216E-03   -1.4969    
  16  norm          .10000E-03    2.9108        .17939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.7549        5.6784        .10717E-03   -1.5083    
  18  Prefactor     .10000E-03    10.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          44.838        55.752        .59822E-04   -1.4368    
  20  Prefactor     .10000E-03    106.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .24675        .63590        .81658E-04   -1.5609    
  22  Prefactor     .10000E-03    5.7414        .17131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     37.285        33.314        .65643E-04   -1.4486    
  24  Prefactor     8.4023        14.070        .13836E-03   -1.5128    
  25  norm          5.8103        2.3113        .66279E-04   -1.5226    
  26  Prefactor     .10000E-03    18.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     105.66        60.032        .39125E-04   -1.3648    
  28  Normalizat    1.3843        .26873        .26275E-03   -.81083    
  29  Prefactor     .74295        .20986        .28482E-03   -1.0187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96319e-10
Minuit parameter uncertainties:
  1  2.54781
  2  33.3757
  3  15.0817
  4  4.42393e-06
  5  1.14202e-06
  6  5.45982e-06
  7  1.27329e-05
  8  11.94
  9  1.21316e-06
  10  5.79827e-06
  11  46.7881
  12  63.592
  13  3.43558e-05
  14  1.86241e-05
  15  15.7425
  16  4.48326e-05
  17  5.67869
  18  4.9162e-06
  19  55.8172
  20  4.81745e-05
  21  0.635918
  22  8.0778e-06
  23  33.3311
  24  14.0753
  25  2.31137
  26  7.13322e-05
  27  60.067
  28  0.269005
  29  0.210088
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.425e+02  6.359e+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:  7.429e-01  2.101e-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.384e+00  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.86
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 7.22e-08
Energy Flux (Fixed Index): 4.33e-05 +/- 1.93e-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) = 5376.50669012
delta logL = 0.452370597666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5376.50321719
delta logL = 0.455843529947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    87.511       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0711       1.0000          .0000       10.000    
     3 'Normalizat'    1.3260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77992       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=   5376.503     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      290 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.523        81.313        .42948E-04   -.51078E-03
   2  Index         3.0712        .64171        .38678E-02   -.33200E-03
   3  Normalizat    1.3262        .26613        .26730E-03    .36997E-03
   4  Prefactor     .77973        .21329        .27881E-03    .53161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.5231
  Index      = 3.07122
  Normalizat = 1.32619
  Prefactor  = 0.779734
 **********
 **   18 **HESSE 
 **********

 FCN=   5376.503     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.523        72.452        .85896E-05   -1.3834    
   2  Index         3.0712        .57134        .15471E-03   -.39603    
   3  Normalizat    1.3262        .26571        .53459E-04   -.82788    
   4  Prefactor     .77973        .21283        .55762E-04   -1.0048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04095e-09
Minuit parameter uncertainties:
  1  72.5251
  2  0.572809
  3  0.265985
  4  0.213056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310400': 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) = 5376.50321624
delta logL = 0.45584448118

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  8.752e+01  7.253e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.071e+00  5.728e-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:  7.797e-01  2.131e-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.326e+00  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.93
Ra Dec: 181.203 4.120
Photon Index (Free Index): 3.07 +/- 0.57
Photon Flux (Free Index): 2.04e-07 +/- 9.09e-08
Energy Flux (Free Index): 3.95e-05 +/- 1.68e-05

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/310400/cmap_HighResolution_529891201_530150401_4FGL_J1204.8+0407_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='3.95e-05', photon_flux_error='7.22e-08', dlogl='4.56e-01', energy_flux='4.33e-05', photon_flux2='2.04e-07', job_status='DONE', time_completed='2021-09-04 23:29:46.746025', photon_index_error2='0.57', photon_index2='3.07', ts='8.86', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.38', time_epoch_completed='1630823386.75', return_code='0', job_id='310400', GAL2='0.78', EG2='1.33', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='9.09e-08', ts2='9.93', photon_index='2.58' WHERE bin_id='1121' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:29:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 310400: <4FGL_J1204.8+0407_daily_bin1121> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1121> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:16:02 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:16:04 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:04 2021
Terminated at Sat Sep  4 23:29:47 2021
Results reported at Sat Sep  4 23:29:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1121 181.203 4.12 529891201 530150401 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 :                                   700.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

